UNPKG

@swapnet-xyz/sdk

Version:
9 lines (8 loc) 483 B
import { Wallet } from "ethers"; import { type IEncodeOptions, type ChainId } from "./index.js"; export declare const tradeE2eAsync: (chainId: ChainId, sellTokenAddress: string, buyTokenAddress: string, sellAmount: bigint, encodeOptions: IEncodeOptions, senderWallet: Wallet, maxFeePerGas: bigint, maxPriorityFeePerGas: bigint, swapnetApiKey: string) => Promise<{ error?: string; erc20ApprovalTxHash?: string; permit2ApprovalTxHash?: string; swapTxHash?: string; }>;