Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: pull in staking docs from gaia #273

Merged
merged 14 commits into from
Dec 11, 2017
Merged

docs: pull in staking docs from gaia #273

merged 14 commits into from
Dec 11, 2017

Conversation

zramsay
Copy link
Contributor

@zramsay zramsay commented Nov 6, 2017

moves docs from cosmos/gaia#48

@zramsay zramsay changed the title docs: pull in staking docs WIP docs: pull in staking docs Nov 9, 2017
@rigelrozanski
Copy link
Contributor

lol nice commit messages

@rigelrozanski
Copy link
Contributor

@zramsay is it possible to organize these rst files a bit? This folder is just kind of a huge dump right now... I'd like to be able to open a folder and see everything relevant to gaia

@zramsay
Copy link
Contributor Author

zramsay commented Dec 6, 2017

good call. i was waiting for it grow & now we're at that point

Copy link
Contributor

@rigelrozanski rigelrozanski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Content looks good so-far, I'll go through actually running it later...... couple general comments:

  • we should use more word wrap, in vim I set my word wrap to I think about 80 characters... some of the old tutorial content still has the word wrap, but the new stuff doesn't.. this is obviously just for development.
  • the process flow between these 3 files is a bit confusing. There are kind of 2 end points here, we should maybe cleanup the tutorial flow a bit.

Using Gaia
==========

The purpose of the ``gaia`` staking module is to provide users with the ability to 1) declare candidacy as a validator, 2) bond/unbond to a candidate.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you're going to use numbers maybe make it a list? looks a bit weird - or use closed brackets maybe (1). Also let's add a slightly longer intro here.. I like what is in the https://github.com/cosmos/gaia/blob/develop/README.md


The purpose of the ``gaia`` staking module is to provide users with the ability to 1) declare candidacy as a validator, 2) bond/unbond to a candidate.

For the time being, the ``gaia`` tooling is installed seperately from the Cosmos-SDK:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the time being? gaia just builds off of SDK and is precursor mainnet (and mainnet testnet) so it will always be installed separately from the SDK... however, the staking module will sooner or later find its way into the SDK


::

gaia client query candidate --pubkey=<pub_key data>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also show how to use the gaia client query delegator-bond function so users can see the bond

::

gaia client tx unbond --amount=5fermion --name=charlie --pubkey=<pub_key data>
gaia client query account 48F74F48281C89E5E4BE9092F735EA519768E8EF
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the gaia client query delegator-bond as well here


::

gaia client tx send --amount=999fermion --sequence=2 --name=alice --to=48F74F48281C89E5E4BE9092F735EA519768E8EF
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use even numbers here? like 1000


::

gaia client tx send --amount=992fermion --sequence=1 --name=alice --to=5A35E4CC7B7DC0A5CB49CEA91763213A9AE92AD6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use even numbers here like 1000

Local Testnet
=============

This tutorial demonstrates the basics of setting up a gaia
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a comment as to the first tutorial in staking-module.rst - we should position the reader in each tutorial... unless that is already kind of implied via the UX of readthedocs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it's implied in the UX but I'll add some links where appropriate.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's fine then


Atlas is a community testnet which can be used to test setting up a
cosmos validator node. In addition to this tutorial you can also
follow `this video <https://www.youtube.com/watch?v=B-shjoqvnnY>`__.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this video still relevant? Maybe remove for now?


::

gaia client keys new bob
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should maybe just link to the first tutorial page to make the keys? shouldn't explain how to make the keys in a billion places

@zramsay zramsay changed the title WIP docs: pull in staking docs docs: pull in staking docs from gaia Dec 9, 2017
@zramsay
Copy link
Contributor Author

zramsay commented Dec 9, 2017

comments addressed

"height": 2963
}

Check out ``bob``'s account, which should now have 992 fermions:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"should now have 1000 fermions"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or rather 7 tokens if we scale down the tutorial

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll just add a note that the tokens are arbitrary in the tut


The first thing you'll want to do is either `create a local testnet <./local-testnet.html>`__ or
join a `public testnet <./public-testnet.html>`__. Either step is required before proceeding
(although you should browse below and make some keys first).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole paragraph is really confusing, the first thing you want to do is generate keys... I would change this paragraph to something along the lines:

Before proceeding with the tutorials you will need to:

  • set up some [keys](link to the generating keys sections )
  • Either
    -create a local testnet <./local-testnet.html>
    • or, join a public testnet <./public-testnet.html>
      Afterwords you may proceed with testing out the functionality.

join a `public testnet <./public-testnet.html>`__. Either step is required before proceeding
(although you should browse below and make some keys first).

Install
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't install come before setup testnet?


::

gaia client tx send --amount=1000fermion --sequence=1 --name=alice --to=5A35E4CC7B7DC0A5CB49CEA91763213A9AE92AD6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry just realized that if you get tokens from the faucet you only receive 10 https://www.cosmosvalidators.com/
As such we should really make the tutorial revolve around that - maybe scale everything down to 7 tokens (and give it a whirl to make sure then math adds up)

@rigelrozanski
Copy link
Contributor

@zramsay looks good, just a few more comments to address and I think we're good to merge

It looks like some commands were deprecated. I am not sure but old versions are broken anymore.
@zramsay zramsay merged commit a85f19a into develop Dec 11, 2017
@zramsay zramsay deleted the staking-docs branch December 11, 2017 18:50
ParthDesai pushed a commit to ChorusOne/cosmos-sdk that referenced this pull request Apr 19, 2021
* Rebuild PDF
* Separate commitment path (ref cosmos#258)
* Clarify connection versioning (ref cosmos#269)
* Note private store key flexibility (ref cosmos#145)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants