2020-06-03 10:23:21 +00:00
|
|
|
/* Generated by ts-generator ver. 0.0.8 */
|
|
|
|
/* tslint:disable */
|
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
|
|
|
|
import { Listener, Provider } from "ethers/providers";
|
|
|
|
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
|
|
|
|
import {
|
|
|
|
TransactionOverrides,
|
|
|
|
TypedEventDescription,
|
|
|
|
TypedFunctionDescription
|
|
|
|
} from ".";
|
2020-06-03 10:23:21 +00:00
|
|
|
|
|
|
|
interface MockFlashLoanReceiverInterface extends Interface {
|
|
|
|
functions: {
|
2020-08-07 17:29:13 +00:00
|
|
|
addressesProvider: TypedFunctionDescription<{ encode([]: []): string }>;
|
2020-06-03 10:23:21 +00:00
|
|
|
|
|
|
|
executeOperation: TypedFunctionDescription<{
|
2020-07-23 15:18:06 +00:00
|
|
|
encode([_reserve, _destination, _amount, _fee, _params]: [
|
|
|
|
string,
|
2020-06-03 10:23:21 +00:00
|
|
|
string,
|
|
|
|
BigNumberish,
|
|
|
|
BigNumberish,
|
|
|
|
Arrayish
|
|
|
|
]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
setFailExecutionTransfer: TypedFunctionDescription<{
|
|
|
|
encode([_fail]: [boolean]): string;
|
|
|
|
}>;
|
|
|
|
};
|
|
|
|
|
|
|
|
events: {
|
|
|
|
ExecutedWithFail: TypedEventDescription<{
|
|
|
|
encodeTopics([_reserve, _amount, _fee]: [null, null, null]): string[];
|
|
|
|
}>;
|
|
|
|
|
|
|
|
ExecutedWithSuccess: TypedEventDescription<{
|
|
|
|
encodeTopics([_reserve, _amount, _fee]: [null, null, null]): string[];
|
|
|
|
}>;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export class MockFlashLoanReceiver extends Contract {
|
|
|
|
connect(signerOrProvider: Signer | Provider | string): MockFlashLoanReceiver;
|
|
|
|
attach(addressOrName: string): MockFlashLoanReceiver;
|
|
|
|
deployed(): Promise<MockFlashLoanReceiver>;
|
|
|
|
|
|
|
|
on(event: EventFilter | string, listener: Listener): MockFlashLoanReceiver;
|
|
|
|
once(event: EventFilter | string, listener: Listener): MockFlashLoanReceiver;
|
2020-08-07 17:29:13 +00:00
|
|
|
addListener(
|
|
|
|
eventName: EventFilter | string,
|
|
|
|
listener: Listener
|
|
|
|
): MockFlashLoanReceiver;
|
2020-06-03 10:23:21 +00:00
|
|
|
removeAllListeners(eventName: EventFilter | string): MockFlashLoanReceiver;
|
|
|
|
removeListener(eventName: any, listener: Listener): MockFlashLoanReceiver;
|
|
|
|
|
|
|
|
interface: MockFlashLoanReceiverInterface;
|
|
|
|
|
|
|
|
functions: {
|
|
|
|
addressesProvider(): Promise<string>;
|
|
|
|
|
|
|
|
executeOperation(
|
|
|
|
_reserve: string,
|
2020-07-23 15:18:06 +00:00
|
|
|
_destination: string,
|
2020-06-03 10:23:21 +00:00
|
|
|
_amount: BigNumberish,
|
|
|
|
_fee: BigNumberish,
|
|
|
|
_params: Arrayish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
setFailExecutionTransfer(
|
|
|
|
_fail: boolean,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
};
|
|
|
|
|
|
|
|
addressesProvider(): Promise<string>;
|
|
|
|
|
|
|
|
executeOperation(
|
|
|
|
_reserve: string,
|
2020-07-23 15:18:06 +00:00
|
|
|
_destination: string,
|
2020-06-03 10:23:21 +00:00
|
|
|
_amount: BigNumberish,
|
|
|
|
_fee: BigNumberish,
|
|
|
|
_params: Arrayish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
setFailExecutionTransfer(
|
|
|
|
_fail: boolean,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
filters: {
|
|
|
|
ExecutedWithFail(_reserve: null, _amount: null, _fee: null): EventFilter;
|
|
|
|
|
|
|
|
ExecutedWithSuccess(_reserve: null, _amount: null, _fee: null): EventFilter;
|
|
|
|
};
|
|
|
|
|
|
|
|
estimate: {
|
|
|
|
addressesProvider(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
executeOperation(
|
|
|
|
_reserve: string,
|
2020-07-23 15:18:06 +00:00
|
|
|
_destination: string,
|
2020-06-03 10:23:21 +00:00
|
|
|
_amount: BigNumberish,
|
|
|
|
_fee: BigNumberish,
|
|
|
|
_params: Arrayish
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
|
|
|
setFailExecutionTransfer(_fail: boolean): Promise<BigNumber>;
|
|
|
|
};
|
|
|
|
}
|