Skip to content

Commit

Permalink
docs: update docs to reflect v15 (cosmos-sdk v0.47) changes (#2938)
Browse files Browse the repository at this point in the history
* docs: partially update gov proposals tutorials

* docs: update submitting, formating gov pages

* docs: update auth parms

* docs: update bank, distribution

* docs: crisis, distr, gov, mint

* docs: slashing

* docs: update staking params

* docs: rm deprecated bank params
  • Loading branch information
MSalopek authored Feb 13, 2024
1 parent 86382aa commit c5de5d0
Show file tree
Hide file tree
Showing 17 changed files with 528 additions and 432 deletions.
11 changes: 6 additions & 5 deletions docs/docs/delegators/delegator-guide-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ If you run your own full-node, just use `tcp://localhost:26657` as the address.
Finally, let us set the `chain-id` of the blockchain we want to interact with:

```bash
gaiad config chain-id cosmoshub-2
gaiad config chain-id cosmoshub-4
```

## Querying the State
Expand Down Expand Up @@ -484,7 +484,8 @@ At the end of the voting period, the proposal is accepted if there are more than
// <type>=text/parameter_change/software_upgrade
// ex value for flag: <gasPrice>=0.0025uatom
gaiad tx gov submit-proposal --title "Test Proposal" --description "My awesome proposal" --type <type> --deposit=10000000uatom --gas auto --gas-adjustment 1.5 --gas-prices <gasPrice> --from <delegatorKeyName>
// the proposal must meet the minimum deposit amount - please check the current chain params
gaiad tx gov submit-legacy-proposal --title "Test Text Proposal" --description "My awesome proposal" --type "text" --deposit=10000000uatom --gas auto --gas-adjustment 1.5 --gas-prices <gasPrice> --from <delegatorKeyName>
// Increase deposit of a proposal
// Retrieve proposalID from $gaiad query gov proposals --status deposit_period
Expand Down Expand Up @@ -512,10 +513,10 @@ gaiad tx staking delegate <validatorAddress> <amountToBond> --from <delegatorAdd
In order to sign, you will also need the `chain-id`, `account-number` and `sequence`. The `chain-id` is a unique identifier for the blockchain on which you are submitting the transaction. The `account-number` is an identifier generated when your account first receives funds. The `sequence` number is used to keep track of the number of transactions you have sent and prevent replay attacks.
Get the chain-id from the genesis file (`cosmoshub-2`), and the two other fields using the account query:
Get the chain-id from the genesis file (`4`), and the two other fields using the account query:
```bash
gaiad query account <yourAddress> --chain-id cosmoshub-2
gaiad query account <yourAddress> --chain-id cosmoshub-4
```
Then, copy `unsignedTx.json` and transfer it (e.g. via USB) to the offline computer. If it is not done already, [create an account on the offline computer](#using-a-computer). For additional security, you can double check the parameters of your transaction before signing it using the following command:
Expand All @@ -527,7 +528,7 @@ cat unsignedTx.json
Now, sign the transaction using the following command. You will need the `chain-id`, `sequence` and `account-number` obtained earlier:
```bash
gaiad tx sign unsignedTx.json --from <delegatorKeyName> --offline --chain-id cosmoshub-2 --sequence <sequence> --account-number <account-number> > signedTx.json
gaiad tx sign unsignedTx.json --from <delegatorKeyName> --offline --chain-id cosmoshub-4 --sequence <sequence> --account-number <account-number> > signedTx.json
```
Copy `signedTx.json` and transfer it back to the online computer. Finally, use the following command to broadcast the transaction:
Expand Down
14 changes: 7 additions & 7 deletions docs/docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This guide will explain how to install the `gaiad` binary and run the cli. With

## Build Requirements

At present, the SDK fully supports installation on linux distributions. For the purpose of this instruction set, we'll be using `Ubuntu 20.04.3 LTS`. It is also possible to install `gaiad` on Unix, while Windows may require additional unsupported third party installation. All steps are listed below for a clean install.
At present, the SDK fully supports installation on linux distributions. For the purpose of this instruction set, we'll be using `Ubuntu 22.04 LTS`. It is also possible to install `gaiad` on Unix, while Windows may require additional unsupported third party installation. All steps are listed below for a clean install.

1. [Update & install build tools](#build-tools)
2. [Install Go](#install-go)
Expand All @@ -28,7 +28,7 @@ sudo apt-get install -y make gcc
## Install Go

:::tip
**Go 1.20+** is required.
**Go 1.21+** is required.
:::

We suggest the following two ways to install Go. Check out the [official docs](https://golang.org/doc/install) and Go installer for the correct download for your operating system. Alternatively, you can install Go yourself from the command line. Detailed below are standard default installation locations, but feel free to customize.
Expand All @@ -37,12 +37,12 @@ We suggest the following two ways to install Go. Check out the [official docs](h

**Ubuntu:**

At the time of this writing, the latest release is `1.20.3`. We're going to download the tarball, extract it to `/usr/local`, and export `GOROOT` to our `$PATH`
At the time of this writing, the latest release is `1.21.7`. We're going to download the tarball, extract it to `/usr/local`, and export `GOROOT` to our `$PATH`

```bash
curl -OL https://go.dev/dl/go1.20.3.linux-amd64.tar.gz
curl -OL https://go.dev/dl/go1.21.7.darwin-amd64.tar.gz

sudo tar -C /usr/local -xvf https://go.dev/dl/go1.20.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xvf https://go.dev/dl/go1.21.7.darwin-amd64.tar.gz


export PATH=$PATH:/usr/local/go/bin
Expand Down Expand Up @@ -94,10 +94,10 @@ You should see something similar to the following:
```bash
name: gaia
server_name: gaiad
version: v9.0.0
version: v15.0.0
commit: 682770f2410ab0d33ac7f0c7203519d7a99fa2b6
build_tags: netgo,ledger
go: go version go1.20.3 linux/amd64
go: go version go1.21.7 linux/amd64
```

### Build Tags
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/getting-started/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ For reference, the list of `rpc_servers` and `persistent` peers can be found in
```bash
# Build gaiad binary and initialize chain
cd $HOME
git clone -b v14.1.0 https://github.com/cosmos/gaia --depth=1
git clone -b v15.0.0 https://github.com/cosmos/gaia --depth=1
cd gaiad
make install
gaiad init CUSTOM_MONIKER --chain-id cosmoshub-4
Expand Down
Loading

0 comments on commit c5de5d0

Please sign in to comment.