UNPKG

delegate-framework

Version:

A TypeScript framework for building robust, production-ready blockchain workflows with comprehensive error handling, logging, and testing. Maintained by delegate.fun

19 lines 946 B
import { Keypair } from '@solana/web3.js'; import { BaseSwapProtocol } from './base-protocol'; import { SwapQuote, SwapTransaction, SwapResult } from '../types'; import { HeliusClient } from '../../solana/clients/helius'; export interface RaydiumSwapConfig { heliusClient?: HeliusClient; } export declare class RaydiumSwap extends BaseSwapProtocol { private heliusClient?; constructor(keypair: Keypair, config?: RaydiumSwapConfig); getQuote(inputMint: string, outputMint: string, amount: number, slippage?: number): Promise<SwapQuote | null>; createSwapTransaction(quote: SwapQuote): Promise<SwapTransaction>; executeSwap(transaction: SwapTransaction): Promise<SwapResult>; fetchTokenAccountData(): Promise<{ tokenAccounts: import("@raydium-io/raydium-sdk-v2").TokenAccount[]; tokenAccountRawInfos: import("@raydium-io/raydium-sdk-v2").TokenAccountRaw[]; }>; } //# sourceMappingURL=raydium.d.ts.map