UNPKG

@shogun-sdk/money-legos

Version:

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

34 lines 1.32 kB
import type { QuoteTypes, Token } from '../types/index.js'; export interface QuoteParams { srcChain: number; destChain: number; srcToken: string; destToken: string; amount: string; senderAddress: string; affiliateWallet: string; affiliateFee: string; slippage: number; destinationAddress: string; dstChainOrderAuthorityAddress: string; jitoTip?: number; gasRefuel?: number; dynamicSlippage?: boolean; externalCall?: string; } export declare function getSwapWeiAmount(amount: string, decimals: number): bigint; export declare function getRecipientAddress(fromToken: Token, toToken: Token, senderAddress: string, destinationAddress: string): string; export declare function createQuoteParams(fromToken: Token, toToken: Token, amount: string, destinationAddress: string | null, senderAddress: string, slippage: number, totalFeePercent: number, affiliateWallets: { solana: string; evm: string; }, dynamicSlippage?: boolean): QuoteParams; export declare function fetchQuote(api: { key: string; url: string; }, params: QuoteParams, signal: AbortSignal): Promise<QuoteTypes>; export interface BaseQuoteContextValue { isLoading: boolean; isRefetching: boolean; } export declare const BRIDGE_TOKEN: Token; //# sourceMappingURL=quote.d.ts.map