UNPKG

ttxd-alpha

Version:

An SDK for building applications on top of V2,V3 and Solana exchanges

18 lines (17 loc) 813 B
import { ethers } from 'ethers'; import { Token, TradeType, ChainId } from '@uniswap/sdk-core'; import { Trade } from 'ttxd'; import { SwapV3Params } from './type'; export declare type TokenTrade = Trade<Token, Token, TradeType>; interface PoolInfo { token0: string; token1: string; fee: number; sqrtPriceX96: ethers.BigNumber; liquidity: ethers.BigNumber; tick: number; } export declare function swapV3(params: SwapV3Params): Promise<void>; export declare function sendTransaction(transaction: ethers.providers.TransactionRequest, signer: ethers.Wallet): Promise<string>; export declare function getPoolInfo(chainId: ChainId, tokenIn: Token, tokenOut: Token, fee: number, provider: ethers.providers.JsonRpcProvider, factoryAddress: string): Promise<PoolInfo>; export {};