Properties
_deployedPromise
_deployedPromise: Promise<Contract>
_runningEvents
_runningEvents: {}
Type declaration
[eventTag: string]: RunningEvent
_wrappedEmits
_wrappedEmits: {}
Type declaration
[eventTag: string]: (...args: any[]) => void
Readonly address
address: string
callStatic
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>
Readonly deployTransaction
deployTransaction: TransactionResponse
estimateGas
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
filters: { RegistrySet: any; RoleGranted: any; TokenApproved: any }
Type declaration
RegistrySet:function
- RegistrySet(_registry: null): TypedEventFilter<[string], { _registry: string }>
Parameters
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
Returns TypedEventFilter<[string, string], { _amm: string; _token: string }>
functions
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
interface: AMMRouterInterface
populateTransaction
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>
Readonly provider
provider: Provider
Readonly resolvedAddress
resolvedAddress: Promise<string>
Readonly signer
signer: Signer