"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setScriptValidator = void 0; const ts_types_1 = require("@waves/ts-types"); const validators_1 = require("./validators"); const setScriptScheme = { type: validators_1.isEq(ts_types_1.TRANSACTION_TYPE.SET_SCRIPT), senderPublicKey: validators_1.isPublicKey, version: validators_1.orEq([undefined, 1, 2]), chainId: validators_1.isNaturalNumberLike, fee: validators_1.isNaturalNumberOrZeroLike, timestamp: validators_1.isNumber, script: validators_1.ifElse(validators_1.isEq(null), validators_1.defaultValue(true), validators_1.isBase64), proofs: validators_1.ifElse(validators_1.isArray, validators_1.defaultValue(true), validators_1.orEq([undefined])), }; exports.setScriptValidator = validators_1.validateByShema(setScriptScheme, validators_1.getError); //# sourceMappingURL=set-script.js.map