Skip to content

Commit

Permalink
Replace /tx raw create-client/ with /create client/
Browse files Browse the repository at this point in the history
  • Loading branch information
adizere committed Apr 8, 2021
1 parent a35a225 commit 4dd8982
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
21 changes: 11 additions & 10 deletions guide/src/tutorial_client_raw.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ First you will need to create a client for each chain:
This command submits a transaction to a destination chain (`ibc-0`) with a request to create a client for a source chain (`ibc-1`):

```shell
hermes tx raw create-client ibc-0 ibc-1
hermes -j create client ibc-0 ibc-1 | jq
```

if the command is successful a message similar to the one below will be displayed `status:success`:
If the command is successful a message similar to the one below will be displayed,
having `status:success`:

```json
{
Expand All @@ -36,10 +37,10 @@ if the command is successful a message similar to the one below will be displaye
You can also execute a __query__ to view the client state on destination chain `ibc-0` by specifying the `client_id` value `07-tendermint-0`:

```shell
hermes query client state ibc-0 07-tendermint-0
hermes -j query client state ibc-0 07-tendermint-0 | jq
```

which show a message similar to the one below:
which will output a message similar to the one below:

```json
{
Expand Down Expand Up @@ -84,10 +85,10 @@ which show a message similar to the one below:
Now let's do the same for `ibc-1` as the destination chain:

```shell
hermes tx raw create-client ibc-1 ibc-0
hermes -j create client ibc-1 ibc-0 | jq
```

Take note of the `client_id` allocated for this client. In the examples we assume is `07-tendermint-1`.
Take note of the `client_id` allocated for this client. In the subsequent examples we assume is `07-tendermint-1`.

As before, if the command is successful a message with `status:success` is displayed:

Expand All @@ -108,16 +109,16 @@ As before, if the command is successful a message with `status:success` is displ
}
```

### 1.2 `update-client`
### 1.2 `update client`

Client states can be updated by sending an `update-client` transaction:
Client states can be updated by sending an `update client` transaction:

```shell
hermes tx raw update-client ibc-0 ibc-1 07-tendermint-0
hermes -j update client ibc-0 ibc-1 07-tendermint-0
```

```shell
hermes tx raw update-client ibc-1 ibc-0 07-tendermint-1
hermes -j update client ibc-1 ibc-0 07-tendermint-1
```

## Next Steps
Expand Down
4 changes: 2 additions & 2 deletions guide/src/tutorial_raw.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ In the rest of this section we will show how to create the clients, establish a
A chain allocates identifiers when it creates clients, connections and channels. These identifiers can subsequently be used to refer to existing clients, connections and channels.

Chains allocate identifiers using a chain specific allocation scheme.
Currently, cosmos-SDK implementation uses:
Currently, Cosmos-SDK implementation uses:
- `07-tendermint-<n>` for tendermint clients
- For example `07-tendermin-0` is assigned to the first client created on `ibc-1`:
```shell
hermes tx raw create-client ibc-1 ibc-0 | jq
hermes -j create client ibc-1 ibc-0 | jq
```
```json
{
Expand Down
2 changes: 1 addition & 1 deletion guide/src/upgrade_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ commit: 95b07e641d1f69ee12dd911e92b1679f2c64d385
2. Create one client on `ibc-1` for `ibc-0`:

```shell
$ hermes tx raw create-client ibc-1 ibc-0
$ hermes create client ibc-1 ibc-0
```

3. Create and submit an upgrade plan for chain `ibc-0`:
Expand Down

0 comments on commit 4dd8982

Please sign in to comment.