@ledgerhq/coin-near
Version:
41 lines • 1.98 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NearStakingThresholdNotMet = exports.NearRecommendUnstake = exports.NearNotEnoughAvailable = exports.NearNotEnoughStaked = exports.NearUseAllAmountStakeWarning = exports.NearProtocolConfigNotLoaded = exports.NearActivationFeeNotCovered = exports.NearNewNamedAccountError = exports.NearNewAccountWarning = void 0;
const errors_1 = require("@ledgerhq/errors");
/*
* When the recipient is a new account.
*/
exports.NearNewAccountWarning = (0, errors_1.createCustomErrorClass)("NearNewAccountWarning");
/*
* When the recipient is a new named account, and needs to be created first.
*/
exports.NearNewNamedAccountError = (0, errors_1.createCustomErrorClass)("NearNewNamedAccountError");
/*
* When the recipient is a new account, and the amount doesn't cover the activation fee.
*/
exports.NearActivationFeeNotCovered = (0, errors_1.createCustomErrorClass)("NearActivationFeeNotCovered");
/*
* When the protocol config can not be loaded.
*/
exports.NearProtocolConfigNotLoaded = (0, errors_1.createCustomErrorClass)("NearProtocolConfigNotLoaded");
/*
* When an entire account balance is being staked.
*/
exports.NearUseAllAmountStakeWarning = (0, errors_1.createCustomErrorClass)("NearUseAllAmountStakeWarning");
/*
* When trying to unstake more than is staked.
*/
exports.NearNotEnoughStaked = (0, errors_1.createCustomErrorClass)("NearNotEnoughStaked");
/*
* When trying to withdraw more than is available.
*/
exports.NearNotEnoughAvailable = (0, errors_1.createCustomErrorClass)("NearNotEnoughAvailable");
/*
* When sending max while there are existing staking positions.
*/
exports.NearRecommendUnstake = (0, errors_1.createCustomErrorClass)("NearRecommendUnstake");
/*
* When trying to stake, unstake, or withdraw less than the threshold.
*/
exports.NearStakingThresholdNotMet = (0, errors_1.createCustomErrorClass)("NearStakingThresholdNotMet");
//# sourceMappingURL=errors.js.map