/** * Catapult REST Endpoints * OpenAPI Specification of catapult-rest * * The version of the OpenAPI document: 1.0.4 * * * 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'; import type { LockHashAlgorithmEnum } from './LockHashAlgorithmEnum'; /** * Transaction to sends mosaics to a recipient if the proof used is revealed. If the duration is reached, the locked funds go back to the sender of the transaction. * @export * @interface SecretLockTransactionDTO */ export interface SecretLockTransactionDTO { /** * A number that allows uint 32 values. * @type {number} * @memberof SecretLockTransactionDTO */ size: number; /** * Entity's signature generated by the signer. * @type {string} * @memberof SecretLockTransactionDTO */ signature: string; /** * Public key. * @type {string} * @memberof SecretLockTransactionDTO */ signerPublicKey: string; /** * Entity version. * @type {number} * @memberof SecretLockTransactionDTO */ version: number; /** * * @type {NetworkTypeEnum} * @memberof SecretLockTransactionDTO */ network: NetworkTypeEnum; /** * * @type {number} * @memberof SecretLockTransactionDTO */ type: number; /** * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). * @type {string} * @memberof SecretLockTransactionDTO */ maxFee: string; /** * Duration expressed in number of blocks. * @type {string} * @memberof SecretLockTransactionDTO */ deadline: string; /** * Address expressed in Base32 format. If the bit 0 of byte 0 is not set (like in 0x90), then it is a * regular address. Example: TAOXUJOTTW3W5XTBQMQEX3SQNA6MCUVGXLXR3TA. * Otherwise (e.g. 0x91) it represents a namespace id which starts at byte 1. Example: THBIMC3THGH5RUYAAAAAAAAAAAAAAAAAAAAAAAA * * @type {string} * @memberof SecretLockTransactionDTO */ recipientAddress: string; /** * * @type {string} * @memberof SecretLockTransactionDTO */ secret: string; /** * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) * is used instead of the real mosaic identifier. * * @type {string} * @memberof SecretLockTransactionDTO */ mosaicId: string; /** * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). * @type {string} * @memberof SecretLockTransactionDTO */ amount: string; /** * Duration expressed in number of blocks. * @type {string} * @memberof SecretLockTransactionDTO */ duration: string; /** * * @type {LockHashAlgorithmEnum} * @memberof SecretLockTransactionDTO */ hashAlgorithm: LockHashAlgorithmEnum; } /** * Check if a given object implements the SecretLockTransactionDTO interface. */ export declare function instanceOfSecretLockTransactionDTO(value: Record): value is SecretLockTransactionDTO; export declare function SecretLockTransactionDTOFromJSON(json: any): SecretLockTransactionDTO; export declare function SecretLockTransactionDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretLockTransactionDTO; export declare function SecretLockTransactionDTOToJSON(json: any): SecretLockTransactionDTO; export declare function SecretLockTransactionDTOToJSONTyped(value?: SecretLockTransactionDTO | null, ignoreDiscriminator?: boolean): any;