aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-03 23:23:26 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 18:55:22 +0800
commitd2c48f8596cef3393bf2f2a8070400207f830a8e (patch)
tree55e9a34f5eefced699394f59221f24f5fdec4de2
parentcd7952b1d358852d0808fc5eab6105d8814d4792 (diff)
downloaddexon-d2c48f8596cef3393bf2f2a8070400207f830a8e.tar
dexon-d2c48f8596cef3393bf2f2a8070400207f830a8e.tar.gz
dexon-d2c48f8596cef3393bf2f2a8070400207f830a8e.tar.bz2
dexon-d2c48f8596cef3393bf2f2a8070400207f830a8e.tar.lz
dexon-d2c48f8596cef3393bf2f2a8070400207f830a8e.tar.xz
dexon-d2c48f8596cef3393bf2f2a8070400207f830a8e.tar.zst
dexon-d2c48f8596cef3393bf2f2a8070400207f830a8e.zip
core: vm: update governance contract ABI
-rw-r--r--core/vm/governance.go84
1 files changed, 75 insertions, 9 deletions
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,
@@ -71,11 +71,25 @@ const abiJSON = `
{
"constant": true,
"inputs": [],
+ "name": "numNotarySet",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
"name": "phiRatio",
"outputs": [
{
"name": "",
- "type": "int256"
+ "type": "uint256"
}
],
"payable": false,
@@ -104,11 +118,39 @@ const abiJSON = `
{
"constant": true,
"inputs": [],
+ "name": "roundInterval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
"name": "lambdaDKG",
"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,
@@ -168,6 +210,20 @@ const abiJSON = `
},
{
"constant": true,
+ "inputs": [],
+ "name": "numDKGSet",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
"inputs": [
{
"name": "",
@@ -204,6 +260,20 @@ const abiJSON = `
"type": "function"
},
{
+ "constant": true,
+ "inputs": [],
+ "name": "maxBlockInterval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
"constant": false,
"inputs": [
{
@@ -238,10 +308,6 @@ const abiJSON = `
"inputs": [
{
"name": "",
- "type": "uint256"
- },
- {
- "name": "",
"type": "bytes"
}
],