Sha256: 916375cb5f09edffebd6a7577dbb95bb85ad2e0372b378bf39c81ceac075f90f
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
import { isEq, orEq, isNumber, isNumberLike, isArray, getError, validateByShema, ifElse, isValidAliasName, defaultValue, isPublicKey, isNaturalNumberOrZeroLike } from './validators' import {TRANSACTION_TYPE} from '@waves/ts-types' const aliasScheme = { type: isEq(TRANSACTION_TYPE.ALIAS), version: orEq([undefined, 2, 3]), senderPublicKey: isPublicKey, alias: isValidAliasName, fee: isNaturalNumberOrZeroLike, chainId: isNumber, timestamp: isNumber, proofs: ifElse(isArray, defaultValue(true), orEq([undefined])), } export const aliasValidator = validateByShema(aliasScheme, 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/alias.ts |