diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-04-18 15:22:19 +0800 |
---|---|---|
committer | Mission Liao <mission.liao@dexon.org> | 2019-04-18 15:22:19 +0800 |
commit | 5e2ba25f78e409f6762bce312abce4c9f570510f (patch) | |
tree | f539077dfacc99373bde4e2a93b96d9142e9caaf | |
parent | bb60883f0c3d8a9db4db8ff22be162613004ff23 (diff) | |
download | dexon-wiki-5e2ba25f78e409f6762bce312abce4c9f570510f.tar dexon-wiki-5e2ba25f78e409f6762bce312abce4c9f570510f.tar.gz dexon-wiki-5e2ba25f78e409f6762bce312abce4c9f570510f.tar.bz2 dexon-wiki-5e2ba25f78e409f6762bce312abce4c9f570510f.tar.lz dexon-wiki-5e2ba25f78e409f6762bce312abce4c9f570510f.tar.xz dexon-wiki-5e2ba25f78e409f6762bce312abce4c9f570510f.tar.zst dexon-wiki-5e2ba25f78e409f6762bce312abce4c9f570510f.zip |
Remove governance contract access part, and make a dedicated page for it.
-rw-r--r-- | Rule-for-the-DEXON-node-set.md | 65 |
1 files changed, 1 insertions, 64 deletions
diff --git a/Rule-for-the-DEXON-node-set.md b/Rule-for-the-DEXON-node-set.md index 4b18f3c..fe1332b 100644 --- a/Rule-for-the-DEXON-node-set.md +++ b/Rule-for-the-DEXON-node-set.md @@ -30,67 +30,4 @@ Nodes shall not engage in any of the following conducts: 5. Failing to finish distributed key generation (DKG) 6. Failing to propose any blocks during a whole epoch -For 1. to 4., the entire stake will be confiscated immediately by DEXON Foundation. For 5., a fine of the `1 DXN` will be imposed and no blocks can be produced until such fine is paid under the governance contract. For 6., a fine of the `Block Reward*86400/total Node` will be imposed and no blocks can be produced until such fine is paid under the governance contract. - -## Contract Write function -In this section, we briefly introduce some functions that DEXON governance provides to write in. - -### Register -1. In DekuSan wallet, switch to the `owner's account`. -2. Navigate to the `Write` tab of the governance contract and select `register` from the dropdown menu. -3. Fill in the information like below; currently, you need 1M DXN to run a BP node. - - Node Public Key (you must hold the corresponding secret key) - - Name of the node - - Contact email - - Node Location - - Website URL -4. Click `Send` and `confirm` in DekuSan wallet. - -### Stake/Unstake -After registering, each node owner can continue depositing more stake into DEXON governance contract. This is super easy to achieve in DEXON governance contract. - 1. Switch to the `owner account` in DekuSan wallet. - 2. Navigate to the `Write` tab and select `stake` from the dropdown menu. - 3. Fill the amount of stake in the contract. - 4. Click `Send` and `confirm` in DekuSan wallet. - -On the other hand, each node owner can also unstake from DEXON governance contract. This is almost identical to operating stake function. - 1. Switch to the `owner account` in DekuSan wallet. - 2. Navigate to the `Write` tab and select `unstake` from the dropdown menu. - 3. Fill the amount of unstake in the contract. - 4. Click `Send` and `confirm` in DekuSan wallet. - -To ensure the stability of DEXON blockchain, the duration to withdraw the unstake coin is set 24 epochs, which corresponds around 1 day in real-world time. In the duration, the node can still propose block and earn the reward, but the node sill can be fined if violating any rule. -Note that, each node can only unstake once until the unstake is withdrawn. - -### Withdraw -After unstaking and wait for 24 epochs, the node can withdraw the stake. - 1. Switch to the `owner account` in DekuSan wallet. - 2. Navigate to the `Write` tab and select `withdraw` from the dropdown menu. - 3. Click `Send` and `confirm` in DekuSan wallet. - - -### Transfer Node Owner -A node owner can also transfer the owner right to others. - 1. Switch to the `owner account` in DekuSan wallet. - 2. Navigate to the `Write` tab and select `register` from the dropdown menu. - 3. Fill the `address` of the new owner. - 4. Click `Send` and `confirm` in DekuSan wallet. - -> WARNING: This is an IRREDUCIBLE operation. No one can recover if you transfer to a wrong address. Please double-check the address is correct. - -## Contract Read function -<!-- Most of the information can be found in DEXONSCAN website. To prevent in case, we introduce a method to read the status of DEXON blockchain. --> - -The latest system parameters can be found in the governance contract. We introduce some fruquently used functions. - -### nodes -`nodes` returns the status of a node, where the input is the order of the node. The order of a node can be query by the function `nodesOffsetByAddress`. - - -### nodeLength -`nodeLength` returns the current size of the node set. - -### nodesOffsetByAddress -`nodesOffsetByAddress` returns the order of a node, where the input is the address of the node. - - +For 1. to 4., the entire stake will be confiscated immediately by DEXON Foundation. For 5., a fine of the `1 DXN` will be imposed and no blocks can be produced until such fine is paid under the governance contract. For 6., a fine of the `Block Reward*86400/total Node` will be imposed and no blocks can be produced until such fine is paid under the governance contract.
\ No newline at end of file |