@everstake/wallet-sdk-solana
Version:
Solana - Everstake Wallet SDK
22 lines (20 loc) • 1 kB
text/typescript
/**
* Copyright (c) 2025, Everstake.
* Licensed under the BSD-3-Clause License. See LICENSE file for details.
*/
export const ERROR_MESSAGES = {
CONNECTION_ERROR: 'An error occurred while connecting to the network',
MIN_AMOUNT_ERROR: 'Min Amount {0}',
CREATE_ACCOUNT_ERROR: 'An error occurred while creating the account',
DELEGATE_ERROR: 'An error occurred while delegating the stake',
DEACTIVATE_ERROR: 'An error occurred while deactivating the stake',
WITHDRAW_ERROR: 'An error occurred while withdrawing the stake',
GET_DELEGATIONS_ERROR: 'An error occurred while fetching the delegations',
STAKE_ERROR: 'An error occurred while staking',
INVALID_RPC_ERROR: 'Invalid RPC URL',
UNSUPPORTED_NETWORK_ERROR: 'Unsupported Network',
CLAIM_ERROR: 'An error occurred while claim SOL',
UNSTAKE_ERROR: 'An error occurred while unstaking the stake',
NOTHING_TO_CLAIM_ERROR: 'Nothing to claim while claiming',
NOT_ENOUGH_ACTIVE_STAKE_ERROR: 'Active stake less than requested',
};