UNPKG

@qso-soft/shared

Version:

Shared library for QSO-soft

67 lines 4.6 kB
export const OKX_ERROR = 'Something wrong with OKX'; export const OKX_WL_ERROR = 'Wallet was not whitelisted in OKX'; export const LOW_BALANCE_ERROR = 'Balance is too low to make transaction. Please topUp your wallet'; export const MIN_TOKEN_BALANCE_ERROR = 'Balance is lower than minTokenBalance'; export const MERKLY_LOW_BALANCE_ERROR = 'Balance is too low to make transaction. You need to topUp wallet or decrease minAndMaxAmount'; export const ZKLEND_DEPOSIT_NOT_FOUND_ERROR = 'deposit was not found'; export const ZKLEND_SUPPLY_AMOUNT = 'Amount to supply can not be greater than current balance. usePercentBalance better to use instead'; export const VOTE_INTERVAL = 'require vote interval'; export const CHECK_IN_INTERVAL = 'checkin too often'; export const NFT_CLAIMED = 'Profile NFT: Single address is not allowed to have multiple tokens'; export const AMOUNT_IS_TOO_LOW_ERROR = 'Amount to withdraw is to low to get minimal native balance or lower than minAmount. Increase your minAndMaxAmount or expectedBalance'; export const KILOEX_LOW_POINTS_BALANCE_ERROR = 'You need a points balance of ≥35 to check in. You can first obtain Trading/Earn/Referral points.'; export const EMPTY_ANTICAPTCHA_KEY_ERROR = 'It requires anticaptcha key. Please provide ANTICAPTCHA_KEY to the global.ts'; export const EMPTY_CAPMONSTER_KEY_ERROR = 'It requires capmonster captcha key. Please provide CAPMONSTER_CAPTCHA_KEY to the global.ts'; export const NO_MAIL_TO_USE = 'You dont have not used mails'; export const SECOND_ADDRESS_EMPTY_ERROR = 'You dont have a second address to transfer BNB. Please add it to the _inputs/csv/wallets.csv'; export const ACTIVITY_ENDED_ERROR = 'Activity end'; export const INVALID_API_KEY_ERROR = 'API-key is invalid. Please check your key in _inputs/settings/global.ts'; export const LOW_AMOUNT_ERROR = 'Cannot be less than the minimum delivery amount'; export const ANTICAPTCHA_LOW_BALANCE_ERROR = 'Account has zero or negative balance'; export const ANTICAPTCHA_LOW_BALANCE_CUSTOM_ERROR = 'Anticaptcha account has low balance'; export const UNABLE_GET_WITHDRAW_FEE_ERROR = 'Unable to get fee for current withdraw parameters'; export const NOTHING_TO_CLAIM_ERROR = 'Nothing to claim'; export const IS_CLAIMED_ERROR = 'Already claimed'; export const NFT_HOLDING_ERROR = 'Only hold NFT to sign in'; export const NFT_HOLDING_CUSTOM_ERROR = 'You need to hold NFT to make it'; export const NETWORK_IS_WRONG_ERROR = 'network is wrong'; export const WITHDRAW_ERROR = 'Unable to make withdraw successfully'; export const NO_CURRENCY_ERROR = 'User does not own this currency'; export const NO_TOKEN_ERROR = 'You do not have enough of this token in your balance'; export const SOMETHING_WENT_WRONG = 'Something went wrong'; export const MAX_TXS_COUNT_IS_DONE_MESSAGE = 'already equals or more than provided maxTxsCount'; export const SUCCESS_MESSAGES_TO_STOP_WALLET = [MAX_TXS_COUNT_IS_DONE_MESSAGE]; export const CRITICAL_ERRORS_MAP = { 'The total cost (gas * gas fee + value)': MERKLY_LOW_BALANCE_ERROR, [ANTICAPTCHA_LOW_BALANCE_ERROR]: ANTICAPTCHA_LOW_BALANCE_CUSTOM_ERROR, 'intrinsic gas too high': LOW_BALANCE_ERROR, 'insufficient balance for transfer': LOW_BALANCE_ERROR, 'out of gas: gas required exceeds allowance': LOW_BALANCE_ERROR, 'API-key format invalid': INVALID_API_KEY_ERROR, 'Invalid Api-Key ID': INVALID_API_KEY_ERROR, 'not authorized to execute this request': NO_TOKEN_ERROR, [OKX_WL_ERROR]: OKX_WL_ERROR, [OKX_ERROR]: OKX_ERROR, [AMOUNT_IS_TOO_LOW_ERROR]: AMOUNT_IS_TOO_LOW_ERROR, [WITHDRAW_ERROR]: WITHDRAW_ERROR, [NO_CURRENCY_ERROR]: NO_CURRENCY_ERROR, }; export const WARNING_ERRORS_MAP = { [UNABLE_GET_WITHDRAW_FEE_ERROR]: UNABLE_GET_WITHDRAW_FEE_ERROR, [NOTHING_TO_CLAIM_ERROR]: NOTHING_TO_CLAIM_ERROR, [LOW_AMOUNT_ERROR]: LOW_AMOUNT_ERROR, [NO_MAIL_TO_USE]: NO_MAIL_TO_USE, [SECOND_ADDRESS_EMPTY_ERROR]: SECOND_ADDRESS_EMPTY_ERROR, [EMPTY_ANTICAPTCHA_KEY_ERROR]: EMPTY_ANTICAPTCHA_KEY_ERROR, [EMPTY_CAPMONSTER_KEY_ERROR]: EMPTY_CAPMONSTER_KEY_ERROR, }; export const PASSED_ERROR_MAP = { [ACTIVITY_ENDED_ERROR]: 'This activity ended. You can turn off this module', [CHECK_IN_INTERVAL]: 'Try again in 24 hours. You already passed this task', [VOTE_INTERVAL]: 'Try again in 24 hours. You already passed this task', [IS_CLAIMED_ERROR]: IS_CLAIMED_ERROR, [NFT_CLAIMED]: 'You already passed this task', [NFT_HOLDING_ERROR]: NFT_HOLDING_CUSTOM_ERROR, }; export const NOT_SAVE_FAILED_WALLET_ERRORS = Object.values(PASSED_ERROR_MAP); //# sourceMappingURL=errors.js.map