@safik/fk-plug-controller
Version:
Internet Computer Plug wallet's controller
22 lines (21 loc) • 1.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ERRORS = void 0;
/* eslint-disable import/prefer-default-export */
exports.ERRORS = {
INVALID_MNEMONIC: 'The provided mnemonic is invalid',
INVALID_ACC_ID: 'The account ID should be a positive integer',
PASSWORD_REQUIRED: 'A password is required',
NOT_INITIALIZED: 'Plug must be initialized',
STATE_LOCKED: 'The state is locked',
INVALID_WALLET_NUMBER: 'Invalid wallet number',
GET_TRANSACTIONS_FAILS: 'Get transactions fails',
INVALID_CANISTER_ID: 'The provided canister id is invalid',
TOKEN_NOT_SUPPORTED: 'The provided canister does not implement common extensions from EXT token interface. Please refer to "https://github.com/Toniq-Labs/extendable-token" for further information.',
NON_FUNGIBLE_TOKEN_NOT_SUPPORTED: 'Non fungible tokens are not supported yet',
TOKEN_NOT_SUPPORT_METADATA: 'The provided canister does not implement commont extension',
INVALID_PRINCIPAL_ID: 'Invalid principal id',
GET_NFT_ERROR: 'Error while fetching NFT data',
TRANSFER_NFT_ERROR: 'Error while trying to transfer the NFT. Please verify you own the NFT you are trying to transfer',
INVALID_APP: 'Invalid app',
};