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

const _abi = [
  {
    inputs: [],
    name: "implementation",
    outputs: [
      {
        internalType: "address",
        name: "_impl",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    name: "initialize",
    outputs: [],
    stateMutability: "view",
    type: "function",
  },
];

const _bytecode =
  "0x608060405234801561001057600080fd5b5061001a3061001f565b6100ac565b6001600160a01b03811661003f6000805160206102d48339815191525490565b6001600160a01b0316141561009a5760405162461bcd60e51b815260206004820152601f60248201527f496d706c656d656e746174696f6e20616c7265616479206d61746368696e6700604482015260640160405180910390fd5b6000805160206102d483398151915255565b610219806100bb6000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80635c60da1b1461003b578063c4d66de814610086575b600080fd5b7ff86c915dad5894faca0dfa067c58fdf4307406d255ed0a65db394f82b77f53d45460405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6100996100943660046101cf565b61009b565b005b60006100c57ff86c915dad5894faca0dfa067c58fdf4307406d255ed0a65db394f82b77f53d45490565b73ffffffffffffffffffffffffffffffffffffffff161461016d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f43616e206f6e6c792062652063616c6c656420647572696e6720696e6974696160448201527f6c697a6174696f6e00000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f6661696c696e672061732069742073686f756c640000000000000000000000006044820152606401610164565b6000602082840312156101e157600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461020557600080fd5b939250505056fea164736f6c6343000809000af86c915dad5894faca0dfa067c58fdf4307406d255ed0a65db394f82b77f53d4";

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

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

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

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

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