diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-02-25 19:35:06 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:22 +0800 |
commit | bfac6dd5391b871d148713014f2694d31d9b6ea4 (patch) | |
tree | b80909c9f5ad6f6021b3ebacff51c73469401765 /core/vm/oracle_contract_abi.go | |
parent | 2b2396b6bce0f21b515ac2d38556f6dca08b1770 (diff) | |
download | go-tangerine-bfac6dd5391b871d148713014f2694d31d9b6ea4.tar.gz go-tangerine-bfac6dd5391b871d148713014f2694d31d9b6ea4.tar.zst go-tangerine-bfac6dd5391b871d148713014f2694d31d9b6ea4.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": "", |