diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-02-25 19:35:06 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:57 +0800 |
commit | b708ec0f082d431dfe6d56882d58043811647ac7 (patch) | |
tree | 575195174be8546146d64b79760288b5f5a8e7b4 /core/vm/oracle_contract_abi.go | |
parent | e83bcc1097d49b46b79131e546f1270b9192cc05 (diff) | |
download | dexon-b708ec0f082d431dfe6d56882d58043811647ac7.tar dexon-b708ec0f082d431dfe6d56882d58043811647ac7.tar.gz dexon-b708ec0f082d431dfe6d56882d58043811647ac7.tar.bz2 dexon-b708ec0f082d431dfe6d56882d58043811647ac7.tar.lz dexon-b708ec0f082d431dfe6d56882d58043811647ac7.tar.xz dexon-b708ec0f082d431dfe6d56882d58043811647ac7.tar.zst dexon-b708ec0f082d431dfe6d56882d58043811647ac7.zip |
core: vm: flatten governance
Diffstat (limited to 'core/vm/oracle_contract_abi.go')
-rw-r--r-- | core/vm/oracle_contract_abi.go | 171 |
1 files changed, 70 insertions, 101 deletions
diff --git a/core/vm/oracle_contract_abi.go b/core/vm/oracle_contract_abi.go index ff4a94b29..43055bc4a 100644 --- a/core/vm/oracle_contract_abi.go +++ b/core/vm/oracle_contract_abi.go @@ -47,29 +47,6 @@ const GovernanceABIJSON = ` }, { "constant": true, - "inputs": [ - { - "name": "", - "type": "uint256" - }, - { - "name": "", - "type": "uint256" - } - ], - "name": "dkgComplaints", - "outputs": [ - { - "name": "", - "type": "bytes" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, "inputs": [], "name": "notarySetSize", "outputs": [ @@ -223,14 +200,26 @@ const GovernanceABIJSON = ` "inputs": [ { "name": "", + "type": "address" + }, + { + "name": "", "type": "uint256" } ], - "name": "crs", + "name": "delegators", "outputs": [ { - "name": "", - "type": "bytes32" + "name": "owner", + "type": "address" + }, + { + "name": "value", + "type": "uint256" + }, + { + "name": "undelegated_at", + "type": "uint256" } ], "payable": false, @@ -242,14 +231,14 @@ const GovernanceABIJSON = ` "inputs": [ { "name": "", - "type": "uint256" + "type": "address" } ], - "name": "dkgMPKReadysCount", + "name": "dkgFinalizeds", "outputs": [ { "name": "", - "type": "uint256" + "type": "bool" } ], "payable": false, @@ -258,21 +247,12 @@ const GovernanceABIJSON = ` }, { "constant": true, - "inputs": [ - { - "name": "", - "type": "uint256" - }, - { - "name": "", - "type": "address" - } - ], - "name": "dkgMPKReadys", + "inputs": [], + "name": "blockGasLimit", "outputs": [ { "name": "", - "type": "bool" + "type": "uint256" } ], "payable": false, @@ -284,26 +264,14 @@ const GovernanceABIJSON = ` "inputs": [ { "name": "", - "type": "address" - }, - { - "name": "", - "type": "uint256" + "type": "bytes32" } ], - "name": "delegators", + "name": "nodesOffsetByID", "outputs": [ { - "name": "owner", - "type": "address" - }, - { - "name": "value", - "type": "uint256" - }, - { - "name": "undelegated_at", - "type": "uint256" + "name": "", + "type": "int256" } ], "payable": false, @@ -313,7 +281,7 @@ const GovernanceABIJSON = ` { "constant": true, "inputs": [], - "name": "blockGasLimit", + "name": "totalStaked", "outputs": [ { "name": "", @@ -329,10 +297,10 @@ const GovernanceABIJSON = ` "inputs": [ { "name": "", - "type": "bytes32" + "type": "address" } ], - "name": "nodesOffsetByID", + "name": "nodesOffsetByAddress", "outputs": [ { "name": "", @@ -346,11 +314,11 @@ const GovernanceABIJSON = ` { "constant": true, "inputs": [], - "name": "totalStaked", + "name": "crs", "outputs": [ { "name": "", - "type": "uint256" + "type": "bytes32" } ], "payable": false, @@ -359,17 +327,12 @@ const GovernanceABIJSON = ` }, { "constant": true, - "inputs": [ - { - "name": "", - "type": "address" - } - ], - "name": "nodesOffsetByAddress", + "inputs": [], + "name": "roundLength", "outputs": [ { "name": "", - "type": "int256" + "type": "uint256" } ], "payable": false, @@ -379,7 +342,7 @@ const GovernanceABIJSON = ` { "constant": true, "inputs": [], - "name": "roundLength", + "name": "nextHalvingSupply", "outputs": [ { "name": "", @@ -392,14 +355,19 @@ const GovernanceABIJSON = ` }, { "constant": true, - "inputs": [], - "name": "nextHalvingSupply", - "outputs": [ + "inputs": [ { "name": "", "type": "uint256" } ], + "name": "dkgComplaints", + "outputs": [ + { + "name": "", + "type": "bytes" + } + ], "payable": false, "stateMutability": "view", "type": "function" @@ -420,6 +388,25 @@ const GovernanceABIJSON = ` }, { "constant": true, + "inputs": [ + { + "name": "", + "type": "address" + } + ], + "name": "dkgMPKReadys", + "outputs": [ + { + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, "inputs": [], "name": "lastHalvedAmount", "outputs": [ @@ -506,7 +493,7 @@ const GovernanceABIJSON = ` { "constant": true, "inputs": [], - "name": "minBlockInterval", + "name": "dkgMPKReadysCount", "outputs": [ { "name": "", @@ -519,21 +506,12 @@ const GovernanceABIJSON = ` }, { "constant": true, - "inputs": [ - { - "name": "", - "type": "uint256" - }, - { - "name": "", - "type": "uint256" - } - ], - "name": "dkgMasterPublicKeys", + "inputs": [], + "name": "minBlockInterval", "outputs": [ { "name": "", - "type": "bytes" + "type": "uint256" } ], "payable": false, @@ -546,17 +524,13 @@ const GovernanceABIJSON = ` { "name": "", "type": "uint256" - }, - { - "name": "", - "type": "address" } ], - "name": "dkgFinalizeds", + "name": "dkgMasterPublicKeys", "outputs": [ { "name": "", - "type": "bool" + "type": "bytes" } ], "payable": false, @@ -580,7 +554,7 @@ const GovernanceABIJSON = ` { "constant": true, "inputs": [], - "name": "lockupPeriod", + "name": "dkgFinalizedsCount", "outputs": [ { "name": "", @@ -593,13 +567,8 @@ const GovernanceABIJSON = ` }, { "constant": true, - "inputs": [ - { - "name": "", - "type": "uint256" - } - ], - "name": "dkgFinalizedsCount", + "inputs": [], + "name": "lockupPeriod", "outputs": [ { "name": "", |