-
Notifications
You must be signed in to change notification settings - Fork 329
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
base: master
Are you sure you want to change the base?
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.
Some small nits for error upstreaming
crates/relayer/src/chain/namada.rs
Outdated
.latest_block_time | ||
.to_string() | ||
.parse() | ||
.unwrap()) |
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.
The error should be upstreamed instead of calling unwrap()
crates/relayer/src/chain/namada.rs
Outdated
if key.to_string().ends_with("clientState") { | ||
let client_id = | ||
storage::client_id(&key).map_err(|e| Error::query(e.to_string()))?; | ||
let client_id = ClientId::from_str(&client_id.to_string()).unwrap(); |
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.
The error should be upstreamed instead of calling unwrap()
crates/relayer/src/chain/namada.rs
Outdated
let PrefixValue { key, value: _ } = prefix_value; | ||
match storage::consensus_height(&key) { | ||
Ok(h) => { | ||
let height = ICSHeight::new(h.revision_number(), h.revision_height()).unwrap(); |
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.
The error should be upstreamed instead of calling unwrap()
crates/relayer/src/chain/namada.rs
Outdated
let port_id = port_id.as_ref().parse().unwrap(); | ||
let channel_id = channel_id.as_ref().parse().unwrap(); |
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.
The errors should be upstreamed instead of calling unwrap()
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.