Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump versions in ibc-rs test #235

Merged
merged 1 commit into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/ibc-defi/cheqd/cheqd.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN wget -qO- https://github.com/tendermint/starport/releases/download/v0.17.3/s
# App
WORKDIR /app

RUN git clone --depth 1 --branch v0.2.3 https://github.com/cheqd/cheqd-node
RUN git clone --depth 1 --branch v0.3.1 https://github.com/cheqd/cheqd-node

WORKDIR /app/cheqd-node

Expand Down
6 changes: 3 additions & 3 deletions tests/ibc-defi/cheqd/cheqd_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cheqd-noded init node0 --chain-id $CHAIN_ID
NODE_0_VAL_PUBKEY=$(cheqd-noded tendermint show-validator)

# User
cheqd-noded keys add cheqd-user
cheqd-noded keys add cheqd-user --keyring-backend test

# Config
sed -i $sed_extension 's|minimum-gas-prices = ""|minimum-gas-prices = "25ncheq"|g' "$HOME/.cheqdnode/config/app.toml"
Expand All @@ -27,8 +27,8 @@ sed -i $sed_extension 's|laddr = "tcp://127.0.0.1:26657"|laddr = "tcp://0.0.0.0:
GENESIS="$HOME/.cheqdnode/config/genesis.json"
sed -i $sed_extension 's/"stake"/"ncheq"/' $GENESIS

cheqd-noded add-genesis-account cheqd-user 1000000000000000000ncheq
cheqd-noded gentx cheqd-user 10000000000000000ncheq --chain-id $CHAIN_ID --pubkey "$NODE_0_VAL_PUBKEY"
cheqd-noded add-genesis-account cheqd-user 1000000000000000000ncheq --keyring-backend test
cheqd-noded gentx cheqd-user 10000000000000000ncheq --chain-id $CHAIN_ID --pubkey "$NODE_0_VAL_PUBKEY" --keyring-backend test

cheqd-noded collect-gentxs
cheqd-noded validate-genesis
22 changes: 19 additions & 3 deletions tests/ibc-defi/hermes/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,26 @@
# client_id, connection_id, channel_id and port_id

[global]
strategy = 'packets'
filter = false
log_level = 'info'
clear_packets_interval = 100

[mode]

[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
filter = false
tx_confirmation = true

[rest]
Expand Down
2 changes: 1 addition & 1 deletion tests/ibc-defi/hermes/hermes.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \

WORKDIR /app

RUN git clone --depth 1 --branch v0.7.3 https://github.com/informalsystems/ibc-rs
RUN git clone --depth 1 --branch v0.9.0 https://github.com/informalsystems/ibc-rs

WORKDIR /app/ibc-rs

Expand Down
8 changes: 4 additions & 4 deletions tests/ibc-defi/ibc-transfer-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ sleep 15 # Wait for chains

info "Create relayer user on cheqd" # ---
CHEQD_RELAYER_KEY_NAME="cheqd-relayer"
CHEQD_RELAYER_ACCOUNT=$(docker-compose exec cheqd cheqd-noded keys add ${CHEQD_RELAYER_KEY_NAME} --output json)
CHEQD_RELAYER_ACCOUNT=$(docker-compose exec cheqd cheqd-noded keys add ${CHEQD_RELAYER_KEY_NAME} --keyring-backend test --output json)
CHEQD_RELAYER_ADDRESS=$(echo ${CHEQD_RELAYER_ACCOUNT} | jq --raw-output '.address')
CHEQD_RELAYER_MNEMONIC=$(echo ${CHEQD_RELAYER_ACCOUNT} | jq --raw-output '.mnemonic')

info "Send some tokens to it" # ---
RES=$(docker-compose exec cheqd cheqd-noded tx bank send cheqd-user ${CHEQD_RELAYER_ADDRESS} 1000000000000ncheq --gas-prices 25ncheq --chain-id cheqd -y)
RES=$(docker-compose exec cheqd cheqd-noded tx bank send cheqd-user ${CHEQD_RELAYER_ADDRESS} 1000000000000ncheq --gas-prices 25ncheq --chain-id cheqd -y --keyring-backend test)
[[ $(echo $RES | jq --raw-output '.code') == 0 ]] && info "tx successfull" || (err "non zero tx return code"; exit 1)


Expand All @@ -63,7 +63,7 @@ docker-compose exec -d hermes hermes start


info "Check balances" # ---
CHEQD_USER_ADDRESS=$(docker-compose exec cheqd cheqd-noded keys show --address cheqd-user | sed 's/\r//g')
CHEQD_USER_ADDRESS=$(docker-compose exec cheqd cheqd-noded keys show --address cheqd-user --keyring-backend test | sed 's/\r//g')
OSMOSIS_USER_ADDRESS=$(docker-compose exec osmosis osmosisd keys show --address osmosis-user --keyring-backend test | sed 's/\r//g')

CHEQD_BALANCE_1=$(docker-compose exec cheqd cheqd-noded query bank balances $CHEQD_USER_ADDRESS --output json)
Expand All @@ -72,7 +72,7 @@ docker-compose exec osmosis osmosisd query bank balances $OSMOSIS_USER_ADDRESS
info "Forward transfer" # ---
PORT="transfer"
CHANNEL="channel-0"
docker-compose exec cheqd cheqd-noded tx ibc-transfer transfer $PORT $CHANNEL $OSMOSIS_USER_ADDRESS 10000000000ncheq --from cheqd-user --chain-id cheqd --gas-prices 25ncheq -y
docker-compose exec cheqd cheqd-noded tx ibc-transfer transfer $PORT $CHANNEL $OSMOSIS_USER_ADDRESS 10000000000ncheq --from cheqd-user --chain-id cheqd --gas-prices 25ncheq --keyring-backend test -y
sleep 30 # Wait for relayer

info "Check balances the second time" # ---
Expand Down
2 changes: 1 addition & 1 deletion tests/ibc-defi/osmosis/osmosis.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# App
WORKDIR /app

RUN git clone --depth 1 --branch v4.0.0 https://github.com/osmosis-labs/osmosis
RUN git clone --depth 1 --branch v4.2.0 https://github.com/osmosis-labs/osmosis

WORKDIR /app/osmosis

Expand Down