dkg-evm-module
Version:
Smart contracts for OriginTrail V8
1,745 lines (1,744 loc) • 35.4 kB
JSON
[
{
"inputs": [
{
"internalType": "address",
"name": "hubAddress",
"type": "address"
},
{
"internalType": "uint16",
"name": "_proofingPeriodDurationInBlocks",
"type": "uint16"
},
{
"internalType": "uint256",
"name": "_w1",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_w2",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "string",
"name": "msg",
"type": "string"
}
],
"name": "UnauthorizedAccess",
"type": "error"
},
{
"inputs": [],
"name": "ZeroAddressHub",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "activeProofPeriodStartBlock",
"type": "uint256"
}
],
"name": "ActiveProofPeriodStartBlockSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "scoreAdded",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "totalScore",
"type": "uint256"
}
],
"name": "AllNodesEpochScoreAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newScore",
"type": "uint256"
}
],
"name": "AllNodesEpochScoreSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "delegatorKey",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newDelegatorLastSettledNodeEpochScorePerStake",
"type": "uint256"
}
],
"name": "DelegatorLastSettledNodeEpochScorePerStakeSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "delegatorKey",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "scoreAdded",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "totalScore",
"type": "uint256"
}
],
"name": "EpochNodeDelegatorScoreAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "delegatorKey",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newScore",
"type": "uint256"
}
],
"name": "EpochNodeDelegatorScoreSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newCount",
"type": "uint256"
}
],
"name": "EpochNodeValidProofsCountIncremented",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newCount",
"type": "uint256"
}
],
"name": "EpochNodeValidProofsCountSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"components": [
{
"internalType": "uint256",
"name": "knowledgeCollectionId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "chunkId",
"type": "uint256"
},
{
"internalType": "address",
"name": "knowledgeCollectionStorageContract",
"type": "address"
},
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "activeProofPeriodStartBlock",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "proofingPeriodDurationInBlocks",
"type": "uint256"
},
{
"internalType": "bool",
"name": "solved",
"type": "bool"
}
],
"indexed": false,
"internalType": "struct RandomSamplingLib.Challenge",
"name": "challenge",
"type": "tuple"
}
],
"name": "NodeChallengeSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "proofPeriodStartBlock",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"indexed": false,
"internalType": "uint256",
"name": "scoreAdded",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "totalScore",
"type": "uint256"
}
],
"name": "NodeEpochProofPeriodScoreAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "proofPeriodStartBlock",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newScore",
"type": "uint256"
}
],
"name": "NodeEpochProofPeriodScoreSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"indexed": false,
"internalType": "uint256",
"name": "scoreAdded",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "totalScore",
"type": "uint256"
}
],
"name": "NodeEpochScoreAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"indexed": false,
"internalType": "uint256",
"name": "scorePerStakeToAdd",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "totalNodeEpochScorePerStake",
"type": "uint256"
}
],
"name": "NodeEpochScorePerStakeAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newScorePerStake",
"type": "uint256"
}
],
"name": "NodeEpochScorePerStakeSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newScore",
"type": "uint256"
}
],
"name": "NodeEpochScoreSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint16",
"name": "oldDurationInBlocks",
"type": "uint16"
},
{
"indexed": false,
"internalType": "uint16",
"name": "newDurationInBlocks",
"type": "uint16"
},
{
"indexed": true,
"internalType": "uint256",
"name": "effectiveEpoch",
"type": "uint256"
}
],
"name": "PendingProofingPeriodDurationReplaced",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint16",
"name": "durationInBlocks",
"type": "uint16"
},
{
"indexed": true,
"internalType": "uint256",
"name": "effectiveEpoch",
"type": "uint256"
}
],
"name": "ProofingPeriodDurationAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "oldW1",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newW1",
"type": "uint256"
}
],
"name": "W1Set",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "oldW2",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newW2",
"type": "uint256"
}
],
"name": "W2Set",
"type": "event"
},
{
"inputs": [],
"name": "CHUNK_BYTE_SIZE",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "durationInBlocks",
"type": "uint16"
},
{
"internalType": "uint256",
"name": "effectiveEpoch",
"type": "uint256"
}
],
"name": "addProofingPeriodDuration",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "score",
"type": "uint256"
}
],
"name": "addToAllNodesEpochScore",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "bytes32",
"name": "delegatorKey",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "score",
"type": "uint256"
}
],
"name": "addToEpochNodeDelegatorScore",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "proofPeriodStartBlock",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "score",
"type": "uint256"
}
],
"name": "addToNodeEpochProofPeriodScore",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "score",
"type": "uint256"
}
],
"name": "addToNodeEpochScore",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "scorePerStakeToAdd",
"type": "uint256"
}
],
"name": "addToNodeEpochScorePerStake",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "allNodesEpochScore",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "chronos",
"outputs": [
{
"internalType": "contract Chronos",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "",
"type": "uint72"
},
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "delegatorLastSettledNodeEpochScorePerStake",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "",
"type": "uint72"
},
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "epochNodeDelegatorScore",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "",
"type": "uint72"
}
],
"name": "epochNodeValidProofsCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getActiveProofPeriodStartBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
}
],
"name": "getAllNodesEpochScore",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "bytes32",
"name": "delegatorKey",
"type": "bytes32"
}
],
"name": "getDelegatorLastSettledNodeEpochScorePerStake",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "bytes32",
"name": "delegatorKey",
"type": "bytes32"
}
],
"name": "getEpochNodeDelegatorScore",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "getEpochNodeValidProofsCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
}
],
"name": "getEpochProofingPeriodDurationInBlocks",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getLatestProofingPeriodDurationEffectiveEpoch",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getLatestProofingPeriodDurationInBlocks",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "getNodeChallenge",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "knowledgeCollectionId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "chunkId",
"type": "uint256"
},
{
"internalType": "address",
"name": "knowledgeCollectionStorageContract",
"type": "address"
},
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "activeProofPeriodStartBlock",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "proofingPeriodDurationInBlocks",
"type": "uint256"
},
{
"internalType": "bool",
"name": "solved",
"type": "bool"
}
],
"internalType": "struct RandomSamplingLib.Challenge",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "proofPeriodStartBlock",
"type": "uint256"
}
],
"name": "getNodeEpochProofPeriodScore",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "getNodeEpochScore",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "getNodeEpochScorePerStake",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "getProofingPeriodDurationFromIndex",
"outputs": [
{
"components": [
{
"internalType": "uint16",
"name": "durationInBlocks",
"type": "uint16"
},
{
"internalType": "uint256",
"name": "effectiveEpoch",
"type": "uint256"
}
],
"internalType": "struct RandomSamplingLib.ProofingPeriodDuration",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getProofingPeriodDurationsLength",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getW1",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getW2",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "hub",
"outputs": [
{
"internalType": "contract Hub",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "incrementEpochNodeValidProofsCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "nodeEpochProofPeriodScore",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "nodeEpochScore",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "",
"type": "uint72"
}
],
"name": "nodeEpochScorePerStake",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "",
"type": "uint72"
}
],
"name": "nodesChallenges",
"outputs": [
{
"internalType": "uint256",
"name": "knowledgeCollectionId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "chunkId",
"type": "uint256"
},
{
"internalType": "address",
"name": "knowledgeCollectionStorageContract",
"type": "address"
},
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "activeProofPeriodStartBlock",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "proofingPeriodDurationInBlocks",
"type": "uint256"
},
{
"internalType": "bool",
"name": "solved",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "proofingPeriodDurations",
"outputs": [
{
"internalType": "uint16",
"name": "durationInBlocks",
"type": "uint16"
},
{
"internalType": "uint256",
"name": "effectiveEpoch",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "durationInBlocks",
"type": "uint16"
},
{
"internalType": "uint256",
"name": "effectiveEpoch",
"type": "uint256"
}
],
"name": "replacePendingProofingPeriodDuration",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newActiveProofPeriodStartBlock",
"type": "uint256"
}
],
"name": "setActiveProofPeriodStartBlock",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "score",
"type": "uint256"
}
],
"name": "setAllNodesEpochScore",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "bytes32",
"name": "delegatorKey",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "newNodeEpochScorePerStake",
"type": "uint256"
}
],
"name": "setDelegatorLastSettledNodeEpochScorePerStake",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "bytes32",
"name": "delegatorKey",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "score",
"type": "uint256"
}
],
"name": "setEpochNodeDelegatorScore",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "count",
"type": "uint256"
}
],
"name": "setEpochNodeValidProofsCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"components": [
{
"internalType": "uint256",
"name": "knowledgeCollectionId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "chunkId",
"type": "uint256"
},
{
"internalType": "address",
"name": "knowledgeCollectionStorageContract",
"type": "address"
},
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "activeProofPeriodStartBlock",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "proofingPeriodDurationInBlocks",
"type": "uint256"
},
{
"internalType": "bool",
"name": "solved",
"type": "bool"
}
],
"internalType": "struct RandomSamplingLib.Challenge",
"name": "challenge",
"type": "tuple"
}
],
"name": "setNodeChallenge",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "proofPeriodStartBlock",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "score",
"type": "uint256"
}
],
"name": "setNodeEpochProofPeriodScore",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "score",
"type": "uint256"
}
],
"name": "setNodeEpochScore",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "scorePerStake",
"type": "uint256"
}
],
"name": "setNodeEpochScorePerStake",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "_status",
"type": "bool"
}
],
"name": "setStatus",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_w1",
"type": "uint256"
}
],
"name": "setW1",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_w2",
"type": "uint256"
}
],
"name": "setW2",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "status",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "w1",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "w2",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]