"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
exports.__esModule = true;
exports.Staking__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: true,
                internalType: "bytes32",
                name: "subgraphDeploymentID",
                type: "bytes32"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "epoch",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256"
            },
            {
                indexed: true,
                internalType: "address",
                name: "allocationID",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "effectiveAllocation",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "address",
                name: "sender",
                type: "address"
            },
            {
                indexed: false,
                internalType: "bytes32",
                name: "poi",
                type: "bytes32"
            },
            {
                indexed: false,
                internalType: "bool",
                name: "isDelegator",
                type: "bool"
            },
        ],
        name: "AllocationClosed",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: true,
                internalType: "bytes32",
                name: "subgraphDeploymentID",
                type: "bytes32"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "epoch",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256"
            },
            {
                indexed: true,
                internalType: "address",
                name: "allocationID",
                type: "address"
            },
            {
                indexed: false,
                internalType: "address",
                name: "from",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "curationFees",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "rebateFees",
                type: "uint256"
            },
        ],
        name: "AllocationCollected",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: true,
                internalType: "bytes32",
                name: "subgraphDeploymentID",
                type: "bytes32"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "epoch",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256"
            },
            {
                indexed: true,
                internalType: "address",
                name: "allocationID",
                type: "address"
            },
            {
                indexed: false,
                internalType: "bytes32",
                name: "metadata",
                type: "bytes32"
            },
        ],
        name: "AllocationCreated",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "caller",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "assetHolder",
                type: "address"
            },
            {
                indexed: false,
                internalType: "bool",
                name: "allowed",
                type: "bool"
            },
        ],
        name: "AssetHolderUpdate",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "bytes32",
                name: "nameHash",
                type: "bytes32"
            },
            {
                indexed: false,
                internalType: "address",
                name: "contractAddress",
                type: "address"
            },
        ],
        name: "ContractSynced",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint32",
                name: "indexingRewardCut",
                type: "uint32"
            },
            {
                indexed: false,
                internalType: "uint32",
                name: "queryFeeCut",
                type: "uint32"
            },
            {
                indexed: false,
                internalType: "uint32",
                name: "cooldownBlocks",
                type: "uint32"
            },
        ],
        name: "DelegationParametersUpdated",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "string",
                name: "param",
                type: "string"
            },
        ],
        name: "ParameterUpdated",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: true,
                internalType: "bytes32",
                name: "subgraphDeploymentID",
                type: "bytes32"
            },
            {
                indexed: true,
                internalType: "address",
                name: "allocationID",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "epoch",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "forEpoch",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "unclaimedAllocationsCount",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "delegationFees",
                type: "uint256"
            },
        ],
        name: "RebateClaimed",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "controller",
                type: "address"
            },
        ],
        name: "SetController",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "operator",
                type: "address"
            },
            {
                indexed: false,
                internalType: "bool",
                name: "allowed",
                type: "bool"
            },
        ],
        name: "SetOperator",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "destination",
                type: "address"
            },
        ],
        name: "SetRewardsDestination",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "caller",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "slasher",
                type: "address"
            },
            {
                indexed: false,
                internalType: "bool",
                name: "allowed",
                type: "bool"
            },
        ],
        name: "SlasherUpdate",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "delegator",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "shares",
                type: "uint256"
            },
        ],
        name: "StakeDelegated",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "delegator",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "shares",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "until",
                type: "uint256"
            },
        ],
        name: "StakeDelegatedLocked",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "delegator",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256"
            },
        ],
        name: "StakeDelegatedWithdrawn",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256"
            },
        ],
        name: "StakeDeposited",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "until",
                type: "uint256"
            },
        ],
        name: "StakeLocked",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "reward",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "address",
                name: "beneficiary",
                type: "address"
            },
        ],
        name: "StakeSlashed",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256"
            },
        ],
        name: "StakeWithdrawn",
        type: "event"
    },
    {
        inputs: [
            {
                internalType: "contract IGraphProxy",
                name: "_proxy",
                type: "address"
            },
        ],
        name: "acceptProxy",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "contract IGraphProxy",
                name: "_proxy",
                type: "address"
            },
            {
                internalType: "bytes",
                name: "_data",
                type: "bytes"
            },
        ],
        name: "acceptProxyAndCall",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "_subgraphDeploymentID",
                type: "bytes32"
            },
            {
                internalType: "uint256",
                name: "_tokens",
                type: "uint256"
            },
            {
                internalType: "address",
                name: "_allocationID",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "_metadata",
                type: "bytes32"
            },
            {
                internalType: "bytes",
                name: "_proof",
                type: "bytes"
            },
        ],
        name: "allocate",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_indexer",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "_subgraphDeploymentID",
                type: "bytes32"
            },
            {
                internalType: "uint256",
                name: "_tokens",
                type: "uint256"
            },
            {
                internalType: "address",
                name: "_allocationID",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "_metadata",
                type: "bytes32"
            },
            {
                internalType: "bytes",
                name: "_proof",
                type: "bytes"
            },
        ],
        name: "allocateFrom",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "allocations",
        outputs: [
            {
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "subgraphDeploymentID",
                type: "bytes32"
            },
            {
                internalType: "uint256",
                name: "tokens",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "createdAtEpoch",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "closedAtEpoch",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "collectedFees",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "effectiveAllocation",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "accRewardsPerAllocatedToken",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "alphaDenominator",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "alphaNumerator",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "assetHolders",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "channelDisputeEpochs",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_allocationID",
                type: "address"
            },
            {
                internalType: "bool",
                name: "_restake",
                type: "bool"
            },
        ],
        name: "claim",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address[]",
                name: "_allocationID",
                type: "address[]"
            },
            {
                internalType: "bool",
                name: "_restake",
                type: "bool"
            },
        ],
        name: "claimMany",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_allocationID",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "_poi",
                type: "bytes32"
            },
        ],
        name: "closeAllocation",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "address",
                        name: "allocationID",
                        type: "address"
                    },
                    {
                        internalType: "bytes32",
                        name: "poi",
                        type: "bytes32"
                    },
                ],
                internalType: "struct IStakingData.CloseAllocationRequest[]",
                name: "_requests",
                type: "tuple[]"
            },
        ],
        name: "closeAllocationMany",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_closingAllocationID",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "_poi",
                type: "bytes32"
            },
            {
                internalType: "address",
                name: "_indexer",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "_subgraphDeploymentID",
                type: "bytes32"
            },
            {
                internalType: "uint256",
                name: "_tokens",
                type: "uint256"
            },
            {
                internalType: "address",
                name: "_allocationID",
                type: "address"
            },
            {
                internalType: "bytes32",
                name: "_metadata",
                type: "bytes32"
            },
            {
                internalType: "bytes",
                name: "_proof",
                type: "bytes"
            },
        ],
        name: "closeAndAllocate",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_tokens",
                type: "uint256"
            },
            {
                internalType: "address",
                name: "_allocationID",
                type: "address"
            },
        ],
        name: "collect",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [],
        name: "controller",
        outputs: [
            {
                internalType: "contract IController",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "curationPercentage",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_indexer",
                type: "address"
            },
            {
                internalType: "uint256",
                name: "_tokens",
                type: "uint256"
            },
        ],
        name: "delegate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [],
        name: "delegationParametersCooldown",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "delegationPools",
        outputs: [
            {
                internalType: "uint32",
                name: "cooldownBlocks",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "indexingRewardCut",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "queryFeeCut",
                type: "uint32"
            },
            {
                internalType: "uint256",
                name: "updatedAtBlock",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "tokens",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "shares",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "delegationRatio",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "delegationTaxPercentage",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "delegationUnbondingPeriod",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_allocationID",
                type: "address"
            },
        ],
        name: "getAllocation",
        outputs: [
            {
                components: [
                    {
                        internalType: "address",
                        name: "indexer",
                        type: "address"
                    },
                    {
                        internalType: "bytes32",
                        name: "subgraphDeploymentID",
                        type: "bytes32"
                    },
                    {
                        internalType: "uint256",
                        name: "tokens",
                        type: "uint256"
                    },
                    {
                        internalType: "uint256",
                        name: "createdAtEpoch",
                        type: "uint256"
                    },
                    {
                        internalType: "uint256",
                        name: "closedAtEpoch",
                        type: "uint256"
                    },
                    {
                        internalType: "uint256",
                        name: "collectedFees",
                        type: "uint256"
                    },
                    {
                        internalType: "uint256",
                        name: "effectiveAllocation",
                        type: "uint256"
                    },
                    {
                        internalType: "uint256",
                        name: "accRewardsPerAllocatedToken",
                        type: "uint256"
                    },
                ],
                internalType: "struct IStakingData.Allocation",
                name: "",
                type: "tuple"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_allocationID",
                type: "address"
            },
        ],
        name: "getAllocationState",
        outputs: [
            {
                internalType: "enum IStaking.AllocationState",
                name: "",
                type: "uint8"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_indexer",
                type: "address"
            },
            {
                internalType: "address",
                name: "_delegator",
                type: "address"
            },
        ],
        name: "getDelegation",
        outputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "shares",
                        type: "uint256"
                    },
                    {
                        internalType: "uint256",
                        name: "tokensLocked",
                        type: "uint256"
                    },
                    {
                        internalType: "uint256",
                        name: "tokensLockedUntil",
                        type: "uint256"
                    },
                ],
                internalType: "struct IStakingData.Delegation",
                name: "",
                type: "tuple"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_indexer",
                type: "address"
            },
        ],
        name: "getIndexerCapacity",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_indexer",
                type: "address"
            },
        ],
        name: "getIndexerStakedTokens",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "_subgraphDeploymentID",
                type: "bytes32"
            },
        ],
        name: "getSubgraphAllocatedTokens",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "shares",
                        type: "uint256"
                    },
                    {
                        internalType: "uint256",
                        name: "tokensLocked",
                        type: "uint256"
                    },
                    {
                        internalType: "uint256",
                        name: "tokensLockedUntil",
                        type: "uint256"
                    },
                ],
                internalType: "struct IStakingData.Delegation",
                name: "_delegation",
                type: "tuple"
            },
        ],
        name: "getWithdraweableDelegatedTokens",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_indexer",
                type: "address"
            },
        ],
        name: "hasStake",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_controller",
                type: "address"
            },
            {
                internalType: "uint256",
                name: "_minimumIndexerStake",
                type: "uint256"
            },
            {
                internalType: "uint32",
                name: "_thawingPeriod",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "_protocolPercentage",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "_curationPercentage",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "_channelDisputeEpochs",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "_maxAllocationEpochs",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "_delegationUnbondingPeriod",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "_delegationRatio",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "_rebateAlphaNumerator",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "_rebateAlphaDenominator",
                type: "uint32"
            },
        ],
        name: "initialize",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_allocationID",
                type: "address"
            },
        ],
        name: "isAllocation",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_indexer",
                type: "address"
            },
            {
                internalType: "address",
                name: "_delegator",
                type: "address"
            },
        ],
        name: "isDelegator",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_operator",
                type: "address"
            },
            {
                internalType: "address",
                name: "_indexer",
                type: "address"
            },
        ],
        name: "isOperator",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "maxAllocationEpochs",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "minimumIndexerStake",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "operatorAuth",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "protocolPercentage",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        name: "rebates",
        outputs: [
            {
                internalType: "uint256",
                name: "fees",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "effectiveAllocatedStake",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "claimedRewards",
                type: "uint256"
            },
            {
                internalType: "uint32",
                name: "unclaimedAllocationsCount",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "alphaNumerator",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "alphaDenominator",
                type: "uint32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "rewardsDestination",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_assetHolder",
                type: "address"
            },
            {
                internalType: "bool",
                name: "_allowed",
                type: "bool"
            },
        ],
        name: "setAssetHolder",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_channelDisputeEpochs",
                type: "uint32"
            },
        ],
        name: "setChannelDisputeEpochs",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_controller",
                type: "address"
            },
        ],
        name: "setController",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_percentage",
                type: "uint32"
            },
        ],
        name: "setCurationPercentage",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_indexingRewardCut",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "_queryFeeCut",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "_cooldownBlocks",
                type: "uint32"
            },
        ],
        name: "setDelegationParameters",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_blocks",
                type: "uint32"
            },
        ],
        name: "setDelegationParametersCooldown",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_delegationRatio",
                type: "uint32"
            },
        ],
        name: "setDelegationRatio",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_percentage",
                type: "uint32"
            },
        ],
        name: "setDelegationTaxPercentage",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_delegationUnbondingPeriod",
                type: "uint32"
            },
        ],
        name: "setDelegationUnbondingPeriod",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_maxAllocationEpochs",
                type: "uint32"
            },
        ],
        name: "setMaxAllocationEpochs",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_minimumIndexerStake",
                type: "uint256"
            },
        ],
        name: "setMinimumIndexerStake",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_operator",
                type: "address"
            },
            {
                internalType: "bool",
                name: "_allowed",
                type: "bool"
            },
        ],
        name: "setOperator",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_percentage",
                type: "uint32"
            },
        ],
        name: "setProtocolPercentage",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_alphaNumerator",
                type: "uint32"
            },
            {
                internalType: "uint32",
                name: "_alphaDenominator",
                type: "uint32"
            },
        ],
        name: "setRebateRatio",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_destination",
                type: "address"
            },
        ],
        name: "setRewardsDestination",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_slasher",
                type: "address"
            },
            {
                internalType: "bool",
                name: "_allowed",
                type: "bool"
            },
        ],
        name: "setSlasher",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_thawingPeriod",
                type: "uint32"
            },
        ],
        name: "setThawingPeriod",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_indexer",
                type: "address"
            },
            {
                internalType: "uint256",
                name: "_tokens",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "_reward",
                type: "uint256"
            },
            {
                internalType: "address",
                name: "_beneficiary",
                type: "address"
            },
        ],
        name: "slash",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "slashers",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_tokens",
                type: "uint256"
            },
        ],
        name: "stake",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_indexer",
                type: "address"
            },
            {
                internalType: "uint256",
                name: "_tokens",
                type: "uint256"
            },
        ],
        name: "stakeTo",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        name: "stakes",
        outputs: [
            {
                internalType: "uint256",
                name: "tokensStaked",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "tokensAllocated",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "tokensLocked",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "tokensLockedUntil",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32"
            },
        ],
        name: "subgraphAllocations",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "syncAllContracts",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [],
        name: "thawingPeriod",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_indexer",
                type: "address"
            },
            {
                internalType: "uint256",
                name: "_shares",
                type: "uint256"
            },
        ],
        name: "undelegate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_tokens",
                type: "uint256"
            },
        ],
        name: "unstake",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [],
        name: "withdraw",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_indexer",
                type: "address"
            },
            {
                internalType: "address",
                name: "_delegateToIndexer",
                type: "address"
            },
        ],
        name: "withdrawDelegated",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "nonpayable",
        type: "function"
    },
];
var _bytecode = " $407d898cd2d4786fa0cfef3e1797202a79$ ";
var Staking__factory = /** @class */ (function (_super) {
    __extends(Staking__factory, _super);
    function Staking__factory(linkLibraryAddresses, signer) {
        return _super.call(this, _abi, Staking__factory.linkBytecode(linkLibraryAddresses), signer) || this;
    }
    Staking__factory.linkBytecode = function (linkLibraryAddresses) {
        var linkedBytecode = _bytecode;
        linkedBytecode = linkedBytecode.replace(new RegExp("__\\$407d898cd2d4786fa0cfef3e1797202a79\\$__", "g"), linkLibraryAddresses["contracts/staking/libs/Cobbs.sol:LibCobbDouglas"]
            .replace(/^0x/, "")
            .toLowerCase());
        return linkedBytecode;
    };
    Staking__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    Staking__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    Staking__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    Staking__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    Staking__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    Staking__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    Staking__factory.bytecode = _bytecode;
    Staking__factory.abi = _abi;
    return Staking__factory;
}(ethers_1.ContractFactory));
exports.Staking__factory = Staking__factory;
