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

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

const _abi = [
  {
    type: "function",
    name: "claim",
    inputs: [
      {
        name: "_claim",
        type: "tuple",
        internalType: "struct MerkleDistributorInterface.Claim",
        components: [
          {
            name: "windowIndex",
            type: "uint256",
            internalType: "uint256",
          },
          {
            name: "amount",
            type: "uint256",
            internalType: "uint256",
          },
          {
            name: "accountIndex",
            type: "uint256",
            internalType: "uint256",
          },
          {
            name: "account",
            type: "address",
            internalType: "address",
          },
          {
            name: "merkleProof",
            type: "bytes32[]",
            internalType: "bytes32[]",
          },
        ],
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "claimMulti",
    inputs: [
      {
        name: "claims",
        type: "tuple[]",
        internalType: "struct MerkleDistributorInterface.Claim[]",
        components: [
          {
            name: "windowIndex",
            type: "uint256",
            internalType: "uint256",
          },
          {
            name: "amount",
            type: "uint256",
            internalType: "uint256",
          },
          {
            name: "accountIndex",
            type: "uint256",
            internalType: "uint256",
          },
          {
            name: "account",
            type: "address",
            internalType: "address",
          },
          {
            name: "merkleProof",
            type: "bytes32[]",
            internalType: "bytes32[]",
          },
        ],
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "getRewardTokenForWindow",
    inputs: [
      {
        name: "windowIndex",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
] as const;

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