/* 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 {
  LimitOrderPluginImplementation,
  LimitOrderPluginImplementationInterface,
} from "../../contracts/LimitOrderPluginImplementation";

const _abi = [
  {
    inputs: [],
    name: "getLimitOrderManager",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "limitOrderManager",
        type: "address",
      },
    ],
    name: "initializeLimitOrder",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "manager",
        type: "address",
      },
    ],
    name: "setLimitOrderManager",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "pool",
        type: "address",
      },
      {
        internalType: "bool",
        name: "zeroToOne",
        type: "bool",
      },
      {
        internalType: "int24",
        name: "tick",
        type: "int24",
      },
    ],
    name: "updateLimitOrderManagerState",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

const _bytecode =
  "0x608060405234801561001057600080fd5b506102aa806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80635235d1ef14610051578063794b758c146100c75780637a2f0c3f146100da578063c1666bce14610051575b600080fd5b6100c561005f366004610226565b7ff48a92d70adb2fd6c583ec595b4e4d7cf541958365597357ba32f5bc164b630080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b005b6100c56100d5366004610248565b610125565b7ff48a92d70adb2fd6c583ec595b4e4d7cf541958365597357ba32f5bc164b6300546040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b7ff48a92d70adb2fd6c583ec595b4e4d7cf541958365597357ba32f5bc164b63005473ffffffffffffffffffffffffffffffffffffffff1680156101f7576040517f7e13940a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301528415156024830152600284900b6044830152821690637e13940a90606401600060405180830381600087803b1580156101de57600080fd5b505af11580156101f2573d6000803e3d6000fd5b505050505b50505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461022157600080fd5b919050565b60006020828403121561023857600080fd5b610241826101fd565b9392505050565b60008060006060848603121561025d57600080fd5b610266846101fd565b92506020840135801515811461027b57600080fd5b91506040840135600281900b811461029257600080fd5b80915050925092509256fea164736f6c6343000814000a";

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

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

export class LimitOrderPluginImplementation__factory extends ContractFactory {
  constructor(...args: LimitOrderPluginImplementationConstructorParams) {
    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<
      LimitOrderPluginImplementation & {
        deploymentTransaction(): ContractTransactionResponse;
      }
    >;
  }
  override connect(
    runner: ContractRunner | null
  ): LimitOrderPluginImplementation__factory {
    return super.connect(runner) as LimitOrderPluginImplementation__factory;
  }

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