-
Notifications
You must be signed in to change notification settings - Fork 15
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
CSUB-589: changed sensitive input to interactive or env vars #1151
CSUB-589: changed sensitive input to interactive or env vars #1151
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #1151 +/- ##
=======================================
Coverage 74.62% 74.62%
=======================================
Files 74 74
Lines 10686 10686
=======================================
Hits 7974 7974
Misses 2712 2712 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
For full LLVM coverage report click 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.
Using a stash seed from ENV looks good:
$ node dist/index.js bond -u ws://127.0.0.1:9946 -c 5EEoJZYPpTYGX1t3shaQbqhRmqvdvoaTycY1gJ4TB8spDgPp -a 1000005 -r Staked
2023-06-21 15:12:27 API/INIT: RPC methods not decorated: creditcoin_hashrate, task_getOffchainNonceKey
2023-06-21 15:12:27 API/INIT: creditcoin-node/222: Not decorating unknown runtime apis: TaskApi/1
Creating bond transaction...
Controller address: 5EEoJZYPpTYGX1t3shaQbqhRmqvdvoaTycY1gJ4TB8spDgPp
Reward destination: Staked
Amount: 1000005
✔ Continue? … yes
Extra: undefined
Bond transaction sent with hash: 0x66a41e3f1edd0bfcd43cd565a8b0c2f191856c79afd587c0fe4b04665c6786da
Overall looks good. Added a few comments.
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.
I think the seed for unbond
is incorrect. The rest are cosmetic issues but nice to have while we're at it.
I think I fixed all the issues. |
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.
I am able to specify the seeds manually via the keyboard, also pasting with the mouse on Linux and also via ENV vars. LGTM.
* changed sensitive input to interactive or env vars * improved error handling in getSeedFromEnvOrPrompt * yarn format * eslint * changed prompt from invisible to password * centralized the regular seed * rectified stash vs bond key elicitation * set_keys actor rectification * make pretty * unbound to controller seed * appropriate names * prettify --------- Co-authored-by: Jon Zlotnik <jon.zlotnik@gluwa.com>
* changed sensitive input to interactive or env vars * improved error handling in getSeedFromEnvOrPrompt * yarn format * eslint * changed prompt from invisible to password * centralized the regular seed * rectified stash vs bond key elicitation * set_keys actor rectification * make pretty * unbound to controller seed * appropriate names * prettify --------- Co-authored-by: Jon Zlotnik <jon.zlotnik@gluwa.com>
Description of proposed changes
Practical tips for PR review & merge: