2021-09-30 11:43:29 +02:00
|
|
|
pragma Singleton
|
|
|
|
|
|
|
|
import QtQuick 2.13
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: root
|
|
|
|
|
2022-03-16 12:36:04 +01:00
|
|
|
property var dappBrowserAccount: browserSectionCurrentAccount
|
2021-11-19 10:42:41 +01:00
|
|
|
property var accounts: walletSectionAccounts.model
|
|
|
|
property string defaultCurrency: walletSection.currentCurrency
|
|
|
|
property string signingPhrase: walletSection.signingPhrase
|
2022-03-15 15:40:16 +01:00
|
|
|
|
|
|
|
function getEtherscanLink() {
|
|
|
|
return profileSectionModule.ensUsernamesModule.getEtherscanLink()
|
|
|
|
}
|
|
|
|
|
2021-09-30 11:43:29 +02:00
|
|
|
|
2022-03-16 12:36:04 +01:00
|
|
|
function switchAccountByAddress(address) {
|
|
|
|
browserSectionCurrentAccount.switchAccountByAddress(address)
|
2021-09-30 11:43:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function getGasPrice(){
|
2021-12-13 15:24:21 +01:00
|
|
|
// Not Refactored Yet
|
|
|
|
// walletModel.gasView.getGasPrice()
|
2021-09-30 11:43:29 +02:00
|
|
|
}
|
|
|
|
|
2022-02-28 13:30:36 +01:00
|
|
|
function isEIP1559Enabled() {
|
|
|
|
return walletSection.isEIP1559Enabled()
|
|
|
|
}
|
|
|
|
|
2021-09-30 11:43:29 +02:00
|
|
|
}
|