2022-02-11 09:44:49 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
|
2022-04-01 10:30:55 +00:00
|
|
|
import "../../Wallet/stores"
|
2023-02-14 09:20:53 +00:00
|
|
|
import utils 1.0
|
2022-04-01 10:30:55 +00:00
|
|
|
|
2022-02-11 09:44:49 +00:00
|
|
|
QtObject {
|
|
|
|
id: root
|
|
|
|
|
2023-02-14 09:20:53 +00:00
|
|
|
property var accountSensitiveSettings: Global.appIsReady? localAccountSensitiveSettings : null
|
2022-03-09 14:24:46 +00:00
|
|
|
|
2022-03-15 13:38:20 +00:00
|
|
|
property var areTestNetworksEnabled: networksModule.areTestNetworksEnabled
|
2022-02-17 09:15:37 +00:00
|
|
|
property var layer1Networks: networksModule.layer1
|
|
|
|
property var layer2Networks: networksModule.layer2
|
|
|
|
property var testNetworks: networksModule.test
|
2022-03-01 14:40:53 +00:00
|
|
|
|
2022-03-15 13:38:20 +00:00
|
|
|
function toggleTestNetworksEnabled(){
|
|
|
|
networksModule.toggleTestNetworksEnabled()
|
|
|
|
}
|
2022-03-01 14:40:53 +00:00
|
|
|
|
2023-02-14 09:20:53 +00:00
|
|
|
property var accounts: Global.appIsReady? walletSectionAccounts.model : null
|
|
|
|
property var importedAccounts: Global.appIsReady? walletSectionAccounts.imported : null
|
|
|
|
property var generatedAccounts: Global.appIsReady? walletSectionAccounts.generated : null
|
|
|
|
property var watchOnlyAccounts: Global.appIsReady? walletSectionAccounts.watchOnly : null
|
2023-01-18 09:25:36 +00:00
|
|
|
|
2023-02-14 09:20:53 +00:00
|
|
|
property var currentAccount: Global.appIsReady? walletSectionCurrent : null
|
2022-03-07 09:33:38 +00:00
|
|
|
|
|
|
|
function switchAccountByAddress(address) {
|
|
|
|
walletSection.switchAccountByAddress(address)
|
|
|
|
}
|
|
|
|
|
2023-01-04 15:01:10 +00:00
|
|
|
function deleteAccount(keyUid, address) {
|
|
|
|
return walletSectionAccounts.deleteAccount(keyUid, address)
|
2022-03-07 09:33:38 +00:00
|
|
|
}
|
2022-03-04 09:09:58 +00:00
|
|
|
|
2022-03-10 17:01:17 +00:00
|
|
|
function updateCurrentAccount(address, accountName, color, emoji) {
|
|
|
|
return walletSectionCurrent.update(address, accountName, color, emoji)
|
|
|
|
}
|
|
|
|
|
2023-02-14 09:20:53 +00:00
|
|
|
property var dappList: Global.appIsReady? dappPermissionsModule.dapps : null
|
2022-03-04 09:09:58 +00:00
|
|
|
|
|
|
|
function disconnect(dappName) {
|
|
|
|
dappPermissionsModule.disconnect(dappName)
|
|
|
|
}
|
|
|
|
|
|
|
|
function accountsForDapp(dappName) {
|
|
|
|
return dappPermissionsModule.accountsForDapp(dappName)
|
|
|
|
}
|
|
|
|
|
|
|
|
function disconnectAddress(dappName, address) {
|
|
|
|
return dappPermissionsModule.disconnectAddress(dappName, address)
|
|
|
|
}
|
2022-03-02 14:24:39 +00:00
|
|
|
}
|