/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
  Signer,
  utils,
  Contract,
  ContractFactory,
  BigNumberish,
  Overrides,
} from "ethers";
import type { Provider, TransactionRequest } from "@ethersproject/providers";
import type { PromiseOrValue } from "../../../../common";
import type {
  Empty,
  EmptyInterface,
} from "../../../../contracts/test/Backdoor.sol/Empty";

const _abi = [
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_number",
        type: "uint256",
      },
    ],
    stateMutability: "nonpayable",
    type: "constructor",
  },
  {
    inputs: [],
    name: "number",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
];

const _bytecode =
  "0x608060405234801561001057600080fd5b506040516100b23803806100b283398101604081905261002f91610037565b600055610050565b60006020828403121561004957600080fd5b5051919050565b60548061005e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c80638381f58a14602d575b600080fd5b603560005481565b60405190815260200160405180910390f3fea164736f6c6343000809000a";

type EmptyConstructorParams =
  | [signer?: Signer]
  | ConstructorParameters<typeof ContractFactory>;

const isSuperArgs = (
  xs: EmptyConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;

export class Empty__factory extends ContractFactory {
  constructor(...args: EmptyConstructorParams) {
    if (isSuperArgs(args)) {
      super(...args);
    } else {
      super(_abi, _bytecode, args[0]);
    }
  }

  override deploy(
    _number: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<Empty> {
    return super.deploy(_number, overrides || {}) as Promise<Empty>;
  }
  override getDeployTransaction(
    _number: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): TransactionRequest {
    return super.getDeployTransaction(_number, overrides || {});
  }
  override attach(address: string): Empty {
    return super.attach(address) as Empty;
  }
  override connect(signer: Signer): Empty__factory {
    return super.connect(signer) as Empty__factory;
  }

  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): EmptyInterface {
    return new utils.Interface(_abi) as EmptyInterface;
  }
  static connect(address: string, signerOrProvider: Signer | Provider): Empty {
    return new Contract(address, _abi, signerOrProvider) as Empty;
  }
}
