/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
  Contract,
  ContractFactory,
  ContractTransactionResponse,
  Interface,
} from "ethers";
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
import type { NonPayableOverrides } from "../../../common";
import type {
  MockPluginFactory,
  MockPluginFactoryInterface,
} from "../../../contracts/test/MockPluginFactory";

const _abi = [
  {
    inputs: [],
    name: "limitOrderManager",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_limitOrderManager",
        type: "address",
      },
    ],
    name: "setLimitOrderManager",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

const _bytecode =
  "0x608060405234801561001057600080fd5b50610125806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806348566a331461003b5780635235d1ef14610084575b600080fd5b60005461005b9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6100d96100923660046100db565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b005b6000602082840312156100ed57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461011157600080fd5b939250505056fea164736f6c6343000814000a";

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

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

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

  override getDeployTransaction(
    overrides?: NonPayableOverrides & { from?: string }
  ): Promise<ContractDeployTransaction> {
    return super.getDeployTransaction(overrides || {});
  }
  override deploy(overrides?: NonPayableOverrides & { from?: string }) {
    return super.deploy(overrides || {}) as Promise<
      MockPluginFactory & {
        deploymentTransaction(): ContractTransactionResponse;
      }
    >;
  }
  override connect(runner: ContractRunner | null): MockPluginFactory__factory {
    return super.connect(runner) as MockPluginFactory__factory;
  }

  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): MockPluginFactoryInterface {
    return new Interface(_abi) as MockPluginFactoryInterface;
  }
  static connect(
    address: string,
    runner?: ContractRunner | null
  ): MockPluginFactory {
    return new Contract(address, _abi, runner) as unknown as MockPluginFactory;
  }
}
