"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.RewardsManager__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: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "allocationID",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "epoch",
                type: "uint256"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "amount",
                type: "uint256"
            },
        ],
        name: "RewardsAssigned",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "indexer",
                type: "address"
            },
            {
                indexed: true,
                internalType: "address",
                name: "allocationID",
                type: "address"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "epoch",
                type: "uint256"
            },
        ],
        name: "RewardsDenied",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "bytes32",
                name: "subgraphDeploymentID",
                type: "bytes32"
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "sinceBlock",
                type: "uint256"
            },
        ],
        name: "RewardsDenylistUpdated",
        type: "event"
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "controller",
                type: "address"
            },
        ],
        name: "SetController",
        type: "event"
    },
    {
        inputs: [],
        name: "accRewardsPerSignal",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "accRewardsPerSignalLastBlockUpdated",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        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: [],
        name: "controller",
        outputs: [
            {
                internalType: "contract IController",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32"
            },
        ],
        name: "denylist",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "_subgraphDeploymentID",
                type: "bytes32"
            },
        ],
        name: "getAccRewardsForSubgraph",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "_subgraphDeploymentID",
                type: "bytes32"
            },
        ],
        name: "getAccRewardsPerAllocatedToken",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "getAccRewardsPerSignal",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "getNewRewardsPerSignal",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_allocationID",
                type: "address"
            },
        ],
        name: "getRewards",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_controller",
                type: "address"
            },
            {
                internalType: "uint256",
                name: "_issuanceRate",
                type: "uint256"
            },
        ],
        name: "initialize",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "_subgraphDeploymentID",
                type: "bytes32"
            },
        ],
        name: "isDenied",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "issuanceRate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "_subgraphDeploymentID",
                type: "bytes32"
            },
        ],
        name: "onSubgraphAllocationUpdate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "_subgraphDeploymentID",
                type: "bytes32"
            },
        ],
        name: "onSubgraphSignalUpdate",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_controller",
                type: "address"
            },
        ],
        name: "setController",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "_subgraphDeploymentID",
                type: "bytes32"
            },
            {
                internalType: "bool",
                name: "_deny",
                type: "bool"
            },
        ],
        name: "setDenied",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32[]",
                name: "_subgraphDeploymentID",
                type: "bytes32[]"
            },
            {
                internalType: "bool[]",
                name: "_deny",
                type: "bool[]"
            },
        ],
        name: "setDeniedMany",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_issuanceRate",
                type: "uint256"
            },
        ],
        name: "setIssuanceRate",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_subgraphAvailabilityOracle",
                type: "address"
            },
        ],
        name: "setSubgraphAvailabilityOracle",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [],
        name: "subgraphAvailabilityOracle",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32"
            },
        ],
        name: "subgraphs",
        outputs: [
            {
                internalType: "uint256",
                name: "accRewardsForSubgraph",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "accRewardsForSubgraphSnapshot",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "accRewardsPerSignalSnapshot",
                type: "uint256"
            },
            {
                internalType: "uint256",
                name: "accRewardsPerAllocatedToken",
                type: "uint256"
            },
        ],
        stateMutability: "view",
        type: "function"
    },
    {
        inputs: [],
        name: "syncAllContracts",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_allocationID",
                type: "address"
            },
        ],
        name: "takeRewards",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "nonpayable",
        type: "function"
    },
    {
        inputs: [],
        name: "updateAccRewardsPerSignal",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256"
            },
        ],
        stateMutability: "nonpayable",
        type: "function"
    },
];
var _bytecode = " ";
var RewardsManager__factory = /** @class */ (function (_super) {
    __extends(RewardsManager__factory, _super);
    function RewardsManager__factory(signer) {
        return _super.call(this, _abi, _bytecode, signer) || this;
    }
    RewardsManager__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    RewardsManager__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    RewardsManager__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    RewardsManager__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    RewardsManager__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    RewardsManager__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    RewardsManager__factory.bytecode = _bytecode;
    RewardsManager__factory.abi = _abi;
    return RewardsManager__factory;
}(ethers_1.ContractFactory));
exports.RewardsManager__factory = RewardsManager__factory;
