Sha256: 21501232fb0e14cb1466904862bf1d6fc85b81d66c17991eb2c4056866d0deff
Contents?: true
Size: 707 Bytes
Versions: 1
Compression:
Stored size: 707 Bytes
Contents
import {TRANSACTION_TYPE} from '@waves/ts-types' import { defaultValue, getError, ifElse, isArray, isAssetId, isEq, isNaturalNumberLike, isNaturalNumberOrZeroLike, isNumber, isPublicKey, orEq, validateByShema } from './validators' const burnScheme = { type: isEq(TRANSACTION_TYPE.BURN), senderPublicKey: isPublicKey, version: orEq([undefined, 2, 3]), assetId: isAssetId, amount: isNaturalNumberLike, chainId: isNaturalNumberLike, fee: isNaturalNumberOrZeroLike, timestamp: isNumber, proofs: ifElse(isArray, defaultValue(true), orEq([ undefined ])), }; export const burnValidator = validateByShema(burnScheme, getError);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
waves_lib-0.1.0 | js/node_modules/@waves/waves-transactions/src/validators/burn.ts |