UNPKG

hermes-v2-sdk

Version:

⚒️ An SDK for building applications on top of Hermes V2

22 lines (21 loc) 941 B
import { Interface } from '@ethersproject/abi'; import { Currency, MethodParameters } from 'maia-core-sdk'; import { TradeType } from '../../constants/constants'; import { IPool, SwapOptions } from '../../types'; import { Trade } from '../trade'; /** * Represents the Uniswap V3 SwapRouter, and has static methods for helping execute trades. */ export declare abstract class SwapRouter { static readonly INTERFACE: Interface; /** * Cannot be constructed. */ private constructor(); /** * Produces the on-chain method name to call and the hex encoded parameters to pass as arguments for a given trade. * @param trade to produce call parameters for * @param options options for the call parameters */ static swapCallParameters(trades: Trade<IPool, Currency, Currency, TradeType> | Trade<IPool, Currency, Currency, TradeType>[], options: SwapOptions): MethodParameters; }