-
Notifications
You must be signed in to change notification settings - Fork 374
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: add contribs/gnokeykc #1270
Conversation
Signed-off-by: moul <94029+moul@users.noreply.github.com>
Signed-off-by: moul <94029+moul@users.noreply.github.com>
Signed-off-by: moul <94029+moul@users.noreply.github.com>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1270 +/- ##
==========================================
+ Coverage 55.71% 56.34% +0.62%
==========================================
Files 421 421
Lines 65554 66792 +1238
==========================================
+ Hits 36525 37635 +1110
- Misses 26169 26258 +89
- Partials 2860 2899 +39
☔ View full report in Codecov by Sentry. |
Signed-off-by: moul <94029+moul@users.noreply.github.com>
Signed-off-by: moul <94029+moul@users.noreply.github.com>
Signed-off-by: moul <94029+moul@users.noreply.github.com>
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.
code looks OK and we can iterate on this to improve it, although I must admit I'm not terribly a fan of this approach; my concern is mostly that if we want to add another binary to improve gnokey
experience, this is not exactly flexible (we can't easily combine the two).
i'd rather gnokeykc
called gnokey
through os/exec
, though I haven't yet formulated a full proposal regarding how this would work.
one note: maybe add a gh workflow to build contribs/* binaries?
## Done - add a `contribs/gnokeykc` wrapper (adding keychain support). - make `tm2/commands.IO` an interface instead of a struct. ## Usage ```console $ gnokeykc kc set Enter password. Successfully added password for key. $ gnokeykc maketx send --send 1ugnot --to g1fsu3z335h5qngf7t3lmakvpmpwg9ae76tqwh7c --chainid test3 --remote test3.gno.land:36657 --gas-fee "1000000ugnot" --gas-wanted "2000000" --broadcast moul OK! GAS WANTED: 2000000 GAS USED: 47072 ``` ## Links - [x] Depends on gnolang#1256 (for contribs/' Makefile & CI) --------- Signed-off-by: moul <94029+moul@users.noreply.github.com>
Done
contribs/gnokeykc
wrapper (adding keychain support).tm2/commands.IO
an interface instead of a struct.Usage
Links