mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +00:00
e2949ad6e7
fixes #14833
43 lines
1.2 KiB
QML
43 lines
1.2 KiB
QML
import QtQml 2.15
|
|
|
|
import StatusQ 0.1
|
|
import StatusQ.Core.Utils 0.1
|
|
|
|
import shared.stores 1.0
|
|
import AppLayouts.Wallet.stores 1.0 as WalletStore
|
|
|
|
QObject {
|
|
id: root
|
|
|
|
required property CurrenciesStore currencyStore
|
|
required property WalletStore.WalletAssetsStore walletAssetsStore
|
|
required property WalletStore.SwapStore swapStore
|
|
required property SwapSignApproveInputForm inputFormData
|
|
|
|
// To expose the selected from and to Token from the SwapModal
|
|
readonly property var fromToken: fromTokenEntry.item
|
|
readonly property var selectedAccount: selectedAccountEntry.item
|
|
readonly property var selectedNetwork: selectedNetworkEntry.item
|
|
|
|
ModelEntry {
|
|
id: fromTokenEntry
|
|
sourceModel: root.walletAssetsStore.walletTokensStore.plainTokensBySymbolModel
|
|
key: "key"
|
|
value: root.inputFormData.tokensKey
|
|
}
|
|
|
|
ModelEntry {
|
|
id: selectedAccountEntry
|
|
sourceModel: root.swapStore.accounts
|
|
key: "address"
|
|
value: root.inputFormData.selectedAccountAddress
|
|
}
|
|
|
|
ModelEntry {
|
|
id: selectedNetworkEntry
|
|
sourceModel: root.swapStore.flatNetworks
|
|
key: "chainId"
|
|
value: root.inputFormData.selectedNetworkChainId
|
|
}
|
|
}
|