UNPKG

gitiumiota

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