Noelia 0ab8a62896 feat(Communities): Communities folder reorganization
- Renamed main `CommunitiesPortal` folder to `Communities`.
- Created new `layouts` folder.
- Moved layout files from chat to communities.
- Created new `helpers` folder.
- Moved helpers files from chat to communities.
- Moved `controls/community` files from chat to communities `controls`.
- Moved `panels/communities` files from chat to communities `panels`.
- Moved `popups/community` files from chat to communities `popups`.
- Moved `views/community` files from chat to communities `views`.
- Moved `CommunityBanner` file from shared to `Communities/controls`. Only used in communities context.
- Moved `CommunitySettingsView` and `CommunityColumnView` files from chat to communities `views`.
- Moved `PermissionsStore.qml` file to `shared/stores`.
- Updated imports.
- Updated storybook.

Part of #6204
2023-06-28 14:28:47 +02:00

53 lines
1.3 KiB
QML

import QtQuick 2.15
import utils 1.0
/*!
\qmltype TokenObject
\inherits QtObject
\brief Token object properties definition.
*/
QtObject {
enum Type {
Asset, Collectible
}
property int type: TokenObject.Type.Asset
// Unique identifier:
property string key
// General descriptive properties:
property string name
property string symbol
property string description
property bool infiniteSupply: true
property int supply: 1
property int remainingTokens
// Artwork related properties:
property url artworkSource
property rect artworkCropRect: Qt.rect(0, 0, 0, 0)
// Network related properties:
property int chainId
property string chainName
property string chainIcon
// Account related properties (from where they will be / have been deployed):
property string accountAddress
property string accountName
// Contract transactions states:
property int deployState: Constants.ContractTransactionStatus.None
property int burnState: Constants.ContractTransactionStatus.None
// Collectible-specific properties:
property bool transferable: false
property bool remotelyDestruct: true
property int remotelyDestructState: Constants.ContractTransactionStatus.None
// Asset-specific properties:
property int decimals: 2
}