"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IAllocationManager__factory = void 0;
const ethers_1 = require("ethers");
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",
    },
    {
        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: [
            {
                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: 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",
    },
];
class IAllocationManager__factory {
    static abi = _abi;
    static interfaceId = "0x00000000";
    static interfaceName = "IAllocationManager";
    static createInterface() {
        return new ethers_1.Interface(_abi);
    }
    static connect(address, runner) {
        return new ethers_1.Contract(address, _abi, runner);
    }
}
exports.IAllocationManager__factory = IAllocationManager__factory;
//# sourceMappingURL=IAllocationManager__factory.js.map