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

import { Contract, Interface, type ContractRunner } from "ethers";
import type {
  IMarketLiquidityRewards,
  IMarketLiquidityRewardsInterface,
} from "../../../contracts/interfaces/IMarketLiquidityRewards";

const _abi = [
  {
    inputs: [
      {
        components: [
          {
            internalType: "address",
            name: "allocator",
            type: "address",
          },
          {
            internalType: "address",
            name: "rewardTokenAddress",
            type: "address",
          },
          {
            internalType: "uint256",
            name: "rewardTokenAmount",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "marketId",
            type: "uint256",
          },
          {
            internalType: "address",
            name: "requiredPrincipalTokenAddress",
            type: "address",
          },
          {
            internalType: "address",
            name: "requiredCollateralTokenAddress",
            type: "address",
          },
          {
            internalType: "uint256",
            name: "minimumCollateralPerPrincipalAmount",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "rewardPerLoanPrincipalAmount",
            type: "uint256",
          },
          {
            internalType: "uint32",
            name: "bidStartTimeMin",
            type: "uint32",
          },
          {
            internalType: "uint32",
            name: "bidStartTimeMax",
            type: "uint32",
          },
          {
            internalType: "enum IMarketLiquidityRewards.AllocationStrategy",
            name: "allocationStrategy",
            type: "uint8",
          },
        ],
        internalType: "struct IMarketLiquidityRewards.RewardAllocation",
        name: "_allocation",
        type: "tuple",
      },
    ],
    name: "allocateRewards",
    outputs: [
      {
        internalType: "uint256",
        name: "allocationId_",
        type: "uint256",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_allocationId",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_bidId",
        type: "uint256",
      },
    ],
    name: "claimRewards",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_allocationId",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_amount",
        type: "uint256",
      },
    ],
    name: "deallocateRewards",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_allocationId",
        type: "uint256",
      },
    ],
    name: "getRewardTokenAmount",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_allocationId",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_tokenAmount",
        type: "uint256",
      },
    ],
    name: "increaseAllocationAmount",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [],
    name: "initialize",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "_bidId",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "_allocationId",
        type: "uint256",
      },
    ],
    name: "rewardClaimedForBid",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
] as const;

export class IMarketLiquidityRewards__factory {
  static readonly abi = _abi;
  static createInterface(): IMarketLiquidityRewardsInterface {
    return new Interface(_abi) as IMarketLiquidityRewardsInterface;
  }
  static connect(
    address: string,
    runner?: ContractRunner | null
  ): IMarketLiquidityRewards {
    return new Contract(
      address,
      _abi,
      runner
    ) as unknown as IMarketLiquidityRewards;
  }
}
