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>2019-04-09 21:32:49 +0800
commit8975b8f673796bf37ef6013173b0f6088dcd5d42 (patch)
tree85c98b360897ea64e97c53e2cce899f3a6d24efd
parentcbd9e4cd4cabb10b80f549311d2cd3c3af63a557 (diff)
downloaddexon-8975b8f673796bf37ef6013173b0f6088dcd5d42.tar
dexon-8975b8f673796bf37ef6013173b0f6088dcd5d42.tar.gz
dexon-8975b8f673796bf37ef6013173b0f6088dcd5d42.tar.bz2
dexon-8975b8f673796bf37ef6013173b0f6088dcd5d42.tar.lz
dexon-8975b8f673796bf37ef6013173b0f6088dcd5d42.tar.xz
dexon-8975b8f673796bf37ef6013173b0f6088dcd5d42.tar.zst
dexon-8975b8f673796bf37ef6013173b0f6088dcd5d42.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"
}
],