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
|
|
|
|
2022-12-08 15:56:02 +00:00
|
|
|
function getEtherscanLink(chainID) {
|
2024-03-13 17:38:16 +00:00
|
|
|
return networksModule.getBlockExplorerURL(chainID)
|
2022-03-15 14:40:16 +00:00
|
|
|
}
|
|
|
|
|
2022-03-16 11:36:04 +00:00
|
|
|
function switchAccountByAddress(address) {
|
|
|
|
browserSectionCurrentAccount.switchAccountByAddress(address)
|
2021-09-30 09:43:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|