/** * 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 or modify metadata attached to a namespace. * @export * @interface NamespaceMetadataTransactionDTO */ export interface NamespaceMetadataTransactionDTO { /** * Unsigned 32-bit integer. * Represented as integer since it fits in JSON number precision. * * @type {number} * @memberof NamespaceMetadataTransactionDTO */ 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 NamespaceMetadataTransactionDTO */ signature: string; /** * 256-bit public key encoded as a hexadecimal string (64 hex characters). * @type {string} * @memberof NamespaceMetadataTransactionDTO */ signerPublicKey: string; /** * Entity version. Indicates the schema variant for serialization and validation. * @type {number} * @memberof NamespaceMetadataTransactionDTO */ version: number; /** * Network type (mainnet or testnet). Ensures the entity targets the correct network. * @type {NetworkTypeEnum} * @memberof NamespaceMetadataTransactionDTO */ network: NetworkTypeEnum; /** * Entity type identifier (e.g. transaction type code, block type). Determines the entity schema. * @type {number} * @memberof NamespaceMetadataTransactionDTO */ 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 NamespaceMetadataTransactionDTO */ 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 NamespaceMetadataTransactionDTO */ deadline: string; /** * Unresolved address encoded as a 48-character hexadecimal string (24 bytes). * If bit 0 of byte 0 is not set, the value represents a regular address. * Otherwise, it represents a namespace ID alias encoded as an unresolved address. * * @type {string} * @memberof NamespaceMetadataTransactionDTO */ targetAddress: string; /** * 64-bit key assigned by the metadata creator to identify the metadata entry within the source and target context. * @type {string} * @memberof NamespaceMetadataTransactionDTO */ scopedMetadataKey: string; /** * Unique [namespace](https://docs.symbol.dev/concepts/namespaces.html) identifier. * A 64-bit unsigned integer derived from the namespace name and its parent namespace ID, * encoded as a 16-character hexadecimal string. * * @type {string} * @memberof NamespaceMetadataTransactionDTO */ targetNamespaceId: string; /** * Change in metadata value size, in bytes. * Positive values increase the stored value size, negative values decrease it. * * @type {number} * @memberof NamespaceMetadataTransactionDTO */ valueSizeDelta: number; /** * Size of a metadata value or metadata value update payload, in bytes. * In metadata transactions, when no previous value exists, or when the value grows, this is the new * value size after applying the update. When the value shrinks, this is the previous stored value size * before truncation. * * @type {number} * @memberof NamespaceMetadataTransactionDTO */ valueSize: number; /** * Metadata value encoded as hex. * In metadata transactions, this field carries the metadata value update payload. * When no previous value exists, it contains the new value. * When updating existing metadata, it contains the byte-wise XOR of the previous value and the new value. * * @type {string} * @memberof NamespaceMetadataTransactionDTO */ value: string; } /** * Check if a given object implements the NamespaceMetadataTransactionDTO interface. */ export declare function instanceOfNamespaceMetadataTransactionDTO(value: Record): value is NamespaceMetadataTransactionDTO; export declare function NamespaceMetadataTransactionDTOFromJSON(json: any): NamespaceMetadataTransactionDTO; export declare function NamespaceMetadataTransactionDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamespaceMetadataTransactionDTO; export declare function NamespaceMetadataTransactionDTOToJSON(json: any): NamespaceMetadataTransactionDTO; export declare function NamespaceMetadataTransactionDTOToJSONTyped(value?: NamespaceMetadataTransactionDTO | null, ignoreDiscriminator?: boolean): any;