aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-03 23:23:26 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:38 +0800
commitcd3296b362123b521378884a16ffd89a5ce13453 (patch)
tree841e5dfcd6798cc80636c6d7848cba3e0cff1419
parentf229cc40e24d0e3a0728a5557d68bfba9b22c6cd (diff)
downloadgo-tangerine-cd3296b362123b521378884a16ffd89a5ce13453.tar
go-tangerine-cd3296b362123b521378884a16ffd89a5ce13453.tar.gz
go-tangerine-cd3296b362123b521378884a16ffd89a5ce13453.tar.bz2
go-tangerine-cd3296b362123b521378884a16ffd89a5ce13453.tar.lz
go-tangerine-cd3296b362123b521378884a16ffd89a5ce13453.tar.xz
go-tangerine-cd3296b362123b521378884a16ffd89a5ce13453.tar.zst
go-tangerine-cd3296b362123b521378884a16ffd89a5ce13453.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"
}
],