UNPKG

@payburner/keyburner-sidewinder-core

Version:
130 lines 6.91 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonErrorCodes = void 0; class CommonErrorCodes { } exports.CommonErrorCodes = CommonErrorCodes; CommonErrorCodes.SYSTEM_PROBLEM_CREATING_RECEIVER_ACCOUNT = { status: 500, error_code: 10, error: 'Problem creating receiver account.' }; CommonErrorCodes.SYSTEM_PROBLEM_SETTING_SENDER_BALANCE = { status: 500, error_code: 20, error: 'Problem Setting the sender balance.' }; CommonErrorCodes.SYSTEM_PROBLEM_SETTING_RECEIVER_BALANCE = { status: 500, error_code: 30, error: 'Problem Setting the receiver balance.' }; CommonErrorCodes.SYSTEM_PROBLEM_UNKNOWN = { status: 500, error_code: 40, error: 'Unknown system problem...' }; CommonErrorCodes.SYSTEM_PROBLEM_UPDATING_TOKEN = { status: 500, error_code: 500, error: 'Problem updating the token..' }; CommonErrorCodes.TOKEN_UPDATE_NOT_AUTHORIZED = { status: 403, error_code: 510, error: 'The signing address does not have rights to update the token.' }; CommonErrorCodes.TOKEN_SETUP_MINIMUM_TRANSFER_AMOUNTER_GREATER_THAN_MAXIMUM_TRANSFER_AMOUNT = { status: 400, error_code: 520, error: 'The minimum transfer amount cannot be greater than the maximum transfer amount.' }; CommonErrorCodes.TOKEN_SETUP_NO_INITIAL_AMOUNT_AND_NO_UNDERLYING = { status: 400, error_code: 530, error: 'There is no way to get tokens created. No initial amount and no underlying account specified.' }; CommonErrorCodes.TOKEN_SETUP_INVALID_DECIMAL_PRECISION = { status: 400, error_code: 540, error: 'The decimal precision must be a positive integer, no greater than 10' }; CommonErrorCodes.TOKEN_ALREADY_EXISTS = { status: 400, error_code: 550, error: 'A token with that symbol already exists.' }; CommonErrorCodes.TOKEN_SETUP_INVALID_TRANSACTION_FEE = { status: 400, error_code: 560, error: 'The transaction fee must be greater than zero.' }; CommonErrorCodes.TOKEN_ACCOUNT_CAN_NOT_FREEZE_ISSUER = { status: 403, error_code: 570, error: 'You can not freeze the issuer account.' }; CommonErrorCodes.TOKEN_ACCOUNT_ONLY_ISSUER_CAN_FREEZE = { status: 403, error_code: 580, error: 'Only the issuer can freeze an account.' }; CommonErrorCodes.TOKEN_ACCOUNT_NOT_FOUND = { status: 404, error_code: 590, error: 'The token account was not found.' }; CommonErrorCodes.TOKEN_SETUP_MINIMUM_TRANSFER_AMOUNT_LESS_THAN_OR_EQUAL_ZERO = { status: 400, error_code: 600, error: 'The minimum transfer amount cannot be less than or equal to zero' }; CommonErrorCodes.TOKEN_SETUP_MAXIMUM_TRANSFER_AMOUNT_LESS_THAN_OR_EQUAL_ZERO = { status: 400, error_code: 610, error: 'The maximum transfer amount cannot be less than or equal to zero' }; CommonErrorCodes.TOKEN_SETUP_MAXIMUM_BALANCE_CAN_ONLY_INCREASE = { status: 400, error_code: 620, error: 'The maximum balance can only increase.' }; CommonErrorCodes.TOKEN_SETUP_ON_OFF_RAMP_FEES_BUT_NO_UNDERLYING = { status: 400, error_code: 630, error: 'Ambiguous. On and off ramp fees are specified, but there is no underlying' }; CommonErrorCodes.TOKEN_SETUP_INITIAL_LESS_THAN_OR_EQUAL_TO_ZERO = { status: 400, error_code: 640, error: 'The initial amount is less than or equals to zero.' }; CommonErrorCodes.TOKEN_SETUP_MALFORMED_INITIAL_AMOUNT = { status: 400, error_code: 650, error: 'The initial amount is malformed.' }; CommonErrorCodes.SYSTEM_PROBLEM_UPDATING_TOKEN_ACCOUNT = { status: 500, error_code: 700, error: 'Problem updating the token account...' }; CommonErrorCodes.UNKNOWN_TRANSACTION_TYPE = { status: 400, error_code: 100, error: 'The transfer would result in the sender account having a negative balance.' }; CommonErrorCodes.INVALID_SEQUENCE = { status: 400, error_code: 110, error: 'The sequence you provided is invalid.' }; CommonErrorCodes.TRANSACTION_INVALID = { status: 400, error_code: 120, error: 'The transaction is invalid.' }; CommonErrorCodes.TOKEN_ACCOUNT_SENDER_ACCOUNT_DOES_NOT_EXIST = { status: 404, error_code: 130, error: 'The sender account does not exist.' }; CommonErrorCodes.INSUFFICIENT_BALANCE = { status: 400, error_code: 1000, error: 'The transfer would result in the sender account having a negative balance.' }; CommonErrorCodes.TOKEN_NOT_FOUND = { status: 404, error_code: 1010, error: 'A token with the symbol provided does not exist in the environment.' }; CommonErrorCodes.TOKEN_IS_FROZEN = { status: 403, error_code: 1020, error: 'The token is frozen. No transactions my take place.' }; CommonErrorCodes.TOKEN_NO_INTER_ACCOUNT_TRANSFERS = { status: 403, error_code: 1030, error: 'The token is forbids inter-account transfer, and this transfer does not include the issuer.' }; CommonErrorCodes.TOKEN_TRANSFER_AMOUNT_LESS_THAN_MINIMUM_TRANSFER = { status: 400, error_code: 1040, error: 'The transfer_amount is less than the minimum transfer amount on the token.' }; CommonErrorCodes.TOKEN_TRANSFER_AMOUNT_GREATER_THAN_MAXIMUM_TRANSFER = { status: 400, error_code: 1050, error: 'The transfer_amount is greater than the maximum transfer amount on the token.' }; CommonErrorCodes.TOKEN_DESTINATION_ACCOUNT_EXCEED_MAXIMUM_BALANCE = { status: 403, error_code: 1060, error: 'The transfer would result in the destination account exceeding the maximum balance of the token.' }; CommonErrorCodes.TOKEN_DESTINATION_ACCOUNT_EXCEED_MAXIMUM_BALANCE_NO_ACCOUNT = { status: 403, error_code: 1070, error: 'The transfer would result in the destination account exceeding the maximum balance of the token.' }; CommonErrorCodes.TOKEN_ACCOUNT_RECEIVER_ACCOUNT_NO_ACCESS_TO_TOKEN = { status: 403, error_code: 1080, error: 'The receiver account is does not have access to this token.' }; CommonErrorCodes.TOKEN_ACCOUNT_WITHDRAW_ACCOUNT_NO_ACCESS_TO_TOKEN = { status: 403, error_code: 1081, error: 'The withdrawing account is does not have access to this token.' }; CommonErrorCodes.TOKEN_ACCOUNT_SENDER_ACCOUNT_IS_FROZEN = { status: 403, error_code: 2000, error: 'The sender account is frozen.' }; CommonErrorCodes.TOKEN_ACCOUNT_RECEIVER_ACCOUNT_IS_FROZEN = { status: 403, error_code: 2010, error: 'The receiver account is frozen.' }; CommonErrorCodes.TOKEN_ACCOUNT_WITHDRAW_ACCOUNT_IS_FROZEN = { status: 403, error_code: 2011, error: 'The withdrawing account is frozen.' }; CommonErrorCodes.UNDERLYING_STATUS_UPDATE_CANNOT_BE_PENDING = { status: 400, error_code: 3001, error: 'You are attempting to update the underlying transaction status to pending, which cannot happen.' }; CommonErrorCodes.UNDERLYING_ATTEMPTING_TO_UPDATE_DEPOSIT_ON_OFFRAMP = { status: 400, error_code: 3002, error: 'You are attempting to update and underlying transaction deposit transaction in an offramp processor' }; CommonErrorCodes.UNDERLYING_STATUS_MUST_BE_PENDING = { status: 400, error_code: 3003, error: 'The underlying transaction must be in a pending status.' }; //# sourceMappingURL=CommonErrorCodes.js.map