2021-10-13 14:33:22 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
import StatusQ.Popups 0.1
|
|
|
|
|
|
|
|
import Sandbox 0.1
|
|
|
|
|
|
|
|
Column {
|
|
|
|
spacing: 8
|
|
|
|
|
|
|
|
StatusAssetSelector {
|
2021-11-15 13:31:58 +00:00
|
|
|
getCurrencyBalanceString: function (currencyBalance) {
|
|
|
|
return currencyBalance.toFixed(2) + " USD"
|
|
|
|
}
|
|
|
|
tokenAssetSourceFn: function (symbol) {
|
|
|
|
return "../../assets/img/icons/snt.svg"
|
|
|
|
}
|
2021-10-13 14:33:22 +00:00
|
|
|
assets: ListModel {
|
|
|
|
ListElement {
|
|
|
|
address: "0x1234"
|
|
|
|
name: "Status Network Token"
|
2021-11-15 13:31:58 +00:00
|
|
|
balance: "20"
|
2021-10-13 14:33:22 +00:00
|
|
|
symbol: "SNT"
|
2021-11-15 13:31:58 +00:00
|
|
|
currencyBalance: 9992.01
|
2021-10-13 14:33:22 +00:00
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
address: "0x1234"
|
|
|
|
name: "DAI Token"
|
2021-11-15 13:31:58 +00:00
|
|
|
balance: "15"
|
2021-10-13 14:33:22 +00:00
|
|
|
symbol: "DAI"
|
2021-11-15 13:31:58 +00:00
|
|
|
currencyBalance: 20.00001
|
2021-10-13 14:33:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|