Skip to content

Instantly share code, notes, and snippets.

@abarmat
Created February 22, 2021 14:54
Show Gist options
  • Save abarmat/b8f4c66b4d0cdd07e121290894f5dbb6 to your computer and use it in GitHub Desktop.
Save abarmat/b8f4c66b4d0cdd07e121290894f5dbb6 to your computer and use it in GitHub Desktop.
Graph Protocol - StakingV2 ABI (indexer-rewards)
[
{
"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": "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": "",
"type": "bytes32"
}
],
"name": "addressCache",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"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 IStaking.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": "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"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment