-
Notifications
You must be signed in to change notification settings - Fork 355
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
Add support for Namada #3705
Merged
Merged
Add support for Namada #3705
Changes from 114 commits
Commits
Show all changes
129 commits
Select commit
Hold shift + click to select a range
e35931e
add NamadaChain
yito88 8153fb6
fix wallet and PosParams
yito88 83211e7
add test scripts
yito88 ba2c88a
fix compat_mode
yito88 2ea4cdb
fix scripts for Namada v0.25.0
yito88 a0f26d1
add relaying tests
yito88 0a4bc26
fix config type and scripts
yito88 d0e75e8
minor fix for scripts
yito88 c17e112
install protoc for CI
yito88 b6cc2fa
fix tests
yito88 3cf5d17
fix tests
yito88 f01effc
fix sim test
yito88 d7b6c7a
fix test-framework doc
yito88 446787f
change Namada key handling
yito88 7fa06a2
fix scripts for adding namada keys
yito88 bb519c4
support encrypted key
yito88 6a96579
workaround for serde_json deserialization of ChainConfig
yito88 d87f272
fix after merge upstream
yito88 5e279ce
clean up Namada error
yito88 2d6272b
use only namada_sdk
yito88 c939c7b
Namada 0.27.0
yito88 764973d
check Namada WriteAck event in NewBlock
yito88 8cd572d
Namada 0.28.0
yito88 e22c2d5
Namada 0.29.0
yito88 a8d6b9b
Merge branch 'master' into yuji/1.7.1-namada
ljoss17 d0522c6
Fix issues post-merge
ljoss17 7a1f964
Merge pull request #25 from informalsystems/luca_joss/update-yuji-1.7…
yito88 4eee0e6
Namada 0.30.0
yito88 bca710b
Namada 0.30.2
yito88 3d9de30
Namada 0.31.0
yito88 3e6b7a1
shielded transfer test (#24)
yito88 31e4612
Support shielding transfers (#28)
yito88 280a438
fix config deserialization
yito88 37db82d
Merge branch 'master' into yuji/1.7.1-namada
yito88 f8b755e
fix for Namada #3032
yito88 254ed47
for Namada 0.35 draft
yito88 3d20ce3
small fixes for latest Hermes and fixed test scripts
yito88 025a69b
Namada 0.36 draft
yito88 6b72c1c
Namada 0.36.1
yito88 25d76a4
fix test
yito88 f3acb3c
Namada 0.37.0
yito88 18abd42
Merge branch 'master' into yuji/1.7.1-namada
yito88 bb01bd8
fix tests
yito88 5f083d1
Run tests with Namada chain (#18)
ljoss17 7abe00c
Merge commit 'master' into yuji/1.7.1-namada
yito88 1a13f8c
fix for Hermes v1.9.0
yito88 1a354b8
fix command and tests
yito88 90113e8
for CI
yito88 a3e7d13
WIP: fixing integration test with Namada
yito88 b20f474
WIP: fixing integration test with Namada
yito88 baa36f3
fixed some integration tests with Namada
yito88 947856f
Batching Namada transactions (#31)
yito88 cc148b3
for Namada/#3297 - split transfer tx
yito88 20bd3f5
Namada 0.39 draft
yito88 2231cd1
Namada 0.39.0
yito88 edf6b2b
fix tx event query
yito88 2adb118
for Namada 0.39.0 CI
yito88 19c5476
Namada gas estimation (#32)
yito88 d42fc23
fix error_events test
yito88 21ea6d7
fix to return a dummy failure response when simulation failure
yito88 1c5e071
return err when sim fails
yito88 5922e20
for connection events in NewBlock
yito88 6d9c1af
remove gen masp tx
yito88 30f468c
fix test scripts
yito88 aa380d2
minor fix
yito88 141be13
Namada for IBC shielding transfer
yito88 ecd0f98
fix integration tests for Namada
yito88 1dd59c3
fix batching txs
yito88 f401175
for Namada 0.40.0 draft
yito88 5550adf
fix genesis time
yito88 c1c12a8
Merge branch 'master'
yito88 f75f5b2
for CI with Namada v0.40.0
yito88 6899c72
gaia17
yito88 337f4dc
fix tests between gaia and namada
yito88 2d7fdaa
add retry for tests
yito88 a777772
fix ternary test
yito88 7fc3101
fix denom in ternary test
yito88 28d2bc6
add more transfer tests
yito88 d43eb78
revert nft transfer test script for shielding transfer
yito88 9c0d396
for Namada 3428 - Improve gas interface
yito88 4f20afa
fix gas-limit
yito88 b3d458d
implement queries for upgrade
yito88 047807a
fix upgrade path
yito88 f74de28
update time
yito88 b4cebde
Namada 0.42 draft
yito88 c16922b
Merge branch 'master'
yito88 be73530
for Hermes 1.10.1
yito88 3be1556
fix for Hermes 1.10.2
yito88 ed18e86
update gaia
yito88 11f9c9e
copy checksums
yito88 da78ffa
workaround
yito88 b9d942f
fix overwrite memo test
yito88 d55acfc
remove redundant config()
yito88 29b68f4
fix compat_mode
yito88 e4b3bf2
impl shutdown
yito88 4f4d450
version_specs
yito88 99ca2a8
Merge branch 'master'
yito88 261a5a2
update namada sdk, use block gas limit to estimate gas
Fraccaman 1276398
only use the namada sdk
tzemanovic f8e354c
use namada v0.44.0
tzemanovic 210b628
use max_block_gas for tx max_gas unless configured
tzemanovic bfa7da7
set the default max gas back to 400_000
tzemanovic 6deca9f
Merge branch 'master'
yito88 e8494dc
fix for CI
yito88 2835a92
update Namada version for CI
yito88 ff783d7
fix for transaction batch
yito88 2c29c78
remove unwrap()
yito88 a4ed34e
update cometbft version
yito88 df9e517
workaround for #4176
yito88 501c6f8
Namada v0.45.1
yito88 91064ba
Merge branch 'master'
yito88 9af782d
avoid updating Namada's tendermint-rs
yito88 5436a2f
Merge branch 'master'
yito88 9161baf
Namada v0.46.0 and remove test scripts
yito88 b8b85b5
fix according to feedback
yito88 3a42a9b
fix for msrv and cargo-doc
yito88 03a9657
fix for msrv
yito88 d5043c0
add protoc installation for msrv
yito88 8a1ce8f
msrv logs
yito88 44dcf32
fix dockerfile
yito88 1f3bf44
Namada v0.46.1
yito88 57f0d4f
for clippy of rust 1.83.0
yito88 a96100f
for clippy of rust 1.83.0
yito88 a719662
for clippy of rust 1.83.0
yito88 31049b1
for clippy of rust 1.83.0
yito88 df7d47b
add changelog
yito88 d349d5a
update to gaia20, add tests between osmosis and namada
yito88 58b4eaa
fix pr trigger path
yito88 2100927
Update .changelog/unreleased/features/3705-support-namada.md
yito88 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ crate | |
shs | ||
ser | ||
numer | ||
nam | ||
inout | ||
wast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,195 @@ | ||
name: Namada Integration | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- .github/workflows/integration.yaml | ||
- Cargo.toml | ||
- Cargo.lock | ||
- flake.nix | ||
- flake.lock | ||
- ci/** | ||
- e2e/** | ||
- crates/** | ||
- tools/** | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_PROFILE_DEV_DEBUG: 1 | ||
CARGO_PROFILE_RELEASE_DEBUG: 1 | ||
RUST_BACKTRACE: short | ||
CARGO_NET_RETRY: 10 | ||
RUSTUP_MAX_RETRIES: 10 | ||
|
||
# Cancel previous runs of this workflow when a new commit is added to the PR, branch or tag | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
gaia-namada: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
chain: | ||
- package: .#gaia18 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ljoss17 Let's add Osmosis there as well? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, we could also update to Gaia 20. I will look into this |
||
command: gaiad,namada | ||
account_prefix: cosmos,'' | ||
native_token: stake,nam | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Clone Namada | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: anoma/namada | ||
ref: v0.46.0 | ||
path: namada | ||
- name: Retrieve Namada repository path | ||
id: namada-repo-path | ||
run: | | ||
echo "NAMADA_REPO_PATH=$(pwd)/namada" >> "$GITHUB_ENV" | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@main | ||
with: | ||
extra-conf: | | ||
substituters = https://cache.nixos.org | ||
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= | ||
- name: Install Cachix | ||
uses: cachix/cachix-action@v14 | ||
with: | ||
name: cosmos-nix | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Install libudev | ||
run: sudo apt-get update && sudo apt-get -y install libudev-dev | ||
- name: Install Protoc | ||
uses: heliaxdev/setup-protoc@v2 | ||
with: | ||
version: "25.0" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: -p ibc-integration-test --features namada --no-fail-fast --no-run | ||
- name: Install cargo-nextest | ||
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin | ||
- name: Download CometBFT | ||
run: | | ||
curl -o cometbft.tar.gz -LO https://github.com/cometbft/cometbft/releases/download/v0.37.11/cometbft_0.37.11_linux_amd64.tar.gz | ||
tar -xvzf cometbft.tar.gz | ||
chmod +x cometbft | ||
mkdir -p $HOME/local/bin | ||
mv cometbft ~/local/bin | ||
- name: Download Namada binaries | ||
env: | ||
OPERATING_SYSTEM: Linux | ||
run: | | ||
release_url=$(curl -s "https://api.github.com/repos/anoma/namada/releases/186743588" | grep "browser_download_url" | cut -d '"' -f 4 | grep "$OPERATING_SYSTEM") | ||
wget "$release_url" | ||
tar -xzvf namada*.tar.gz | ||
cp ./namada*/namadac ~/local/bin/namadac | ||
cp ./namada*/namadan ~/local/bin/namadan | ||
cp ./namada*/namadaw ~/local/bin/namadaw | ||
cp ./namada*/namada ~/local/bin/namada | ||
cp ./namada*/wasm/checksums.json $NAMADA_REPO_PATH/wasm | ||
cp ./namada*/wasm/*.wasm $NAMADA_REPO_PATH/wasm | ||
- name: Update environment path | ||
run: | | ||
echo "${HOME}/local/bin" >> $GITHUB_PATH | ||
- name: Download MASP parameters | ||
run: | | ||
echo $HOME | ||
mkdir -p $HOME/.masp-params | ||
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 | ||
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 | ||
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 | ||
- env: | ||
RUST_LOG: info | ||
RUST_BACKTRACE: 1 | ||
NO_COLOR_LOG: 1 | ||
NEXTEST_RETRIES: 2 | ||
CHAIN_COMMAND_PATHS: ${{ matrix.chain.command }} | ||
ACCOUNT_PREFIXES: ${{ matrix.chain.account_prefix }} | ||
NATIVE_TOKENS: ${{ matrix.chain.native_token }} | ||
run: | | ||
nix shell ${{ matrix.chain.package }} -c \ | ||
cargo nextest run -p ibc-integration-test --no-fail-fast --failure-output final --test-threads=1 \ | ||
--features namada | ||
|
||
namada: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Clone Namada | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: anoma/namada | ||
ref: v0.45.1 | ||
path: namada | ||
- name: Retrieve Namada repository path | ||
id: namada-repo-path | ||
run: | | ||
echo "NAMADA_REPO_PATH=$(pwd)/namada" >> "$GITHUB_ENV" | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Install libudev | ||
run: sudo apt-get update && sudo apt-get -y install libudev-dev | ||
- name: Install Protoc | ||
uses: heliaxdev/setup-protoc@v2 | ||
with: | ||
version: "25.0" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: -p ibc-integration-test --features namada --no-fail-fast --no-run | ||
- name: Install cargo-nextest | ||
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin | ||
- name: Download CometBFT | ||
run: | | ||
curl -o cometbft.tar.gz -LO https://github.com/cometbft/cometbft/releases/download/v0.37.11/cometbft_0.37.11_linux_amd64.tar.gz | ||
tar -xvzf cometbft.tar.gz | ||
mkdir -p ~/local/bin | ||
chmod +x cometbft | ||
mv cometbft ~/local/bin | ||
- name: Download Namada binaries | ||
env: | ||
OPERATING_SYSTEM: Linux | ||
run: | | ||
release_url=$(curl -s "https://api.github.com/repos/anoma/namada/releases/186743588" | grep "browser_download_url" | cut -d '"' -f 4 | grep "$OPERATING_SYSTEM") | ||
wget "$release_url" | ||
tar -xzvf namada*.tar.gz | ||
cp ./namada*/namadac ~/local/bin/namadac | ||
cp ./namada*/namadan ~/local/bin/namadan | ||
cp ./namada*/namadaw ~/local/bin/namadaw | ||
cp ./namada*/namada ~/local/bin/namada | ||
cp ./namada*/wasm/checksums.json $NAMADA_REPO_PATH/wasm | ||
cp ./namada*/wasm/*.wasm $NAMADA_REPO_PATH/wasm | ||
- name: Update environment path | ||
run: | | ||
echo "${HOME}/local/bin" >> $GITHUB_PATH | ||
- name: Download MASP parameters | ||
run: | | ||
echo $HOME | ||
mkdir -p $HOME/.masp-params | ||
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 | ||
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 | ||
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 | ||
- env: | ||
RUST_LOG: info | ||
RUST_BACKTRACE: 1 | ||
NO_COLOR_LOG: 1 | ||
NEXTEST_RETRIES: 2 | ||
CHAIN_COMMAND_PATHS: namada | ||
ACCOUNT_PREFIXES: '' | ||
NATIVE_TOKENS: nam | ||
run: | | ||
cargo nextest run -p ibc-integration-test --no-fail-fast --failure-output final --test-threads=1 \ | ||
--features namada | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.