/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
} from "ethers";
import {
  Contract,
  ContractTransaction,
  Overrides,
  PayableOverrides,
  CallOverrides,
} from "@ethersproject/contracts";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";

interface TestCallsInterface extends ethers.utils.Interface {
  functions: {
    "lastMsgValue()": FunctionFragment;
    "nonPayable()": FunctionFragment;
    "uint1()": FunctionFragment;
    "lastMsgDataLength()": FunctionFragment;
    "byteArray1()": FunctionFragment;
    "receive2uints(uint256,uint256)": FunctionFragment;
    "receive1bytes(bytes)": FunctionFragment;
    "uint2()": FunctionFragment;
    "receive1uint(uint256)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "lastMsgValue",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "nonPayable",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "uint1", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "lastMsgDataLength",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "byteArray1",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "receive2uints",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "receive1bytes",
    values: [BytesLike]
  ): string;
  encodeFunctionData(functionFragment: "uint2", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "receive1uint",
    values: [BigNumberish]
  ): string;

  decodeFunctionResult(
    functionFragment: "lastMsgValue",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "nonPayable", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "uint1", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "lastMsgDataLength",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "byteArray1", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "receive2uints",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "receive1bytes",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "uint2", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "receive1uint",
    data: BytesLike
  ): Result;

  events: {};
}

export class TestCalls extends Contract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  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: TestCallsInterface;

  functions: {
    lastMsgValue(
      overrides?: CallOverrides
    ): Promise<{
      0: BigNumber;
    }>;

    "lastMsgValue()"(
      overrides?: CallOverrides
    ): Promise<{
      0: BigNumber;
    }>;

    nonPayable(overrides?: Overrides): Promise<ContractTransaction>;

    "nonPayable()"(overrides?: Overrides): Promise<ContractTransaction>;

    uint1(
      overrides?: CallOverrides
    ): Promise<{
      0: BigNumber;
    }>;

    "uint1()"(
      overrides?: CallOverrides
    ): Promise<{
      0: BigNumber;
    }>;

    lastMsgDataLength(
      overrides?: CallOverrides
    ): Promise<{
      0: BigNumber;
    }>;

    "lastMsgDataLength()"(
      overrides?: CallOverrides
    ): Promise<{
      0: BigNumber;
    }>;

    byteArray1(
      overrides?: CallOverrides
    ): Promise<{
      0: string;
    }>;

    "byteArray1()"(
      overrides?: CallOverrides
    ): Promise<{
      0: string;
    }>;

    receive2uints(
      a: BigNumberish,
      b: BigNumberish,
      overrides?: PayableOverrides
    ): Promise<ContractTransaction>;

    "receive2uints(uint256,uint256)"(
      a: BigNumberish,
      b: BigNumberish,
      overrides?: PayableOverrides
    ): Promise<ContractTransaction>;

    receive1bytes(
      c: BytesLike,
      overrides?: PayableOverrides
    ): Promise<ContractTransaction>;

    "receive1bytes(bytes)"(
      c: BytesLike,
      overrides?: PayableOverrides
    ): Promise<ContractTransaction>;

    uint2(
      overrides?: CallOverrides
    ): Promise<{
      0: BigNumber;
    }>;

    "uint2()"(
      overrides?: CallOverrides
    ): Promise<{
      0: BigNumber;
    }>;

    receive1uint(
      a: BigNumberish,
      overrides?: PayableOverrides
    ): Promise<ContractTransaction>;

    "receive1uint(uint256)"(
      a: BigNumberish,
      overrides?: PayableOverrides
    ): Promise<ContractTransaction>;
  };

  lastMsgValue(overrides?: CallOverrides): Promise<BigNumber>;

  "lastMsgValue()"(overrides?: CallOverrides): Promise<BigNumber>;

  nonPayable(overrides?: Overrides): Promise<ContractTransaction>;

  "nonPayable()"(overrides?: Overrides): Promise<ContractTransaction>;

  uint1(overrides?: CallOverrides): Promise<BigNumber>;

  "uint1()"(overrides?: CallOverrides): Promise<BigNumber>;

  lastMsgDataLength(overrides?: CallOverrides): Promise<BigNumber>;

  "lastMsgDataLength()"(overrides?: CallOverrides): Promise<BigNumber>;

  byteArray1(overrides?: CallOverrides): Promise<string>;

  "byteArray1()"(overrides?: CallOverrides): Promise<string>;

  receive2uints(
    a: BigNumberish,
    b: BigNumberish,
    overrides?: PayableOverrides
  ): Promise<ContractTransaction>;

  "receive2uints(uint256,uint256)"(
    a: BigNumberish,
    b: BigNumberish,
    overrides?: PayableOverrides
  ): Promise<ContractTransaction>;

  receive1bytes(
    c: BytesLike,
    overrides?: PayableOverrides
  ): Promise<ContractTransaction>;

  "receive1bytes(bytes)"(
    c: BytesLike,
    overrides?: PayableOverrides
  ): Promise<ContractTransaction>;

  uint2(overrides?: CallOverrides): Promise<BigNumber>;

  "uint2()"(overrides?: CallOverrides): Promise<BigNumber>;

  receive1uint(
    a: BigNumberish,
    overrides?: PayableOverrides
  ): Promise<ContractTransaction>;

  "receive1uint(uint256)"(
    a: BigNumberish,
    overrides?: PayableOverrides
  ): Promise<ContractTransaction>;

  callStatic: {
    lastMsgValue(overrides?: CallOverrides): Promise<BigNumber>;

    "lastMsgValue()"(overrides?: CallOverrides): Promise<BigNumber>;

    nonPayable(overrides?: CallOverrides): Promise<void>;

    "nonPayable()"(overrides?: CallOverrides): Promise<void>;

    uint1(overrides?: CallOverrides): Promise<BigNumber>;

    "uint1()"(overrides?: CallOverrides): Promise<BigNumber>;

    lastMsgDataLength(overrides?: CallOverrides): Promise<BigNumber>;

    "lastMsgDataLength()"(overrides?: CallOverrides): Promise<BigNumber>;

    byteArray1(overrides?: CallOverrides): Promise<string>;

    "byteArray1()"(overrides?: CallOverrides): Promise<string>;

    receive2uints(
      a: BigNumberish,
      b: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    "receive2uints(uint256,uint256)"(
      a: BigNumberish,
      b: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    receive1bytes(c: BytesLike, overrides?: CallOverrides): Promise<void>;

    "receive1bytes(bytes)"(
      c: BytesLike,
      overrides?: CallOverrides
    ): Promise<void>;

    uint2(overrides?: CallOverrides): Promise<BigNumber>;

    "uint2()"(overrides?: CallOverrides): Promise<BigNumber>;

    receive1uint(a: BigNumberish, overrides?: CallOverrides): Promise<void>;

    "receive1uint(uint256)"(
      a: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;
  };

  filters: {};

  estimateGas: {
    lastMsgValue(overrides?: CallOverrides): Promise<BigNumber>;

    "lastMsgValue()"(overrides?: CallOverrides): Promise<BigNumber>;

    nonPayable(overrides?: Overrides): Promise<BigNumber>;

    "nonPayable()"(overrides?: Overrides): Promise<BigNumber>;

    uint1(overrides?: CallOverrides): Promise<BigNumber>;

    "uint1()"(overrides?: CallOverrides): Promise<BigNumber>;

    lastMsgDataLength(overrides?: CallOverrides): Promise<BigNumber>;

    "lastMsgDataLength()"(overrides?: CallOverrides): Promise<BigNumber>;

    byteArray1(overrides?: CallOverrides): Promise<BigNumber>;

    "byteArray1()"(overrides?: CallOverrides): Promise<BigNumber>;

    receive2uints(
      a: BigNumberish,
      b: BigNumberish,
      overrides?: PayableOverrides
    ): Promise<BigNumber>;

    "receive2uints(uint256,uint256)"(
      a: BigNumberish,
      b: BigNumberish,
      overrides?: PayableOverrides
    ): Promise<BigNumber>;

    receive1bytes(
      c: BytesLike,
      overrides?: PayableOverrides
    ): Promise<BigNumber>;

    "receive1bytes(bytes)"(
      c: BytesLike,
      overrides?: PayableOverrides
    ): Promise<BigNumber>;

    uint2(overrides?: CallOverrides): Promise<BigNumber>;

    "uint2()"(overrides?: CallOverrides): Promise<BigNumber>;

    receive1uint(
      a: BigNumberish,
      overrides?: PayableOverrides
    ): Promise<BigNumber>;

    "receive1uint(uint256)"(
      a: BigNumberish,
      overrides?: PayableOverrides
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    lastMsgValue(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    "lastMsgValue()"(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    nonPayable(overrides?: Overrides): Promise<PopulatedTransaction>;

    "nonPayable()"(overrides?: Overrides): Promise<PopulatedTransaction>;

    uint1(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    "uint1()"(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    lastMsgDataLength(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    "lastMsgDataLength()"(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    byteArray1(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    "byteArray1()"(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    receive2uints(
      a: BigNumberish,
      b: BigNumberish,
      overrides?: PayableOverrides
    ): Promise<PopulatedTransaction>;

    "receive2uints(uint256,uint256)"(
      a: BigNumberish,
      b: BigNumberish,
      overrides?: PayableOverrides
    ): Promise<PopulatedTransaction>;

    receive1bytes(
      c: BytesLike,
      overrides?: PayableOverrides
    ): Promise<PopulatedTransaction>;

    "receive1bytes(bytes)"(
      c: BytesLike,
      overrides?: PayableOverrides
    ): Promise<PopulatedTransaction>;

    uint2(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    "uint2()"(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    receive1uint(
      a: BigNumberish,
      overrides?: PayableOverrides
    ): Promise<PopulatedTransaction>;

    "receive1uint(uint256)"(
      a: BigNumberish,
      overrides?: PayableOverrides
    ): Promise<PopulatedTransaction>;
  };
}
