dkg-evm-module
Version:
Smart contracts for OriginTrail V8
950 lines (949 loc) • 18 kB
JSON
[
{
"inputs": [
{
"internalType": "address",
"name": "hubAddress",
"type": "address"
}
],
"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": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint96",
"name": "knowledgeValue",
"type": "uint96"
}
],
"name": "EpochProducedKnowledgeValueAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"indexed": false,
"internalType": "uint96",
"name": "amount",
"type": "uint96"
}
],
"name": "EpochTokensPaidOut",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "startEpoch",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "endEpoch",
"type": "uint256"
}
],
"name": "EpochsFinalized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "startEpoch",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "endEpoch",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint96",
"name": "tokenAmount",
"type": "uint96"
},
{
"indexed": false,
"internalType": "uint96",
"name": "remainder",
"type": "uint96"
}
],
"name": "TokensAddedToEpochRange",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "accumulatedRemainder",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint96",
"name": "knowledgeValue",
"type": "uint96"
}
],
"name": "addEpochProducedKnowledgeValue",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "startEpoch",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "endEpoch",
"type": "uint256"
},
{
"internalType": "uint96",
"name": "tokenAmount",
"type": "uint96"
}
],
"name": "addTokensToEpochRange",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "chronos",
"outputs": [
{
"internalType": "contract Chronos",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "cumulative",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "diff",
"outputs": [
{
"internalType": "int96",
"name": "",
"type": "int96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "distributed",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "epochNodeMaxProducedKnowledgeValue",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "epochProducedKnowledgeValue",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getCurrentEpochNodeMaxProducedKnowledgeValue",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
}
],
"name": "getCurrentEpochPool",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getCurrentEpochProducedKnowledgeValue",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
}
],
"name": "getCurrentEpochRemainingPool",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
}
],
"name": "getEpochDistributedPool",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
}
],
"name": "getEpochNodeMaxProducedKnowledgeValue",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
}
],
"name": "getEpochPool",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
}
],
"name": "getEpochProducedKnowledgeValue",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "startEpoch",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "endEpoch",
"type": "uint256"
}
],
"name": "getEpochRangePool",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
}
],
"name": "getEpochRemainingPool",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "getNodeCurrentEpochProducedKnowledgeValue",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "getNodeCurrentEpochProducedKnowledgeValuePercentage",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
}
],
"name": "getNodeEpochPaidOut",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
}
],
"name": "getNodeEpochProducedKnowledgeValue",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
}
],
"name": "getNodeEpochProducedKnowledgeValuePercentage",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "getNodePreviousEpochPaidOut",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "getNodePreviousEpochProducedKnowledgeValue",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "getNodePreviousEpochProducedKnowledgeValuePercentage",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
}
],
"name": "getPreviousEpochDistributedPool",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getPreviousEpochNodeMaxProducedKnowledgeValue",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
}
],
"name": "getPreviousEpochPool",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getPreviousEpochProducedKnowledgeValue",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
}
],
"name": "getPreviousEpochRemainingPool",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "hub",
"outputs": [
{
"internalType": "contract Hub",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "lastFinalizedEpoch",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"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"
}
],
"name": "nodesEpochProducedKnowledgeValue",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "nodesPaidOut",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shardId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "epoch",
"type": "uint256"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint96",
"name": "amount",
"type": "uint96"
}
],
"name": "payOutEpochTokens",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
}
]