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

import { Contract, Interface, type ContractRunner } from "ethers";
import type {
  AllocationManager,
  AllocationManagerInterface,
} from "../../../contracts/utilities/AllocationManager";

const _abi = [
  {
    inputs: [
      {
        internalType: "address",
        name: "allocationId",
        type: "address",
      },
    ],
    name: "AllocationManagerAllocationClosed",
    type: "error",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "allocationId",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "tokens",
        type: "uint256",
      },
    ],
    name: "AllocationManagerAllocationSameSize",
    type: "error",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "signer",
        type: "address",
      },
      {
        internalType: "address",
        name: "allocationId",
        type: "address",
      },
    ],
    name: "AllocationManagerInvalidAllocationProof",
    type: "error",
  },
  {
    inputs: [],
    name: "AllocationManagerInvalidZeroAllocationId",
    type: "error",
  },
  {
    inputs: [
      {
        internalType: "bytes",
        name: "contractName",
        type: "bytes",
      },
    ],
    name: "GraphDirectoryInvalidZeroAddress",
    type: "error",
  },
  {
    inputs: [],
    name: "InvalidInitialization",
    type: "error",
  },
  {
    inputs: [],
    name: "NotInitializing",
    type: "error",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "address",
        name: "indexer",
        type: "address",
      },
      {
        indexed: true,
        internalType: "address",
        name: "allocationId",
        type: "address",
      },
      {
        indexed: true,
        internalType: "bytes32",
        name: "subgraphDeploymentId",
        type: "bytes32",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "tokens",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "bool",
        name: "forceClosed",
        type: "bool",
      },
    ],
    name: "AllocationClosed",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "address",
        name: "indexer",
        type: "address",
      },
      {
        indexed: true,
        internalType: "address",
        name: "allocationId",
        type: "address",
      },
      {
        indexed: true,
        internalType: "bytes32",
        name: "subgraphDeploymentId",
        type: "bytes32",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "tokens",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "currentEpoch",
        type: "uint256",
      },
    ],
    name: "AllocationCreated",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "address",
        name: "indexer",
        type: "address",
      },
      {
        indexed: true,
        internalType: "address",
        name: "allocationId",
        type: "address",
      },
      {
        indexed: true,
        internalType: "bytes32",
        name: "subgraphDeploymentId",
        type: "bytes32",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "newTokens",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "oldTokens",
        type: "uint256",
      },
    ],
    name: "AllocationResized",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [],
    name: "EIP712DomainChanged",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "address",
        name: "graphToken",
        type: "address",
      },
      {
        indexed: true,
        internalType: "address",
        name: "graphStaking",
        type: "address",
      },
      {
        indexed: false,
        internalType: "address",
        name: "graphPayments",
        type: "address",
      },
      {
        indexed: false,
        internalType: "address",
        name: "graphEscrow",
        type: "address",
      },
      {
        indexed: true,
        internalType: "address",
        name: "graphController",
        type: "address",
      },
      {
        indexed: false,
        internalType: "address",
        name: "graphEpochManager",
        type: "address",
      },
      {
        indexed: false,
        internalType: "address",
        name: "graphRewardsManager",
        type: "address",
      },
      {
        indexed: false,
        internalType: "address",
        name: "graphTokenGateway",
        type: "address",
      },
      {
        indexed: false,
        internalType: "address",
        name: "graphProxyAdmin",
        type: "address",
      },
      {
        indexed: false,
        internalType: "address",
        name: "graphCuration",
        type: "address",
      },
    ],
    name: "GraphDirectoryInitialized",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "address",
        name: "indexer",
        type: "address",
      },
      {
        indexed: true,
        internalType: "address",
        name: "allocationId",
        type: "address",
      },
      {
        indexed: true,
        internalType: "bytes32",
        name: "subgraphDeploymentId",
        type: "bytes32",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "tokensRewards",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "tokensIndexerRewards",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "tokensDelegationRewards",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "bytes32",
        name: "poi",
        type: "bytes32",
      },
      {
        indexed: false,
        internalType: "bytes",
        name: "poiMetadata",
        type: "bytes",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "currentEpoch",
        type: "uint256",
      },
    ],
    name: "IndexingRewardsCollected",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "uint64",
        name: "version",
        type: "uint64",
      },
    ],
    name: "Initialized",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "address",
        name: "indexer",
        type: "address",
      },
      {
        indexed: true,
        internalType: "address",
        name: "allocationId",
        type: "address",
      },
      {
        indexed: true,
        internalType: "bytes32",
        name: "subgraphDeploymentId",
        type: "bytes32",
      },
    ],
    name: "LegacyAllocationMigrated",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "uint256",
        name: "maxPOIStaleness",
        type: "uint256",
      },
    ],
    name: "MaxPOIStalenessSet",
    type: "event",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "indexer",
        type: "address",
      },
    ],
    name: "allocationProvisionTracker",
    outputs: [
      {
        internalType: "uint256",
        name: "tokens",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "eip712Domain",
    outputs: [
      {
        internalType: "bytes1",
        name: "fields",
        type: "bytes1",
      },
      {
        internalType: "string",
        name: "name",
        type: "string",
      },
      {
        internalType: "string",
        name: "version",
        type: "string",
      },
      {
        internalType: "uint256",
        name: "chainId",
        type: "uint256",
      },
      {
        internalType: "address",
        name: "verifyingContract",
        type: "address",
      },
      {
        internalType: "bytes32",
        name: "salt",
        type: "bytes32",
      },
      {
        internalType: "uint256[]",
        name: "extensions",
        type: "uint256[]",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "maxPOIStaleness",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
] as const;

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