/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-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 TestingInterface extends ethers.utils.Interface {
  functions: {
    "get_number()": FunctionFragment;
    "set_number(uint256)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "get_number",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "set_number",
    values: [BigNumberish]
  ): string;

  decodeFunctionResult(functionFragment: "get_number", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "set_number", data: BytesLike): Result;

  events: {};
}

export class Testing 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: TestingInterface;

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

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

    set_number(
      number: BigNumberish,
      overrides?: Overrides
    ): Promise<ContractTransaction>;

    "set_number(uint256)"(
      number: BigNumberish,
      overrides?: Overrides
    ): Promise<ContractTransaction>;
  };

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

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

  set_number(
    number: BigNumberish,
    overrides?: Overrides
  ): Promise<ContractTransaction>;

  "set_number(uint256)"(
    number: BigNumberish,
    overrides?: Overrides
  ): Promise<ContractTransaction>;

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

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

    set_number(number: BigNumberish, overrides?: CallOverrides): Promise<void>;

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

  filters: {};

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

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

    set_number(number: BigNumberish, overrides?: Overrides): Promise<BigNumber>;

    "set_number(uint256)"(
      number: BigNumberish,
      overrides?: Overrides
    ): Promise<BigNumber>;
  };

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

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

    set_number(
      number: BigNumberish,
      overrides?: Overrides
    ): Promise<PopulatedTransaction>;

    "set_number(uint256)"(
      number: BigNumberish,
      overrides?: Overrides
    ): Promise<PopulatedTransaction>;
  };
}
