/** * 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 { MetadataTypeEnum } from './MetadataTypeEnum'; import type { MetadataEntryDTOTargetId } from './MetadataEntryDTOTargetId'; /** * Full on-chain metadata entry identified by a composite hash. * @export * @interface MetadataEntryDTO */ export interface MetadataEntryDTO { /** * 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 MetadataEntryDTO */ version: number; /** * 256-bit hash encoded as a 64-character hexadecimal string. * @type {string} * @memberof MetadataEntryDTO */ compositeHash: 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 MetadataEntryDTO */ sourceAddress: 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 MetadataEntryDTO */ targetAddress: string; /** * 64-bit key assigned by the metadata creator to identify the metadata entry within the source and target context. * @type {string} * @memberof MetadataEntryDTO */ scopedMetadataKey: string; /** * * @type {MetadataEntryDTOTargetId} * @memberof MetadataEntryDTO */ targetId?: MetadataEntryDTOTargetId; /** * * @type {MetadataTypeEnum} * @memberof MetadataEntryDTO */ metadataType: MetadataTypeEnum; /** * 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 MetadataEntryDTO */ 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 MetadataEntryDTO */ value: string; } /** * Check if a given object implements the MetadataEntryDTO interface. */ export declare function instanceOfMetadataEntryDTO(value: Record): value is MetadataEntryDTO; export declare function MetadataEntryDTOFromJSON(json: any): MetadataEntryDTO; export declare function MetadataEntryDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataEntryDTO; export declare function MetadataEntryDTOToJSON(json: any): MetadataEntryDTO; export declare function MetadataEntryDTOToJSONTyped(value?: MetadataEntryDTO | null, ignoreDiscriminator?: boolean): any;