diff --git a/docs/sdk/lcd-rest-api.yaml b/docs/sdk/lcd-rest-api.yaml index 34ccaa0ac8..408b2a792b 100644 --- a/docs/sdk/lcd-rest-api.yaml +++ b/docs/sdk/lcd-rest-api.yaml @@ -2,9 +2,9 @@ swagger: '2.0' info: version: '1.1.0' title: Light client daemon to interface with Cosmos baseserver via REST - description: Specification for the LCD provided by `gaiacli rest-server` + description: Specification for the LCD provided by `gaiacli advanced rest-server` + - securityDefinitions: kms: type: basic @@ -58,7 +58,7 @@ paths: responses: 200: description: '"true" or "false"' - + /keys: get: summary: List of accounts stored locally @@ -199,7 +199,7 @@ paths: # description: Tx was send and will probably be added to the next block # 400: # description: The Tx was malformated - + /accounts/{address}: parameters: - in: path @@ -545,7 +545,7 @@ paths: # description: Tx was send and will probably be added to the next block # 400: # description: The Tx was malformated - + definitions: Address: type: string @@ -630,7 +630,7 @@ definitions: Sig: type: string default: '' - Pubkey: + Pubkey: type: string default: '' TxSigned: @@ -704,17 +704,17 @@ definitions: properties: header: type: object - properties: + properties: chain_id: type: string example: gaia-2 - height: + height: type: number example: 1 - time: + time: type: string example: '2017-12-30T05:53:09.287+01:00' - num_txs: + num_txs: type: number example: 0 last_block_id: diff --git a/docs/staking/intro.rst b/docs/staking/intro.rst index 7b5acb9863..5f7cdd950e 100644 --- a/docs/staking/intro.rst +++ b/docs/staking/intro.rst @@ -203,7 +203,7 @@ where the ``--sequence`` flag is to be incremented for each transaction, the ``- :: - Please enter passphrase for alice: + Please enter passphrase for alice: { "check_tx": { "gas": 30 @@ -250,7 +250,7 @@ First, we need the pub_key data: :: - cat $HOME/.gaia2/priv_validator.json + cat $HOME/.gaia2/priv_validator.json the first part will look like: @@ -264,13 +264,13 @@ Now ``bob`` can declare candidacy to that pubkey: :: - gaiacli declare-candidacy --amount=10mycoin --name=bob --pubkey= --moniker=bobby + gaiacli stake create-validator --amount=10mycoin --name=bob --pubkey= --moniker=bobby with an output like: :: - Please enter passphrase for bob: + Please enter passphrase for bob: { "check_tx": { "gas": 30 @@ -285,7 +285,7 @@ We should see ``bob``'s account balance decrease by 10 mycoin: :: - gaiacli account 5D93A6059B6592833CBC8FA3DA90EE0382198985 + gaiacli account 5D93A6059B6592833CBC8FA3DA90EE0382198985 To confirm for certain the new validator is active, ask the tendermint node: @@ -306,19 +306,19 @@ First let's have ``alice`` send some coins to ``charlie``: :: - gaiacli tx --amount=1000mycoin --sequence=2 --name=alice --to=48F74F48281C89E5E4BE9092F735EA519768E8EF + gaiacli send --amount=1000mycoin --sequence=2 --name=alice --to=48F74F48281C89E5E4BE9092F735EA519768E8EF Then ``charlie`` will delegate some mycoin to ``bob``: :: - gaiacli tx delegate --amount=10mycoin --name=charlie --pubkey= + gaiacli advanced tendermint tx delegate --amount=10mycoin --name=charlie --pubkey= You'll see output like: :: - Please enter passphrase for charlie: + Please enter passphrase for charlie: { "check_tx": { "gas": 30 @@ -334,7 +334,7 @@ To get more information about the candidate, try: :: - gaiacli query candidate --pubkey= + gaiacli stake validator --pubkey= and you'll see output similar to: @@ -367,7 +367,7 @@ It's also possible the query the delegator's bond like so: :: - gaiacli query delegator-bond --delegator-address 48F74F48281C89E5E4BE9092F735EA519768E8EF --pubkey 52D6FCD8C92A97F7CCB01205ADF310A18411EA8FDCC10E65BF2FCDB05AD1689B + gaiacli stake delegation --delegator-address 48F74F48281C89E5E4BE9092F735EA519768E8EF --pubkey 52D6FCD8C92A97F7CCB01205ADF310A18411EA8FDCC10E65BF2FCDB05AD1689B with an output similar to: @@ -383,7 +383,7 @@ with an output similar to: "Shares": 20 } } - + where the ``--delegator-address`` is ``charlie``'s address and the ``-pubkey`` is the same as we've been using. @@ -396,7 +396,7 @@ your VotingPower reduce and your account balance increase. :: - gaiacli unbond --amount=5mycoin --name=charlie --pubkey= + gaiacli stake unbond --amount=5mycoin --name=charlie --pubkey= gaiacli account 48F74F48281C89E5E4BE9092F735EA519768E8EF See the bond decrease with ``gaiacli query delegator-bond`` like above. diff --git a/docs/staking/testnet.rst b/docs/staking/testnet.rst index 92aa93eb26..c5341fee66 100644 --- a/docs/staking/testnet.rst +++ b/docs/staking/testnet.rst @@ -16,7 +16,7 @@ First, generate a couple of genesis transactions to be incorparated into the gen gaiacli keys list **Note:** If you've already run these tests you may need to overwrite keys using the ``--OWK`` flag -When you list the keys you should see two addresses, we'll need these later so take note. +When you list the keys you should see two addresses, we'll need these later so take note. Now let's actually create the genesis files for both nodes: :: @@ -44,7 +44,7 @@ Nice. We can also lookup the validator set: :: - gaiacli validatorset + gaiacli advanced tendermint validatorset Then, we try to transfer some ``steak`` to another account: @@ -72,7 +72,7 @@ Finally, to relinquish all your power, unbond some coins. You should see your Vo :: - gaiacli unbond --chain-id= --name=test + gaiacli stake unbond --chain-id= --name=test That's it!