mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +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.
22 lines
613 B
QML
22 lines
613 B
QML
import QtQuick 2.15
|
|
|
|
import utils 1.0
|
|
|
|
/*!
|
|
\qmltype CollectibleObject
|
|
\inherits TokenObject
|
|
\brief ERC721 token object properties definition (also known as collectible).
|
|
*/
|
|
TokenObject {
|
|
property bool transferable: false
|
|
property bool remotelyDestruct: true
|
|
property int remotelyDestructState: Constants.ContractTransactionStatus.None
|
|
|
|
function copyCollectible(tokenObject) {
|
|
copyToken(tokenObject)
|
|
transferable = tokenObject.transferable
|
|
remotelyDestruct = tokenObject.remotelyDestruct
|
|
remotelyDestructState = tokenObject.remotelyDestructState
|
|
}
|
|
}
|