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