2023-05-10 11:05:45 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
|
|
|
|
import Models 1.0
|
|
|
|
import Storybook 1.0
|
|
|
|
|
2023-10-05 15:37:47 +00:00
|
|
|
import shared.popups.send.views 1.0
|
2023-05-10 11:05:45 +00:00
|
|
|
|
2024-01-24 16:35:53 +00:00
|
|
|
import AppLayouts.Wallet.stores 1.0
|
|
|
|
|
|
|
|
import StatusQ.Core.Utils 0.1
|
|
|
|
|
2024-01-30 13:15:58 +00:00
|
|
|
import shared.stores 1.0
|
|
|
|
import shared.stores.send 1.0
|
|
|
|
|
2023-05-10 11:05:45 +00:00
|
|
|
SplitView {
|
2024-01-30 13:15:58 +00:00
|
|
|
id: root
|
|
|
|
|
2023-05-10 11:05:45 +00:00
|
|
|
orientation: Qt.Vertical
|
|
|
|
|
2024-01-24 16:35:53 +00:00
|
|
|
readonly property WalletAssetsStore walletAssetStore: WalletAssetsStore {
|
|
|
|
assetsWithFilteredBalances: groupedAccountsAssetsModel
|
|
|
|
}
|
|
|
|
|
2024-01-30 13:15:58 +00:00
|
|
|
TransactionStore {
|
|
|
|
id: txStore
|
|
|
|
walletAssetStore: root.walletAssetStore
|
|
|
|
}
|
|
|
|
|
|
|
|
readonly property CurrenciesStore currencyStore: CurrenciesStore {}
|
|
|
|
|
2023-05-10 11:05:45 +00:00
|
|
|
Item {
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
anchors.fill: parent
|
|
|
|
color: "lightgray"
|
|
|
|
}
|
|
|
|
|
|
|
|
TokenListView {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
|
|
|
width: 400
|
2024-02-12 16:44:35 +00:00
|
|
|
height: 600
|
2023-05-10 11:05:45 +00:00
|
|
|
|
2024-01-30 13:15:58 +00:00
|
|
|
assets: txStore.processedAssetsModel
|
2023-09-12 14:26:38 +00:00
|
|
|
collectibles: WalletNestedCollectiblesModel {}
|
2023-10-30 22:18:58 +00:00
|
|
|
networksModel: NetworksModel.allNetworks
|
2024-01-30 13:15:58 +00:00
|
|
|
formatCurrentCurrencyAmount: function(balance){
|
|
|
|
return currencyStore.formatCurrencyAmount(balance, "USD")
|
2024-01-24 16:35:53 +00:00
|
|
|
}
|
2024-01-30 13:15:58 +00:00
|
|
|
formatCurrencyAmountFromBigInt: function(balance, symbol, decimals){
|
|
|
|
let bigIntBalance = AmountsArithmetic.fromString(balance)
|
|
|
|
let decimalBalance = AmountsArithmetic.toNumber(bigIntBalance, decimals)
|
|
|
|
return currencyStore.formatCurrencyAmount(decimalBalance, symbol)
|
2024-01-24 16:35:53 +00:00
|
|
|
}
|
2023-05-10 11:05:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 100
|
|
|
|
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
}
|
|
|
|
}
|
2023-07-31 12:21:14 +00:00
|
|
|
|
|
|
|
// category: Views
|