From e5c72235499f5bf052cbbe879b840e0b97d5811c Mon Sep 17 00:00:00 2001 From: Michael Egorov Date: Sun, 1 Sep 2019 16:27:13 +0200 Subject: [PATCH] Collect staking rewards --- docs/source/guides/staking_guide.rst | 56 ++++++++++++++++++++++++---- 1 file changed, 49 insertions(+), 7 deletions(-) diff --git a/docs/source/guides/staking_guide.rst b/docs/source/guides/staking_guide.rst index e8e2c12d7..7203edfb0 100644 --- a/docs/source/guides/staking_guide.rst +++ b/docs/source/guides/staking_guide.rst @@ -39,6 +39,8 @@ All staking-related operations done by StakeHolder are performed through the ``n +----------------------+-------------------------------------------------------------------------------+ | ``detach-worker`` | Detach worker currently bonded to a staker | +----------------------+-------------------------------------------------------------------------------+ +| ``collect-reward`` | Withdraw staking compensation from the contract to your wallet | ++----------------------+-------------------------------------------------------------------------------+ | ``divide`` | Create a new stake from part of an existing one | +----------------------+-------------------------------------------------------------------------------+ | ``collect-reward`` | Withdraw staking or policy rewards | @@ -56,6 +58,8 @@ All staking-related operations done by StakeHolder are performed through the ``n +-----------------+--------------------------------------------+ | ``--index`` | Stake index | +-----------------+--------------------------------------------+ +| ``--hw-wallet`` | Use a hardware wallet | ++-----------------+--------------------------------------------+ Staking Overview @@ -118,15 +122,17 @@ Initialize a new stakeholder If you ran ``geth`` node as above, your ```` is ``ipc:///home//.ethereum/goerli/geth.ipc``. +Please note that you want to use ``--hw-wallet`` if you use a hardware wallet in +order for ``nucypher`` to not ask you for the password. + Initialize a new stake ~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: bash - (nucypher)$ nucypher stake create + (nucypher)$ nucypher stake create --hw-wallet Select staking account [0]: 0 - Enter password to unlock 0xbb01c4fE50f91eF73c5dD6eD89f38D55A6b1EdCA: Enter stake value in NU [15000]: 15000 Enter stake duration (30 periods minimum): 30 @@ -172,6 +178,8 @@ Initialize a new stake Successfully transmitted stake initialization transactions. +If you used a hardware wallet, you will need to confirm two transactions here. + List existing stakes ~~~~~~~~~~~~~~~~~~~~~~~ @@ -196,11 +204,12 @@ Bond an Ursula to a Staker ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ After you created an Ethereum node for your worker (see below about the worker), -you can set the worker: +you can set the worker. The stake which doesn't yet have a worker will be +highlighted in yellow: .. code:: bash - (nucypher)$ nucypher stake set-worker + (nucypher)$ nucypher stake set-worker --hw-wallet ======================================= Active Stakes ========================================= @@ -224,12 +233,45 @@ by copying and pasting the address to `Goerli Etherscan