From dab07defdaab1a74f8650f27b38ac38a15513282 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 20 Nov 2023 08:38:57 -0600 Subject: [PATCH 01/34] allow all ica messages in ci --- scripts/ci/setup-icad.sh | 2 +- scripts/ci/setup-stargaze.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/setup-icad.sh b/scripts/ci/setup-icad.sh index 7894d7342..e5a0a2b2c 100755 --- a/scripts/ci/setup-icad.sh +++ b/scripts/ci/setup-icad.sh @@ -18,7 +18,7 @@ icad add-genesis-account $(icad keys --keyring-backend test show validator -a) 1 icad add-genesis-account $RLYKEY 1000000000000$DENOM icad add-genesis-account cosmos1y8tcah6r989vna00ag65xcqn6mpasjjdd2e5u2 1000000000000$DENOM # Update host chain genesis to allow x/bank/MsgSend ICA tx execution -sed -i -e 's/\"allow_messages\":.*/\"allow_messages\": [\"\/cosmos.bank.v1beta1.MsgSend\", \"\/cosmos.staking.v1beta1.MsgDelegate\"]/g' ~/.ica/config/genesis.json +# sed -i -e 's/\"allow_messages\":.*/\"allow_messages\": [\"\/cosmos.bank.v1beta1.MsgSend\", \"\/cosmos.staking.v1beta1.MsgDelegate\"]/g' ~/.ica/config/genesis.json icad gentx validator 900000000$DENOM --keyring-backend test --chain-id $CHAINID icad collect-gentxs diff --git a/scripts/ci/setup-stargaze.sh b/scripts/ci/setup-stargaze.sh index e06f3125b..8f98c1fb7 100755 --- a/scripts/ci/setup-stargaze.sh +++ b/scripts/ci/setup-stargaze.sh @@ -15,7 +15,7 @@ sed -i 's/pruning = "syncable"/pruning = "nothing"/g' ~/.starsd/config/app.toml sed -i 's/enable = false/enable = true/g' ~/.starsd/config/app.toml sed -i -e 's/timeout_commit = "5s"/timeout_commit = "100ms"/g' ~/.starsd/config/config.toml sed -i -e 's/timeout_propose = "3s"/timeout_propose = "100ms"/g' ~/.starsd/config/config.toml -sed -i -e 's/\"allow_messages\":.*/\"allow_messages\": [\"\/cosmos.bank.v1beta1.MsgSend\", \"\/cosmos.staking.v1beta1.MsgDelegate\"]/g' ~/.starsd/config/genesis.json +# sed -i -e 's/\"allow_messages\":.*/\"allow_messages\": [\"\/cosmos.bank.v1beta1.MsgSend\", \"\/cosmos.staking.v1beta1.MsgDelegate\"]/g' ~/.starsd/config/genesis.json starsd keys --keyring-backend test add validator starsd genesis add-genesis-account $(starsd keys --keyring-backend test show validator -a) 1000000000000$DENOM From de1a1e12770d0afea9ba20e8d3d80f7f3adfd802 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 20 Nov 2023 09:06:01 -0600 Subject: [PATCH 02/34] decrease timeout, change port grpc --- scripts/ci/setup-gaia.sh | 5 +++-- scripts/ci/setup-icad.sh | 5 +++-- scripts/ci/setup-osmosis.sh | 5 +++-- scripts/ci/setup-stargaze.sh | 1 + scripts/ci/upgrade/setup-preinstalled-stargaze.sh | 1 + 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/scripts/ci/setup-gaia.sh b/scripts/ci/setup-gaia.sh index 6e0040275..307c62584 100755 --- a/scripts/ci/setup-gaia.sh +++ b/scripts/ci/setup-gaia.sh @@ -10,8 +10,9 @@ sed -i 's#tcp://127.0.0.1:26657#tcp://0.0.0.0:26657#g' ~/.gaia/config/config.tom sed -i "s/\"stake\"/\"$DENOM\"/g" ~/.gaia/config/genesis.json sed -i 's/pruning = "syncable"/pruning = "nothing"/g' ~/.gaia/config/app.toml sed -i 's/enable = false/enable = true/g' ~/.gaia/config/app.toml -sed -i -e 's/timeout_commit = "5s"/timeout_commit = "1s"/g' ~/.gaia/config/config.toml -sed -i -e 's/timeout_propose = "3s"/timeout_propose = "1s"/g' ~/.gaia/config/config.toml +sed -i 's/localhost:9090/0.0.0.0:9090/g' ~/.gaia/config/app.toml +sed -i -e 's/timeout_commit = "5s"/timeout_commit = "100ms"/g' ~/.gaia/config/config.toml +sed -i -e 's/timeout_propose = "3s"/timeout_propose = "100ms"/g' ~/.gaia/config/config.toml gaiad keys --keyring-backend test add validator gaiad add-genesis-account $(gaiad keys --keyring-backend test show validator -a) 100000000000$DENOM diff --git a/scripts/ci/setup-icad.sh b/scripts/ci/setup-icad.sh index e5a0a2b2c..b365c222a 100755 --- a/scripts/ci/setup-icad.sh +++ b/scripts/ci/setup-icad.sh @@ -10,8 +10,9 @@ sed -i 's#tcp://127.0.0.1:26657#tcp://0.0.0.0:26657#g' ~/.ica/config/config.toml sed -i "s/\"stake\"/\"$DENOM\"/g" ~/.ica/config/genesis.json sed -i 's/pruning = "syncable"/pruning = "nothing"/g' ~/.ica/config/app.toml sed -i 's/enable = false/enable = true/g' ~/.ica/config/app.toml -sed -i -e 's/timeout_commit = "5s"/timeout_commit = "1s"/g' ~/.ica/config/config.toml -sed -i -e 's/timeout_propose = "3s"/timeout_propose = "1s"/g' ~/.ica/config/config.toml +sed -i 's/localhost:9090/0.0.0.0:9090/g' ~/.ica/config/app.toml +sed -i -e 's/timeout_commit = "5s"/timeout_commit = "100ms"/g' ~/.ica/config/config.toml +sed -i -e 's/timeout_propose = "3s"/timeout_propose = "100ms"/g' ~/.ica/config/config.toml icad keys --keyring-backend test add validator icad add-genesis-account $(icad keys --keyring-backend test show validator -a) 1000000000000$DENOM diff --git a/scripts/ci/setup-osmosis.sh b/scripts/ci/setup-osmosis.sh index 60d9e9140..026d0a3ea 100755 --- a/scripts/ci/setup-osmosis.sh +++ b/scripts/ci/setup-osmosis.sh @@ -10,8 +10,9 @@ sed -i 's#tcp://127.0.0.1:26657#tcp://0.0.0.0:26657#g' ~/.osmosisd/config/config sed -i "s/\"stake\"/\"$DENOM\"/g" ~/.osmosisd/config/genesis.json sed -i 's/pruning = "syncable"/pruning = "nothing"/g' ~/.osmosisd/config/app.toml sed -i 's/enable = false/enable = true/g' ~/.osmosisd/config/app.toml -sed -i -e 's/timeout_commit = "5s"/timeout_commit = "1s"/g' ~/.osmosisd/config/config.toml -sed -i -e 's/timeout_propose = "3s"/timeout_propose = "1s"/g' ~/.osmosisd/config/config.toml +sed -i 's/localhost:9090/0.0.0.0:9090/g' ~/.osmosisd/config/app.toml +sed -i -e 's/timeout_commit = "5s"/timeout_commit = "100ms"/g' ~/.osmosisd/config/config.toml +sed -i -e 's/timeout_propose = "3s"/timeout_propose = "100ms"/g' ~/.osmosisd/config/config.toml osmosisd keys --keyring-backend test add validator osmosisd add-genesis-account $(osmosisd keys --keyring-backend test show validator -a) 100000000000$DENOM diff --git a/scripts/ci/setup-stargaze.sh b/scripts/ci/setup-stargaze.sh index 8f98c1fb7..a323b305a 100755 --- a/scripts/ci/setup-stargaze.sh +++ b/scripts/ci/setup-stargaze.sh @@ -13,6 +13,7 @@ sed -i 's#tcp://127.0.0.1:26657#tcp://0.0.0.0:26657#g' ~/.starsd/config/config.t sed -i "s/\"stake\"/\"$DENOM\"/g" ~/.starsd/config/genesis.json sed -i 's/pruning = "syncable"/pruning = "nothing"/g' ~/.starsd/config/app.toml sed -i 's/enable = false/enable = true/g' ~/.starsd/config/app.toml +sed -i 's/localhost:9090/0.0.0.0:9090/g' ~/.starsd/config/app.toml sed -i -e 's/timeout_commit = "5s"/timeout_commit = "100ms"/g' ~/.starsd/config/config.toml sed -i -e 's/timeout_propose = "3s"/timeout_propose = "100ms"/g' ~/.starsd/config/config.toml # sed -i -e 's/\"allow_messages\":.*/\"allow_messages\": [\"\/cosmos.bank.v1beta1.MsgSend\", \"\/cosmos.staking.v1beta1.MsgDelegate\"]/g' ~/.starsd/config/genesis.json diff --git a/scripts/ci/upgrade/setup-preinstalled-stargaze.sh b/scripts/ci/upgrade/setup-preinstalled-stargaze.sh index 1f58b77d4..055a9c3c6 100755 --- a/scripts/ci/upgrade/setup-preinstalled-stargaze.sh +++ b/scripts/ci/upgrade/setup-preinstalled-stargaze.sh @@ -14,6 +14,7 @@ sed -i 's#tcp://127.0.0.1:26657#tcp://0.0.0.0:26657#g' $STARGAZE_HOME/config/con sed -i "s/\"stake\"/\"$DENOM\"/g" $STARGAZE_HOME/config/genesis.json sed -i 's/pruning = "syncable"/pruning = "nothing"/g' $STARGAZE_HOME/config/app.toml sed -i 's/enable = false/enable = true/g' $STARGAZE_HOME/config/app.toml +sed -i 's/localhost:9090/0.0.0.0:9090/g' $STARGAZE_HOME/config/app.toml sed -i 's/172800s/60s/g' $STARGAZE_HOME/config/genesis.json sed -i -e 's/timeout_commit = "5s"/timeout_commit = "100ms"/g' ~/.starsd/config/config.toml sed -i -e 's/timeout_propose = "3s"/timeout_propose = "100ms"/g' ~/.starsd/config/config.toml From ec2df284ce8c6b76e584c8c2a19aefdbd553ae28 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 20 Nov 2023 09:07:34 -0600 Subject: [PATCH 03/34] fix location --- scripts/ci/upgrade/setup-preinstalled-stargaze.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/upgrade/setup-preinstalled-stargaze.sh b/scripts/ci/upgrade/setup-preinstalled-stargaze.sh index 055a9c3c6..ca21220e2 100755 --- a/scripts/ci/upgrade/setup-preinstalled-stargaze.sh +++ b/scripts/ci/upgrade/setup-preinstalled-stargaze.sh @@ -16,8 +16,8 @@ sed -i 's/pruning = "syncable"/pruning = "nothing"/g' $STARGAZE_HOME/config/app. sed -i 's/enable = false/enable = true/g' $STARGAZE_HOME/config/app.toml sed -i 's/localhost:9090/0.0.0.0:9090/g' $STARGAZE_HOME/config/app.toml sed -i 's/172800s/60s/g' $STARGAZE_HOME/config/genesis.json -sed -i -e 's/timeout_commit = "5s"/timeout_commit = "100ms"/g' ~/.starsd/config/config.toml -sed -i -e 's/timeout_propose = "3s"/timeout_propose = "100ms"/g' ~/.starsd/config/config.toml +sed -i -e 's/timeout_commit = "5s"/timeout_commit = "100ms"/g' $STARGAZE_HOME/config/config.toml +sed -i -e 's/timeout_propose = "3s"/timeout_propose = "100ms"/g' $STARGAZE_HOME/config/config.toml starsd keys --keyring-backend test add validator --home $STARGAZE_HOME starsd keys --keyring-backend test add funder --home $STARGAZE_HOME starsd add-genesis-account $(starsd keys --keyring-backend test show validator -a --home $STARGAZE_HOME) 10000000000000$DENOM --home $STARGAZE_HOME From d52dfe9c9b8968baff946e3dce608bb0559a19dd Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 20 Nov 2023 09:22:47 -0600 Subject: [PATCH 04/34] increase vote height --- .drone.yml | 15 ++++++++------- scripts/ci/upgrade/proposal.sh | 6 +++--- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 178fd845d..f8e6eee0a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -48,8 +48,8 @@ steps: path: /go commands: - apk add --no-cache ca-certificates build-base git - - wget https://github.com/CosmWasm/wasmvm/releases/download/v1.4.0/libwasmvm_muslc.x86_64.a -O /lib/libwasmvm_muslc.a - - echo "8ea2e3b5fae83e671da2bb51115adc88591045953f509955ec38dc02ea5a7b94 /lib/libwasmvm_muslc.a" | sha256sum -c + - wget https://github.com/CosmWasm/wasmvm/releases/download/v1.5.0/libwasmvm_muslc.x86_64.a -O /lib/libwasmvm_muslc.a + - echo "465e3a088e96fd009a11bfd234c69fb8a0556967677e54511c084f815cf9ce63 /lib/libwasmvm_muslc.a" | sha256sum -c - LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build - echo "Ensuring binary is statically linked ..." && (file $PWD/bin/starsd | grep "statically linked") environment: @@ -77,12 +77,13 @@ steps: password: from_secret: docker_password tags: - - 12.0.0-alpha.1 + - 13.0.0-alpha.3 when: event: - push branch: - spoorrthi/remove-claim + - jhernandez/fix-ci - name: docker_release image: plugins/docker settings: @@ -345,12 +346,12 @@ steps: commands: - /bin/bash ./scripts/ci/transfer-relayer.sh - name: proposal - image: publicawesome/stargaze:11.0.0 + image: publicawesome/stargaze:12.1.0 commands: - ./scripts/ci/upgrade/proposal.sh - name: stargaze-upgraded pull: always - image: publicawesome/stargaze:12.0.0-alpha.1 + image: publicawesome/stargaze:13.0.0-alpha.3 commands: - ./scripts/ci/upgrade/run-upgrade.sh environment: @@ -369,7 +370,7 @@ steps: - http://icad:26657 - name: check-params pull: always - image: publicawesome/stargaze:12.0.0-alpha.1 + image: publicawesome/stargaze:13.0.0-alpha.3 commands: - starsd q mint params --node http://stargaze-upgraded:26657 - starsd q alloc params --node http://stargaze-upgraded:26657 @@ -416,6 +417,6 @@ volumes: --- kind: signature -hmac: 46fe23976c6c247f19a426e0a9a60ae6083327b2c2dc4727e800749de1ddb227 +hmac: 3bea2aa83c54b2740e9bd7c5849322e3e09fdf40fcb68b6bb6325058d239ae82 ... diff --git a/scripts/ci/upgrade/proposal.sh b/scripts/ci/upgrade/proposal.sh index f33f9410b..6e9f8eab0 100755 --- a/scripts/ci/upgrade/proposal.sh +++ b/scripts/ci/upgrade/proposal.sh @@ -20,7 +20,7 @@ starsd q distribution community-pool --node http://stargaze:26657 HEIGHT=$(starsd status --node http://stargaze:26657 --home $STARGAZE_HOME | jq .SyncInfo.latest_block_height -r) echo "current height $HEIGHT" -HEIGHT=$(expr $HEIGHT + 20) +HEIGHT=$(expr $HEIGHT + 100) echo "submit with height $HEIGHT" starsd tx gov submit-proposal software-upgrade v13 --upgrade-height $HEIGHT \ --deposit 1000000000ustars \ @@ -34,6 +34,6 @@ starsd q gov proposals --node http://stargaze:26657 --home $STARGAZE_HOME starsd tx gov vote 1 "yes" --gas-prices 1ustars --gas auto --gas-adjustment 1.5 --from validator \ --chain-id stargaze -b block --yes --node http://stargaze:26657 --home $STARGAZE_HOME --keyring-backend test -sleep 60 +sleep 30 starsd q gov proposals --node http://stargaze:26657 --home $STARGAZE_HOME -sleep 60 +sleep 30 From f30c5b9e9ed838174fd5cef4ad57fe58cf7880d4 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 20 Nov 2023 09:23:50 -0600 Subject: [PATCH 05/34] show config --- scripts/ci/setup-stargaze.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/setup-stargaze.sh b/scripts/ci/setup-stargaze.sh index a323b305a..b0211acbe 100755 --- a/scripts/ci/setup-stargaze.sh +++ b/scripts/ci/setup-stargaze.sh @@ -18,7 +18,7 @@ sed -i -e 's/timeout_commit = "5s"/timeout_commit = "100ms"/g' ~/.starsd/config/ sed -i -e 's/timeout_propose = "3s"/timeout_propose = "100ms"/g' ~/.starsd/config/config.toml # sed -i -e 's/\"allow_messages\":.*/\"allow_messages\": [\"\/cosmos.bank.v1beta1.MsgSend\", \"\/cosmos.staking.v1beta1.MsgDelegate\"]/g' ~/.starsd/config/genesis.json starsd keys --keyring-backend test add validator - +cat ~/.starsd/config/app.toml starsd genesis add-genesis-account $(starsd keys --keyring-backend test show validator -a) 1000000000000$DENOM starsd genesis add-genesis-account $RLYKEY 1000000000000$DENOM starsd genesis add-genesis-account stars1y8tcah6r989vna00ag65xcqn6mpasjjdekwfhm 1000000000000$DENOM From 43a42a10188ece838f32cff4fea2d48db7620720 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 10:14:15 -0600 Subject: [PATCH 06/34] update hermes dockerfile --- docker/Dockerfile.hermes | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/docker/Dockerfile.hermes b/docker/Dockerfile.hermes index 486731abd..3f10eb9d8 100644 --- a/docker/Dockerfile.hermes +++ b/docker/Dockerfile.hermes @@ -3,23 +3,26 @@ # Used for running hermes in docker containers # # Usage: -# docker build . --build-arg TAG=v1.0.0 -t publicawesome/hermes:1.0.0 -f docker/Dockerfile.hermes +# docker build . --build-arg TAG=v1.7.1 -t publicawesome/hermes:1.7.1 -f docker/Dockerfile.hermes -FROM rust:1.62-buster AS build-env +FROM rust:1-buster AS build-env ARG TAG WORKDIR /root -RUN git clone https://github.com/informalsystems/ibc-rs -RUN cd ibc-rs && git checkout $TAG && cargo build --release +RUN git clone https://github.com/informalsystems/hermes +RUN cd hermes && git checkout $TAG && cargo build --release +FROM ubuntu:latest +LABEL maintainer="hello@informal.systems" +ARG UID=1000 +ARG GID=1000 +RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates +RUN update-ca-certificates +RUN groupadd -g ${GID} hermes && useradd -l -m hermes -s /bin/bash -u ${UID} -g ${GID} -FROM debian:buster-slim -LABEL maintainer="hello@informal.systems" -RUN apt update && apt install curl jq -y WORKDIR /home/hermes +USER hermes:hermes ENTRYPOINT ["/usr/bin/hermes"] -COPY --chown=0:0 --from=build-env /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /usr/lib/x86_64-linux-gnu/libssl.so.1.1 -COPY --chown=0:0 --from=build-env /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 -COPY --chown=0:0 --from=build-env /root/ibc-rs/target/release/hermes /usr/bin/hermes +COPY --chown=hermes:hermes --from=build-env /root/hermes/target/release/hermes /usr/bin/hermes From 48e9c34e30ab9a2169a634269c1d69f71147acee Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 11:33:47 -0600 Subject: [PATCH 07/34] upgrade hermes --- .drone.yml | 4 +- scripts/ci/hermes/v1.7/config.toml | 225 +++++++++++++++++++++++++++++ scripts/ci/setup-hermes-1.7.sh | 13 ++ 3 files changed, 240 insertions(+), 2 deletions(-) create mode 100644 scripts/ci/hermes/v1.7/config.toml create mode 100755 scripts/ci/setup-hermes-1.7.sh diff --git a/.drone.yml b/.drone.yml index f8e6eee0a..b2671400f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -217,7 +217,7 @@ steps: - name: relayer image: publicawesome/hermes:0.15.0 commands: - - /bin/bash ./scripts/ci/setup-relayer.sh + - /bin/bash ./scripts/ci/setup-hermes-1.7.sh - name: relayer-start image: publicawesome/hermes:0.15.0 @@ -417,6 +417,6 @@ volumes: --- kind: signature -hmac: 3bea2aa83c54b2740e9bd7c5849322e3e09fdf40fcb68b6bb6325058d239ae82 +hmac: 57050bf4dc67ab6aa3e4219ba51747b94e95c493544580ce81b4be9b69781ea5 ... diff --git a/scripts/ci/hermes/v1.7/config.toml b/scripts/ci/hermes/v1.7/config.toml new file mode 100644 index 000000000..209d56da9 --- /dev/null +++ b/scripts/ci/hermes/v1.7/config.toml @@ -0,0 +1,225 @@ +[global] +log_level = "info" + +[mode.clients] +enabled = true +refresh = true +misbehaviour = true + +[mode.connections] +enabled = false + +[mode.channels] +enabled = false + +[mode.packets] +enabled = true +clear_interval = 100 +clear_on_start = true +tx_confirmation = false +auto_register_counterparty_payee = false + +[rest] +enabled = false +host = "127.0.0.1" +port = 3000 + +[telemetry] +enabled = false +host = "127.0.0.1" +port = 3001 + +[telemetry.buckets.latency_submitted] +start = 500 +end = 20000 +buckets = 10 + +[telemetry.buckets.latency_confirmed] +start = 1000 +end = 30000 +buckets = 10 + +[[chains]] +id = "stargaze" +type = "CosmosSdk" +rpc_addr = "http://stargaze:26657" +grpc_addr = "http://stargaze:9090" +rpc_timeout = "10s" +trusted_node = false +account_prefix = "stars" +key_name = "stargaze" +key_store_type = "Test" +store_prefix = "ibc" +default_gas = 100000 +max_gas = 400000 +gas_multiplier = 1.1 +max_msg_num = 30 +max_tx_size = 180000 +max_grpc_decoding_size = 33554432 +clock_drift = "5s" +max_block_time = "30s" +ccv_consumer_chain = false +memo_prefix = "" +sequential_batch_tx = false + +[chains.event_source] +mode = "push" +url = "ws://stargaze:26657/websocket" +batch_delay = "500ms" + +[chains.trust_threshold] +numerator = "1" +denominator = "3" + +[chains.gas_price] +price = 1.1 +denom = "ustars" + +[chains.packet_filter] +policy = "allowall" + +[chains.packet_filter.min_fees] + +[chains.address_type] +derivation = "cosmos" + + +# Gaia +[[chains]] +id = "gaia" +type = "CosmosSdk" +rpc_addr = "http://gaia:26657" +grpc_addr = "http://gaia:9090" +rpc_timeout = "10s" +trusted_node = false +account_prefix = "cosmos" +key_name = "gaia" +key_store_type = "Test" +store_prefix = "ibc" +default_gas = 100000 +max_gas = 400000 +gas_multiplier = 1.1 +max_msg_num = 30 +max_tx_size = 180000 +max_grpc_decoding_size = 33554432 +clock_drift = "5s" +max_block_time = "30s" +ccv_consumer_chain = false +memo_prefix = "" +sequential_batch_tx = false + +[chains.event_source] +mode = "push" +url = "ws://gaia:26657/websocket" +batch_delay = "500ms" + +[chains.trust_threshold] +numerator = "1" +denominator = "3" + +[chains.gas_price] +price = 1.1 +denom = "stake" + +[chains.packet_filter] +policy = "allowall" + +[chains.packet_filter.min_fees] + +[chains.address_type] +derivation = "cosmos" + +# Osmosis +[[chains]] +id = "osmosis" +type = "CosmosSdk" +rpc_addr = "http://osmosis:26657" +grpc_addr = "http://osmosis:9090" +rpc_timeout = "10s" +trusted_node = false +account_prefix = "osmo" +key_name = "osmosis" +key_store_type = "Test" +store_prefix = "ibc" +default_gas = 100000 +max_gas = 400000 +gas_multiplier = 1.1 +max_msg_num = 30 +max_tx_size = 180000 +max_grpc_decoding_size = 33554432 +clock_drift = "5s" +max_block_time = "30s" +ccv_consumer_chain = false +memo_prefix = "" +sequential_batch_tx = false + +[chains.event_source] +mode = "push" +url = "ws://osmosis:26657/websocket" +batch_delay = "500ms" + +[chains.trust_threshold] +numerator = "1" +denominator = "3" + +[chains.gas_price] +price = 1.1 +denom = "uosmo" + +[chains.packet_filter] +policy = "allowall" + +[chains.packet_filter.min_fees] + +[chains.address_type] +derivation = "cosmos" + +# ICAD +[[chains]] +id = "icad" +type = "CosmosSdk" +rpc_addr = "http://icad:26657" +grpc_addr = "http://icad:9090" +rpc_timeout = "10s" +trusted_node = false +account_prefix = "cosmos" +key_name = "icad" +key_store_type = "Test" +store_prefix = "ibc" +default_gas = 100000 +max_gas = 400000 +gas_multiplier = 1.1 +max_msg_num = 30 +max_tx_size = 180000 +max_grpc_decoding_size = 33554432 +clock_drift = "5s" +max_block_time = "30s" +ccv_consumer_chain = false +memo_prefix = "" +sequential_batch_tx = false + +[chains.event_source] +mode = "push" +url = "ws://icad:26657/websocket" +batch_delay = "500ms" + +[chains.trust_threshold] +numerator = "1" +denominator = "3" + +[chains.gas_price] +price = 1.1 +denom = "stake" + +[chains.packet_filter] +policy = "allowall" + +[chains.packet_filter.min_fees] + +[chains.address_type] +derivation = "cosmos" + + +[tracing_server] +enabled = false +port = 5555 diff --git a/scripts/ci/setup-hermes-1.7.sh b/scripts/ci/setup-hermes-1.7.sh new file mode 100755 index 000000000..60d212f61 --- /dev/null +++ b/scripts/ci/setup-hermes-1.7.sh @@ -0,0 +1,13 @@ +set -ex +mkdir -p ~/.hermes/ +cp ./scripts/ci/hermes/v1.7/config.toml ~/.hermes/ +hermes keys add stargaze -f $PWD/scripts/ci/hermes/stargaze.json +hermes keys add gaia -f $PWD/scripts/ci/hermes/gaia.json +hermes keys add osmosis -f $PWD/scripts/ci/hermes/osmosis.json +hermes keys add icad -f $PWD/scripts/ci/hermes/icad.json +hermes create connection stargaze gaia +hermes create connection stargaze osmosis +hermes create connection stargaze icad +hermes create channel --port-a transfer --port-b transfer stargaze connection-0 +hermes create channel --port-a transfer --port-b transfer stargaze connection-1 + From 325dc34ea270c6901fb621148b117fee1487a41a Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 11:36:41 -0600 Subject: [PATCH 08/34] fix drone ci --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index b2671400f..9d9fe90f2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -215,7 +215,7 @@ steps: - http://osmosis:26657 - http://icad:26657 - name: relayer - image: publicawesome/hermes:0.15.0 + image: publicawesome/hermes:1.7.1 commands: - /bin/bash ./scripts/ci/setup-hermes-1.7.sh @@ -417,6 +417,6 @@ volumes: --- kind: signature -hmac: 57050bf4dc67ab6aa3e4219ba51747b94e95c493544580ce81b4be9b69781ea5 +hmac: 60607155c8c99d235926194480d278b466d86d6fc76132192e51da69f1125019 ... From de37eac4ad772ea20b198a0044e9f2d24c21ef2d Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 12:19:55 -0600 Subject: [PATCH 09/34] iIchange add key command --- scripts/ci/hermes/v1.7/config.toml | 8 ++++---- scripts/ci/setup-hermes-1.7.sh | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/ci/hermes/v1.7/config.toml b/scripts/ci/hermes/v1.7/config.toml index 209d56da9..3a7a6fb9d 100644 --- a/scripts/ci/hermes/v1.7/config.toml +++ b/scripts/ci/hermes/v1.7/config.toml @@ -47,7 +47,7 @@ grpc_addr = "http://stargaze:9090" rpc_timeout = "10s" trusted_node = false account_prefix = "stars" -key_name = "stargaze" +key_name = "relayer" key_store_type = "Test" store_prefix = "ibc" default_gas = 100000 @@ -93,7 +93,7 @@ grpc_addr = "http://gaia:9090" rpc_timeout = "10s" trusted_node = false account_prefix = "cosmos" -key_name = "gaia" +key_name = "relayer" key_store_type = "Test" store_prefix = "ibc" default_gas = 100000 @@ -138,7 +138,7 @@ grpc_addr = "http://osmosis:9090" rpc_timeout = "10s" trusted_node = false account_prefix = "osmo" -key_name = "osmosis" +key_name = "relayer" key_store_type = "Test" store_prefix = "ibc" default_gas = 100000 @@ -183,7 +183,7 @@ grpc_addr = "http://icad:9090" rpc_timeout = "10s" trusted_node = false account_prefix = "cosmos" -key_name = "icad" +key_name = "relayer" key_store_type = "Test" store_prefix = "ibc" default_gas = 100000 diff --git a/scripts/ci/setup-hermes-1.7.sh b/scripts/ci/setup-hermes-1.7.sh index 60d212f61..4edca33f3 100755 --- a/scripts/ci/setup-hermes-1.7.sh +++ b/scripts/ci/setup-hermes-1.7.sh @@ -2,9 +2,10 @@ set -ex mkdir -p ~/.hermes/ cp ./scripts/ci/hermes/v1.7/config.toml ~/.hermes/ hermes keys add stargaze -f $PWD/scripts/ci/hermes/stargaze.json -hermes keys add gaia -f $PWD/scripts/ci/hermes/gaia.json -hermes keys add osmosis -f $PWD/scripts/ci/hermes/osmosis.json -hermes keys add icad -f $PWD/scripts/ci/hermes/icad.json +hermes keys add --chain stargaze --key-name relayer --key-file $PWD/scripts/ci/hermes/stargaze.json +hermes keys add --chain gaia --key-name relayer --key-file $PWD/scripts/ci/hermes/gaia.json +hermes keys add --chain osmosis --key-name relayer --key-file $PWD/scripts/ci/hermes/osmosis.json +hermes keys add --chain icad --key-name relayer --key-file $PWD/scripts/ci/hermes/icad.json hermes create connection stargaze gaia hermes create connection stargaze osmosis hermes create connection stargaze icad From ee565f19dc4b1a6a744ec1ec4982b89bc5290284 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 12:26:53 -0600 Subject: [PATCH 10/34] fix --- scripts/ci/setup-hermes-1.7.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/ci/setup-hermes-1.7.sh b/scripts/ci/setup-hermes-1.7.sh index 4edca33f3..6997af318 100755 --- a/scripts/ci/setup-hermes-1.7.sh +++ b/scripts/ci/setup-hermes-1.7.sh @@ -1,7 +1,6 @@ set -ex mkdir -p ~/.hermes/ cp ./scripts/ci/hermes/v1.7/config.toml ~/.hermes/ -hermes keys add stargaze -f $PWD/scripts/ci/hermes/stargaze.json hermes keys add --chain stargaze --key-name relayer --key-file $PWD/scripts/ci/hermes/stargaze.json hermes keys add --chain gaia --key-name relayer --key-file $PWD/scripts/ci/hermes/gaia.json hermes keys add --chain osmosis --key-name relayer --key-file $PWD/scripts/ci/hermes/osmosis.json From 49bc4fb9e9c6041ffc1c82ba2eac79049f131c80 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 12:36:27 -0600 Subject: [PATCH 11/34] fix connection creation --- scripts/ci/setup-hermes-1.7.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/ci/setup-hermes-1.7.sh b/scripts/ci/setup-hermes-1.7.sh index 6997af318..12ece535c 100755 --- a/scripts/ci/setup-hermes-1.7.sh +++ b/scripts/ci/setup-hermes-1.7.sh @@ -5,9 +5,9 @@ hermes keys add --chain stargaze --key-name relayer --key-file $PWD/scripts/ci/h hermes keys add --chain gaia --key-name relayer --key-file $PWD/scripts/ci/hermes/gaia.json hermes keys add --chain osmosis --key-name relayer --key-file $PWD/scripts/ci/hermes/osmosis.json hermes keys add --chain icad --key-name relayer --key-file $PWD/scripts/ci/hermes/icad.json -hermes create connection stargaze gaia -hermes create connection stargaze osmosis -hermes create connection stargaze icad -hermes create channel --port-a transfer --port-b transfer stargaze connection-0 -hermes create channel --port-a transfer --port-b transfer stargaze connection-1 +hermes create connection --a-chain stargaze --b-chain gaia +hermes create connection --a-chain stargaze --b-chain osmosis +hermes create connection --a-chain stargaze --b-chain icad +hermes create channel --port-a transfer --port-b transfer --a-chain stargaze connection-0 +hermes create channel --port-a transfer --port-b transfer --a-chain stargaze connection-1 From 27421c1d9abe2174467c7f65aaa689309c19e57a Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 12:43:34 -0600 Subject: [PATCH 12/34] fix clock drift --- scripts/ci/hermes/v1.7/config.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/ci/hermes/v1.7/config.toml b/scripts/ci/hermes/v1.7/config.toml index 3a7a6fb9d..3cca13ca5 100644 --- a/scripts/ci/hermes/v1.7/config.toml +++ b/scripts/ci/hermes/v1.7/config.toml @@ -56,7 +56,7 @@ gas_multiplier = 1.1 max_msg_num = 30 max_tx_size = 180000 max_grpc_decoding_size = 33554432 -clock_drift = "5s" +clock_drift = "900s" max_block_time = "30s" ccv_consumer_chain = false memo_prefix = "" @@ -102,7 +102,7 @@ gas_multiplier = 1.1 max_msg_num = 30 max_tx_size = 180000 max_grpc_decoding_size = 33554432 -clock_drift = "5s" +clock_drift = "900s" max_block_time = "30s" ccv_consumer_chain = false memo_prefix = "" @@ -147,7 +147,7 @@ gas_multiplier = 1.1 max_msg_num = 30 max_tx_size = 180000 max_grpc_decoding_size = 33554432 -clock_drift = "5s" +clock_drift = "900s" max_block_time = "30s" ccv_consumer_chain = false memo_prefix = "" @@ -192,7 +192,7 @@ gas_multiplier = 1.1 max_msg_num = 30 max_tx_size = 180000 max_grpc_decoding_size = 33554432 -clock_drift = "5s" +clock_drift = "900s" max_block_time = "30s" ccv_consumer_chain = false memo_prefix = "" From a61c5d70fc2b2ce3425c4b3112350711e4c865f0 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 15:48:35 -0600 Subject: [PATCH 13/34] set port --- scripts/ci/setup-stargaze.sh | 2 +- scripts/ci/upgrade/setup-preinstalled-stargaze.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/setup-stargaze.sh b/scripts/ci/setup-stargaze.sh index b0211acbe..303263371 100755 --- a/scripts/ci/setup-stargaze.sh +++ b/scripts/ci/setup-stargaze.sh @@ -26,4 +26,4 @@ starsd genesis add-genesis-account stars103y4f6h80lc45nr8chuzr3fyzqywm9n0gnr394 starsd genesis gentx validator 900000000$DENOM --keyring-backend test --chain-id $CHAINID starsd genesis collect-gentxs -starsd start --pruning nothing +starsd start --pruning nothing --grpc.address 0.0.0.0:9090 --rpc.laddr tcp://0.0.0.0:26657 diff --git a/scripts/ci/upgrade/setup-preinstalled-stargaze.sh b/scripts/ci/upgrade/setup-preinstalled-stargaze.sh index ca21220e2..e3bab61f1 100755 --- a/scripts/ci/upgrade/setup-preinstalled-stargaze.sh +++ b/scripts/ci/upgrade/setup-preinstalled-stargaze.sh @@ -27,4 +27,4 @@ starsd add-genesis-account stars103y4f6h80lc45nr8chuzr3fyzqywm9n0gnr394 20000000 starsd add-genesis-account $(starsd keys --keyring-backend test show funder -a --home $STARGAZE_HOME) 21000000000000$DENOM --home $STARGAZE_HOME starsd gentx validator 900000000$DENOM --keyring-backend test --chain-id stargaze --home $STARGAZE_HOME starsd collect-gentxs --home $STARGAZE_HOME -/stargaze/bin/upgrade-watcher starsd start --pruning nothing --home $STARGAZE_HOME +/stargaze/bin/upgrade-watcher starsd start --pruning nothing --home $STARGAZE_HOME --grpc.address 0.0.0.0:9090 --rpc.laddr tcp://0.0.0.0:26657 From d7fac516892c7ea9c27c498fd1d350047da8fff3 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 15:52:53 -0600 Subject: [PATCH 14/34] fix channel creation --- scripts/ci/setup-hermes-1.7.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/setup-hermes-1.7.sh b/scripts/ci/setup-hermes-1.7.sh index 12ece535c..bca17abf7 100755 --- a/scripts/ci/setup-hermes-1.7.sh +++ b/scripts/ci/setup-hermes-1.7.sh @@ -8,6 +8,6 @@ hermes keys add --chain icad --key-name relayer --key-file $PWD/scripts/ci/herme hermes create connection --a-chain stargaze --b-chain gaia hermes create connection --a-chain stargaze --b-chain osmosis hermes create connection --a-chain stargaze --b-chain icad -hermes create channel --port-a transfer --port-b transfer --a-chain stargaze connection-0 -hermes create channel --port-a transfer --port-b transfer --a-chain stargaze connection-1 +hermes create channel --a-port transfer --b-port transfer --a-chain stargaze --a-connection connection-0 +hermes create channel --a-port transfer --b-port transfer --a-chain stargaze --a-connection connection-1 From 07c5555c0b447fedb7cb9ca82075f1a496097b1d Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 15:59:47 -0600 Subject: [PATCH 15/34] fix home --- scripts/ci/setup-stargaze.sh | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/scripts/ci/setup-stargaze.sh b/scripts/ci/setup-stargaze.sh index 303263371..5de0f5117 100755 --- a/scripts/ci/setup-stargaze.sh +++ b/scripts/ci/setup-stargaze.sh @@ -4,26 +4,26 @@ CHAINID=stargaze RLYKEY=stars12g0xe2ld0k5ws3h7lmxc39d4rpl3fyxp5qys69 LEDGER_ENABLED=false make install starsd version --long - +STARGAZE_HOME=/stargaze/starsd # Setup stargaze starsd init --chain-id $CHAINID $CHAINID -sed -i 's#tcp://127.0.0.1:26657#tcp://0.0.0.0:26657#g' ~/.starsd/config/config.toml -sed -i "s/\"stake\"/\"$DENOM\"/g" ~/.starsd/config/genesis.json -sed -i 's/pruning = "syncable"/pruning = "nothing"/g' ~/.starsd/config/app.toml -sed -i 's/enable = false/enable = true/g' ~/.starsd/config/app.toml -sed -i 's/localhost:9090/0.0.0.0:9090/g' ~/.starsd/config/app.toml -sed -i -e 's/timeout_commit = "5s"/timeout_commit = "100ms"/g' ~/.starsd/config/config.toml -sed -i -e 's/timeout_propose = "3s"/timeout_propose = "100ms"/g' ~/.starsd/config/config.toml +sed -i 's#tcp://127.0.0.1:26657#tcp://0.0.0.0:26657#g' $STARGAZE_HOME/config/config.toml +sed -i "s/\"stake\"/\"$DENOM\"/g" $STARGAZE_HOME/config/genesis.json +sed -i 's/pruning = "syncable"/pruning = "nothing"/g' $STARGAZE_HOME/config/app.toml +sed -i 's/enable = false/enable = true/g' $STARGAZE_HOME/config/app.toml +sed -i 's/localhost:9090/0.0.0.0:9090/g' $STARGAZE_HOME/config/app.toml +sed -i -e 's/timeout_commit = "5s"/timeout_commit = "100ms"/g' $STARGAZE_HOME/config/config.toml +sed -i -e 's/timeout_propose = "3s"/timeout_propose = "100ms"/g' $STARGAZE_HOME/config/config.toml # sed -i -e 's/\"allow_messages\":.*/\"allow_messages\": [\"\/cosmos.bank.v1beta1.MsgSend\", \"\/cosmos.staking.v1beta1.MsgDelegate\"]/g' ~/.starsd/config/genesis.json -starsd keys --keyring-backend test add validator -cat ~/.starsd/config/app.toml -starsd genesis add-genesis-account $(starsd keys --keyring-backend test show validator -a) 1000000000000$DENOM -starsd genesis add-genesis-account $RLYKEY 1000000000000$DENOM -starsd genesis add-genesis-account stars1y8tcah6r989vna00ag65xcqn6mpasjjdekwfhm 1000000000000$DENOM -starsd genesis add-genesis-account stars103y4f6h80lc45nr8chuzr3fyzqywm9n0gnr394 200000000000000$DENOM -starsd genesis gentx validator 900000000$DENOM --keyring-backend test --chain-id $CHAINID -starsd genesis collect-gentxs +starsd keys --keyring-backend test add validator --home $STARGAZE_HOME +cat --home $STARGAZE_HOME/config/app.toml +starsd genesis add-genesis-account $(starsd keys --keyring-backend test show validator -a --home $STARGAZE_HOME) 1000000000000$DENOM --home $STARGAZE_HOME +starsd genesis add-genesis-account $RLYKEY 1000000000000$DENOM --home $STARGAZE_HOME +starsd genesis add-genesis-account stars1y8tcah6r989vna00ag65xcqn6mpasjjdekwfhm 1000000000000$DENOM --home $STARGAZE_HOME +starsd genesis add-genesis-account stars103y4f6h80lc45nr8chuzr3fyzqywm9n0gnr394 200000000000000$DENOM --home $STARGAZE_HOME +starsd genesis gentx validator 900000000$DENOM --keyring-backend test --chain-id $CHAINID --home $STARGAZE_HOME +starsd genesis collect-gentxs --home $STARGAZE_HOME -starsd start --pruning nothing --grpc.address 0.0.0.0:9090 --rpc.laddr tcp://0.0.0.0:26657 +starsd start --pruning nothing --home $STARGAZE_HOME --grpc.address 0.0.0.0:9090 --rpc.laddr tcp://0.0.0.0:26657 From e45baa974b424fe557fcca774e926dbc3f9df1ee Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 16:04:39 -0600 Subject: [PATCH 16/34] fix stargaze init home --- scripts/ci/setup-stargaze.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/setup-stargaze.sh b/scripts/ci/setup-stargaze.sh index 5de0f5117..316b5e653 100755 --- a/scripts/ci/setup-stargaze.sh +++ b/scripts/ci/setup-stargaze.sh @@ -8,7 +8,7 @@ STARGAZE_HOME=/stargaze/starsd # Setup stargaze -starsd init --chain-id $CHAINID $CHAINID +starsd init --chain-id $CHAINID $CHAINID --home $STARGAZE_HOME sed -i 's#tcp://127.0.0.1:26657#tcp://0.0.0.0:26657#g' $STARGAZE_HOME/config/config.toml sed -i "s/\"stake\"/\"$DENOM\"/g" $STARGAZE_HOME/config/genesis.json sed -i 's/pruning = "syncable"/pruning = "nothing"/g' $STARGAZE_HOME/config/app.toml From 6e90372afd10030b8e2e58897aa86dadbf5bc603 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 16:06:18 -0600 Subject: [PATCH 17/34] fix --- scripts/ci/setup-stargaze.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/setup-stargaze.sh b/scripts/ci/setup-stargaze.sh index 316b5e653..6b5c551f5 100755 --- a/scripts/ci/setup-stargaze.sh +++ b/scripts/ci/setup-stargaze.sh @@ -18,7 +18,7 @@ sed -i -e 's/timeout_commit = "5s"/timeout_commit = "100ms"/g' $STARGAZE_HOME/co sed -i -e 's/timeout_propose = "3s"/timeout_propose = "100ms"/g' $STARGAZE_HOME/config/config.toml # sed -i -e 's/\"allow_messages\":.*/\"allow_messages\": [\"\/cosmos.bank.v1beta1.MsgSend\", \"\/cosmos.staking.v1beta1.MsgDelegate\"]/g' ~/.starsd/config/genesis.json starsd keys --keyring-backend test add validator --home $STARGAZE_HOME -cat --home $STARGAZE_HOME/config/app.toml +cat $STARGAZE_HOME/config/app.toml starsd genesis add-genesis-account $(starsd keys --keyring-backend test show validator -a --home $STARGAZE_HOME) 1000000000000$DENOM --home $STARGAZE_HOME starsd genesis add-genesis-account $RLYKEY 1000000000000$DENOM --home $STARGAZE_HOME starsd genesis add-genesis-account stars1y8tcah6r989vna00ag65xcqn6mpasjjdekwfhm 1000000000000$DENOM --home $STARGAZE_HOME From 902c7564ff607e44096eb8d2b808af1ec727f689 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 16:13:08 -0600 Subject: [PATCH 18/34] compat mode --- scripts/ci/hermes/v1.7/config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ci/hermes/v1.7/config.toml b/scripts/ci/hermes/v1.7/config.toml index 3cca13ca5..0d03ec143 100644 --- a/scripts/ci/hermes/v1.7/config.toml +++ b/scripts/ci/hermes/v1.7/config.toml @@ -61,6 +61,7 @@ max_block_time = "30s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false +compat_mode = '0.37' [chains.event_source] mode = "push" From 111f4505cde73fdbb1ae78167d02cb08ada2d234 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 16:16:37 -0600 Subject: [PATCH 19/34] set compat mode --- scripts/ci/hermes/v1.7/config.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/ci/hermes/v1.7/config.toml b/scripts/ci/hermes/v1.7/config.toml index 0d03ec143..e4600020f 100644 --- a/scripts/ci/hermes/v1.7/config.toml +++ b/scripts/ci/hermes/v1.7/config.toml @@ -61,7 +61,7 @@ max_block_time = "30s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false -compat_mode = '0.37' +compat_mode = "0.37" [chains.event_source] mode = "push" @@ -108,6 +108,7 @@ max_block_time = "30s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false +compat_mode = "0.34" [chains.event_source] mode = "push" @@ -153,6 +154,7 @@ max_block_time = "30s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false +compat_mode = "0.34" [chains.event_source] mode = "push" @@ -198,7 +200,7 @@ max_block_time = "30s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false - +compat_mode = "0.34" [chains.event_source] mode = "push" url = "ws://icad:26657/websocket" From 3435893947cf3a2f55f0f824150bf9668a34eba7 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 16:19:29 -0600 Subject: [PATCH 20/34] add sleep --- scripts/ci/transfer-relayer.sh | 1 + scripts/ci/upgrade/transfer-relayer.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/scripts/ci/transfer-relayer.sh b/scripts/ci/transfer-relayer.sh index 87de7394b..6dc8e2593 100755 --- a/scripts/ci/transfer-relayer.sh +++ b/scripts/ci/transfer-relayer.sh @@ -6,6 +6,7 @@ hermes keys add gaia -f $PWD/scripts/ci/hermes/gaia.json hermes keys add osmosis -f $PWD/scripts/ci/hermes/osmosis.json sleep 10 hermes tx raw ft-transfer stargaze gaia transfer channel-0 9999 -d stake -o 1000 -n 2 +sleep 10 hermes tx raw ft-transfer gaia stargaze transfer channel-0 9999 -d ustars -o 1000 -n 2 sleep 10 hermes tx raw ft-transfer stargaze osmosis transfer channel-0 9999 -d uosmo -o 1000 -n 2 diff --git a/scripts/ci/upgrade/transfer-relayer.sh b/scripts/ci/upgrade/transfer-relayer.sh index b7fa1d2e6..5164f83ac 100755 --- a/scripts/ci/upgrade/transfer-relayer.sh +++ b/scripts/ci/upgrade/transfer-relayer.sh @@ -4,7 +4,9 @@ cp ./scripts/ci/upgrade/config.toml ~/.hermes/ hermes keys add stargaze -f $PWD/scripts/ci/hermes/stargaze.json hermes keys add gaia -f $PWD/scripts/ci/hermes/gaia.json hermes keys add osmosis -f $PWD/scripts/ci/hermes/osmosis.json +sleep 10 hermes tx raw ft-transfer stargaze gaia transfer channel-0 9999 -d stake -o 1000 -n 2 +sleep 10 hermes tx raw ft-transfer gaia stargaze transfer channel-0 9999 -d ustars -o 1000 -n 2 sleep 10 hermes tx raw ft-transfer stargaze osmosis transfer channel-0 9999 -d uosmo -o 1000 -n 2 From 7136d99ca43befdfcb4a5ef9e145a3cc16b172b0 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 20:21:51 -0600 Subject: [PATCH 21/34] update hermes commands --- .drone.yml | 10 +++++----- scripts/ci/start-relayer-v1.7.sh | 9 +++++++++ scripts/ci/transfer-relayer-v1.7.sh | 24 ++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 5 deletions(-) create mode 100755 scripts/ci/start-relayer-v1.7.sh create mode 100755 scripts/ci/transfer-relayer-v1.7.sh diff --git a/.drone.yml b/.drone.yml index 9d9fe90f2..87032b67e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -220,14 +220,14 @@ steps: - /bin/bash ./scripts/ci/setup-hermes-1.7.sh - name: relayer-start - image: publicawesome/hermes:0.15.0 + image: publicawesome/hermes:1.7.1 commands: - - /bin/bash ./scripts/ci/start-relayer.sh + - /bin/bash ./scripts/ci/start-relayer-v1.7.sh detach: true - name: relayer-sender - image: publicawesome/hermes:0.15.0 + image: publicawesome/hermes:1.7.1 commands: - - /bin/bash ./scripts/ci/transfer-relayer.sh + - /bin/bash ./scripts/ci/transfer-relayer-v1.7.sh - name: ica-test image: publicawesome/icad:0.1.6-stargaze.1 pull: always @@ -417,6 +417,6 @@ volumes: --- kind: signature -hmac: 60607155c8c99d235926194480d278b466d86d6fc76132192e51da69f1125019 +hmac: 6bfd2dcd6064b568668ce9d4f8307d614e51b5fb0adfe66e4effc086238ddc74 ... diff --git a/scripts/ci/start-relayer-v1.7.sh b/scripts/ci/start-relayer-v1.7.sh new file mode 100755 index 000000000..3780c0f24 --- /dev/null +++ b/scripts/ci/start-relayer-v1.7.sh @@ -0,0 +1,9 @@ +set -ex +mkdir -p ~/.hermes/ +cp ./scripts/ci/hermes/v1.7/config.toml ~/.hermes/ +hermes keys add --chain stargaze --key-name relayer --key-file $PWD/scripts/ci/hermes/stargaze.json +hermes keys add --chain gaia --key-name relayer --key-file $PWD/scripts/ci/hermes/gaia.json +hermes keys add --chain osmosis --key-name relayer --key-file $PWD/scripts/ci/hermes/osmosis.json +hermes keys add --chain icad --key-name relayer --key-file $PWD/scripts/ci/hermes/icad.json +hermes start + diff --git a/scripts/ci/transfer-relayer-v1.7.sh b/scripts/ci/transfer-relayer-v1.7.sh new file mode 100755 index 000000000..0a9f1ea8b --- /dev/null +++ b/scripts/ci/transfer-relayer-v1.7.sh @@ -0,0 +1,24 @@ +set -ex +mkdir -p ~/.hermes/ +cp ./scripts/ci/hermes/v1.7/config.toml ~/.hermes/ +hermes keys add --chain stargaze --key-name relayer --key-file $PWD/scripts/ci/hermes/stargaze.json +hermes keys add --chain gaia --key-name relayer --key-file $PWD/scripts/ci/hermes/gaia.json +hermes keys add --chain osmosis --key-name relayer --key-file $PWD/scripts/ci/hermes/osmosis.json +hermes keys add --chain icad --key-name relayer --key-file $PWD/scripts/ci/hermes/icad.json +sleep 10 +hermes tx ft-transfer --dst-chain gaia --src-chain stargaze --src-port transfer --src-channel channel-0 --amount 1000ustars +# hermes tx raw ft-transfer stargaze gaia transfer channel-0 9999 -d stake -o 1000 -n 2 +# sleep 10 +# hermes tx raw ft-transfer gaia stargaze transfer channel-0 9999 -d ustars -o 1000 -n 2 +# sleep 10 +# hermes tx raw ft-transfer stargaze osmosis transfer channel-0 9999 -d uosmo -o 1000 -n 2 +# sleep 10 +# hermes tx raw ft-transfer osmosis stargaze transfer channel-1 9999 -d ustars -o 1000 -n 2 + +sleep 30 +export GAIA_ADDRESS=cosmos1wt3khka7cmn5zd592x430ph4zmlhf5gfztgha6 +export STARGAZE_ADDRESS=stars12g0xe2ld0k5ws3h7lmxc39d4rpl3fyxp5qys69 +export OSMOSIS_ADDRESS=osmo1qk2rqkk28z8v3d7npupz33zqc6dae6n9a2x5v4 +curl -s http://gaia:1317/bank/balances/$GAIA_ADDRESS | jq '.' +curl -s http://stargaze:1317/bank/balances/$STARGAZE_ADDRESS | jq '.' +curl -s http://osmosis:1317/bank/balances/$OSMOSIS_ADDRESS | jq '.' From b5b19a7c8068e6910cb079364579ef914a592ce0 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 20:29:14 -0600 Subject: [PATCH 22/34] fix denom --- scripts/ci/transfer-relayer-v1.7.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/transfer-relayer-v1.7.sh b/scripts/ci/transfer-relayer-v1.7.sh index 0a9f1ea8b..5ed7733ca 100755 --- a/scripts/ci/transfer-relayer-v1.7.sh +++ b/scripts/ci/transfer-relayer-v1.7.sh @@ -6,7 +6,7 @@ hermes keys add --chain gaia --key-name relayer --key-file $PWD/scripts/ci/herme hermes keys add --chain osmosis --key-name relayer --key-file $PWD/scripts/ci/hermes/osmosis.json hermes keys add --chain icad --key-name relayer --key-file $PWD/scripts/ci/hermes/icad.json sleep 10 -hermes tx ft-transfer --dst-chain gaia --src-chain stargaze --src-port transfer --src-channel channel-0 --amount 1000ustars +hermes tx ft-transfer --dst-chain gaia --src-chain stargaze --src-port transfer --src-channel channel-0 --amount 1000 --denom ustars --timeout-seconds 30 # hermes tx raw ft-transfer stargaze gaia transfer channel-0 9999 -d stake -o 1000 -n 2 # sleep 10 # hermes tx raw ft-transfer gaia stargaze transfer channel-0 9999 -d ustars -o 1000 -n 2 From bac9706cc97647db74c86278fdeae5d8b10fdc3b Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 20:40:14 -0600 Subject: [PATCH 23/34] update hermes and transfers --- .drone.yml | 8 ++++---- docker/Dockerfile.hermes | 4 ++-- scripts/ci/transfer-relayer-v1.7.sh | 6 ++++++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 87032b67e..4673cc33f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -215,17 +215,17 @@ steps: - http://osmosis:26657 - http://icad:26657 - name: relayer - image: publicawesome/hermes:1.7.1 + image: publicawesome/hermes:1.7.3 commands: - /bin/bash ./scripts/ci/setup-hermes-1.7.sh - name: relayer-start - image: publicawesome/hermes:1.7.1 + image: publicawesome/hermes:1.7.3 commands: - /bin/bash ./scripts/ci/start-relayer-v1.7.sh detach: true - name: relayer-sender - image: publicawesome/hermes:1.7.1 + image: publicawesome/hermes:1.7.3 commands: - /bin/bash ./scripts/ci/transfer-relayer-v1.7.sh - name: ica-test @@ -417,6 +417,6 @@ volumes: --- kind: signature -hmac: 6bfd2dcd6064b568668ce9d4f8307d614e51b5fb0adfe66e4effc086238ddc74 +hmac: f5843ab4c7742c1c771cef0e6f599a5c11a3fc84a4b5914751ab57d061921d5e ... diff --git a/docker/Dockerfile.hermes b/docker/Dockerfile.hermes index 3f10eb9d8..cc27ebc4f 100644 --- a/docker/Dockerfile.hermes +++ b/docker/Dockerfile.hermes @@ -3,7 +3,7 @@ # Used for running hermes in docker containers # # Usage: -# docker build . --build-arg TAG=v1.7.1 -t publicawesome/hermes:1.7.1 -f docker/Dockerfile.hermes +# docker build . --build-arg TAG=v1.7.3 -t publicawesome/hermes:1.7.3 -f docker/Dockerfile.hermes FROM rust:1-buster AS build-env @@ -17,7 +17,7 @@ LABEL maintainer="hello@informal.systems" ARG UID=1000 ARG GID=1000 -RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates +RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl jq RUN update-ca-certificates RUN groupadd -g ${GID} hermes && useradd -l -m hermes -s /bin/bash -u ${UID} -g ${GID} diff --git a/scripts/ci/transfer-relayer-v1.7.sh b/scripts/ci/transfer-relayer-v1.7.sh index 5ed7733ca..8f477a950 100755 --- a/scripts/ci/transfer-relayer-v1.7.sh +++ b/scripts/ci/transfer-relayer-v1.7.sh @@ -7,6 +7,12 @@ hermes keys add --chain osmosis --key-name relayer --key-file $PWD/scripts/ci/he hermes keys add --chain icad --key-name relayer --key-file $PWD/scripts/ci/hermes/icad.json sleep 10 hermes tx ft-transfer --dst-chain gaia --src-chain stargaze --src-port transfer --src-channel channel-0 --amount 1000 --denom ustars --timeout-seconds 30 +sleep 10 +hermes tx ft-transfer --dst-chain stargaze --src-chain gaia --src-port transfer --src-channel channel-0 --amount 1000 --denom stake --timeout-seconds 30 +sleep 10 +hermes tx ft-transfer --dst-chain osmosis --src-chain stargaze --src-port transfer --src-channel channel-1 --amount 1000 --denom ustars --timeout-seconds 30 +sleep 10 +hermes tx ft-transfer --dst-chain stargaze --src-chain osmosis --src-port transfer --src-channel channel-0 --amount 1000 --denom uosmo --timeout-seconds 30 # hermes tx raw ft-transfer stargaze gaia transfer channel-0 9999 -d stake -o 1000 -n 2 # sleep 10 # hermes tx raw ft-transfer gaia stargaze transfer channel-0 9999 -d ustars -o 1000 -n 2 From 59d5c4e27162e0893117d104508f475cd9ac0f2f Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 20:47:51 -0600 Subject: [PATCH 24/34] rely ICA --- scripts/ci/hermes/v1.7/config.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/ci/hermes/v1.7/config.toml b/scripts/ci/hermes/v1.7/config.toml index e4600020f..2ea65b358 100644 --- a/scripts/ci/hermes/v1.7/config.toml +++ b/scripts/ci/hermes/v1.7/config.toml @@ -77,7 +77,8 @@ price = 1.1 denom = "ustars" [chains.packet_filter] -policy = "allowall" +policy = "allow" +list = [["ica*", "*"], ["transfer", "*"]] [chains.packet_filter.min_fees] @@ -215,8 +216,8 @@ price = 1.1 denom = "stake" [chains.packet_filter] -policy = "allowall" - +policy = "allow" +list = [["ica*", "*"], ["transfer", "*"]] [chains.packet_filter.min_fees] [chains.address_type] From a03e3ba1b79461a5a93b8d26c688afab955b8268 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 21:01:33 -0600 Subject: [PATCH 25/34] enable connection and channel workers --- scripts/ci/hermes/v1.7/config.toml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/scripts/ci/hermes/v1.7/config.toml b/scripts/ci/hermes/v1.7/config.toml index 2ea65b358..bcbf27aad 100644 --- a/scripts/ci/hermes/v1.7/config.toml +++ b/scripts/ci/hermes/v1.7/config.toml @@ -7,10 +7,10 @@ refresh = true misbehaviour = true [mode.connections] -enabled = false +enabled = true [mode.channels] -enabled = false +enabled = true [mode.packets] enabled = true @@ -57,7 +57,7 @@ max_msg_num = 30 max_tx_size = 180000 max_grpc_decoding_size = 33554432 clock_drift = "900s" -max_block_time = "30s" +max_block_time = "5s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false @@ -66,7 +66,7 @@ compat_mode = "0.37" [chains.event_source] mode = "push" url = "ws://stargaze:26657/websocket" -batch_delay = "500ms" +batch_delay = "100ms" [chains.trust_threshold] numerator = "1" @@ -80,7 +80,6 @@ denom = "ustars" policy = "allow" list = [["ica*", "*"], ["transfer", "*"]] -[chains.packet_filter.min_fees] [chains.address_type] derivation = "cosmos" @@ -105,7 +104,7 @@ max_msg_num = 30 max_tx_size = 180000 max_grpc_decoding_size = 33554432 clock_drift = "900s" -max_block_time = "30s" +max_block_time = "5s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false @@ -114,7 +113,7 @@ compat_mode = "0.34" [chains.event_source] mode = "push" url = "ws://gaia:26657/websocket" -batch_delay = "500ms" +batch_delay = "100ms" [chains.trust_threshold] numerator = "1" @@ -127,7 +126,6 @@ denom = "stake" [chains.packet_filter] policy = "allowall" -[chains.packet_filter.min_fees] [chains.address_type] derivation = "cosmos" @@ -151,7 +149,7 @@ max_msg_num = 30 max_tx_size = 180000 max_grpc_decoding_size = 33554432 clock_drift = "900s" -max_block_time = "30s" +max_block_time = "5s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false @@ -160,7 +158,7 @@ compat_mode = "0.34" [chains.event_source] mode = "push" url = "ws://osmosis:26657/websocket" -batch_delay = "500ms" +batch_delay = "100ms" [chains.trust_threshold] numerator = "1" @@ -173,7 +171,6 @@ denom = "uosmo" [chains.packet_filter] policy = "allowall" -[chains.packet_filter.min_fees] [chains.address_type] derivation = "cosmos" @@ -197,7 +194,7 @@ max_msg_num = 30 max_tx_size = 180000 max_grpc_decoding_size = 33554432 clock_drift = "900s" -max_block_time = "30s" +max_block_time = "5s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false @@ -205,7 +202,7 @@ compat_mode = "0.34" [chains.event_source] mode = "push" url = "ws://icad:26657/websocket" -batch_delay = "500ms" +batch_delay = "100ms" [chains.trust_threshold] numerator = "1" @@ -218,7 +215,6 @@ denom = "stake" [chains.packet_filter] policy = "allow" list = [["ica*", "*"], ["transfer", "*"]] -[chains.packet_filter.min_fees] [chains.address_type] derivation = "cosmos" From ae228fad78a561e423efa40955b05d2eae5f55a2 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 21:07:41 -0600 Subject: [PATCH 26/34] do not broadcast block --- scripts/ci/test-ica.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ci/test-ica.sh b/scripts/ci/test-ica.sh index 0ca7808a1..fab4be03c 100755 --- a/scripts/ci/test-ica.sh +++ b/scripts/ci/test-ica.sh @@ -25,7 +25,8 @@ echo "$MNEMONIC" | starsd keys add ica-test --recover --keyring-backend test STARGAZE_WALLET_ADDRESS=$(starsd keys show ica-test -a --keyring-backend test) echo $STARGAZE_WALLET_ADDRESS starsd q bank balances $ICA_ADDR -starsd tx bank send ica-test $ICA_ADDR 100000000ustars --chain-id stargaze -y -b block --from ica-test +starsd tx bank send ica-test $ICA_ADDR 100000000ustars --chain-id stargaze -y --from ica-test +sleep 10 starsd q bank balances $ICA_ADDR VALIDATOR=$(starsd q staking validators --limit 1 -o json | jq '.validators[0].operator_address' -r) From c1d539ab0bbe66cf17a70ace953bb2daaec30bca Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 21:17:52 -0600 Subject: [PATCH 27/34] remove explicit compat mode --- scripts/ci/hermes/v1.7/config.toml | 8 +- scripts/ci/upgrade/v1.7/config.toml | 225 ++++++++++++++++++++++++++++ 2 files changed, 229 insertions(+), 4 deletions(-) create mode 100644 scripts/ci/upgrade/v1.7/config.toml diff --git a/scripts/ci/hermes/v1.7/config.toml b/scripts/ci/hermes/v1.7/config.toml index bcbf27aad..adb0968a4 100644 --- a/scripts/ci/hermes/v1.7/config.toml +++ b/scripts/ci/hermes/v1.7/config.toml @@ -61,7 +61,7 @@ max_block_time = "5s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false -compat_mode = "0.37" + [chains.event_source] mode = "push" @@ -108,7 +108,7 @@ max_block_time = "5s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false -compat_mode = "0.34" + [chains.event_source] mode = "push" @@ -153,7 +153,7 @@ max_block_time = "5s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false -compat_mode = "0.34" + [chains.event_source] mode = "push" @@ -198,7 +198,7 @@ max_block_time = "5s" ccv_consumer_chain = false memo_prefix = "" sequential_batch_tx = false -compat_mode = "0.34" + [chains.event_source] mode = "push" url = "ws://icad:26657/websocket" diff --git a/scripts/ci/upgrade/v1.7/config.toml b/scripts/ci/upgrade/v1.7/config.toml new file mode 100644 index 000000000..d8950576e --- /dev/null +++ b/scripts/ci/upgrade/v1.7/config.toml @@ -0,0 +1,225 @@ +[global] +log_level = "info" + +[mode.clients] +enabled = true +refresh = true +misbehaviour = true + +[mode.connections] +enabled = true + +[mode.channels] +enabled = true + +[mode.packets] +enabled = true +clear_interval = 100 +clear_on_start = true +tx_confirmation = false +auto_register_counterparty_payee = false + +[rest] +enabled = false +host = "127.0.0.1" +port = 3000 + +[telemetry] +enabled = false +host = "127.0.0.1" +port = 3001 + +[telemetry.buckets.latency_submitted] +start = 500 +end = 20000 +buckets = 10 + +[telemetry.buckets.latency_confirmed] +start = 1000 +end = 30000 +buckets = 10 + +[[chains]] +id = "stargaze" +type = "CosmosSdk" +rpc_addr = "http://stargaze-upgraded:26657" +grpc_addr = "http://stargaze-upgraded:9090" +rpc_timeout = "10s" +trusted_node = false +account_prefix = "stars" +key_name = "relayer" +key_store_type = "Test" +store_prefix = "ibc" +default_gas = 100000 +max_gas = 400000 +gas_multiplier = 1.1 +max_msg_num = 30 +max_tx_size = 180000 +max_grpc_decoding_size = 33554432 +clock_drift = "900s" +max_block_time = "5s" +ccv_consumer_chain = false +memo_prefix = "" +sequential_batch_tx = false + + +[chains.event_source] +mode = "push" +url = "ws://stargaze-upgraded:26657/websocket" +batch_delay = "100ms" + +[chains.trust_threshold] +numerator = "1" +denominator = "3" + +[chains.gas_price] +price = 1.1 +denom = "ustars" + +[chains.packet_filter] +policy = "allow" +list = [["ica*", "*"], ["transfer", "*"]] + + +[chains.address_type] +derivation = "cosmos" + + +# Gaia +[[chains]] +id = "gaia" +type = "CosmosSdk" +rpc_addr = "http://gaia:26657" +grpc_addr = "http://gaia:9090" +rpc_timeout = "10s" +trusted_node = false +account_prefix = "cosmos" +key_name = "relayer" +key_store_type = "Test" +store_prefix = "ibc" +default_gas = 100000 +max_gas = 400000 +gas_multiplier = 1.1 +max_msg_num = 30 +max_tx_size = 180000 +max_grpc_decoding_size = 33554432 +clock_drift = "900s" +max_block_time = "5s" +ccv_consumer_chain = false +memo_prefix = "" +sequential_batch_tx = false + + +[chains.event_source] +mode = "push" +url = "ws://gaia:26657/websocket" +batch_delay = "100ms" + +[chains.trust_threshold] +numerator = "1" +denominator = "3" + +[chains.gas_price] +price = 1.1 +denom = "stake" + +[chains.packet_filter] +policy = "allowall" + + +[chains.address_type] +derivation = "cosmos" + +# Osmosis +[[chains]] +id = "osmosis" +type = "CosmosSdk" +rpc_addr = "http://osmosis:26657" +grpc_addr = "http://osmosis:9090" +rpc_timeout = "10s" +trusted_node = false +account_prefix = "osmo" +key_name = "relayer" +key_store_type = "Test" +store_prefix = "ibc" +default_gas = 100000 +max_gas = 400000 +gas_multiplier = 1.1 +max_msg_num = 30 +max_tx_size = 180000 +max_grpc_decoding_size = 33554432 +clock_drift = "900s" +max_block_time = "5s" +ccv_consumer_chain = false +memo_prefix = "" +sequential_batch_tx = false + + +[chains.event_source] +mode = "push" +url = "ws://osmosis:26657/websocket" +batch_delay = "100ms" + +[chains.trust_threshold] +numerator = "1" +denominator = "3" + +[chains.gas_price] +price = 1.1 +denom = "uosmo" + +[chains.packet_filter] +policy = "allowall" + + +[chains.address_type] +derivation = "cosmos" + +# ICAD +[[chains]] +id = "icad" +type = "CosmosSdk" +rpc_addr = "http://icad:26657" +grpc_addr = "http://icad:9090" +rpc_timeout = "10s" +trusted_node = false +account_prefix = "cosmos" +key_name = "relayer" +key_store_type = "Test" +store_prefix = "ibc" +default_gas = 100000 +max_gas = 400000 +gas_multiplier = 1.1 +max_msg_num = 30 +max_tx_size = 180000 +max_grpc_decoding_size = 33554432 +clock_drift = "900s" +max_block_time = "5s" +ccv_consumer_chain = false +memo_prefix = "" +sequential_batch_tx = false + +[chains.event_source] +mode = "push" +url = "ws://icad:26657/websocket" +batch_delay = "100ms" + +[chains.trust_threshold] +numerator = "1" +denominator = "3" + +[chains.gas_price] +price = 1.1 +denom = "stake" + +[chains.packet_filter] +policy = "allow" +list = [["ica*", "*"], ["transfer", "*"]] + +[chains.address_type] +derivation = "cosmos" + + +[tracing_server] +enabled = false +port = 5555 From ea025fb1cd5d0683cfbb4c77205361b721a8e526 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 21:34:56 -0600 Subject: [PATCH 28/34] fix upgrade script --- .drone.yml | 10 +++---- scripts/ci/upgrade/start-relayer-v1.7.sh | 9 +++++++ scripts/ci/upgrade/transfer-relayer-v1.7.sh | 30 +++++++++++++++++++++ 3 files changed, 44 insertions(+), 5 deletions(-) create mode 100755 scripts/ci/upgrade/start-relayer-v1.7.sh create mode 100755 scripts/ci/upgrade/transfer-relayer-v1.7.sh diff --git a/.drone.yml b/.drone.yml index 4673cc33f..5600db7a6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -381,14 +381,14 @@ steps: environment: GOPROXY: http://goproxy - name: relayer-upgrade-start - image: publicawesome/hermes:0.15.0 + image: publicawesome/hermes:1.7.3 commands: - - /bin/bash ./scripts/ci/upgrade/start-relayer.sh + - /bin/bash ./scripts/ci/upgrade/start-relayer-v1.7.sh detach: true - name: relayer-upgrade-sender - image: publicawesome/hermes:0.15.0 + image: publicawesome/hermes:1.7.3 commands: - - /bin/bash ./scripts/ci/upgrade/transfer-relayer.sh + - /bin/bash ./scripts/ci/upgrade/transfer-relayer-v1.7.sh - name: ica-upgrade-test image: publicawesome/icad:0.1.6-stargaze.1 pull: always @@ -417,6 +417,6 @@ volumes: --- kind: signature -hmac: f5843ab4c7742c1c771cef0e6f599a5c11a3fc84a4b5914751ab57d061921d5e +hmac: 6d83eca35ef0532cde4a0deebff933833d4a921dc8f37a8e6d6ae85405a9824b ... diff --git a/scripts/ci/upgrade/start-relayer-v1.7.sh b/scripts/ci/upgrade/start-relayer-v1.7.sh new file mode 100755 index 000000000..2fadb62ce --- /dev/null +++ b/scripts/ci/upgrade/start-relayer-v1.7.sh @@ -0,0 +1,9 @@ +set -ex +mkdir -p ~/.hermes/ +cp ./scripts/ci/upgrade/v1.7/config.toml ~/.hermes/ +hermes keys add --chain stargaze --key-name relayer --key-file $PWD/scripts/ci/hermes/stargaze.json +hermes keys add --chain gaia --key-name relayer --key-file $PWD/scripts/ci/hermes/gaia.json +hermes keys add --chain osmosis --key-name relayer --key-file $PWD/scripts/ci/hermes/osmosis.json +hermes keys add --chain icad --key-name relayer --key-file $PWD/scripts/ci/hermes/icad.json +hermes start + diff --git a/scripts/ci/upgrade/transfer-relayer-v1.7.sh b/scripts/ci/upgrade/transfer-relayer-v1.7.sh new file mode 100755 index 000000000..f4b7d97af --- /dev/null +++ b/scripts/ci/upgrade/transfer-relayer-v1.7.sh @@ -0,0 +1,30 @@ +set -ex +mkdir -p ~/.hermes/ +cp ./scripts/ci/upgrade/v1.7/config.toml ~/.hermes/ +hermes keys add --chain stargaze --key-name relayer --key-file $PWD/scripts/ci/hermes/stargaze.json +hermes keys add --chain gaia --key-name relayer --key-file $PWD/scripts/ci/hermes/gaia.json +hermes keys add --chain osmosis --key-name relayer --key-file $PWD/scripts/ci/hermes/osmosis.json +hermes keys add --chain icad --key-name relayer --key-file $PWD/scripts/ci/hermes/icad.json +sleep 10 +hermes tx ft-transfer --dst-chain gaia --src-chain stargaze --src-port transfer --src-channel channel-0 --amount 1000 --denom ustars --timeout-seconds 30 +sleep 10 +hermes tx ft-transfer --dst-chain stargaze --src-chain gaia --src-port transfer --src-channel channel-0 --amount 1000 --denom stake --timeout-seconds 30 +sleep 10 +hermes tx ft-transfer --dst-chain osmosis --src-chain stargaze --src-port transfer --src-channel channel-1 --amount 1000 --denom ustars --timeout-seconds 30 +sleep 10 +hermes tx ft-transfer --dst-chain stargaze --src-chain osmosis --src-port transfer --src-channel channel-0 --amount 1000 --denom uosmo --timeout-seconds 30 +# hermes tx raw ft-transfer stargaze gaia transfer channel-0 9999 -d stake -o 1000 -n 2 +# sleep 10 +# hermes tx raw ft-transfer gaia stargaze transfer channel-0 9999 -d ustars -o 1000 -n 2 +# sleep 10 +# hermes tx raw ft-transfer stargaze osmosis transfer channel-0 9999 -d uosmo -o 1000 -n 2 +# sleep 10 +# hermes tx raw ft-transfer osmosis stargaze transfer channel-1 9999 -d ustars -o 1000 -n 2 + +sleep 30 +export GAIA_ADDRESS=cosmos1wt3khka7cmn5zd592x430ph4zmlhf5gfztgha6 +export STARGAZE_ADDRESS=stars12g0xe2ld0k5ws3h7lmxc39d4rpl3fyxp5qys69 +export OSMOSIS_ADDRESS=osmo1qk2rqkk28z8v3d7npupz33zqc6dae6n9a2x5v4 +curl -s http://gaia:1317/bank/balances/$GAIA_ADDRESS | jq '.' +curl -s http://stargaze:1317/bank/balances/$STARGAZE_ADDRESS | jq '.' +curl -s http://osmosis:1317/bank/balances/$OSMOSIS_ADDRESS | jq '.' From aee278dfd14147779936ce9211815097275f38c0 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 21:41:58 -0600 Subject: [PATCH 29/34] remove wait for block --- scripts/ci/upgrade/test-ica.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/upgrade/test-ica.sh b/scripts/ci/upgrade/test-ica.sh index 063169e2a..58db4dfdb 100755 --- a/scripts/ci/upgrade/test-ica.sh +++ b/scripts/ci/upgrade/test-ica.sh @@ -25,7 +25,7 @@ echo "$MNEMONIC" | starsd keys add ica-test --recover --keyring-backend test STARGAZE_WALLET_ADDRESS=$(starsd keys show ica-test -a --keyring-backend test) echo $STARGAZE_WALLET_ADDRESS starsd q bank balances $ICA_ADDR -starsd tx bank send ica-test $ICA_ADDR 100000000ustars --chain-id stargaze -y -b block --from ica-test +starsd tx bank send ica-test $ICA_ADDR 100000000ustars --chain-id stargaze -y --from ica-test starsd q bank balances $ICA_ADDR VALIDATOR=$(starsd q staking validators --limit 1 -o json | jq '.validators[0].operator_address' -r) From 8c51d29b049ad846932a6006f7c23558a826b25a Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 21:55:50 -0600 Subject: [PATCH 30/34] log balance --- scripts/ci/upgrade/test-ica.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/ci/upgrade/test-ica.sh b/scripts/ci/upgrade/test-ica.sh index 58db4dfdb..8db8069ac 100755 --- a/scripts/ci/upgrade/test-ica.sh +++ b/scripts/ci/upgrade/test-ica.sh @@ -46,6 +46,7 @@ TX_MSG=$(cat < send.json +starsd q bank balances stars1ly5qeh4xjept0udwny9edwzgw95qmvekms3na8 # Submit a bank send tx using the interchain account via ibc icad tx intertx submit send.json --connection-id connection-0 --from $ICA_WALLET_ADDRESS --chain-id icad -y -b block sleep 20 @@ -67,6 +68,6 @@ EOF ) echo $DELEGATE_MSG > delegate.json # Submit a staking delegation tx using the interchain account via ibc -icad tx intertx submit delegate.json --connection-id connection-0 --from $ICA_WALLET_ADDRESS --chain-id icad -y -b block -sleep 20 +icad tx intertx submit delegate.json --connection-id connection-0 --from $ICA_WALLET_ADDRESS --chain-id icad -y -b block --timeout-height 2500 +sleep 30 starsd query staking delegations $ICA_ADDR From 019b6219b7caa1300d33756af3f03ebcecb44e18 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 22:16:34 -0600 Subject: [PATCH 31/34] update timeout height --- scripts/ci/upgrade/test-ica.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/upgrade/test-ica.sh b/scripts/ci/upgrade/test-ica.sh index 8db8069ac..db186e359 100755 --- a/scripts/ci/upgrade/test-ica.sh +++ b/scripts/ci/upgrade/test-ica.sh @@ -68,6 +68,6 @@ EOF ) echo $DELEGATE_MSG > delegate.json # Submit a staking delegation tx using the interchain account via ibc -icad tx intertx submit delegate.json --connection-id connection-0 --from $ICA_WALLET_ADDRESS --chain-id icad -y -b block --timeout-height 2500 +icad tx intertx submit delegate.json --connection-id connection-0 --from $ICA_WALLET_ADDRESS --chain-id icad -y -b block --timeout-height 5000 sleep 30 starsd query staking delegations $ICA_ADDR From e6009e3cc68c334dea37f08323fb7f16ad7b2a41 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 22:39:58 -0600 Subject: [PATCH 32/34] add params --- .drone.yml | 3 ++- scripts/ci/upgrade/run-upgrade.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5600db7a6..01cabf69c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -378,6 +378,7 @@ steps: - starsd q bank balances stars1mnyrspq208uv5m2krdctan2dkyht0szje9s43h --node http://stargaze-upgraded:26657 - starsd q bank balances stars103y4f6h80lc45nr8chuzr3fyzqywm9n0gnr394 --node http://stargaze-upgraded:26657 - starsd q distribution community-pool --node http://stargaze-upgraded:26657 + - starsd q interchain-accounts host params --node http://stargaze-upgraded:26657 environment: GOPROXY: http://goproxy - name: relayer-upgrade-start @@ -417,6 +418,6 @@ volumes: --- kind: signature -hmac: 6d83eca35ef0532cde4a0deebff933833d4a921dc8f37a8e6d6ae85405a9824b +hmac: a04c3f64897b2f98463520baec39b7d8112b730ef5bf1b513ef9f46cd6d5af8a ... diff --git a/scripts/ci/upgrade/run-upgrade.sh b/scripts/ci/upgrade/run-upgrade.sh index 9ec4e05f3..5e528315c 100755 --- a/scripts/ci/upgrade/run-upgrade.sh +++ b/scripts/ci/upgrade/run-upgrade.sh @@ -10,4 +10,4 @@ curl -s -v http://stargaze:8090/kill || echo "done" sleep 10 cat $STARGAZE_HOME/config/app.toml | grep -A 10 grpc -starsd start --pruning nothing --home $STARGAZE_HOME +starsd start --pruning nothing --home $STARGAZE_HOME --grpc.address 0.0.0.0:9090 --rpc.laddr tcp://0.0.0.0:26657 From b7bc6b46a6b87b5a62de15068d95c26dd8b04454 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 22:45:00 -0600 Subject: [PATCH 33/34] increase timeout --- scripts/ci/transfer-relayer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/ci/transfer-relayer.sh b/scripts/ci/transfer-relayer.sh index 6dc8e2593..5192d9627 100755 --- a/scripts/ci/transfer-relayer.sh +++ b/scripts/ci/transfer-relayer.sh @@ -6,11 +6,11 @@ hermes keys add gaia -f $PWD/scripts/ci/hermes/gaia.json hermes keys add osmosis -f $PWD/scripts/ci/hermes/osmosis.json sleep 10 hermes tx raw ft-transfer stargaze gaia transfer channel-0 9999 -d stake -o 1000 -n 2 -sleep 10 +sleep 15 hermes tx raw ft-transfer gaia stargaze transfer channel-0 9999 -d ustars -o 1000 -n 2 -sleep 10 +sleep 15 hermes tx raw ft-transfer stargaze osmosis transfer channel-0 9999 -d uosmo -o 1000 -n 2 -sleep 10 +sleep 15 hermes tx raw ft-transfer osmosis stargaze transfer channel-1 9999 -d ustars -o 1000 -n 2 sleep 30 From 0c4957717f77df1612397ccd690ed583b1fa17c1 Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Tue, 26 Dec 2023 22:58:49 -0600 Subject: [PATCH 34/34] allow messages --- scripts/ci/upgrade/setup-preinstalled-stargaze.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ci/upgrade/setup-preinstalled-stargaze.sh b/scripts/ci/upgrade/setup-preinstalled-stargaze.sh index e3bab61f1..bd7998a7e 100755 --- a/scripts/ci/upgrade/setup-preinstalled-stargaze.sh +++ b/scripts/ci/upgrade/setup-preinstalled-stargaze.sh @@ -9,6 +9,7 @@ STARGAZE_HOME=/stargaze/starsd # Setup stargaze starsd init --chain-id $CHAINID $CHAINID --home $STARGAZE_HOME +cat $STARGAZE_HOME/config/genesis.json | jq '.app_state["interchainaccounts"]["host_genesis_state"]["params"]["allow_messages"]=["*"]' > $STARGAZE_HOME/config/tmp.json && mv $STARGAZE_HOME/config/tmp.json $STARGAZE_HOME/config/genesis.json starsd config keyring-backend test --home $STARGAZE_HOME sed -i 's#tcp://127.0.0.1:26657#tcp://0.0.0.0:26657#g' $STARGAZE_HOME/config/config.toml sed -i "s/\"stake\"/\"$DENOM\"/g" $STARGAZE_HOME/config/genesis.json