@okx-dex/okx-dex-sdk
Version:
OKX DEX SDK
12 lines (11 loc) • 523 B
TypeScript
import { SwapExecutor } from "../types";
import { SwapParams, SwapResponseData, SwapResult, ChainConfig, OKXConfig } from "../../../types";
export declare class SolanaSwapExecutor implements SwapExecutor {
private readonly config;
private readonly networkConfig;
constructor(config: OKXConfig, networkConfig: ChainConfig);
executeSwap(swapData: SwapResponseData, params: SwapParams): Promise<SwapResult>;
private executeSolanaTransaction;
private prepareTransaction;
private formatSwapResult;
}