docs: remove shelldown FTTB
This commit is contained in:
parent
d4dcc4c3c8
commit
22ed04c896
|
@ -10,8 +10,6 @@ Install
|
|||
|
||||
With go, it's one command:
|
||||
|
||||
.. code:: shelldown[0]
|
||||
|
||||
::
|
||||
|
||||
go get -u github.com/cosmos/cosmos-sdk
|
||||
|
@ -26,8 +24,6 @@ Generate some keys
|
|||
Let's generate two keys, one to receive an initial allocation of coins,
|
||||
and one to send some coins to later:
|
||||
|
||||
.. code:: shelldown[1]
|
||||
|
||||
::
|
||||
|
||||
basecli keys new cool
|
||||
|
@ -42,8 +38,6 @@ Initialize Basecoin
|
|||
|
||||
To initialize a new Basecoin blockchain, run:
|
||||
|
||||
.. code:: shelldown[2]
|
||||
|
||||
::
|
||||
|
||||
basecoin init <ADDRESS>
|
||||
|
@ -51,8 +45,6 @@ To initialize a new Basecoin blockchain, run:
|
|||
If you prefer not to copy-paste, you can provide the address
|
||||
programatically:
|
||||
|
||||
.. code:: shelldown[3]
|
||||
|
||||
::
|
||||
|
||||
basecoin init $(basecli keys get cool | awk '{print $2}')
|
||||
|
@ -70,8 +62,6 @@ Start Basecoin
|
|||
|
||||
Now we can start Basecoin:
|
||||
|
||||
.. code:: shelldown[4]
|
||||
|
||||
::
|
||||
|
||||
basecoin start
|
||||
|
@ -86,8 +76,6 @@ light-client utility. Basecli is used for sending transactions and
|
|||
querying the state. Leave Basecoin running and open a new terminal
|
||||
window. Here run:
|
||||
|
||||
.. code:: shelldown[5]
|
||||
|
||||
::
|
||||
|
||||
basecli init --node=tcp://localhost:46657 --genesis=$HOME/.basecoin/genesis.json
|
||||
|
@ -108,8 +96,6 @@ Send transactions
|
|||
Now we are ready to send some transactions. First Let's check the
|
||||
balance of the two accounts we setup earlier:
|
||||
|
||||
.. code:: shelldown[6]
|
||||
|
||||
::
|
||||
|
||||
ME=$(basecli keys get cool | awk '{print $2}')
|
||||
|
@ -120,8 +106,6 @@ balance of the two accounts we setup earlier:
|
|||
The first account is flush with cash, while the second account doesn't
|
||||
exist. Let's send funds from the first account to the second:
|
||||
|
||||
.. code:: shelldown[7]
|
||||
|
||||
::
|
||||
|
||||
basecli tx send --name=cool --amount=1000mycoin --to=$YOU --sequence=1
|
||||
|
@ -129,16 +113,12 @@ exist. Let's send funds from the first account to the second:
|
|||
Now if we check the second account, it should have ``1000`` 'mycoin'
|
||||
coins!
|
||||
|
||||
.. code:: shelldown[8]
|
||||
|
||||
::
|
||||
|
||||
basecli query account $YOU
|
||||
|
||||
We can send some of these coins back like so:
|
||||
|
||||
.. code:: shelldown[9]
|
||||
|
||||
::
|
||||
|
||||
basecli tx send --name=friend --amount=500mycoin --to=$ME --sequence=1
|
||||
|
@ -148,16 +128,12 @@ send from.
|
|||
|
||||
If we try to send too much, we'll get an error:
|
||||
|
||||
.. code:: shelldown[10]
|
||||
|
||||
::
|
||||
|
||||
basecli tx send --name=friend --amount=500000mycoin --to=$ME --sequence=2
|
||||
|
||||
Let's send another transaction:
|
||||
|
||||
.. code:: shelldown[11]
|
||||
|
||||
::
|
||||
|
||||
basecli tx send --name=cool --amount=2345mycoin --to=$YOU --sequence=2
|
||||
|
@ -165,8 +141,6 @@ Let's send another transaction:
|
|||
Note the ``hash`` value in the response - this is the hash of the
|
||||
transaction. We can query for the transaction by this hash:
|
||||
|
||||
.. code:: shelldown[12]
|
||||
|
||||
::
|
||||
|
||||
basecli query tx <HASH>
|
||||
|
@ -204,8 +178,6 @@ unlike Bitcoin's use of Unspent Transaction Outputs (UTXOs). Note
|
|||
Basecoin is a multi-asset cryptocurrency, so each account can have many
|
||||
different kinds of tokens.
|
||||
|
||||
.. code:: golang
|
||||
|
||||
::
|
||||
|
||||
type Account struct {
|
||||
|
@ -243,8 +215,6 @@ a list of outputs, and transfers all the tokens listed in the inputs
|
|||
from their corresponding accounts to the accounts listed in the output.
|
||||
The ``SendTx`` is structured as follows:
|
||||
|
||||
.. code:: golang
|
||||
|
||||
::
|
||||
|
||||
type SendTx struct {
|
||||
|
@ -307,8 +277,6 @@ To remove all the files created and refresh your environment (e.g., if
|
|||
starting this tutorial again or trying something new), the following
|
||||
commands are run:
|
||||
|
||||
.. code:: shelldown[end-of-tutorials]
|
||||
|
||||
::
|
||||
|
||||
basecli reset_all
|
||||
|
|
|
@ -29,7 +29,7 @@ Create keys
|
|||
|
||||
First, we name our key:
|
||||
|
||||
.. code:: shelldown
|
||||
::
|
||||
|
||||
basecli keys new alice
|
||||
|
||||
|
|
Loading…
Reference in New Issue