/* Autogenerated file. Do not edit manually. */

/* tslint:disable */

/* eslint-disable */
import type {
  DVNOptions,
  DVNOptionsInterface,
} from "../../../../../../@layerzerolabs/lz-evm-messagelib-v2/contracts/uln/libs/DVNOptions";
import type { PromiseOrValue } from "../../../../../../common";
import type { Provider, TransactionRequest } from "@ethersproject/providers";
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";

const _abi = [
  {
    inputs: [],
    name: "DVN_InvalidDVNIdx",
    type: "error",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "cursor",
        type: "uint256",
      },
    ],
    name: "DVN_InvalidDVNOptions",
    type: "error",
  },
] as const;

const _bytecode =
  "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a3f4cf249084ef2ee5f05a0d64315adf1759729398664cdcedb5a763be39988364736f6c63430008190033";

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

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

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

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

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