@moosty/lisk-htlc
Version:
Hashed Time Lock Contract transaction for Lisk SDK based blockchain applications
69 lines • 1.63 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HTLCAssetUnlockFormatSchema = {
type: 'object',
required: ['contractId', 'secret'],
properties: {
contractId: {
type: 'string',
format: 'address',
},
secret: {
type: 'string',
format: 'transferData',
maxLength: 64,
},
},
};
exports.HTLCAssetRefundFormatSchema = {
type: 'object',
required: ['contractId', 'data'],
properties: {
contractId: {
type: 'string',
format: 'address',
},
data: {
type: 'string',
format: 'transferData',
maxLength: 64,
},
},
};
exports.HTLCAssetLockFormatSchema = {
type: 'object',
required: ['contractId', 'amount', 'recipientPublicKey', 'time', 'type', 'data', 'secretLength'],
properties: {
contractId: {
type: 'string',
format: 'address',
},
amount: {
type: 'string',
format: 'amount',
},
type: {
type: 'string',
maxLength: 10,
},
time: {
type: 'integer',
min: 1,
},
data: {
type: 'string',
format: 'transferData',
maxLength: 64,
},
secretLength: {
type: 'integer',
min: 6,
max: 64,
},
recipientPublicKey: {
type: 'string',
maxLength: 64,
},
},
};
//# sourceMappingURL=schemas.js.map