ttxd-alpha
Version:
An SDK for building applications on top of V2,V3 and Solana exchanges
27 lines (26 loc) • 684 B
TypeScript
import { ChainId, Token } from '@uniswap/sdk-core';
import { ethers } from 'ethers';
export interface SwapV3Params {
chainId: ChainId;
exchange: string;
tokenIn: Token;
tokenOut: Token;
fee: number;
amountIn: number;
slippage?: number;
provider: ethers.providers.JsonRpcProvider;
signer: ethers.Wallet;
gasLimit?: number;
maxFeePerGas?: string;
maxPriorityFeePerGas?: string;
}
export interface TradeDetails {
tokenIn: Token;
amountIn: number;
fee: number;
signer: ethers.Wallet;
routerAddress: string;
gasLimit?: number;
maxFeePerGas?: string;
maxPriorityFeePerGas?: string;
}