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

import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
  IHorizonStakingBase,
  IHorizonStakingBaseInterface,
} from "../../../../contracts/horizon/internal/IHorizonStakingBase";

const _abi = [
  {
    inputs: [],
    name: "HorizonStakingInvalidThawRequestType",
    type: "error",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "address",
        name: "serviceProvider",
        type: "address",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "tokens",
        type: "uint256",
      },
    ],
    name: "HorizonStakeDeposited",
    type: "event",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "serviceProvider",
        type: "address",
      },
      {
        internalType: "address",
        name: "verifier",
        type: "address",
      },
    ],
    name: "getDelegatedTokensAvailable",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "serviceProvider",
        type: "address",
      },
      {
        internalType: "address",
        name: "verifier",
        type: "address",
      },
      {
        internalType: "address",
        name: "delegator",
        type: "address",
      },
    ],
    name: "getDelegation",
    outputs: [
      {
        components: [
          {
            internalType: "uint256",
            name: "shares",
            type: "uint256",
          },
        ],
        internalType: "struct IHorizonStakingTypes.Delegation",
        name: "",
        type: "tuple",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "serviceProvider",
        type: "address",
      },
      {
        internalType: "address",
        name: "verifier",
        type: "address",
      },
      {
        internalType: "enum IGraphPayments.PaymentTypes",
        name: "paymentType",
        type: "uint8",
      },
    ],
    name: "getDelegationFeeCut",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "serviceProvider",
        type: "address",
      },
      {
        internalType: "address",
        name: "verifier",
        type: "address",
      },
    ],
    name: "getDelegationPool",
    outputs: [
      {
        components: [
          {
            internalType: "uint256",
            name: "tokens",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "shares",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "tokensThawing",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "sharesThawing",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "thawingNonce",
            type: "uint256",
          },
        ],
        internalType: "struct IHorizonStakingTypes.DelegationPool",
        name: "",
        type: "tuple",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "serviceProvider",
        type: "address",
      },
    ],
    name: "getIdleStake",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "getMaxThawingPeriod",
    outputs: [
      {
        internalType: "uint64",
        name: "",
        type: "uint64",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "serviceProvider",
        type: "address",
      },
      {
        internalType: "address",
        name: "verifier",
        type: "address",
      },
    ],
    name: "getProviderTokensAvailable",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "serviceProvider",
        type: "address",
      },
      {
        internalType: "address",
        name: "verifier",
        type: "address",
      },
    ],
    name: "getProvision",
    outputs: [
      {
        components: [
          {
            internalType: "uint256",
            name: "tokens",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "tokensThawing",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "sharesThawing",
            type: "uint256",
          },
          {
            internalType: "uint32",
            name: "maxVerifierCut",
            type: "uint32",
          },
          {
            internalType: "uint64",
            name: "thawingPeriod",
            type: "uint64",
          },
          {
            internalType: "uint64",
            name: "createdAt",
            type: "uint64",
          },
          {
            internalType: "uint32",
            name: "maxVerifierCutPending",
            type: "uint32",
          },
          {
            internalType: "uint64",
            name: "thawingPeriodPending",
            type: "uint64",
          },
          {
            internalType: "uint256",
            name: "lastParametersStagedAt",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "thawingNonce",
            type: "uint256",
          },
        ],
        internalType: "struct IHorizonStakingTypes.Provision",
        name: "",
        type: "tuple",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "serviceProvider",
        type: "address",
      },
    ],
    name: "getServiceProvider",
    outputs: [
      {
        components: [
          {
            internalType: "uint256",
            name: "tokensStaked",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "tokensProvisioned",
            type: "uint256",
          },
        ],
        internalType: "struct IHorizonStakingTypes.ServiceProvider",
        name: "",
        type: "tuple",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "serviceProvider",
        type: "address",
      },
    ],
    name: "getStake",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "enum IHorizonStakingTypes.ThawRequestType",
        name: "thawRequestType",
        type: "uint8",
      },
      {
        internalType: "bytes32",
        name: "thawRequestId",
        type: "bytes32",
      },
    ],
    name: "getThawRequest",
    outputs: [
      {
        components: [
          {
            internalType: "uint256",
            name: "shares",
            type: "uint256",
          },
          {
            internalType: "uint64",
            name: "thawingUntil",
            type: "uint64",
          },
          {
            internalType: "bytes32",
            name: "nextRequest",
            type: "bytes32",
          },
          {
            internalType: "uint256",
            name: "thawingNonce",
            type: "uint256",
          },
        ],
        internalType: "struct IHorizonStakingTypes.ThawRequest",
        name: "",
        type: "tuple",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "enum IHorizonStakingTypes.ThawRequestType",
        name: "thawRequestType",
        type: "uint8",
      },
      {
        internalType: "address",
        name: "serviceProvider",
        type: "address",
      },
      {
        internalType: "address",
        name: "verifier",
        type: "address",
      },
      {
        internalType: "address",
        name: "owner",
        type: "address",
      },
    ],
    name: "getThawRequestList",
    outputs: [
      {
        components: [
          {
            internalType: "bytes32",
            name: "head",
            type: "bytes32",
          },
          {
            internalType: "bytes32",
            name: "tail",
            type: "bytes32",
          },
          {
            internalType: "uint256",
            name: "nonce",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "count",
            type: "uint256",
          },
        ],
        internalType: "struct ILinkedList.List",
        name: "",
        type: "tuple",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "enum IHorizonStakingTypes.ThawRequestType",
        name: "thawRequestType",
        type: "uint8",
      },
      {
        internalType: "address",
        name: "serviceProvider",
        type: "address",
      },
      {
        internalType: "address",
        name: "verifier",
        type: "address",
      },
      {
        internalType: "address",
        name: "owner",
        type: "address",
      },
    ],
    name: "getThawedTokens",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "serviceProvider",
        type: "address",
      },
      {
        internalType: "address",
        name: "verifier",
        type: "address",
      },
      {
        internalType: "uint32",
        name: "delegationRatio",
        type: "uint32",
      },
    ],
    name: "getTokensAvailable",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "verifier",
        type: "address",
      },
    ],
    name: "isAllowedLockedVerifier",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "isDelegationSlashingEnabled",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
] as const;

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