/* 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 {
  ForwardProxy,
  ForwardProxyInterface,
} from "../../../contracts/proxy/ForwardProxy";

const _abi = [
  {
    inputs: [
      {
        internalType: "contract ForwardTarget",
        name: "_impl",
        type: "address",
      },
    ],
    stateMutability: "nonpayable",
    type: "constructor",
  },
  {
    stateMutability: "payable",
    type: "fallback",
  },
];

const _bytecode =
  "0x608060405234801561001057600080fd5b5060405161020a38038061020a83398101604081905261002f9161013c565b604080516001600160a01b038316602480830182905283518084039091018152604490920183526020820180516001600160e01b031663189acdbd60e31b17905291516000929161007f9161016c565b600060405180830381855af49150503d80600081146100ba576040519150601f19603f3d011682016040523d82523d6000602084013e6100bf565b606091505b50509050806101145760405162461bcd60e51b815260206004820152601660248201527f696e697469616c697a652063616c6c206661696c656400000000000000000000604482015260640160405180910390fd5b507ff86c915dad5894faca0dfa067c58fdf4307406d255ed0a65db394f82b77f53d4556101a7565b60006020828403121561014e57600080fd5b81516001600160a01b038116811461016557600080fd5b9392505050565b6000825160005b8181101561018d5760208186018101518583015201610173565b8181111561019c576000828501525b509190910192915050565b6055806101b56000396000f3fe608060405236600080376000803660007ff86c915dad5894faca0dfa067c58fdf4307406d255ed0a65db394f82b77f53d4545af43d806000803e8115604357806000f35b806000fdfea164736f6c6343000809000a";

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

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

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

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

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