/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
  AddressWhitelistInterface,
  AddressWhitelistInterfaceInterface,
} from "../AddressWhitelistInterface";

const _abi = [
  {
    type: "function",
    name: "addToWhitelist",
    inputs: [
      {
        name: "newElement",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "getWhitelist",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address[]",
        internalType: "address[]",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "isOnWhitelist",
    inputs: [
      {
        name: "newElement",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [
      {
        name: "",
        type: "bool",
        internalType: "bool",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "removeFromWhitelist",
    inputs: [
      {
        name: "newElement",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
] as const;

export class AddressWhitelistInterface__factory {
  static readonly abi = _abi;
  static createInterface(): AddressWhitelistInterfaceInterface {
    return new utils.Interface(_abi) as AddressWhitelistInterfaceInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): AddressWhitelistInterface {
    return new Contract(
      address,
      _abi,
      signerOrProvider
    ) as AddressWhitelistInterface;
  }
}
