-
Notifications
You must be signed in to change notification settings - Fork 10
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
1.7.0 with Namada #14
Conversation
3758262
to
665cec3
Compare
c456adf
to
86f0e4d
Compare
86f0e4d
to
e432c42
Compare
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.
Just took a quick look for now. Do you know if any other non-Cosmos-SDK chains have been added to upstream Hermes yet? Do they have any guidelines for new chains who want to submit PRs?
@@ -20,7 +20,11 @@ jobs: | |||
with: | |||
toolchain: nightly-2023-07-13 | |||
override: true | |||
|
|||
- name: Install Protoc |
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.
do we really need to ask informal to make this a dependency?
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.
We can't build Hermes importing namada_sdk
and namada
without protoc
.
let response = self.send_tx(msg)?; | ||
|
||
// Note: we don't have any height information in this case. This hack will fix itself | ||
// once we remove the `ChainError` event (which is not actually an event) |
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.
is this our hack or informal's hack?
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 are only Cosmos-SDK chains using
They said we could open a PR for Namada. I will share this progress and ask them about it again. |
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.
just a few nits/suggestions
.map_err(|_| eyre!("error loading Namada wallet"))?; | ||
|
||
let secret_key = wallet | ||
.find_secret_key(key_name, None) |
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.
passing None
here will interrupt the process with a prompt, right? should we instead hand out the password via a secrets file or smth?
Ok(monitor_tx) | ||
} | ||
|
||
fn get_unbonding_time(&self) -> Result<Duration, Error> { |
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.
fn get_unbonding_time(&self) -> Result<Duration, Error> { | |
fn get_min_unbonding_time(&self) -> Result<Duration, Error> { |
maybe? since this is not a precise duration (epochs can last longer than epoch_duration.min_duration
)
store.insert_keypair::<wallet::NullWalletUtils>( | ||
config.key_name.clone().into(), | ||
key.secret_key, | ||
None, | ||
Some(key.address), | ||
None, | ||
true, | ||
); |
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.
this won't encrypt the keys right? maybe we should add an option to do so, later on
closes #11
Namada
toChainConfig
CosmosSdkConfig
for generating Tendermint light clientsNamadaChain
asChainEndpoint
implementationcrates/relayer/src/chain/namada.rs
and files undercrates/relayer/src/chain/namada
KeyRing
Add Namada key to the store #15