Sha256: f3fdd3bff1c9acede30cb4a470931f6c7a2fc48633905d30ec1792ba5e14f2e6
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.exchangeValidator = void 0; const ts_types_1 = require("@waves/ts-types"); const order_1 = require("./order"); const validators_1 = require("./validators"); const exchangeScheme = { type: validators_1.isEq(ts_types_1.TRANSACTION_TYPE.EXCHANGE), senderPublicKey: validators_1.isPublicKey, version: validators_1.orEq([undefined, 1, 2, 3]), order1: validators_1.validatePipe(validators_1.isRequired(true), order_1.orderValidator), order2: validators_1.validatePipe(validators_1.isRequired(true), order_1.orderValidator), amount: validators_1.isNumberLike, price: validators_1.isNumberLike, buyMatcherFee: validators_1.isNumberLike, sellMatcherFee: validators_1.isNumberLike, fee: validators_1.isNaturalNumberOrZeroLike, timestamp: validators_1.isNumber, proofs: validators_1.ifElse(validators_1.isArray, validators_1.defaultValue(true), validators_1.orEq([undefined])), }; exports.exchangeValidator = validators_1.validateByShema(exchangeScheme, validators_1.getError); //# sourceMappingURL=exchange.js.map
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
waves_lib-0.1.0 | js/node_modules/@waves/waves-transactions/dist/validators/exchange.js |