Skip to content

Commit e31eafa

Browse files
committed
Merge branch 'master' into feature/collect_end_block_events
2 parents 7cd9413 + 00a0cf5 commit e31eafa

File tree

178 files changed

+9662
-951
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+9662
-951
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Add support for relaying between Namada and CosmosSDK-based chains.
2+
([\#3705](https://github.com/informalsystems/hermes/issues/3705))

.github/codespell/words.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ crate
22
shs
33
ser
44
numer
5+
nam
6+
inout
7+
wast

.github/workflows/cargo-doc.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ jobs:
2828
- uses: actions/checkout@v4
2929
- uses: actions-rust-lang/setup-rust-toolchain@v1
3030
with:
31-
toolchain: nightly-2024-04-21
31+
toolchain: nightly-2024-10-15
32+
- name: Install Protoc
33+
uses: heliaxdev/setup-protoc@v2
34+
with:
35+
version: "25.0"
36+
repo-token: ${{ secrets.GITHUB_TOKEN }}
3237
- name: Build API documentation
3338
uses: actions-rs/cargo@v1
3439
env:

.github/workflows/guide-templates.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
- uses: actions-rust-lang/setup-rust-toolchain@v1
3232
with:
3333
toolchain: stable
34+
- name: Install Protoc
35+
uses: heliaxdev/setup-protoc@v2
36+
with:
37+
version: "25.0"
38+
repo-token: ${{ secrets.GITHUB_TOKEN }}
3439
- name: Check templates
3540
run: bash scripts/auto_gen_templates.sh --mode "check"
36-
- uses: actions-rs/cargo@v1
37-
name: Update lockfile
38-
with:
39-
command: generate-lockfile
40-
args: --manifest-path tools/check-guide/Cargo.toml
4141
- uses: actions-rs/cargo@v1
4242
name: Check guide
4343
with:

.github/workflows/integration.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ jobs:
118118
- uses: actions-rust-lang/setup-rust-toolchain@v1
119119
with:
120120
toolchain: stable
121+
- name: Install Protoc
122+
uses: heliaxdev/setup-protoc@v2
123+
with:
124+
version: "25.0"
125+
repo-token: ${{ secrets.GITHUB_TOKEN }}
121126
- uses: actions-rs/cargo@v1
122127
with:
123128
command: test
@@ -156,6 +161,11 @@ jobs:
156161
- uses: actions-rust-lang/setup-rust-toolchain@v1
157162
with:
158163
toolchain: stable
164+
- name: Install Protoc
165+
uses: heliaxdev/setup-protoc@v2
166+
with:
167+
version: "25.0"
168+
repo-token: ${{ secrets.GITHUB_TOKEN }}
159169
- uses: actions-rs/cargo@v1
160170
with:
161171
command: test
@@ -199,6 +209,11 @@ jobs:
199209
- uses: actions-rust-lang/setup-rust-toolchain@v1
200210
with:
201211
toolchain: stable
212+
- name: Install Protoc
213+
uses: heliaxdev/setup-protoc@v2
214+
with:
215+
version: "25.0"
216+
repo-token: ${{ secrets.GITHUB_TOKEN }}
202217
- uses: actions-rs/cargo@v1
203218
with:
204219
command: test
@@ -242,6 +257,11 @@ jobs:
242257
- uses: actions-rust-lang/setup-rust-toolchain@v1
243258
with:
244259
toolchain: stable
260+
- name: Install Protoc
261+
uses: heliaxdev/setup-protoc@v2
262+
with:
263+
version: "25.0"
264+
repo-token: ${{ secrets.GITHUB_TOKEN }}
245265
- uses: actions-rs/cargo@v1
246266
with:
247267
command: test
@@ -284,6 +304,11 @@ jobs:
284304
- uses: actions-rust-lang/setup-rust-toolchain@v1
285305
with:
286306
toolchain: stable
307+
- name: Install Protoc
308+
uses: heliaxdev/setup-protoc@v2
309+
with:
310+
version: "25.0"
311+
repo-token: ${{ secrets.GITHUB_TOKEN }}
287312
- uses: actions-rs/cargo@v1
288313
with:
289314
command: test
@@ -328,6 +353,11 @@ jobs:
328353
- uses: actions-rust-lang/setup-rust-toolchain@v1
329354
with:
330355
toolchain: stable
356+
- name: Install Protoc
357+
uses: heliaxdev/setup-protoc@v2
358+
with:
359+
version: "25.0"
360+
repo-token: ${{ secrets.GITHUB_TOKEN }}
331361
- uses: actions-rs/cargo@v1
332362
with:
333363
command: test

.github/workflows/misbehaviour.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ jobs:
8080
uses: actions-rust-lang/setup-rust-toolchain@v1
8181
with:
8282
toolchain: stable
83+
- name: Install Protoc
84+
uses: heliaxdev/setup-protoc@v2
85+
with:
86+
version: "25.0"
87+
repo-token: ${{ secrets.GITHUB_TOKEN }}
8388
- name: Build Hermes
8489
uses: actions-rs/cargo@v1
8590
with:
@@ -132,6 +137,11 @@ jobs:
132137
uses: actions-rust-lang/setup-rust-toolchain@v1
133138
with:
134139
toolchain: stable
140+
- name: Install Protoc
141+
uses: heliaxdev/setup-protoc@v2
142+
with:
143+
version: "25.0"
144+
repo-token: ${{ secrets.GITHUB_TOKEN }}
135145
- name: Build Hermes
136146
uses: actions-rs/cargo@v1
137147
with:
@@ -184,6 +194,11 @@ jobs:
184194
uses: actions-rust-lang/setup-rust-toolchain@v1
185195
with:
186196
toolchain: stable
197+
- name: Install Protoc
198+
uses: heliaxdev/setup-protoc@v2
199+
with:
200+
version: "25.0"
201+
repo-token: ${{ secrets.GITHUB_TOKEN }}
187202
- name: Build Hermes
188203
uses: actions-rs/cargo@v1
189204
with:
@@ -236,6 +251,11 @@ jobs:
236251
uses: actions-rust-lang/setup-rust-toolchain@v1
237252
with:
238253
toolchain: stable
254+
- name: Install Protoc
255+
uses: heliaxdev/setup-protoc@v2
256+
with:
257+
version: "25.0"
258+
repo-token: ${{ secrets.GITHUB_TOKEN }}
239259
- name: Build Hermes
240260
uses: actions-rs/cargo@v1
241261
with:

.github/workflows/multi-chains.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ jobs:
9999
- uses: actions-rust-lang/setup-rust-toolchain@v1
100100
with:
101101
toolchain: stable
102+
- name: Install Protoc
103+
uses: heliaxdev/setup-protoc@v2
104+
with:
105+
version: "25.0"
106+
repo-token: ${{ secrets.GITHUB_TOKEN }}
102107
- uses: actions-rs/cargo@v1
103108
with:
104109
command: test

.github/workflows/namada.yaml

Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
name: Namada Integration
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- .github/workflows/namada.yaml
8+
- Cargo.toml
9+
- Cargo.lock
10+
- flake.nix
11+
- flake.lock
12+
- ci/**
13+
- e2e/**
14+
- crates/**
15+
- tools/**
16+
17+
env:
18+
CARGO_INCREMENTAL: 0
19+
CARGO_PROFILE_DEV_DEBUG: 1
20+
CARGO_PROFILE_RELEASE_DEBUG: 1
21+
RUST_BACKTRACE: short
22+
CARGO_NET_RETRY: 10
23+
RUSTUP_MAX_RETRIES: 10
24+
25+
# Cancel previous runs of this workflow when a new commit is added to the PR, branch or tag
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
28+
cancel-in-progress: true
29+
30+
jobs:
31+
cosmos-namada:
32+
runs-on: ubuntu-22.04
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
chain:
37+
- package: .#gaia20
38+
command: gaiad,namada
39+
account_prefix: cosmos,''
40+
native_token: stake,nam
41+
- package: .#osmosis
42+
command: osmosisd,namada
43+
account_prefix: osmo,''
44+
native_token: stake,nam
45+
steps:
46+
- uses: actions/checkout@v4
47+
- name: Clone Namada
48+
uses: actions/checkout@v4
49+
with:
50+
repository: anoma/namada
51+
ref: v0.46.1
52+
path: namada
53+
- name: Retrieve Namada repository path
54+
id: namada-repo-path
55+
run: |
56+
echo "NAMADA_REPO_PATH=$(pwd)/namada" >> "$GITHUB_ENV"
57+
- name: Install Nix
58+
uses: DeterminateSystems/nix-installer-action@main
59+
with:
60+
extra-conf: |
61+
substituters = https://cache.nixos.org
62+
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
63+
- name: Install Cachix
64+
uses: cachix/cachix-action@v14
65+
with:
66+
name: cosmos-nix
67+
- uses: actions-rust-lang/setup-rust-toolchain@v1
68+
with:
69+
toolchain: stable
70+
- name: Install libudev
71+
run: sudo apt-get update && sudo apt-get -y install libudev-dev
72+
- name: Install Protoc
73+
uses: heliaxdev/setup-protoc@v2
74+
with:
75+
version: "25.0"
76+
repo-token: ${{ secrets.GITHUB_TOKEN }}
77+
- uses: actions-rs/cargo@v1
78+
with:
79+
command: test
80+
args: -p ibc-integration-test --features namada --no-fail-fast --no-run
81+
- name: Install cargo-nextest
82+
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
83+
- name: Download CometBFT
84+
run: |
85+
curl -o cometbft.tar.gz -LO https://github.com/cometbft/cometbft/releases/download/v0.37.11/cometbft_0.37.11_linux_amd64.tar.gz
86+
tar -xvzf cometbft.tar.gz
87+
chmod +x cometbft
88+
mkdir -p $HOME/local/bin
89+
mv cometbft ~/local/bin
90+
- name: Download Namada binaries
91+
env:
92+
OPERATING_SYSTEM: Linux
93+
run: |
94+
release_url=$(curl -s "https://api.github.com/repos/anoma/namada/releases/188247367" | grep "browser_download_url" | cut -d '"' -f 4 | grep "$OPERATING_SYSTEM")
95+
wget "$release_url"
96+
tar -xzvf namada*.tar.gz
97+
cp ./namada*/namadac ~/local/bin/namadac
98+
cp ./namada*/namadan ~/local/bin/namadan
99+
cp ./namada*/namadaw ~/local/bin/namadaw
100+
cp ./namada*/namada ~/local/bin/namada
101+
cp ./namada*/wasm/checksums.json $NAMADA_REPO_PATH/wasm
102+
cp ./namada*/wasm/*.wasm $NAMADA_REPO_PATH/wasm
103+
- name: Update environment path
104+
run: |
105+
echo "${HOME}/local/bin" >> $GITHUB_PATH
106+
- name: Download MASP parameters
107+
run: |
108+
echo $HOME
109+
mkdir -p $HOME/.masp-params
110+
curl -o $HOME/.masp-params/masp-spend.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-spend.params\?raw\=true
111+
curl -o $HOME/.masp-params/masp-output.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-output.params?raw=true
112+
curl -o $HOME/.masp-params/masp-convert.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-convert.params?raw=true
113+
- env:
114+
RUST_LOG: info
115+
RUST_BACKTRACE: 1
116+
NO_COLOR_LOG: 1
117+
NEXTEST_RETRIES: 2
118+
CHAIN_COMMAND_PATHS: ${{ matrix.chain.command }}
119+
ACCOUNT_PREFIXES: ${{ matrix.chain.account_prefix }}
120+
NATIVE_TOKENS: ${{ matrix.chain.native_token }}
121+
run: |
122+
nix shell ${{ matrix.chain.package }} -c \
123+
cargo nextest run -p ibc-integration-test --no-fail-fast --failure-output final --test-threads=1 \
124+
--features namada
125+
126+
namada:
127+
runs-on: ubuntu-22.04
128+
strategy:
129+
fail-fast: false
130+
steps:
131+
- uses: actions/checkout@v4
132+
- name: Clone Namada
133+
uses: actions/checkout@v4
134+
with:
135+
repository: anoma/namada
136+
ref: v0.46.1
137+
path: namada
138+
- name: Retrieve Namada repository path
139+
id: namada-repo-path
140+
run: |
141+
echo "NAMADA_REPO_PATH=$(pwd)/namada" >> "$GITHUB_ENV"
142+
- uses: actions-rust-lang/setup-rust-toolchain@v1
143+
with:
144+
toolchain: stable
145+
- name: Install libudev
146+
run: sudo apt-get update && sudo apt-get -y install libudev-dev
147+
- name: Install Protoc
148+
uses: heliaxdev/setup-protoc@v2
149+
with:
150+
version: "25.0"
151+
repo-token: ${{ secrets.GITHUB_TOKEN }}
152+
- uses: actions-rs/cargo@v1
153+
with:
154+
command: test
155+
args: -p ibc-integration-test --features namada --no-fail-fast --no-run
156+
- name: Install cargo-nextest
157+
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
158+
- name: Download CometBFT
159+
run: |
160+
curl -o cometbft.tar.gz -LO https://github.com/cometbft/cometbft/releases/download/v0.37.11/cometbft_0.37.11_linux_amd64.tar.gz
161+
tar -xvzf cometbft.tar.gz
162+
mkdir -p ~/local/bin
163+
chmod +x cometbft
164+
mv cometbft ~/local/bin
165+
- name: Download Namada binaries
166+
env:
167+
OPERATING_SYSTEM: Linux
168+
run: |
169+
release_url=$(curl -s "https://api.github.com/repos/anoma/namada/releases/188247367" | grep "browser_download_url" | cut -d '"' -f 4 | grep "$OPERATING_SYSTEM")
170+
wget "$release_url"
171+
tar -xzvf namada*.tar.gz
172+
cp ./namada*/namadac ~/local/bin/namadac
173+
cp ./namada*/namadan ~/local/bin/namadan
174+
cp ./namada*/namadaw ~/local/bin/namadaw
175+
cp ./namada*/namada ~/local/bin/namada
176+
cp ./namada*/wasm/checksums.json $NAMADA_REPO_PATH/wasm
177+
cp ./namada*/wasm/*.wasm $NAMADA_REPO_PATH/wasm
178+
- name: Update environment path
179+
run: |
180+
echo "${HOME}/local/bin" >> $GITHUB_PATH
181+
- name: Download MASP parameters
182+
run: |
183+
echo $HOME
184+
mkdir -p $HOME/.masp-params
185+
curl -o $HOME/.masp-params/masp-spend.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-spend.params\?raw\=true
186+
curl -o $HOME/.masp-params/masp-output.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-output.params?raw=true
187+
curl -o $HOME/.masp-params/masp-convert.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-convert.params?raw=true
188+
- env:
189+
RUST_LOG: info
190+
RUST_BACKTRACE: 1
191+
NO_COLOR_LOG: 1
192+
NEXTEST_RETRIES: 2
193+
CHAIN_COMMAND_PATHS: namada
194+
ACCOUNT_PREFIXES: ''
195+
NATIVE_TOKENS: nam
196+
run: |
197+
cargo nextest run -p ibc-integration-test --no-fail-fast --failure-output final --test-threads=1 \
198+
--features namada
199+

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
1414
- uses: actions-rust-lang/setup-rust-toolchain@v1
1515
with:
1616
toolchain: stable
17+
- name: Install Protoc
18+
uses: heliaxdev/setup-protoc@v2
19+
with:
20+
version: "25.0"
21+
repo-token: ${{ secrets.GITHUB_TOKEN }}
1722
- uses: katyo/publish-crates@v2
1823
with:
1924
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
runs-on: ${{ matrix.config.os }}
3232
steps:
3333
- uses: actions/checkout@v4
34+
- name: Install Protoc
35+
uses: heliaxdev/setup-protoc@v2
36+
with:
37+
version: "25.0"
38+
repo-token: ${{ secrets.GITHUB_TOKEN }}
3439
- uses: taiki-e/upload-rust-binary-action@v1
3540
with:
3641
# (required)

0 commit comments

Comments
 (0)