From cd3296b362123b521378884a16ffd89a5ce13453 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Wed, 3 Oct 2018 23:23:26 +0800 Subject: core: vm: update governance contract ABI --- core/vm/governance.go | 84 +++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 75 insertions(+), 9 deletions(-) (limited to 'core') diff --git a/core/vm/governance.go b/core/vm/governance.go index bf3e33c39..ee2c11f1a 100644 --- a/core/vm/governance.go +++ b/core/vm/governance.go @@ -42,7 +42,7 @@ const abiJSON = ` "outputs": [ { "name": "", - "type": "int256" + "type": "uint256" } ], "payable": false, @@ -68,6 +68,20 @@ const abiJSON = ` "stateMutability": "view", "type": "function" }, + { + "constant": true, + "inputs": [], + "name": "numNotarySet", + "outputs": [ + { + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { "constant": true, "inputs": [], @@ -75,7 +89,7 @@ const abiJSON = ` "outputs": [ { "name": "", - "type": "int256" + "type": "uint256" } ], "payable": false, @@ -101,6 +115,20 @@ const abiJSON = ` "stateMutability": "view", "type": "function" }, + { + "constant": true, + "inputs": [], + "name": "roundInterval", + "outputs": [ + { + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { "constant": true, "inputs": [], @@ -108,7 +136,21 @@ const abiJSON = ` "outputs": [ { "name": "", - "type": "int256" + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "minBlockInterval", + "outputs": [ + { + "name": "", + "type": "uint256" } ], "payable": false, @@ -122,7 +164,7 @@ const abiJSON = ` "outputs": [ { "name": "", - "type": "int256" + "type": "uint256" } ], "payable": false, @@ -136,7 +178,7 @@ const abiJSON = ` "outputs": [ { "name": "", - "type": "int256" + "type": "uint256" } ], "payable": false, @@ -166,6 +208,20 @@ const abiJSON = ` "stateMutability": "view", "type": "function" }, + { + "constant": true, + "inputs": [], + "name": "numDKGSet", + "outputs": [ + { + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { "constant": true, "inputs": [ @@ -203,6 +259,20 @@ const abiJSON = ` "stateMutability": "view", "type": "function" }, + { + "constant": true, + "inputs": [], + "name": "maxBlockInterval", + "outputs": [ + { + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { "constant": false, "inputs": [ @@ -236,10 +306,6 @@ const abiJSON = ` { "constant": false, "inputs": [ - { - "name": "", - "type": "uint256" - }, { "name": "", "type": "bytes" -- cgit v1.2.3