UNPKG

@iota/validators

Version:

Collection of guards and validators, useful in IOTA development.

87 lines 5.45 kB
"use strict"; exports.__esModule = true; exports.ILLEGAL_LENGTH = 'Illegal trits length'; exports.ILLEGAL_SUBSEED_INDEX = 'Illegal subseed length'; exports.ILLEGAL_SUBSEED_LENGTH = 'Illegal subseed length'; exports.ILLEGAL_NUMBER_OF_FRAGMENTS = 'Illegal number of fragments'; exports.ILLEGAL_KEY_LENGTH = 'Illegal key length'; exports.ILLEGAL_DIGESTS_LENGTH = 'Illegal digests length'; exports.ILLEGAL_NORMALIZED_FRAGMENT_LENGTH = 'Illegal normalized fragment length'; exports.ILLEGAL_SIGNATURE_FRAGMENT_LENGTH = 'Illegal signature fragment length'; exports.ILLEGAL_BUNDLE_HASH_LENGTH = 'Illegal bundle hash length'; exports.ILLEGAL_KEY_FRAGMENT_LENGTH = 'Illegal key fragment length'; exports.ILLEGAL_TRIT_CONVERSION_INPUT = 'Illegal conversion input. Expected trits as Int8Array.'; exports.ILLEGAL_TRYTE_CONVERSION_INPUT = 'Illegal conversion input. Expected trytes string or integer.'; exports.ILLEGAL_MIN_WEIGHT_MAGNITUDE = 'Illegal minWeightMagnitude value.'; exports.ILLEGAL_ADDRESS_LAST_TRIT = 'Illegal address. Last trit must be 0.'; exports.ILLEGAL_ADDRESS_LENGTH = 'Illegal address length.'; exports.ILLEGAL_BUNDLE_LENGTH = 'Illegal bundle hash length.'; exports.ILLEGAL_OBSOLETE_TAG_LENGTH = 'Illegal obsoleteTag length.'; exports.ILLEGAL_SIGNATURE_OR_MESSAGE = 'Illegal signature or message.'; exports.ILLEGAL_SIGNATURE_OR_MESSAGE_LENGTH = 'Illegal signatureOrMessage length.'; exports.ILLEGAL_TAG_LENGTH = 'Illegal tag length.'; exports.ILLEGAL_ISSUANCE_TIMESTAMP = 'Illegal issuance timestamp'; exports.ILLEGAL_ISSUANCE_TIMESTAMP_LENGTH = 'Illegal issuanceTimestamp length.'; exports.ILLEGAL_VALUE_LENGTH = 'Illegal value length.'; exports.ILLEGAL_TRANSACTION_FIELD_OFFSET = 'Illegal transaction field offset.'; exports.ILLEGAL_TRANSACTION_FIELD_LENGTH = 'Illegal transaction field length.'; exports.ILLEGAL_LENGTH_OR_OFFSET = 'Illegal length or offset.'; exports.ILLEGAL_TRANSACTION_BUFFER = 'Illegal transaction buffer. Expected `Int8Array`.'; exports.ILLEGAL_TRANSACTION_BUFFER_LENGTH = 'Illegal transaction buffer length.'; exports.ILLEGAL_TRANSACTION_OFFSET = 'Illegal transaction offset.'; exports.ILLEGAL_TRANSACTION_LENGTH = 'Illegal transaction length.'; exports.ILLEGAL_TRANSACTION_ORDER = 'Illegal transaction order.'; exports.ILLEGAL_TRANSACTION_INDEX = 'Illegal transaction index.'; exports.ILLEGAL_SEED_LENGTH = 'Illegal seed length. Expected length of 243 trits.'; exports.ILLEGAL_KEY_INDEX = 'Illegal key index.'; exports.ILLEGAL_CDA_LENGTH = 'Illegal cda length.'; exports.ILLEGAL_BATCH = 'Illegal batch.'; exports.CDA_ALREADY_IN_STORE = 'CDA is already in store.'; exports.ILLEGAL_PERSISTENCE_ID = 'Illegal persistence id.'; exports.ILLEGAL_PERSISTENCE_PATH = 'Illegal persistence path.'; exports.ILLEGAL_PADDING_LENGTH = 'Illegal padding length. Input value length exceeds padding length.'; exports.INCONSISTENT_SUBTANGLE = 'Inconsistent subtangle'; exports.INSUFFICIENT_BALANCE = 'Insufficient balance'; exports.INVALID_ADDRESS = 'Invalid address'; exports.INVALID_REMAINDER_ADDRESS = 'Invalid remainder address'; exports.INVALID_BRANCH_TRANSACTION = 'Invalid branch transaction'; exports.INVALID_BUNDLE = 'Invalid bundle'; exports.INVALID_BUNDLE_HASH = 'Invalid bundle hash'; exports.INVALID_CHECKSUM = 'Invalid checksum'; exports.INVALID_COMMAND = 'Invalid command format'; exports.INVALID_DEPTH = 'Invalid depth'; exports.INVALID_HASH = 'Invalid hash'; exports.INVALID_INDEX = 'Invalid index option'; exports.INVALID_TOTAL_OPTION = 'Invalid total option'; exports.INVALID_INPUT = 'Invalid input'; exports.INVALID_KEY = 'Invalid key value'; exports.INVALID_MIN_WEIGHT_MAGNITUDE = 'Invalid Min Weight Magnitude'; exports.INVALID_SEARCH_KEY = 'Invalid search key'; exports.INVALID_SECURITY_LEVEL = 'Invalid security option'; exports.INVALID_SECURITY_OPTION = 'Invalid security option'; exports.INVALID_SEED = 'Invalid seed'; exports.INVALID_START_END_OPTIONS = 'Invalid end option'; exports.INVALID_START_OPTION = 'Invalid start option'; exports.INVALID_TAG = 'Invalid tag'; exports.INVALID_TRANSACTION = 'Invalid transaction'; exports.INVALID_TRANSACTION_TRYTES = 'Invalid transaction trytes'; exports.INVALID_ATTACHED_TRYTES = 'Invalid attached trytes'; exports.INVALID_TRANSACTION_HASH = 'Invalid transaction hash'; exports.INVALID_TAIL_TRANSACTION = 'Invalid tail transaction'; exports.INVALID_THRESHOLD = 'Invalid threshold option'; exports.INVALID_TRANSFER = 'Invalid transfer array'; exports.INVALID_TRUNK_TRANSACTION = 'Invalid trunk transaction'; exports.INVALID_REFERENCE_HASH = 'Invalid reference hash'; exports.INVALID_TRYTES = 'Invalid trytes'; exports.INVALID_URI = 'Invalid uri'; exports.INVALID_ASCII_INPUT = 'Conversion to trytes requires type of input to be encoded in ascii.'; exports.INVALID_ODD_LENGTH = 'Conversion from trytes requires length of trytes to be even.'; exports.INVALID_TRYTE_ENCODED_JSON = 'Invalid tryte encoded JSON message'; exports.NOT_INT = 'One of the inputs is not integer'; exports.SENDING_BACK_TO_INPUTS = 'One of the transaction inputs is used as output.'; exports.INVALID_TRANSACTIONS_TO_APPROVE = 'Invalid transactions to approve.'; exports.NO_INPUTS = 'Could not find any available inputs.'; exports.invalidChecksum = function (address) { return "Invalid Checksum: " + address; }; exports.inconsistentTransaction = function (reason) { return "Transaction is inconsistent. Reason: " + reason; }; exports.INVALID_DELAY = 'Invalid delay.'; //# sourceMappingURL=errors.js.map