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
|
|
|
|
|
2023-05-10 11:05:45 +00:00
|
|
|
SplitView {
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
|
2024-01-24 16:35:53 +00:00
|
|
|
readonly property WalletAssetsStore walletAssetStore: WalletAssetsStore {
|
|
|
|
assetsWithFilteredBalances: groupedAccountsAssetsModel
|
|
|
|
}
|
|
|
|
|
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-01-24 16:35:53 +00:00
|
|
|
assets: walletAssetStore.groupedAccountAssetsModel
|
2023-09-12 14:26:38 +00:00
|
|
|
collectibles: WalletNestedCollectiblesModel {}
|
2023-10-30 22:18:58 +00:00
|
|
|
networksModel: NetworksModel.allNetworks
|
2024-01-24 16:35:53 +00:00
|
|
|
getCurrencyAmountFromBigInt: function(balance, symbol, decimals){
|
|
|
|
let bigIntBalance = AmountsArithmetic.fromString(balance)
|
|
|
|
let balance123 = AmountsArithmetic.toNumber(bigIntBalance, decimals)
|
|
|
|
return ({
|
|
|
|
amount: balance123,
|
|
|
|
symbol: symbol,
|
|
|
|
displayDecimals: 2,
|
|
|
|
stripTrailingZeroes: false
|
|
|
|
})
|
|
|
|
}
|
|
|
|
getCurrentCurrencyAmount: function(balance){
|
|
|
|
return ({
|
|
|
|
amount: balance,
|
|
|
|
symbol: "USD",
|
|
|
|
displayDecimals: 2,
|
|
|
|
stripTrailingZeroes: false
|
|
|
|
})
|
|
|
|
}
|
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
|