Skip to content

Commit

Permalink
relayer: try multiple cosmos testnet chains
Browse files Browse the repository at this point in the history
In debugging relayer support, let's set aside Penumbra chains entirely,
and focus on what should be a well-supported use case for the relayer:
one cosmos testnet to another cosmos testnet. Unfortunately, I don't
have any of these configs working yet, so they're commented out in the
`run-relayer` script, for now.
  • Loading branch information
conorsch committed Apr 4, 2023
1 parent f24a138 commit 2f5c036
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 6 deletions.
6 changes: 4 additions & 2 deletions deployments/relayer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ from testnet-preview to testnet.
```
./generate-configs preview
./generate-configs testnet
./configure-relayer penumbra-testnet penumbra-preview penumbra_path
./configure-relayer penumbra-preview babylon-testnet babylon
./configure-relayer
./run-relayer
```
Or, you can use `just` to run it all, soup to nuts. See the path configuration
block in the `./configure-relayer` script for some example paths between chains
that aren't yet known to work.

## Further reading
The config format for the JSON files are adapted from the [example-configs](https://github.com/cosmos/relayer/tree/main/docs/example-configs)
Expand Down
16 changes: 16 additions & 0 deletions deployments/relayer/configs/celestia-testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"type": "cosmos",
"value": {
"key": "default",
"chain-id": "blockspacerace-0",
"rpc-addr": "https://celestia-blockspacerace-rpc.brocha.in:443",
"account-prefix": "celestia",
"keyring-backend": "test",
"gas-adjustment": 1.0,
"gas-prices": "0.00utia",
"debug": true,
"timeout": "20s",
"output-format": "json",
"sign-mode": "direct"
}
}
16 changes: 16 additions & 0 deletions deployments/relayer/configs/cosmwasm-testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"type": "cosmos",
"value": {
"key": "default",
"chain-id": "malaga-420",
"rpc-addr": "https://rpc.malaga-420.cosmwasm.com:443",
"account-prefix": "wasm",
"keyring-backend": "test",
"gas-adjustment": 1.0,
"gas-prices": "0.03umlg",
"debug": true,
"timeout": "20s",
"output-format": "json",
"sign-mode": "direct"
}
}
16 changes: 16 additions & 0 deletions deployments/relayer/configs/osmosis-testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"type": "cosmos",
"value": {
"key": "default",
"chain-id": "osmo-test-4",
"rpc-addr": "https://rpc.testnet.osmosis.zone:443",
"account-prefix": "osmo",
"keyring-backend": "test",
"gas-adjustment": 1.0,
"gas-prices": "0.00uosmo",
"debug": true,
"timeout": "20s",
"output-format": "json",
"sign-mode": "direct"
}
}
9 changes: 7 additions & 2 deletions deployments/relayer/configure-relayer
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@ function create_paths() {
# Create Penumbra-only path, between preview and testnet. Works!
create_paths penumbra-testnet penumbra-preview penumbra_path

# Create path between Penumbra preview and Babylon testnet; not yet working =(
create_paths penumbra-preview babylon-testnet babylon
# Create paths between Penumbra and/or other Cosmos-adjacent testnets.
# These are not working yet, so commenting them out by default.
#
# create_paths penumbra-preview babylon-testnet babylon
# create_paths osmosis-testnet babylon-testnet osmosis
# create_paths osmosis-testnet cosmwasm-testnet osmosis-wasm
# create_paths osmosis-testnet celestia-testnet osmosis-celestia

>&2 echo "Emitting status info:"
rly chains list
Expand Down
3 changes: 1 addition & 2 deletions deployments/relayer/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ configs:
./generate-configs testnet

run:
./configure-relayer penumbra-testnet penumbra-preview penumbra_path
./configure-relayer penumbra-preview babylon-testnet babylon
./configure-relayer
./run-relayer

0 comments on commit 2f5c036

Please sign in to comment.