UNPKG

@shogun-sdk/money-legos

Version:

Shogun Money Legos: clients and types for quotes, memes, prices, balances, fees, validations, etc.

20 lines 1.66 kB
import type { QuoteTypes } from '../types/index.js'; export declare const DEFAULT_ERROR_MESSAGE = "Action Failed: Please try again or contact support"; export declare const ERROR_FETCHING_DEST_TX = "Transaction is still processing."; export declare const INSUFFICIENT_BALANCE_MSG = "Insufficient balance"; export declare const SLIPPAGE_CODE = "0xff5f293c"; export declare const SLIPPAGE_ERROR_MSG = "Slippage tolerance exceeded"; export declare const ERROR_MISSING_REQUIRED_DATA = "Missing required data, aborting swap"; export declare const makeNotEnoughFundsUsdCrosschainErrorMsg: (amountInUsd: number | string, inTokenSymbol: string, network: number) => string; export declare const makeEstimatedSlippageError: (suggestedSlippage: number) => string; export declare const ERROR_INSUFFICIENT_FUNDS_DETAILED = "Please ensure your account has sufficient funds to cover the transaction cost."; export declare const ERROR_INVALID_RECIPIENT = "Please enter a valid recipient address"; export declare const INSUFFICIENT_FUNDS_ERROR_MSG = "Insufficient balance"; export declare const INSUFFICIENT_FUNDS_FOR_GAS_ERROR_MSG = "Insufficient funds for gas"; export declare const getInsufficientFundsWebAppError: (estimatedFees: bigint, network: number) => string; export declare const getInsufficientGasWebAppError: () => string; export declare const BELOW_MIN_TRADE = "Below minimum trade"; export declare const buildInsufficientFundsWebAppError: () => string; export declare function decodeErrorMessage(errorMessage: string): string; export declare const returnErrorDuringEstimationGas: (quote: QuoteTypes, error: unknown) => void; //# sourceMappingURL=errors.d.ts.map