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: add contribs/gnokeykc #1270

Merged
merged 10 commits into from
Nov 9, 2023
Merged

feat: add contribs/gnokeykc #1270

merged 10 commits into from
Nov 9, 2023

Conversation

moul
Copy link
Member

@moul moul commented Oct 20, 2023

Done

  • add a contribs/gnokeykc wrapper (adding keychain support).
  • make tm2/commands.IO an interface instead of a struct.

Usage

$ 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

@moul moul self-assigned this Oct 20, 2023
@moul moul changed the title dev/moul/gnokeykc feat: add contribs/gnokeykc Oct 20, 2023
@github-actions github-actions bot added the 📦 🌐 tendermint v2 Issues or PRs tm2 related label Oct 20, 2023
@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Attention: 31 lines in your changes are missing coverage. Please review.

Comparison is base (55e88be) 55.71% compared to head (320992e) 56.34%.
Report is 5 commits behind head on master.

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     
Files Coverage Δ
gno.land/cmd/gnoland/root.go 73.07% <100.00%> (ø)
gno.land/cmd/gnoland/start.go 80.98% <100.00%> (ø)
gnovm/cmd/gno/build.go 89.28% <100.00%> (ø)
gnovm/cmd/gno/clean.go 67.07% <100.00%> (ø)
gnovm/cmd/gno/doc.go 81.81% <100.00%> (ø)
gnovm/cmd/gno/main.go 100.00% <100.00%> (ø)
gnovm/cmd/gno/mod.go 83.42% <100.00%> (ø)
gnovm/cmd/gno/precompile.go 69.17% <100.00%> (ø)
gnovm/cmd/gno/run.go 83.33% <100.00%> (ø)
gnovm/cmd/gno/test.go 81.67% <100.00%> (ø)
... and 18 more

... and 29 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: moul <[email protected]>
@github-actions github-actions bot added 📦 🤖 gnovm Issues or PRs gnovm related 📦 ⛰️ gno.land Issues or PRs gno.land package related labels Oct 21, 2023
@moul moul marked this pull request as ready for review October 21, 2023 13:50
@moul moul requested review from a team and jaekwon as code owners October 21, 2023 13:50
@moul moul mentioned this pull request Nov 7, 2023
7 tasks
Copy link
Member

@thehowl thehowl left a 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?

@thehowl thehowl merged commit 39ea662 into gnolang:master Nov 9, 2023
187 checks passed
moul added a commit to moul/gno that referenced this pull request Nov 14, 2023
## 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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🌐 tendermint v2 Issues or PRs tm2 related 📦 ⛰️ gno.land Issues or PRs gno.land package related 📦 🤖 gnovm Issues or PRs gnovm related
Projects
Status: Done
Status: ✅ Done
Status: 🌟 Wanted for Launch
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants