/** * Catapult REST Endpoints * OpenAPI Specification of catapult-rest * * The version of the OpenAPI document: 1.0.5 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * State information describing a mosaic definition. * @export * @interface MosaicDTO */ export interface MosaicDTO { /** * Version of the on-chain state serialization format. Incremented when the storage * schema of the entity changes (e.g. new fields are added), allowing the node to * deserialize entries written under earlier formats. * * @type {number} * @memberof MosaicDTO */ version: number; /** * Unique [mosaic](https://docs.symbol.dev/concepts/mosaic.html) identifier. * A 64-bit unsigned integer derived from the creator's address and a registration nonce, * encoded as a 16-character hexadecimal string. * * @type {string} * @memberof MosaicDTO */ id: string; /** * Absolute amount expressed in the mosaic's smallest (atomic) unit, with no decimal point. * For example, an amount of `123456789` for a mosaic with divisibility 6 represents * `123.456789` whole units. Encoded as a string to preserve precision, since the value * is an unsigned 64-bit integer. * * @type {string} * @memberof MosaicDTO */ supply: string; /** * Height of a block in the blockchain. Starts at 1 and increments by one per block. * Represented as a string to preserve precision, since the value is an unsigned 64-bit integer. * * @type {string} * @memberof MosaicDTO */ startHeight: string; /** * Address encoded as a 48-character hexadecimal string (24 bytes). * The REST API returns addresses in this format. For Base32-encoded addresses (39 chars) see `Address`. * * @type {string} * @memberof MosaicDTO */ ownerAddress: string; /** * Unsigned 32-bit integer. * Represented as integer since it fits in JSON number precision. * * @type {number} * @memberof MosaicDTO */ revision: number; /** * Mosaic flags bitmask. Individual values can be combined. * - 0x00 (0 decimal): No flags present. * - 0x01 (1 decimal, `supplyMutable`): Mosaic supply can be increased or decreased later. * - 0x02 (2 decimal, `transferable`): Mosaic can be transferred between arbitrary accounts. * When not set, it can only be transferred to and from the mosaic owner. * - 0x04 (4 decimal, `restrictable`): Mosaic supports custom restrictions configured by the mosaic owner. * - 0x08 (8 decimal, `revokable`): Mosaic creator can revoke balances from another account. * * Example: `3` means `0x01 + 0x02`, so the mosaic is both `supplyMutable` and `transferable`. * * @type {number} * @memberof MosaicDTO */ flags: number; /** * Determines up to what decimal place a mosaic can be divided. * Divisibility of 3 means that a mosaic can be divided into smallest parts of 0.001 mosaics. * The divisibility must be in the range of 0 and 6. * * @type {number} * @memberof MosaicDTO */ divisibility: number; /** * Duration expressed in number of blocks. * @type {string} * @memberof MosaicDTO */ duration: string; } /** * Check if a given object implements the MosaicDTO interface. */ export declare function instanceOfMosaicDTO(value: Record): value is MosaicDTO; export declare function MosaicDTOFromJSON(json: any): MosaicDTO; export declare function MosaicDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): MosaicDTO; export declare function MosaicDTOToJSON(json: any): MosaicDTO; export declare function MosaicDTOToJSONTyped(value?: MosaicDTO | null, ignoreDiscriminator?: boolean): any;