/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumberish,
  BytesLike,
  FunctionFragment,
  Result,
  Interface,
  AddressLike,
  ContractRunner,
  ContractMethod,
  Listener,
} from "ethers";
import type {
  TypedContractEvent,
  TypedDeferredTopicFilter,
  TypedEventLog,
  TypedListener,
  TypedContractMethod,
} from "../../../common";

export interface AavePoolMockInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "flashLoanSimple"
      | "flashLoanSimpleWasCalled"
      | "setShouldExecuteCallback"
      | "shouldExecuteCallback"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "flashLoanSimple",
    values: [AddressLike, AddressLike, BigNumberish, BytesLike, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "flashLoanSimpleWasCalled",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "setShouldExecuteCallback",
    values: [boolean]
  ): string;
  encodeFunctionData(
    functionFragment: "shouldExecuteCallback",
    values?: undefined
  ): string;

  decodeFunctionResult(
    functionFragment: "flashLoanSimple",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "flashLoanSimpleWasCalled",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setShouldExecuteCallback",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "shouldExecuteCallback",
    data: BytesLike
  ): Result;
}

export interface AavePoolMock extends BaseContract {
  connect(runner?: ContractRunner | null): AavePoolMock;
  waitForDeployment(): Promise<this>;

  interface: AavePoolMockInterface;

  queryFilter<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEventLog<TCEvent>>>;
  queryFilter<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEventLog<TCEvent>>>;

  on<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    listener: TypedListener<TCEvent>
  ): Promise<this>;
  on<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    listener: TypedListener<TCEvent>
  ): Promise<this>;

  once<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    listener: TypedListener<TCEvent>
  ): Promise<this>;
  once<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    listener: TypedListener<TCEvent>
  ): Promise<this>;

  listeners<TCEvent extends TypedContractEvent>(
    event: TCEvent
  ): Promise<Array<TypedListener<TCEvent>>>;
  listeners(eventName?: string): Promise<Array<Listener>>;
  removeAllListeners<TCEvent extends TypedContractEvent>(
    event?: TCEvent
  ): Promise<this>;

  flashLoanSimple: TypedContractMethod<
    [
      receiverAddress: AddressLike,
      asset: AddressLike,
      amount: BigNumberish,
      params: BytesLike,
      referralCode: BigNumberish
    ],
    [boolean],
    "nonpayable"
  >;

  flashLoanSimpleWasCalled: TypedContractMethod<[], [boolean], "view">;

  setShouldExecuteCallback: TypedContractMethod<
    [shouldExecute: boolean],
    [void],
    "nonpayable"
  >;

  shouldExecuteCallback: TypedContractMethod<[], [boolean], "view">;

  getFunction<T extends ContractMethod = ContractMethod>(
    key: string | FunctionFragment
  ): T;

  getFunction(
    nameOrSignature: "flashLoanSimple"
  ): TypedContractMethod<
    [
      receiverAddress: AddressLike,
      asset: AddressLike,
      amount: BigNumberish,
      params: BytesLike,
      referralCode: BigNumberish
    ],
    [boolean],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "flashLoanSimpleWasCalled"
  ): TypedContractMethod<[], [boolean], "view">;
  getFunction(
    nameOrSignature: "setShouldExecuteCallback"
  ): TypedContractMethod<[shouldExecute: boolean], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "shouldExecuteCallback"
  ): TypedContractMethod<[], [boolean], "view">;

  filters: {};
}
