/** * 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. */ /** * Mosaic metadata transaction body with the target mosaic, metadata key, and metadata value * update. * * @export * @interface MosaicMetadataTransactionBodyDTO */ export interface MosaicMetadataTransactionBodyDTO { /** * 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 MosaicMetadataTransactionBodyDTO */ targetAddress: string; /** * 64-bit key assigned by the metadata creator to identify the metadata entry within the source and target context. * @type {string} * @memberof MosaicMetadataTransactionBodyDTO */ scopedMetadataKey: string; /** * Unresolved mosaic identifier. * If the most significant bit of byte 0 is set, the value contains a namespace ID alias * instead of a concrete mosaic ID. * * @type {string} * @memberof MosaicMetadataTransactionBodyDTO */ targetMosaicId: string; /** * Change in metadata value size, in bytes. * Positive values increase the stored value size, negative values decrease it. * * @type {number} * @memberof MosaicMetadataTransactionBodyDTO */ 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 MosaicMetadataTransactionBodyDTO */ 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 MosaicMetadataTransactionBodyDTO */ value: string; } /** * Check if a given object implements the MosaicMetadataTransactionBodyDTO interface. */ export declare function instanceOfMosaicMetadataTransactionBodyDTO(value: Record): value is MosaicMetadataTransactionBodyDTO; export declare function MosaicMetadataTransactionBodyDTOFromJSON(json: any): MosaicMetadataTransactionBodyDTO; export declare function MosaicMetadataTransactionBodyDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): MosaicMetadataTransactionBodyDTO; export declare function MosaicMetadataTransactionBodyDTOToJSON(json: any): MosaicMetadataTransactionBodyDTO; export declare function MosaicMetadataTransactionBodyDTOToJSONTyped(value?: MosaicMetadataTransactionBodyDTO | null, ignoreDiscriminator?: boolean): any;