/* 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 {
  ImplementationUpdatingTarget,
  ImplementationUpdatingTargetInterface,
} from "../../../contracts/test/ImplementationUpdatingTarget";

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

const _bytecode =
  "0x608060405234801561001057600080fd5b5061001a3061001f565b6100ac565b6001600160a01b03811661003f6000805160206104d58339815191525490565b6001600160a01b0316141561009a5760405162461bcd60e51b815260206004820152601f60248201527f496d706c656d656e746174696f6e20616c7265616479206d61746368696e6700604482015260640160405180910390fd5b6000805160206104d583398151915255565b61041a806100bb6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063025b22bc146100465780635c60da1b1461005b578063c4d66de8146100a6575b600080fd5b6100596100543660046103cc565b6100b9565b005b7ff86c915dad5894faca0dfa067c58fdf4307406d255ed0a65db394f82b77f53d45460405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6100596100b43660046103cc565b6100c5565b6100c2816102c9565b50565b60006100ef7ff86c915dad5894faca0dfa067c58fdf4307406d255ed0a65db394f82b77f53d45490565b73ffffffffffffffffffffffffffffffffffffffff1614610197576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f43616e206f6e6c792062652063616c6c656420647572696e6720696e6974696160448201527f6c697a6174696f6e00000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156101df57600080fd5b505afa1580156101f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021791906103f0565b905073ffffffffffffffffffffffffffffffffffffffff81166102bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f696e697469616c697a6174696f6e206661696c7572653a206e6f7468696e672060448201527f746f20696d706c656d656e740000000000000000000000000000000000000000606482015260840161018e565b6102c5816102c9565b5050565b8073ffffffffffffffffffffffffffffffffffffffff166103087ff86c915dad5894faca0dfa067c58fdf4307406d255ed0a65db394f82b77f53d45490565b73ffffffffffffffffffffffffffffffffffffffff161415610386576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f496d706c656d656e746174696f6e20616c7265616479206d61746368696e6700604482015260640161018e565b7ff86c915dad5894faca0dfa067c58fdf4307406d255ed0a65db394f82b77f53d455565b73ffffffffffffffffffffffffffffffffffffffff811681146100c257600080fd5b6000602082840312156103de57600080fd5b81356103e9816103aa565b9392505050565b60006020828403121561040257600080fd5b81516103e9816103aa56fea164736f6c6343000809000af86c915dad5894faca0dfa067c58fdf4307406d255ed0a65db394f82b77f53d4";

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

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

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

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

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