/* Generated by ts-generator ver. 0.0.8 */ /* tslint:disable */ import {ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction} from 'ethers'; import {Contract, ContractTransaction, Overrides, CallOverrides} from '@ethersproject/contracts'; import {BytesLike} from '@ethersproject/bytes'; import {Listener, Provider} from '@ethersproject/providers'; import {FunctionFragment, EventFragment, Result} from '@ethersproject/abi'; interface IExchangeAdapterInterface extends ethers.utils.Interface { functions: { 'approveExchange(address[])': FunctionFragment; 'exchange(address,address,uint256,uint256)': FunctionFragment; }; encodeFunctionData(functionFragment: 'approveExchange', values: [string[]]): string; encodeFunctionData( functionFragment: 'exchange', values: [string, string, BigNumberish, BigNumberish] ): string; decodeFunctionResult(functionFragment: 'approveExchange', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'exchange', data: BytesLike): Result; events: { 'Exchange(address,address,address,uint256,uint256)': EventFragment; }; getEvent(nameOrSignatureOrTopic: 'Exchange'): EventFragment; } export class IExchangeAdapter extends Contract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; on(event: EventFilter | string, listener: Listener): this; once(event: EventFilter | string, listener: Listener): this; addListener(eventName: EventFilter | string, listener: Listener): this; removeAllListeners(eventName: EventFilter | string): this; removeListener(eventName: any, listener: Listener): this; interface: IExchangeAdapterInterface; functions: { approveExchange(_tokens: string[], overrides?: Overrides): Promise; 'approveExchange(address[])'( _tokens: string[], overrides?: Overrides ): Promise; exchange( _from: string, _to: string, _amount: BigNumberish, _maxSlippage: BigNumberish, overrides?: Overrides ): Promise; 'exchange(address,address,uint256,uint256)'( _from: string, _to: string, _amount: BigNumberish, _maxSlippage: BigNumberish, overrides?: Overrides ): Promise; }; approveExchange(_tokens: string[], overrides?: Overrides): Promise; 'approveExchange(address[])'( _tokens: string[], overrides?: Overrides ): Promise; exchange( _from: string, _to: string, _amount: BigNumberish, _maxSlippage: BigNumberish, overrides?: Overrides ): Promise; 'exchange(address,address,uint256,uint256)'( _from: string, _to: string, _amount: BigNumberish, _maxSlippage: BigNumberish, overrides?: Overrides ): Promise; callStatic: { approveExchange(_tokens: string[], overrides?: CallOverrides): Promise; 'approveExchange(address[])'(_tokens: string[], overrides?: CallOverrides): Promise; exchange( _from: string, _to: string, _amount: BigNumberish, _maxSlippage: BigNumberish, overrides?: CallOverrides ): Promise; 'exchange(address,address,uint256,uint256)'( _from: string, _to: string, _amount: BigNumberish, _maxSlippage: BigNumberish, overrides?: CallOverrides ): Promise; }; filters: { Exchange( from: string | null, to: string | null, platform: string | null, fromAmount: null, toAmount: null ): EventFilter; }; estimateGas: { approveExchange(_tokens: string[], overrides?: Overrides): Promise; 'approveExchange(address[])'(_tokens: string[], overrides?: Overrides): Promise; exchange( _from: string, _to: string, _amount: BigNumberish, _maxSlippage: BigNumberish, overrides?: Overrides ): Promise; 'exchange(address,address,uint256,uint256)'( _from: string, _to: string, _amount: BigNumberish, _maxSlippage: BigNumberish, overrides?: Overrides ): Promise; }; populateTransaction: { approveExchange(_tokens: string[], overrides?: Overrides): Promise; 'approveExchange(address[])'( _tokens: string[], overrides?: Overrides ): Promise; exchange( _from: string, _to: string, _amount: BigNumberish, _maxSlippage: BigNumberish, overrides?: Overrides ): Promise; 'exchange(address,address,uint256,uint256)'( _from: string, _to: string, _amount: BigNumberish, _maxSlippage: BigNumberish, overrides?: Overrides ): Promise; }; }