Skip to content
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

Deprecate generate-account-key in favour of generate-moonbeam-key #3090

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

RomarQ
Copy link
Contributor

@RomarQ RomarQ commented Dec 7, 2024

What does it do?

  • Deprecates generate-account-key in favour of generate-moonbeam-key. Which uses the correct coin_type.
  • Removed moonkey utility

moonbeam key generate-account-key will now output a warning:

image

@RomarQ RomarQ added B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes D2-notlive PR doesn't change runtime code (so can't be audited) not-breaking Does not need to be mentioned in breaking changes labels Dec 7, 2024
@RomarQ RomarQ self-assigned this Dec 7, 2024
Copy link
Contributor

github-actions bot commented Dec 7, 2024

WASM runtime size check:

Compared to target branch

Moonbase runtime: 2260 KB (no changes) ✅

Moonbeam runtime: 2248 KB (no changes) ✅

Moonriver runtime: 2240 KB (no changes) ✅

Compared to latest release (runtime-3400)

Moonbase runtime: 2260 KB (+232 KB compared to latest release) ⚠️

Moonbeam runtime: 2248 KB (+236 KB compared to latest release) ⚠️

Moonriver runtime: 2240 KB (+228 KB compared to latest release) ⚠️

Copy link
Contributor

github-actions bot commented Dec 7, 2024

Coverage Report

@@                 Coverage Diff                  @@
##           master   rq/remove-moonkey     +/-   ##
====================================================
  Coverage   74.58%              74.58%   0.00%     
- Files         375                 374      -1     
+ Lines       95682               95686      +4     
====================================================
  Hits        71359               71359             
+ Misses      24323               24327      +4     
Files Changed Coverage
/node/cli/src/cli.rs 26.73% (-2.94%) 🔽
/node/cli-opt/src/account_key.rs 30.65% (-1.02%) 🔽

Coverage generated Sat Dec 7 23:08:16 UTC 2024

@RomarQ RomarQ requested a review from crystalin December 10, 2024 13:45
@@ -372,7 +373,10 @@ pub enum KeyCmd {
#[clap(flatten)]
BaseCli(sc_cli::KeySubcommand),
/// Generate an Ethereum account.
#[clap(about = "This command is deprecated, please use `generate-moonbeam-key` instead.")]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make it so it points to this PR with explanation about why it is deprecated and the difference between the 2.

@@ -53,7 +53,11 @@ impl GenerateAccountKey {

// Retrieves the seed from the mnemonic
let seed = Seed::new(&mnemonic, "");
let derivation_path = format!("m/44'/60'/0'/0/{}", self.account_index.unwrap_or(0));
let derivation_path = if deprecated {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should allow to pass a --network moonbeam|moonriver|moonbase|ethereum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes D2-notlive PR doesn't change runtime code (so can't be audited) not-breaking Does not need to be mentioned in breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants