mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-01 17:27:53 +00:00
f58f82d4c6
- Created `TokenObject` files and use them inside `CommunityNewTokenView` instead of plain properties. - Updated `CommunityTokenView` to use `TokenObject` properties instead of plain properties. - Updated store calls to use `TokenObject` properties instead of plain properties. - Remote destruct properties renames. - Airdrop navigation extended passing token type (asset or collectible). - Updated `storybook` according to new changes.
16 lines
332 B
QML
16 lines
332 B
QML
import QtQuick 2.15
|
|
|
|
/*!
|
|
\qmltype AssetObject
|
|
\inherits TokenObject
|
|
\brief ERC20 token object properties definition (also known as asset).
|
|
*/
|
|
TokenObject {
|
|
property int decimals: 2 // Default value
|
|
|
|
function copyAsset(tokenObject) {
|
|
copyToken(tokenObject)
|
|
decimals = tokenObject.decimals
|
|
}
|
|
}
|