Skip to content

Commit

Permalink
Combine 2 README
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitys7 committed Apr 17, 2024
1 parent 0201ec0 commit b0b31c9
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 260 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,26 @@ sed -i '' 's|rollapp_id =.*|rollapp_id = '\"$ROLLAPP_CHAIN_ID\"'|' "${ROLLAPP_HO
rollapp-wasm start
```

or as a systemd service:

```shell
sudo tee /etc/systemd/system/rollapp-wasm.service > /dev/null <<EOF
[Unit]
Description=rollapp-wasm
After=network.target
[Service]
Type=simple
User=$USER
ExecStart=$(which rollapp-wasm) start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
```

## Setup IBC between rollapp and local dymension hub node

### Install dymension relayer
Expand All @@ -209,6 +229,25 @@ After successful run, the new established channels will be shown
rly start hub-rollapp
```

or as a systemd service:

```shell
sudo tee /etc/systemd/system/relayer.service > /dev/null <<EOF
[Unit]
Description=rollapp
After=network.target
[Service]
Type=simple
User=$USER
ExecStart=$(which rly) start hub-rollapp
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
```

### Deploy the installed contract

```shell
Expand Down
260 changes: 0 additions & 260 deletions README.with-advanced-features.md

This file was deleted.

10 changes: 10 additions & 0 deletions scripts/ibc/setup_ibc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ if ! command -v $RELAYER_EXECUTABLE >/dev/null; then
exit 1
fi

# --------------------------------- change block time to easily create ibc channels --------------------------------- #
kill $(pgrep rollapp-wasm)
sed -i '' 's/empty_blocks_max_time = "3600s"/empty_blocks_max_time = "3s"/' ${ROLLAPP_HOME_DIR}/config/dymint.toml
rollapp-wasm start

# --------------------------------- rly init --------------------------------- #
RLY_PATH="$HOME/.relayer"
RLY_CONFIG_FILE="$RLY_PATH/config/config.yaml"
Expand Down Expand Up @@ -95,3 +100,8 @@ sleep 5
echo '# -------------------------------- IBC channel established ------------------------------- #'
echo "Channel Information:"
echo $(rly q channels "$ROLLAPP_CHAIN_ID" | jq '{ "rollapp-channel": .channel_id, "hub-channel": .counterparty.channel_id }')

# --------------------------------- revert empty block time to 1h --------------------------------- #
kill $(pgrep rollapp-wasm)
sed -i '' 's/empty_blocks_max_time = "3s"/empty_blocks_max_time = "3600s"/' ${ROLLAPP_HOME_DIR}/config/dymint.toml
rollapp-wasm start

0 comments on commit b0b31c9

Please sign in to comment.