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

/* tslint:disable */

/* eslint-disable */
import type { PromiseOrValue } from "../../../common";
import type {
  MockXVSVault,
  MockXVSVaultInterface,
} from "../../../contracts/test/MockXVSVault";
import type { Provider, TransactionRequest } from "@ethersproject/providers";
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";

const _abi = [
  {
    inputs: [
      {
        internalType: "address",
        name: "account",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "blockNumber",
        type: "uint256",
      },
    ],
    name: "getPriorVotes",
    outputs: [
      {
        internalType: "uint96",
        name: "",
        type: "uint96",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
] as const;

const _bytecode =
  "0x6080604052348015600f57600080fd5b5060da80601d6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063782d6fe114602d575b600080fd5b604060383660046061565b600092915050565b6040516bffffffffffffffffffffffff909116815260200160405180910390f35b60008060408385031215607357600080fd5b823573ffffffffffffffffffffffffffffffffffffffff81168114609657600080fd5b94602093909301359350505056fea26469706673582212202f495c0b97bb68858bc09a7e29873a8cf9fa060dd106cca7fff91758fe69d5a864736f6c63430008190033";

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

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

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

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

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