"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.StakingV2Storage__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        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: false,
                internalType: "string",
                name: "param",
                type: "string"
            },
        ],
        name: "ParameterUpdated",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "controller",
                type: "address"
            },
        ],
        name: "SetController",
        type: "event"
    },
    {
        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: [],
        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: [],
        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: [],
        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: "_controller",
                type: "address"
            },
        ],
        name: "setController",
        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: "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"
    },
];
var _bytecode = " ";
var StakingV2Storage__factory = /** @class */ (function (_super) {
    __extends(StakingV2Storage__factory, _super);
    function StakingV2Storage__factory(signer) {
        return _super.call(this, _abi, _bytecode, signer) || this;
    }
    StakingV2Storage__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    StakingV2Storage__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    StakingV2Storage__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    StakingV2Storage__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    StakingV2Storage__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    StakingV2Storage__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    StakingV2Storage__factory.bytecode = _bytecode;
    StakingV2Storage__factory.abi = _abi;
    return StakingV2Storage__factory;
}(ethers_1.ContractFactory));
exports.StakingV2Storage__factory = StakingV2Storage__factory;
