Skip to content

Commit

Permalink
Improve localosmosis docs (osmosis-labs#6679)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattverse authored Oct 13, 2023
1 parent 5528f30 commit c9e9b10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,9 @@ markdown:
###############################################################################
### Localnet ###
###############################################################################
#
# Please refer to https://github.com/osmosis-labs/osmosis/blob/main/tests/localosmosis/README.md for detailed
# usage of localnet.

localnet-keys:
. tests/localosmosis/scripts/add_keys.sh
Expand Down
4 changes: 3 additions & 1 deletion tests/localosmosis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LocalOsmosis comes in two flavors:
1. No initial state: brand new testnet with no initial state.
2. With mainnet state: creates a testnet from a mainnet state export

Both ways, the chain-id for LocalOsmosis is set to 'localosmosis'.

## Prerequisites

Ensure you have docker and docker-compose installed:
Expand Down Expand Up @@ -59,7 +61,7 @@ make localnet-keys
- These keys are added to your `--keyring-backend test`
- If the keys are already on your keyring, you will get an `"Error: aborted"`
- Ensure you use the name of the account as listed in the table below, as well as ensure you append the `--keyring-backend test` to your txs
- Example: `osmosisd tx bank send lo-test2 osmo1cyyzpxplxdzkeea7kwsydadg87357qnahakaks --keyring-backend test --chain-id LocalOsmosis`
- Example: `osmosisd tx bank send lo-test2 osmo1cyyzpxplxdzkeea7kwsydadg87357qnahakaks --keyring-backend test --chain-id localosmosis`

5. You can stop chain, keeping the state with

Expand Down

0 comments on commit c9e9b10

Please sign in to comment.