-
Notifications
You must be signed in to change notification settings - Fork 56
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
Support ethermint #150
Support ethermint #150
Conversation
169f9e0
to
3414e9f
Compare
working my way through this one today; fyi |
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.
One question on the external dependency this introduces & then a couple of minor changes to use statics instead of duplicating them.
let hd_path = args | ||
.flag_hd_wallet_path | ||
.as_deref() | ||
.unwrap_or("m/44'/118'/0'/0/0"); |
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.
Let's use DEFAULT_HD_PATH
here.
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
orchestrator/client/src/main.rs
Outdated
let hd_path = args | ||
.flag_hd_wallet_path | ||
.as_deref() | ||
.unwrap_or("m/44'/118'/0'/0/0"); |
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.
also DEFAULT_HD_PATH
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, moved DEFAULT_HD_PATH
to cosmos_gravity::crypto::
.
orchestrator/Cargo.toml
Outdated
@@ -13,3 +13,5 @@ members = [ | |||
"register_delegate_keys", | |||
"gorc", | |||
] | |||
[patch.crates-io] | |||
deep_space = { git = "https://github.com/yihuang/deep_space/", branch = "ethermint" } |
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.
Will this be merged into deep_space soon? Would prefer to avoid the external 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.
@yihuang I am going to try and merge your changes to deep space in with the iqlusioninc deep space changes so we can just depend on that upstream repo.
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.
@yihuang I am going to try and merge your changes to deep space in with the iqlusioninc deep space changes so we can just depend on that upstream repo.
how's that going? 😄
#[cfg(not(feature = "ethermint"))] | ||
pub const DEFAULT_HD_PATH: &str = "m/44'/118'/0'/0/0"; | ||
|
||
/// PriateKey wraps cosmos private key, switch between cosmos and ethermint behavior according to compile feature. |
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.
PriateKey
-> PrivateKey
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.
good catch, fixed
fixed conflicts and squashed. |
81036d9
to
bdc4a80
Compare
- patch deep_space with ethermint fork - add a PrivateKey which switch to ethermint when ethermint feature is turn on - change default hd_path if ethermint feature turn on change to crypto-org-chain repo fix test_runner build
can be close crypto-org-chain#31 |
Closes #145
Add a cargo feature to switch to ethermint mode:
deep_space PR: iqlusioninc/deep_space#1