/** * 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. */ import type { NetworkTypeEnum } from './NetworkTypeEnum'; /** * Transaction to create a new mosaic. * @export * @interface MosaicDefinitionTransactionDTO */ export interface MosaicDefinitionTransactionDTO { /** * Unsigned 32-bit integer. * Represented as integer since it fits in JSON number precision. * * @type {number} * @memberof MosaicDefinitionTransactionDTO */ size: number; /** * 64-byte Ed25519 signature (128 hex characters). Generated by the signer using their private key * over the serialized entity payload. Can be verified with the signer's public key (`signerPublicKey`). * Used for blocks, transactions, and cosignatures. * * @type {string} * @memberof MosaicDefinitionTransactionDTO */ signature: string; /** * 256-bit public key encoded as a hexadecimal string (64 hex characters). * @type {string} * @memberof MosaicDefinitionTransactionDTO */ signerPublicKey: string; /** * Entity version. Indicates the schema variant for serialization and validation. * @type {number} * @memberof MosaicDefinitionTransactionDTO */ version: number; /** * Network type (mainnet or testnet). Ensures the entity targets the correct network. * @type {NetworkTypeEnum} * @memberof MosaicDefinitionTransactionDTO */ network: NetworkTypeEnum; /** * Entity type identifier (e.g. transaction type code, block type). Determines the entity schema. * @type {number} * @memberof MosaicDefinitionTransactionDTO */ type: number; /** * 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 MosaicDefinitionTransactionDTO */ maxFee: string; /** * Network timestamp in **milliseconds** since the creation of the nemesis (first) block. * Used for block timestamps, transaction deadlines, and time synchronization. * * **Finding the nemesis block time:** The `epochAdjustment` field returned by the * [`/network/properties`] endpoint gives the nemesis block creation time in seconds since the * [UNIX epoch](https://en.wikipedia.org/wiki/Unix_time). For Symbol MAINNET this is * always `1615853185` (15 March 2021, 00:06:25 UTC). * * **Converting to real time:** Add this timestamp (ms) to `epochAdjustment × 1000` (ms), then use standard date functions. * Note: `epochAdjustment` may be returned as a string like `"1615853185s"`; use the numeric part. * * @type {string} * @memberof MosaicDefinitionTransactionDTO */ deadline: string; /** * 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 MosaicDefinitionTransactionDTO */ id: string; /** * Duration expressed in number of blocks. * @type {string} * @memberof MosaicDefinitionTransactionDTO */ duration: string; /** * Unsigned 32-bit integer. * Represented as integer since it fits in JSON number precision. * * @type {number} * @memberof MosaicDefinitionTransactionDTO */ nonce: 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 MosaicDefinitionTransactionDTO */ 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 MosaicDefinitionTransactionDTO */ divisibility: number; } /** * Check if a given object implements the MosaicDefinitionTransactionDTO interface. */ export declare function instanceOfMosaicDefinitionTransactionDTO(value: Record): value is MosaicDefinitionTransactionDTO; export declare function MosaicDefinitionTransactionDTOFromJSON(json: any): MosaicDefinitionTransactionDTO; export declare function MosaicDefinitionTransactionDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): MosaicDefinitionTransactionDTO; export declare function MosaicDefinitionTransactionDTOToJSON(json: any): MosaicDefinitionTransactionDTO; export declare function MosaicDefinitionTransactionDTOToJSONTyped(value?: MosaicDefinitionTransactionDTO | null, ignoreDiscriminator?: boolean): any;