/* 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 {
  Wrapper,
  WrapperInterface,
} from "../../../../contracts/test/wrapperUpgrades.sol/Wrapper";

const _abi = [
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "uint256",
        name: "index",
        type: "uint256",
      },
    ],
    name: "HereIAm",
    type: "event",
  },
  {
    inputs: [],
    name: "whoAmI",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
];

const _bytecode =
  "0x608060405234801561001057600080fd5b5060938061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063da91254c14602d575b600080fd5b60336045565b60405190815260200160405180910390f35b60007fd31ecd358c7d51f13c5803c486136aef0ee58f281f346d6130920a1d32babdbf6001604051607891815260200190565b60405180910390a15060019056fea164736f6c6343000809000a";

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

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

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

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

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