aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm
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-03-12 12:19:09 +0800
commitf1a9a1059033212cc86fdca7efcf176e799acd28 (patch)
tree9539a80636e081fa387eaf753a6c6f1b08b3a508 /core/vm
parent956b94f218b6dca3226048abb4874bf151e0dc65 (diff)
downloaddexon-f1a9a1059033212cc86fdca7efcf176e799acd28.tar.gz
dexon-f1a9a1059033212cc86fdca7efcf176e799acd28.tar.zst
dexon-f1a9a1059033212cc86fdca7efcf176e799acd28.zip
core: vm: update governance contract ABI
Diffstat (limited to 'core/vm')
-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"
}
],