aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTravis CI <TravisCI@dexon.org>2019-03-14 11:08:48 +0800
committerTravis CI <TravisCI@dexon.org>2019-03-14 11:08:48 +0800
commitbb250e17fb9a52dd52a9a8da79354c19c326eace (patch)
tree94bde7f0893ddfc9edb22171664401351a4f23a8
parent2dfacb3c18bf9eaf6a3e4ac596cfe7f64e946957 (diff)
downloaddexon-wiki-bb250e17fb9a52dd52a9a8da79354c19c326eace.tar
dexon-wiki-bb250e17fb9a52dd52a9a8da79354c19c326eace.tar.gz
dexon-wiki-bb250e17fb9a52dd52a9a8da79354c19c326eace.tar.bz2
dexon-wiki-bb250e17fb9a52dd52a9a8da79354c19c326eace.tar.lz
dexon-wiki-bb250e17fb9a52dd52a9a8da79354c19c326eace.tar.xz
dexon-wiki-bb250e17fb9a52dd52a9a8da79354c19c326eace.tar.zst
dexon-wiki-bb250e17fb9a52dd52a9a8da79354c19c326eace.zip
Update Governance-Contract-Interface
-rw-r--r--Governance-Contract-Interface.md166
1 files changed, 28 insertions, 138 deletions
diff --git a/Governance-Contract-Interface.md b/Governance-Contract-Interface.md
index 343e287..071aa5c 100644
--- a/Governance-Contract-Interface.md
+++ b/Governance-Contract-Interface.md
@@ -10,29 +10,6 @@ The equivalent solidity interface can be found in the [dexon-foundation/governan
[
{
"constant": true,
- "inputs": [
- {
- "name": "",
- "type": "address"
- },
- {
- "name": "",
- "type": "address"
- }
- ],
- "name": "delegatorsOffset",
- "outputs": [
- {
- "name": "",
- "type": "int256"
- }
- ],
- "payable": false,
- "stateMutability": "view",
- "type": "function"
- },
- {
- "constant": true,
"inputs": [],
"name": "notarySetSize",
"outputs": [
@@ -114,6 +91,14 @@ The equivalent solidity interface can be found in the [dexon-foundation/governan
{
"name": "url",
"type": "string"
+ },
+ {
+ "name": "unstaked",
+ "type": "uint256"
+ },
+ {
+ "name": "unstaked_at",
+ "type": "uint256"
}
],
"payable": false,
@@ -182,37 +167,6 @@ The equivalent solidity interface can be found in the [dexon-foundation/governan
{
"name": "",
"type": "address"
- },
- {
- "name": "",
- "type": "uint256"
- }
- ],
- "name": "delegators",
- "outputs": [
- {
- "name": "owner",
- "type": "address"
- },
- {
- "name": "value",
- "type": "uint256"
- },
- {
- "name": "undelegated_at",
- "type": "uint256"
- }
- ],
- "payable": false,
- "stateMutability": "view",
- "type": "function"
- },
- {
- "constant": true,
- "inputs": [
- {
- "name": "",
- "type": "address"
}
],
"name": "dkgFinalizeds",
@@ -623,6 +577,11 @@ The equivalent solidity interface can be found in the [dexon-foundation/governan
"indexed": true,
"name": "NodeAddress",
"type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "Amount",
+ "type": "uint256"
}
],
"name": "Staked",
@@ -635,21 +594,14 @@ The equivalent solidity interface can be found in the [dexon-foundation/governan
"indexed": true,
"name": "NodeAddress",
"type": "address"
- }
- ],
- "name": "Unstaked",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
+ },
{
- "indexed": true,
- "name": "NodeAddress",
- "type": "address"
+ "indexed": false,
+ "name": "Amount",
+ "type": "uint256"
}
],
- "name": "NodeRemoved",
+ "name": "Unstaked",
"type": "event"
},
{
@@ -661,17 +613,12 @@ The equivalent solidity interface can be found in the [dexon-foundation/governan
"type": "address"
},
{
- "indexed": true,
- "name": "DelegatorAddress",
- "type": "address"
- },
- {
"indexed": false,
"name": "Amount",
"type": "uint256"
}
],
- "name": "Delegated",
+ "name": "Withdrawn",
"type": "event"
},
{
@@ -681,19 +628,9 @@ The equivalent solidity interface can be found in the [dexon-foundation/governan
"indexed": true,
"name": "NodeAddress",
"type": "address"
- },
- {
- "indexed": true,
- "name": "DelegatorAddress",
- "type": "address"
- },
- {
- "indexed": false,
- "name": "Amount",
- "type": "uint256"
}
],
- "name": "Undelegated",
+ "name": "NodeAdded",
"type": "event"
},
{
@@ -703,19 +640,9 @@ The equivalent solidity interface can be found in the [dexon-foundation/governan
"indexed": true,
"name": "NodeAddress",
"type": "address"
- },
- {
- "indexed": true,
- "name": "DelegatorAddress",
- "type": "address"
- },
- {
- "indexed": false,
- "name": "Amount",
- "type": "uint256"
}
],
- "name": "Withdrawn",
+ "name": "NodeRemoved",
"type": "event"
},
{
@@ -879,25 +806,6 @@ The equivalent solidity interface can be found in the [dexon-foundation/governan
"type": "function"
},
{
- "constant": true,
- "inputs": [
- {
- "name": "NodeAddress",
- "type": "address"
- }
- ],
- "name": "delegatorsLength",
- "outputs": [
- {
- "name": "",
- "type": "uint256"
- }
- ],
- "payable": false,
- "stateMutability": "view",
- "type": "function"
- },
- {
"constant": false,
"inputs": [
{
@@ -1011,7 +919,7 @@ The equivalent solidity interface can be found in the [dexon-foundation/governan
"type": "string"
}
],
- "name": "stake",
+ "name": "register",
"outputs": [],
"payable": true,
"stateMutability": "payable",
@@ -1020,21 +928,7 @@ The equivalent solidity interface can be found in the [dexon-foundation/governan
{
"constant": false,
"inputs": [],
- "name": "unstake",
- "outputs": [],
- "payable": false,
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "constant": false,
- "inputs": [
- {
- "name": "NodeAddress",
- "type": "address"
- }
- ],
- "name": "delegate",
+ "name": "stake",
"outputs": [],
"payable": true,
"stateMutability": "payable",
@@ -1044,11 +938,11 @@ The equivalent solidity interface can be found in the [dexon-foundation/governan
"constant": false,
"inputs": [
{
- "name": "NodeAddress",
- "type": "address"
+ "name": "Amount",
+ "type": "uint256"
}
],
- "name": "undelegate",
+ "name": "unstake",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
@@ -1056,12 +950,7 @@ The equivalent solidity interface can be found in the [dexon-foundation/governan
},
{
"constant": false,
- "inputs": [
- {
- "name": "NodeAddress",
- "type": "address"
- }
- ],
+ "inputs": [],
"name": "withdraw",
"outputs": [],
"payable": false,
@@ -1141,3 +1030,4 @@ The equivalent solidity interface can be found in the [dexon-foundation/governan
<!-- [[ABI AUTOGEN END]] -->
<!-- [[ABI AUTOGEN END]] -->
<!-- [[ABI AUTOGEN END]] -->
+<!-- [[ABI AUTOGEN END]] -->