-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: generate with mnemonic (#1165)
* feat: generate with mnemonic * chore: removed breakpoint * test: added test for generate_mnemonic and update test for generate * refactor: changed mnemonic report to cli_ctx.logger.success * test: added test for hidden mnemonic * test: re arranged text input for generate test cases * test: added tests for custom words and custom hdpath - todo: check for 24 words output * chore: linting * docs: cleaned up spacing in docs, updated short help for generate * chore: changes from pyupgrade (#1163) * refactor: move word count and hd path to optional arguments * refactor: remove use-mnemonic flag and solely use nmemonics * docs: update short help for ape accounts generate * bug: click options were not included in generate function call * refactor: removed --hide-mnemonic * chore: linting * bug: removed hide_mnemonic from generate function call * refactor: clarified calls to eth account and remove passphrase for seed gen * feat: added HDPath to logger message * test: updated tests for post refactor * refactor: use ethereum default path * refactor: skip setting language in create_with_mnemonic * refactor: move passphrase input next to write_test * test: removed entropy from tests - not used with mnemonic generation * chore: linting * refactor: --hdpath => --hd-path * docs: updated passphrase prompt to be more clear * bug: forgot f string when linting to shorten line * refactor: added back hide-mnemonic * refactor: cleaned word count click argument * test: refactored and added tests for hide mnemonic as a flag or prompt * test: refactored show_mnemonic as a variable for legibility * test: added checks for ETHEREUM_DEFAULT_PATH in result.output * feat: add random entropy back for os.urandom randomness output * refactor: output mnemonic as info log instead of success * refactor: suggestion from peer review * docs: updated docs for ape accounts generate * docs: reworded some docs for ape accounts generate * docs: improved documentation wording * docs: added details around hide mnemonic and passphrase Co-authored-by: Juliya Smith <[email protected]> Co-authored-by: El De-dog-lo <[email protected]>
- Loading branch information
1 parent
a57f1dc
commit c536511
Showing
3 changed files
with
167 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters