Skip to content
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
20 changes: 17 additions & 3 deletions integration_tests/configs/ibc.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,22 @@ config {
},
},
relayer: {
global: {
strategy: 'all',
mode: {
clients: {
enabled: true,
refresh: true,
misbehaviour: true,
},
connections: {
enabled: true,
},
channels: {
enabled: true,
},
packets: {
enabled: true,
tx_confirmation: true,
},
},
rest: {
enabled: true,
Expand All @@ -106,7 +120,7 @@ config {
{
id: 'cronos_777-1',
max_gas: 500000,
gas_adjustment: 1,
gas_multiplier: 2,
address_type: {
derivation: 'ethermint',
proto_type: {
Expand Down
22 changes: 14 additions & 8 deletions integration_tests/ibc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,20 @@ def prepare_network(tmp_path, file):
subprocess.check_call(
[
"hermes",
"-c",
"--config",
hermes.configpath,
"create",
"channel",
"cronos_777-1",
"chainmain-1",
"--port-a",
"--a-port",
"transfer",
"--port-b",
"--b-port",
"transfer",
"--a-chain",
"cronos_777-1",
"--b-chain",
"chainmain-1",
"--new-client-connection",
"--yes",
]
)
supervisorctl(cronos.base_dir / "../tasks.ini", "start", "relayer-demo")
Expand All @@ -65,9 +69,11 @@ def prepare(ibc):
src_denom = "basecro"
# dstchainid srcchainid srcportid srchannelid
cmd = (
f"hermes -c {ibc.hermes.configpath} tx raw ft-transfer "
f"{my_ibc1} {my_ibc0} transfer {my_channel} {src_amount} "
f"-o 1000 -n 1 -d {src_denom} -r {dst_addr} -k relayer"
f"hermes --config {ibc.hermes.configpath} tx ft-transfer "
f"--dst-chain {my_ibc1} --src-chain {my_ibc0} --src-port transfer "
f"--src-channel {my_channel} --amount {src_amount} "
f"--timeout-height-offset 1000 --number-msgs 1 "
f"--denom {src_denom} --receiver {dst_addr} --key-name relayer"
)
subprocess.run(cmd, check=True, shell=True)
return src_amount
Expand Down
3 changes: 2 additions & 1 deletion integration_tests/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions nix/hermes.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{ pkgs ? import ./default.nix { } }:
let
version = "v0.8.0";
version = "v1.0.0-rc.2";
srcUrl = {
x86_64-linux = {
url =
"https://github.com/informalsystems/ibc-rs/releases/download/${version}/hermes-${version}-x86_64-unknown-linux-gnu.tar.gz";
sha256 = "sha256-fhY+AKfT0UffIvpWOqLK80sQy+JV+QjP6Du6fdXCjd4=";
sha256 = "sha256-ms+3Ka8Ijbx63OXQzzNZ1kLrwVJDIVnvyc1TG69bun0=";
};
x86_64-darwin = {
url =
"https://github.com/informalsystems/ibc-rs/releases/download/${version}/hermes-${version}-x86_64-apple-darwin.tar.gz";
sha256 = "sha256-dBAdPle81IBoOw5epr0NcPyIdYR/HNux1UKVYpAas2A=";
sha256 = "sha256-ygp49IPTXKqK12gE8OiyXjXhkJvfUZNuXVnS14SVScQ=";
};
}.${pkgs.stdenv.system} or (throw
"Unsupported system: ${pkgs.stdenv.system}");
Expand Down