Skip to content

Commit

Permalink
chore: update default docker image for osmosis to be latest, update d…
Browse files Browse the repository at this point in the history
…ocs (#523)

* update default docker image for osmosis to be latest, update docs

* break chain init to 2 steps

* update custom genesis test case
  • Loading branch information
Anmol1696 authored Jul 12, 2024
1 parent 7b90a5f commit 4da2d43
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/pages/config/chains.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Here is how one can set the docker image of the default values
chains:
- id: osmosis-1
name: osmosis
image: ghcr.io/cosmology-tech/starship/osmosis:v15.0.0
image: ghcr.io/cosmology-tech/starship/osmosis:v25.0.0
coins: 100000000000000uosmo
...
```
Expand All @@ -44,7 +44,7 @@ trying setup a chain not supported in the `defaultChains`.
chains:
- id: osmosis-1
name: custom
image: ghcr.io/cosmology-tech/starship/osmosis:v15.1.2-wasmvm1.1.2
image: ghcr.io/cosmology-tech/starship/osmosis:v25.0.0
home: /root/.osmosisd
binary: osmosisd
prefix: osmo
Expand Down
2 changes: 1 addition & 1 deletion starship/charts/devnet/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Note: Order of `coins` matters, since we take the first one as part of gentx
defaultChains:
osmosis:
image: ghcr.io/cosmology-tech/starship/osmosis:v21.0.0
image: ghcr.io/cosmology-tech/starship/osmosis:v25.0.0
home: /root/.osmosisd
binary: osmosisd
prefix: osmo
Expand Down
3 changes: 2 additions & 1 deletion starship/charts/devnet/scripts/default/create-genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ NUM_RELAYERS="${NUM_RELAYERS:=0}"
# check if the binary has genesis subcommand or not, if not, set CHAIN_GENESIS_CMD to empty
CHAIN_GENESIS_CMD=$($CHAIN_BIN 2>&1 | grep -q "genesis-related subcommands" && echo "genesis" || echo "")

jq -r ".genesis[0].mnemonic" $KEYS_CONFIG | $CHAIN_BIN init $CHAIN_ID --chain-id $CHAIN_ID --recover
jq -r ".genesis[0].mnemonic" $KEYS_CONFIG | $CHAIN_BIN init $CHAIN_ID --chain-id test-1 --recover
sed -i -e "s/\"test-1\"/\"$CHAIN_ID\"/g" $CHAIN_DIR/config/genesis.json

# Add genesis keys to the keyring and self delegate initial coins
echo "Adding key...." $(jq -r ".genesis[0].name" $KEYS_CONFIG)
Expand Down
3 changes: 2 additions & 1 deletion starship/tests/e2e/configs/scripts/create-custom-genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ set -eu
# check if the binary has genesis subcommand or not, if not, set CHAIN_GENESIS_CMD to empty
CHAIN_GENESIS_CMD=$($CHAIN_BIN 2>&1 | grep -q "genesis-related subcommands" && echo "genesis" || echo "")

jq -r ".genesis[0].mnemonic" $KEYS_CONFIG | $CHAIN_BIN init $CHAIN_ID --chain-id $CHAIN_ID --recover
jq -r ".genesis[0].mnemonic" $KEYS_CONFIG | $CHAIN_BIN init $CHAIN_ID --chain-id test-1 --recover
sed -i -e "s/\"test-1\"/\"$CHAIN_ID\"/g" $CHAIN_DIR/config/genesis.json

# Add genesis keys to the keyring and self delegate initial coins
echo "Adding key...." $(jq -r ".genesis[0].name" $KEYS_CONFIG)
Expand Down

0 comments on commit 4da2d43

Please sign in to comment.