Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IAMMRouter

Hierarchy

  • Contract
    • IAMMRouter

Index

Constructors

  • new IAMMRouter(addressOrName: string, contractInterface: ContractInterface, signerOrProvider?: Signer | Provider): IAMMRouter
  • Parameters

    • addressOrName: string
    • contractInterface: ContractInterface
    • Optional signerOrProvider: Signer | Provider

    Returns IAMMRouter

Properties

_deployedPromise: Promise<Contract>
_runningEvents: {}

Type declaration

  • [eventTag: string]: RunningEvent
_wrappedEmits: {}

Type declaration

  • [eventTag: string]: (...args: any[]) => void
      • (...args: any[]): void
      • Parameters

        • Rest ...args: any[]

        Returns void

address: string
callStatic: { getAmountIn: any; getAmountIn(address,uint256[],uint256[],uint256): any; getAmountOut: any; getAmountOut(address,uint256[],uint256[],uint256): any; getSpotPrice: any; getSpotPrice(address,uint256[],uint256[]): any; swapExactAmountIn: any; swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256): any; swapExactAmountOut: any; swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256): any }

Type declaration

  • getAmountIn:function
    • getAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getAmountIn(address,uint256[],uint256[],uint256):function
    • getAmountIn(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getAmountOut:function
    • getAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountIn: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getAmountOut(address,uint256[],uint256[],uint256):function
    • getAmountOut(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountIn: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getSpotPrice:function
    • getSpotPrice(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getSpotPrice(address,uint256[],uint256[]):function
    • getSpotPrice(address,uint256[],uint256[])(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • swapExactAmountIn:function
    • swapExactAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountIn: BigNumberish
      • _minAmountOut: BigNumberish
      • _to: string
      • _deadline: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256):function
    • swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountIn: BigNumberish
      • _minAmountOut: BigNumberish
      • _to: string
      • _deadline: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • swapExactAmountOut:function
    • swapExactAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _maxAmountIn: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _to: string
      • _deadline: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256):function
    • swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _maxAmountIn: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _to: string
      • _deadline: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

deployTransaction: TransactionResponse
estimateGas: { getAmountIn: any; getAmountIn(address,uint256[],uint256[],uint256): any; getAmountOut: any; getAmountOut(address,uint256[],uint256[],uint256): any; getSpotPrice: any; getSpotPrice(address,uint256[],uint256[]): any; swapExactAmountIn: any; swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256): any; swapExactAmountOut: any; swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256): any }

Type declaration

  • getAmountIn:function
    • getAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountOut: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • getAmountIn(address,uint256[],uint256[],uint256):function
    • getAmountIn(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountOut: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • getAmountOut:function
    • getAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountIn: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • getAmountOut(address,uint256[],uint256[],uint256):function
    • getAmountOut(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountIn: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • getSpotPrice:function
    • getSpotPrice(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • getSpotPrice(address,uint256[],uint256[]):function
    • getSpotPrice(address,uint256[],uint256[])(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • swapExactAmountIn:function
    • swapExactAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountIn: BigNumberish
      • _minAmountOut: BigNumberish
      • _to: string
      • _deadline: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256):function
    • swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountIn: BigNumberish
      • _minAmountOut: BigNumberish
      • _to: string
      • _deadline: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • swapExactAmountOut:function
    • swapExactAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _maxAmountIn: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _to: string
      • _deadline: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256):function
    • swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _maxAmountIn: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _to: string
      • _deadline: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

filters: {}

Type declaration

    functions: { getAmountIn: any; getAmountIn(address,uint256[],uint256[],uint256): any; getAmountOut: any; getAmountOut(address,uint256[],uint256[],uint256): any; getSpotPrice: any; getSpotPrice(address,uint256[],uint256[]): any; swapExactAmountIn: any; swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256): any; swapExactAmountOut: any; swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256): any }

    Type declaration

    • getAmountIn:function
      • getAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _tokenAmountOut: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • getAmountIn(address,uint256[],uint256[],uint256):function
      • getAmountIn(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _tokenAmountOut: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • getAmountOut:function
      • getAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _tokenAmountIn: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • getAmountOut(address,uint256[],uint256[],uint256):function
      • getAmountOut(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _tokenAmountIn: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • getSpotPrice:function
      • getSpotPrice(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • getSpotPrice(address,uint256[],uint256[]):function
      • getSpotPrice(address,uint256[],uint256[])(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • swapExactAmountIn:function
      • swapExactAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _tokenAmountIn: BigNumberish
        • _minAmountOut: BigNumberish
        • _to: string
        • _deadline: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256):function
      • swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _tokenAmountIn: BigNumberish
        • _minAmountOut: BigNumberish
        • _to: string
        • _deadline: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • swapExactAmountOut:function
      • swapExactAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _maxAmountIn: BigNumberish
        • _tokenAmountOut: BigNumberish
        • _to: string
        • _deadline: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256):function
      • swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _maxAmountIn: BigNumberish
        • _tokenAmountOut: BigNumberish
        • _to: string
        • _deadline: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    interface: IAMMRouterInterface
    populateTransaction: { getAmountIn: any; getAmountIn(address,uint256[],uint256[],uint256): any; getAmountOut: any; getAmountOut(address,uint256[],uint256[],uint256): any; getSpotPrice: any; getSpotPrice(address,uint256[],uint256[]): any; swapExactAmountIn: any; swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256): any; swapExactAmountOut: any; swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256): any }

    Type declaration

    • getAmountIn:function
      • getAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _tokenAmountOut: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • getAmountIn(address,uint256[],uint256[],uint256):function
      • getAmountIn(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _tokenAmountOut: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • getAmountOut:function
      • getAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _tokenAmountIn: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • getAmountOut(address,uint256[],uint256[],uint256):function
      • getAmountOut(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _tokenAmountIn: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • getSpotPrice:function
      • getSpotPrice(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • getSpotPrice(address,uint256[],uint256[]):function
      • getSpotPrice(address,uint256[],uint256[])(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • swapExactAmountIn:function
      • swapExactAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _tokenAmountIn: BigNumberish
        • _minAmountOut: BigNumberish
        • _to: string
        • _deadline: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256):function
      • swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _tokenAmountIn: BigNumberish
        • _minAmountOut: BigNumberish
        • _to: string
        • _deadline: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • swapExactAmountOut:function
      • swapExactAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _maxAmountIn: BigNumberish
        • _tokenAmountOut: BigNumberish
        • _to: string
        • _deadline: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256):function
      • swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _amm: string
        • _pairPath: BigNumberish[]
        • _tokenPath: BigNumberish[]
        • _maxAmountIn: BigNumberish
        • _tokenAmountOut: BigNumberish
        • _to: string
        • _deadline: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    provider: Provider
    resolvedAddress: Promise<string>
    signer: Signer

    Methods

    • _checkRunningEvents(runningEvent: RunningEvent): void
    • Parameters

      • runningEvent: RunningEvent

      Returns void

    • _deployed(blockTag?: BlockTag): Promise<Contract>
    • Parameters

      • Optional blockTag: BlockTag

      Returns Promise<Contract>

    • _wrapEvent(runningEvent: RunningEvent, log: Log, listener: Listener): Event
    • Parameters

      • runningEvent: RunningEvent
      • log: Log
      • listener: Listener

      Returns Event

    • Parameters

      • addressOrName: string

      Returns IAMMRouter

    • connect(signerOrProvider: string | Signer | Provider): IAMMRouter
    • Parameters

      • signerOrProvider: string | Signer | Provider

      Returns IAMMRouter

    • Returns Promise<IAMMRouter>

    • emit(eventName: string | EventFilter, ...args: any[]): boolean
    • Parameters

      • eventName: string | EventFilter
      • Rest ...args: any[]

      Returns boolean

    • fallback(overrides?: TransactionRequest): Promise<TransactionResponse>
    • Parameters

      • Optional overrides: TransactionRequest

      Returns Promise<TransactionResponse>

    • getAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountOut: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • getAmountIn(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountOut: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • getAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountIn: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • getAmountOut(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountIn: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • getSpotPrice(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • getSpotPrice(address,uint256[],uint256[])(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • listenerCount(eventName?: string | EventFilter): number
    • Parameters

      • Optional eventName: string | EventFilter

      Returns number

    • listeners<EventArgsArray, EventArgsObject>(eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>): TypedListener<EventArgsArray, EventArgsObject>[]
    • listeners(eventName?: string): Listener[]
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • Optional eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

      Returns TypedListener<EventArgsArray, EventArgsObject>[]

    • Parameters

      • Optional eventName: string

      Returns Listener[]

    • off<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IAMMRouter
    • off(eventName: string, listener: Listener): IAMMRouter
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns IAMMRouter

    • Parameters

      • eventName: string
      • listener: Listener

      Returns IAMMRouter

    • on<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IAMMRouter
    • on(eventName: string, listener: Listener): IAMMRouter
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns IAMMRouter

    • Parameters

      • eventName: string
      • listener: Listener

      Returns IAMMRouter

    • once<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IAMMRouter
    • once(eventName: string, listener: Listener): IAMMRouter
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns IAMMRouter

    • Parameters

      • eventName: string
      • listener: Listener

      Returns IAMMRouter

    • queryFilter<EventArgsArray, EventArgsObject>(event: TypedEventFilter<EventArgsArray, EventArgsObject>, fromBlockOrBlockhash?: string | number, toBlock?: string | number): Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • event: TypedEventFilter<EventArgsArray, EventArgsObject>
      • Optional fromBlockOrBlockhash: string | number
      • Optional toBlock: string | number

      Returns Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>

    • removeAllListeners<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>): IAMMRouter
    • removeAllListeners(eventName?: string): IAMMRouter
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

      Returns IAMMRouter

    • Parameters

      • Optional eventName: string

      Returns IAMMRouter

    • removeListener<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IAMMRouter
    • removeListener(eventName: string, listener: Listener): IAMMRouter
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns IAMMRouter

    • Parameters

      • eventName: string
      • listener: Listener

      Returns IAMMRouter

    • swapExactAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountIn: BigNumberish
      • _minAmountOut: BigNumberish
      • _to: string
      • _deadline: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _tokenAmountIn: BigNumberish
      • _minAmountOut: BigNumberish
      • _to: string
      • _deadline: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • swapExactAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _maxAmountIn: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _to: string
      • _deadline: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _amm: string
      • _pairPath: BigNumberish[]
      • _tokenPath: BigNumberish[]
      • _maxAmountIn: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _to: string
      • _deadline: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • getContractAddress(transaction: { from: string; nonce: BigNumberish }): string
    • Parameters

      • transaction: { from: string; nonce: BigNumberish }
        • from: string
        • nonce: BigNumberish

      Returns string

    • getInterface(contractInterface: ContractInterface): Interface
    • Parameters

      • contractInterface: ContractInterface

      Returns Interface

    • isIndexed(value: any): value is Indexed
    • Parameters

      • value: any

      Returns value is Indexed

    Generated using TypeDoc, the 4/22/2022