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)
|
2022-03-25 08:46:47 +00:00
|
|
|
walletSectionTransactions.setModel(address)
|
2021-09-30 09:43:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|