dkg-evm-module
Version:
Smart contracts for OriginTrail V8
348 lines (347 loc) • 6.72 kB
JSON
[
{
"inputs": [
{
"internalType": "address",
"name": "hubAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "migrationPeriodEnd_",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "hashRingPosition",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "nextHashRingPosition",
"type": "uint256"
}
],
"name": "InvalidIndexWithRespectToNextNode",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint256",
"name": "hashRingPosition",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "prevHashRingPosition",
"type": "uint256"
}
],
"name": "InvalidIndexWithRespectToPreviousNode",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "InvalidStartingIdentityId",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "NodeAlreadyInTheShardingTable",
"type": "error"
},
{
"inputs": [
{
"internalType": "string",
"name": "msg",
"type": "string"
}
],
"name": "UnauthorizedAccess",
"type": "error"
},
{
"inputs": [],
"name": "ZeroAddressHub",
"type": "error"
},
{
"inputs": [],
"name": "getShardingTable",
"outputs": [
{
"components": [
{
"internalType": "bytes",
"name": "nodeId",
"type": "bytes"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint96",
"name": "ask",
"type": "uint96"
},
{
"internalType": "uint96",
"name": "stake",
"type": "uint96"
}
],
"internalType": "struct ShardingTableLib.NodeInfo[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "startingIdentityId",
"type": "uint72"
},
{
"internalType": "uint72",
"name": "nodesNumber",
"type": "uint72"
}
],
"name": "getShardingTable",
"outputs": [
{
"components": [
{
"internalType": "bytes",
"name": "nodeId",
"type": "bytes"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
},
{
"internalType": "uint96",
"name": "ask",
"type": "uint96"
},
{
"internalType": "uint96",
"name": "stake",
"type": "uint96"
}
],
"internalType": "struct ShardingTableLib.NodeInfo[]",
"name": "",
"type": "tuple[]"
}
],
"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": "uint72",
"name": "index",
"type": "uint72"
},
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "insertNode",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "insertNode",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "migrationPeriodEnd",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "profileStorage",
"outputs": [
{
"internalType": "contract ProfileStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint72",
"name": "identityId",
"type": "uint72"
}
],
"name": "removeNode",
"outputs": [],
"stateMutability": "nonpayable",
"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": "stakingStorage",
"outputs": [
{
"internalType": "contract StakingStorage",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"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"
}
]