错误
介绍
内置了错误返回,包括部分 ArConnect 特殊处理的错误。
错误信息
export enum ERRORS {
INVALID_CONFIG_PARAMS = 'INVALID_CONFIG_PARAMS',
REQUEST_5S_TIMEOUT = 'REQUEST_5S_TIMEOUT',
ETH_SIGNER_NOT_FOUND = 'ETH_SIGNER_NOT_FOUND',
AR_JWK_NOT_FOUND = 'AR_JWK_NOT_FOUND',
TO_NOT_FOUND = 'TO_NOT_FOUND',
SYMBOL_NOT_FOUND = 'SYMBOL_NOT_FOUND',
TAG_NOT_FOUND = 'TAG_NOT_FOUND',
TOKEN_NOT_FOUND = 'TOKEN_NOT_FOUND',
ACCOUNT_NOT_FOUND = 'ACCOUNT_NOT_FOUND',
ACCOUNT_INVALID = 'ACCOUNT_INVALID',
EVERHASH_NOT_FOUND = 'EVERHASH_NOT_FOUND',
CHAIN_TX_HASH_NOT_FOUND = 'CHAIN_TX_HASH_NOT_FOUND',
INVALID_ACCOUNT_TYPE = 'INVALID_ACCOUNT_TYPE',
INVALID_ACTION = 'INVALID_ACTION',
INVALID_AMOUNT = 'INVALID_AMOUNT',
WITHDRAW_AMOUNT_LESS_THAN_FEE = 'WITHDRAW_AMOUNT_LESS_THAN_FEE',
INSUFFICIENT_QUICK_WITHDRAWAL_AMOUNT = 'INSUFFICIENT_QUICK_WITHDRAWAL_AMOUNT',
WITHDRAW_TOKEN_NOT_SUPPORT_QUICK_MODE = 'WITHDRAW_TOKEN_NOT_SUPPORT_QUICK_MODE',
DEPOSIT_ARWEAVE_PST_MUST_BE_INTEGER = 'DEPOSIT_ARWEAVE_PST_MUST_BE_INTEGER',
PST_WITHDARW_TO_ARWEAVE_MUST_BE_INTEGER = 'PST_WITHDARW_TO_ARWEAVE_MUST_BE_INTEGER',
SMART_ACCOUNT_DEPOSIT_NOT_SUPPORT = 'SMART_ACCOUNT_DEPOSIT_NOT_SUPPORT',
MESSAGE_INCORRECT = 'MESSAGE_INCORRECT'
}
ArConnect 特殊处理的错误
enum ERRORS {
PLEASE_INSTALL_ARCONNECT = 'PLEASE_INSTALL_ARCONNECT',
ACCESS_ADDRESS_PERMISSION_NEEDED = 'ACCESS_ADDRESS_PERMISSION_NEEDED',
ACCESS_PUBLIC_KEY_PERMISSION_NEEDED = 'ACCESS_PUBLIC_KEY_PERMISSION_NEEDED',
SIGNATURE_PERMISSION_NEEDED = 'NEED_SIGNATURE_PERMISSION',
SIGN_TRANSACTION_PERMISSION_NEEDED = 'SIGN_TRANSACTION_PERMISSION_NEEDED',
SIGNATURE_FAILED = 'SIGNATURE_FAILED',
TRANSACTION_POST_ERROR = 'TRANSACTION_POST_ERROR',
ACCESS_PUBLIC_KEY_FAILED = 'ACCESS_PUBLIC_KEY_FAILED'
}
智能账户模型
'ACCOUNT_NOT_RECEIVE'
'MESSAGEDATA_NOT_RECEIVE'
'ACCOUNT_NOT_MATCH'
'CANCEL_SIGN'
'POPUP_CLOSED'
'AUTHORIZE_TIMEOUT'
危险
因 ArConnect 当前问题较多,当前在 ArConnect 基础上,放置了一些错误