-
Notifications
You must be signed in to change notification settings - Fork 351
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
Add support for Namada #3705
Conversation
….1-namada Update yuji 1.7.1 namada
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.
Added some nits.
In addition:
- For the MSRV, it needs to be updated to
v1.79.0
due to[email protected] requires rustc 1.79.0
- For cargo doc, we can use the
stable
toolchain instead ofnightly-2024-04-21
Sorry it seems that for cargo doc we need the nightly build, |
.github/workflows/namada.yaml
Outdated
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- .github/workflows/integration.yaml |
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.
- .github/workflows/integration.yaml | |
- .github/workflows/namada.yaml |
.github/workflows/namada.yaml
Outdated
fail-fast: false | ||
matrix: | ||
chain: | ||
- package: .#gaia18 |
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.
@ljoss17 Let's add Osmosis there as well?
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.
Yes, we could also update to Gaia 20. I will look into this
env: | ||
OPERATING_SYSTEM: Linux | ||
run: | | ||
release_url=$(curl -s "https://api.github.com/repos/anoma/namada/releases/188247367" | grep "browser_download_url" | cut -d '"' -f 4 | grep "$OPERATING_SYSTEM") |
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.
@yito88 Is there a way to automatically pull the latest deployed version of Namada, to ensure we stay up to date consistently without having to change the workflow file everytime?
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.
There is no way for now I think. We need to update the URL when a new version is released.
@@ -6,9 +6,23 @@ | |||
FROM rust:1-buster AS build-env |
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.
@ljoss17 Let's trigger this workflow manually from the branch before merging to make sure it works
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.
// TODO: extract Tendermint-related configs into a separate substructure | ||
// that can be used both by CosmosSdkConfig and configs for nonSDK chains. |
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.
@ljoss17 Let's open an issue for this, would make the code much nicer eventually
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.
Done #4264
Co-authored-by: Romain Ruetschi <[email protected]> Signed-off-by: Yuji Ito <[email protected]>
Add support for relaying between Namada and Cosmos-base chains. - Add Namada to `ChainConfig` - Reuse `CosmosSdkConfig` for generating Tendermint light clients - Add `NamadaChain` as `ChainEndpoint` implementation - See `crates/relayer/src/chain/namada.rs` and files under `crates/relayer/src/chain/namada` - To submit Namada transactions and query - Store Namada key to KeyRing --------- Signed-off-by: Yuji Ito <[email protected]> Co-authored-by: Luca Joss <[email protected]> Co-authored-by: Luca Joss <[email protected]> Co-authored-by: Gianmarco Fraccaroli <[email protected]> Co-authored-by: Tomáš Zemanovič <[email protected]> Co-authored-by: Romain Ruetschi <[email protected]>
* Update Cargo.lock * Revert "Add support for Namada (#3705)" This reverts commit 00a0cf5. * Cargo clippy fix * Formatting --------- Co-authored-by: Luca Joss <[email protected]>
Add support for relaying between Namada and Cosmos-base chains. - Add Namada to `ChainConfig` - Reuse `CosmosSdkConfig` for generating Tendermint light clients - Add `NamadaChain` as `ChainEndpoint` implementation - See `crates/relayer/src/chain/namada.rs` and files under `crates/relayer/src/chain/namada` - To submit Namada transactions and query - Store Namada key to KeyRing --------- Signed-off-by: Yuji Ito <[email protected]> Co-authored-by: Luca Joss <[email protected]> Co-authored-by: Luca Joss <[email protected]> Co-authored-by: Gianmarco Fraccaroli <[email protected]> Co-authored-by: Tomáš Zemanovič <[email protected]> Co-authored-by: Romain Ruetschi <[email protected]>
Closes: #XXX
Description
To transfer tokens between Namada and Cosmos-base chains.
ChainConfig
CosmosSdkConfig
for generating Tendermint light clientsNamadaChain
asChainEndpoint
implementationcrates/relayer/src/chain/namada.rs
and files undercrates/relayer/src/chain/namada
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.