dkg-evm-module
Version:
Smart contracts for OriginTrail V8
533 lines (532 loc) • 10.3 kB
JSON
[
{
"inputs": [
{
"internalType": "address",
"name": "hubAddress",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "bytes32",
"name": "messageHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "r",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "vs",
"type": "bytes32"
}
],
"name": "InvalidSignature",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint96",
"name": "expectedTokenAMount",
"type": "uint96"
},
{
"internalType": "uint96",
"name": "tokenAmount",
"type": "uint96"
}
],
"name": "InvalidTokenAmount",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "currentEpoch",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "endEpoch",
"type": "uint256"
}
],
"name": "KnowledgeCollectionExpired",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "requiredSignatures",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "receivedSignatures",
"type": "uint256"
}
],
"name": "MinSignaturesRequirementNotMet",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "rAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "vsAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "identityIdsAmount",
"type": "uint256"
}
],
"name": "SignaturesSignersMismatch",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "address",
"name": "signer",
"type": "address"
}
],
"name": "SignerIsNotNodeOperator",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "allowance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expected",
"type": "uint256"
}
],
"name": "TooLowAllowance",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "balance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expected",
"type": "uint256"
}
],
"name": "TooLowBalance",
"type": "error"
},
{
"inputs": [],
"name": "TransferFailed",
"type": "error"
},
{
"inputs": [
{
"internalType": "string",
"name": "msg",
"type": "string"
}
],
"name": "UnauthorizedAccess",
"type": "error"
},
{
"inputs": [],
"name": "ZeroAddressHub",
"type": "error"
},
{
"inputs": [],
"name": "askStorage",
"outputs": [
{
"internalType": "contract AskStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "chronos",
"outputs": [
{
"internalType": "contract Chronos",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "publishOperationId",
"type": "string"
},
{
"internalType": "bytes32",
"name": "merkleRoot",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "knowledgeAssetsAmount",
"type": "uint256"
},
{
"internalType": "uint88",
"name": "byteSize",
"type": "uint88"
},
{
"internalType": "uint40",
"name": "epochs",
"type": "uint40"
},
{
"internalType": "uint96",
"name": "tokenAmount",
"type": "uint96"
},
{
"internalType": "bool",
"name": "isImmutable",
"type": "bool"
},
{
"internalType": "address",
"name": "paymaster",
"type": "address"
},
{
"internalType": "uint72",
"name": "publisherNodeIdentityId",
"type": "uint72"
},
{
"internalType": "bytes32",
"name": "publisherNodeR",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "publisherNodeVS",
"type": "bytes32"
},
{
"internalType": "uint72[]",
"name": "identityIds",
"type": "uint72[]"
},
{
"internalType": "bytes32[]",
"name": "r",
"type": "bytes32[]"
},
{
"internalType": "bytes32[]",
"name": "vs",
"type": "bytes32[]"
}
],
"name": "createKnowledgeCollection",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "epochStorage",
"outputs": [
{
"internalType": "contract EpochStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint40",
"name": "epochs",
"type": "uint40"
},
{
"internalType": "uint96",
"name": "tokenAmount",
"type": "uint96"
},
{
"internalType": "address",
"name": "paymaster",
"type": "address"
}
],
"name": "extendKnowledgeCollectionLifetime",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "hub",
"outputs": [
{
"internalType": "contract Hub",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "identityStorage",
"outputs": [
{
"internalType": "contract IdentityStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "knowledgeCollectionStorage",
"outputs": [
{
"internalType": "contract KnowledgeCollectionStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "parametersStorage",
"outputs": [
{
"internalType": "contract ParametersStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "paranetKnowledgeCollectionsRegistry",
"outputs": [
{
"internalType": "contract ParanetKnowledgeCollectionsRegistry",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "paranetKnowledgeMinersRegistry",
"outputs": [
{
"internalType": "contract ParanetKnowledgeMinersRegistry",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "paranetsRegistry",
"outputs": [
{
"internalType": "contract ParanetsRegistry",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "paymasterManager",
"outputs": [
{
"internalType": "contract PaymasterManager",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "_status",
"type": "bool"
}
],
"name": "setStatus",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "shardingTableStorage",
"outputs": [
{
"internalType": "contract ShardingTableStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "status",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "tokenContract",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
}
]