Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AMMRouter

Hierarchy

  • Contract
    • AMMRouter

Index

Constructors

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

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

    Returns AMMRouter

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; hasRole: any; hasRole(bytes32,address): any; initialize: any; initialize(address): any; registry: any; registry(): any; setRegistry: any; setRegistry(address): any; swapExactAmountIn: any; swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256): any; swapExactAmountOut: any; swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256): any; updateAllTokenApprovalOf: any; updateAllTokenApprovalOf(address): any; updateFYTApprovalOf: any; updateFYTApprovalOf(address): 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>

  • hasRole:function
    • hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise<boolean>
    • Parameters

      • role: BytesLike
      • account: string
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • hasRole(bytes32,address):function
    • hasRole(bytes32,address)(role: BytesLike, account: string, overrides?: CallOverrides): Promise<boolean>
    • Parameters

      • role: BytesLike
      • account: string
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • initialize:function
    • initialize(_registry: string, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _registry: string
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • initialize(address):function
    • initialize(address)(_registry: string, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _registry: string
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • registry:function
    • registry(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • registry():function
    • registry()(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • setRegistry:function
    • setRegistry(_registry: string, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _registry: string
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • setRegistry(address):function
    • setRegistry(address)(_registry: string, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _registry: string
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • 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>

  • updateAllTokenApprovalOf:function
    • updateAllTokenApprovalOf(_amm: string, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _amm: string
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • updateAllTokenApprovalOf(address):function
    • updateAllTokenApprovalOf(address)(_amm: string, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _amm: string
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • updateFYTApprovalOf:function
    • updateFYTApprovalOf(_amm: string, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _amm: string
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • updateFYTApprovalOf(address):function
    • updateFYTApprovalOf(address)(_amm: string, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _amm: string
      • Optional overrides: CallOverrides

      Returns Promise<void>

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; hasRole: any; hasRole(bytes32,address): any; initialize: any; initialize(address): any; registry: any; registry(): any; setRegistry: any; setRegistry(address): any; swapExactAmountIn: any; swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256): any; swapExactAmountOut: any; swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256): any; updateAllTokenApprovalOf: any; updateAllTokenApprovalOf(address): any; updateFYTApprovalOf: any; updateFYTApprovalOf(address): 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>

  • hasRole:function
    • hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • role: BytesLike
      • account: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • hasRole(bytes32,address):function
    • hasRole(bytes32,address)(role: BytesLike, account: string, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • role: BytesLike
      • account: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • initialize:function
    • initialize(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _registry: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • initialize(address):function
    • initialize(address)(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _registry: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • registry:function
    • registry(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • registry():function
    • registry()(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • setRegistry:function
    • setRegistry(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _registry: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • setRegistry(address):function
    • setRegistry(address)(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _registry: string
      • 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>

  • updateAllTokenApprovalOf:function
    • updateAllTokenApprovalOf(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _amm: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • updateAllTokenApprovalOf(address):function
    • updateAllTokenApprovalOf(address)(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _amm: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • updateFYTApprovalOf:function
    • updateFYTApprovalOf(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _amm: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • updateFYTApprovalOf(address):function
    • updateFYTApprovalOf(address)(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _amm: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

filters: { RegistrySet: any; RoleGranted: any; TokenApproved: any }

Type declaration

  • RegistrySet:function
    • RegistrySet(_registry: null): TypedEventFilter<[string], { _registry: string }>
    • Parameters

      • _registry: null

      Returns TypedEventFilter<[string], { _registry: string }>

  • RoleGranted:function
    • RoleGranted(role: null | BytesLike, account: null | string, sender: null | string): TypedEventFilter<[string, string, string], { account: string; role: string; sender: string }>
    • Parameters

      • role: null | BytesLike
      • account: null | string
      • sender: null | string

      Returns TypedEventFilter<[string, string, string], { account: string; role: string; sender: string }>

  • TokenApproved:function
    • TokenApproved(_token: null, _amm: null): TypedEventFilter<[string, string], { _amm: string; _token: string }>
    • Parameters

      • _token: null
      • _amm: null

      Returns TypedEventFilter<[string, string], { _amm: string; _token: string }>

functions: { getAmountIn: any; getAmountIn(address,uint256[],uint256[],uint256): any; getAmountOut: any; getAmountOut(address,uint256[],uint256[],uint256): any; getSpotPrice: any; getSpotPrice(address,uint256[],uint256[]): any; hasRole: any; hasRole(bytes32,address): any; initialize: any; initialize(address): any; registry: any; registry(): any; setRegistry: any; setRegistry(address): any; swapExactAmountIn: any; swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256): any; swapExactAmountOut: any; swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256): any; updateAllTokenApprovalOf: any; updateAllTokenApprovalOf(address): any; updateFYTApprovalOf: any; updateFYTApprovalOf(address): any }

Type declaration

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

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

      Returns Promise<[BigNumber] & { tokenAmountIn: BigNumber }>

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

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

      Returns Promise<[BigNumber] & { tokenAmountIn: BigNumber }>

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

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

      Returns Promise<[BigNumber] & { tokenAmountOut: BigNumber }>

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

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

      Returns Promise<[BigNumber] & { tokenAmountOut: BigNumber }>

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

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

      Returns Promise<[BigNumber] & { spotPrice: BigNumber }>

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

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

      Returns Promise<[BigNumber] & { spotPrice: BigNumber }>

  • hasRole:function
    • hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise<[boolean]>
    • Parameters

      • role: BytesLike
      • account: string
      • Optional overrides: CallOverrides

      Returns Promise<[boolean]>

  • hasRole(bytes32,address):function
    • hasRole(bytes32,address)(role: BytesLike, account: string, overrides?: CallOverrides): Promise<[boolean]>
    • Parameters

      • role: BytesLike
      • account: string
      • Optional overrides: CallOverrides

      Returns Promise<[boolean]>

  • initialize:function
    • initialize(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _registry: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • initialize(address):function
    • initialize(address)(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _registry: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • registry:function
    • registry(overrides?: CallOverrides): Promise<[string]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • registry():function
    • registry()(overrides?: CallOverrides): Promise<[string]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • setRegistry:function
    • setRegistry(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _registry: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • setRegistry(address):function
    • setRegistry(address)(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _registry: string
      • 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>

  • updateAllTokenApprovalOf:function
    • updateAllTokenApprovalOf(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _amm: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • updateAllTokenApprovalOf(address):function
    • updateAllTokenApprovalOf(address)(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _amm: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • updateFYTApprovalOf:function
    • updateFYTApprovalOf(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _amm: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • updateFYTApprovalOf(address):function
    • updateFYTApprovalOf(address)(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _amm: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

interface: AMMRouterInterface
populateTransaction: { getAmountIn: any; getAmountIn(address,uint256[],uint256[],uint256): any; getAmountOut: any; getAmountOut(address,uint256[],uint256[],uint256): any; getSpotPrice: any; getSpotPrice(address,uint256[],uint256[]): any; hasRole: any; hasRole(bytes32,address): any; initialize: any; initialize(address): any; registry: any; registry(): any; setRegistry: any; setRegistry(address): any; swapExactAmountIn: any; swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256): any; swapExactAmountOut: any; swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256): any; updateAllTokenApprovalOf: any; updateAllTokenApprovalOf(address): any; updateFYTApprovalOf: any; updateFYTApprovalOf(address): any }

Type declaration

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

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

      Returns Promise<PopulatedTransaction>

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

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

      Returns Promise<PopulatedTransaction>

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

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

      Returns Promise<PopulatedTransaction>

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

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

      Returns Promise<PopulatedTransaction>

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

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

      Returns Promise<PopulatedTransaction>

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

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

      Returns Promise<PopulatedTransaction>

  • hasRole:function
    • hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • role: BytesLike
      • account: string
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • hasRole(bytes32,address):function
    • hasRole(bytes32,address)(role: BytesLike, account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • role: BytesLike
      • account: string
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • initialize:function
    • initialize(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • _registry: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • initialize(address):function
    • initialize(address)(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • _registry: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • registry:function
    • registry(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • registry():function
    • registry()(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • setRegistry:function
    • setRegistry(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • _registry: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • setRegistry(address):function
    • setRegistry(address)(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • _registry: string
      • 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>

  • updateAllTokenApprovalOf:function
    • updateAllTokenApprovalOf(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • _amm: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • updateAllTokenApprovalOf(address):function
    • updateAllTokenApprovalOf(address)(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • _amm: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • updateFYTApprovalOf:function
    • updateFYTApprovalOf(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • _amm: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • updateFYTApprovalOf(address):function
    • updateFYTApprovalOf(address)(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • _amm: string
      • 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 AMMRouter

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

    • signerOrProvider: string | Signer | Provider

    Returns AMMRouter

  • Returns Promise<AMMRouter>

  • 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?: CallOverrides): Promise<BigNumber>
  • Parameters

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

    Returns Promise<BigNumber>

  • 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(_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)(_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(_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[])(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: CallOverrides): Promise<BigNumber>
  • Parameters

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

    Returns Promise<BigNumber>

  • hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise<boolean>
  • Parameters

    • role: BytesLike
    • account: string
    • Optional overrides: CallOverrides

    Returns Promise<boolean>

  • hasRole(bytes32,address)(role: BytesLike, account: string, overrides?: CallOverrides): Promise<boolean>
  • Parameters

    • role: BytesLike
    • account: string
    • Optional overrides: CallOverrides

    Returns Promise<boolean>

  • initialize(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • _registry: string
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

  • initialize(address)(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • _registry: string
    • 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>): AMMRouter
  • off(eventName: string, listener: Listener): AMMRouter
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

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

    Returns AMMRouter

  • Parameters

    • eventName: string
    • listener: Listener

    Returns AMMRouter

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

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

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

    Returns AMMRouter

  • Parameters

    • eventName: string
    • listener: Listener

    Returns AMMRouter

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

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

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

    Returns AMMRouter

  • Parameters

    • eventName: string
    • listener: Listener

    Returns AMMRouter

  • 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>[]>

  • registry(overrides?: CallOverrides): Promise<string>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<string>

  • registry()(overrides?: CallOverrides): Promise<string>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<string>

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

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

    Returns AMMRouter

  • Parameters

    • Optional eventName: string

    Returns AMMRouter

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

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

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

    Returns AMMRouter

  • Parameters

    • eventName: string
    • listener: Listener

    Returns AMMRouter

  • setRegistry(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • _registry: string
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

  • setRegistry(address)(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • _registry: string
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

  • 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>

  • updateAllTokenApprovalOf(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • _amm: string
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

  • updateAllTokenApprovalOf(address)(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • _amm: string
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

  • updateFYTApprovalOf(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • _amm: string
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

  • updateFYTApprovalOf(address)(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • _amm: string
    • 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 1/8/2023