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

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 =
  "0x608060405234801561001057600080fd5b5060938061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063da91254c14602d575b600080fd5b60336045565b60405190815260200160405180910390f35b60007fd31ecd358c7d51f13c5803c486136aef0ee58f281f346d6130920a1d32babdbf6002604051607891815260200190565b60405180910390a15060029056fea164736f6c6343000809000a";

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

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

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

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

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