/* 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 {
  ProposalNonceTracker,
  ProposalNonceTrackerInterface,
} from "../../../contracts/utils/ProposalNonceTracker";

const _abi = [
  {
    inputs: [],
    name: "getProposalNonce",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "proposalNonce",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
] as const;

const _bytecode =
  "0x6080604052348015600f57600080fd5b50608b8061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c80630b27fb9a146037578063cc3c74a114604d575b600080fd5b6000545b60405190815260200160405180910390f35b603b6000548156fea2646970667358221220bdc7b9054511bbffcab2a3332827ab2910ff48eb17338d70b52df4e64426427264736f6c63430008120033";

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

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

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

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

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