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

feat: generate a default mnemonic for chains without keys #33

Merged
merged 28 commits into from
Dec 21, 2023

Conversation

Pantani
Copy link
Collaborator

@Pantani Pantani commented Dec 12, 2023

close #8

Description

Generate mnemonics for new wallets if they do not exist, and the user does not provide them. This PR also adds the --generate-wallets flag to generate a wallet automatically if it does not exist.

Other improvements:

  • Validate the mnemonic;
  • Fix flags with _ instead -;
  • Add the --json flag to Hermes commands so we can parse the result;
  • Remove unnecessary code;
  • Add missing parameters into the config;
  • Add a --generate-config flag to always create a new config file;
  • Fix the config default values;
  • Add stdin to Hermes cmd;

@Pantani Pantani self-assigned this Dec 12, 2023
@Pantani Pantani marked this pull request as ready for review December 12, 2023 23:29
@Pantani Pantani changed the base branch from main to feat/bump-ignite December 12, 2023 23:57
@Pantani Pantani requested a review from jeronimoalbi December 13, 2023 20:34
hermes/pkg/hermes/hermes.go Outdated Show resolved Hide resolved
Base automatically changed from feat/bump-ignite to main December 20, 2023 11:19
Pantani added 2 commits December 21, 2023 15:04
# Conflicts:
#	explorer/go.mod
#	explorer/go.sum
#	go.work.sum
#	hermes/go.mod
#	hermes/go.sum
#	integration/go.mod
#	integration/go.sum
…monic

# Conflicts:
#	explorer/go.mod
#	explorer/go.sum
#	hermes/go.mod
#	hermes/go.sum
#	integration/go.mod
#	integration/go.sum
@Pantani Pantani merged commit 4438ed1 into main Dec 21, 2023
10 checks passed
@Pantani Pantani deleted the feat/generate-default-mnemonic branch December 21, 2023 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(hermes): generate a mnemonic if not provided
3 participants