-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add 002-gnokey #12
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| # Learn to Use Gnokey | ||
|
|
||
| ## Import the `test1` Wallet | ||
|
|
||
| To import the `test1` wallet, use the following command: | ||
moul marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ```console | ||
| gnokey add test1 --recover | ||
| ``` | ||
|
|
||
| Mnemonic: | ||
|
|
||
| ```console | ||
| source bonus chronic canvas draft south burst lottery vacant surface solve popular case indicate oppose farm nothing bullet exhibit title speed wink action roast | ||
| ``` | ||
|
|
||
| Check: | ||
|
|
||
| ```console | ||
| gnokey list | ||
| ``` | ||
|
|
||
| <details> | ||
| <summary>Example...</summary> | ||
|
|
||
| ```console | ||
| $ gnokey list | ||
|
|
||
| $ gnokey add test1 --recover | ||
| Enter a passphrase to encrypt your key to disk: | ||
| Repeat the passphrase: | ||
| Enter your bip39 mnemonic | ||
| source bonus chronic canvas draft south burst lottery vacant surface solve popular case indicate oppose farm nothing bullet exhibit title speed wink action roast | ||
|
|
||
| * test1 (local) - addr: g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 pub: gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pq0skzdkmzu0r9h6gny6eg8c9dc303xrrudee6z4he4y7cs5rnjwmyf40yaj, path: <nil> | ||
|
|
||
| $ gnokey list | ||
| 0. test1 (local) - addr: g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 pub: gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pq0skzdkmzu0r9h6gny6eg8c9dc303xrrudee6z4he4y7cs5rnjwmyf40yaj, path: <nil> | ||
| ``` | ||
| </details> | ||
|
|
||
| ## Create a New Personal Wallet | ||
|
|
||
| To create a new personal wallet, generate your 24 keywords with the command: | ||
|
|
||
| ```console | ||
| gnokey generate | ||
| ``` | ||
|
|
||
| Then follow the instructions for `test1`, but use your chosen name, e.g., `bob`. | ||
|
|
||
| <details> | ||
| <summary>Example...</summary> | ||
|
|
||
| ```console | ||
| $ gnokey generate | ||
| meat middle doctor gasp axis drastic flower song test public hire title ivory walnut pledge violin mechanic hedgehog rapid satisfy measure autumn front blind | ||
|
|
||
| $ gnokey add bob --recover | ||
| Enter a passphrase to encrypt your key to disk: | ||
| Repeat the passphrase: | ||
| Enter your bip39 mnemonic | ||
| meat middle doctor gasp axis drastic flower song test public hire title ivory walnut pledge violin mechanic hedgehog rapid satisfy measure autumn front blind | ||
|
|
||
| * bob (local) - addr: g1h5tap94s8k0dhwhkldf39vavucvnjhrhepmt8a pub: gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pqdzdqdzjre7nfvtd7ge3gsenxsdf0ww2fcazt957q76glapsrxgeg774qj2, path: <nil> | ||
|
|
||
| $ gnokey list | ||
| 0. bob (local) - addr: g1h5tap94s8k0dhwhkldf39vavucvnjhrhepmt8a pub: gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pqdzdqdzjre7nfvtd7ge3gsenxsdf0ww2fcazt957q76glapsrxgeg774qj2, path: <nil> | ||
| 1. test1 (local) - addr: g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 pub: gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pq0skzdkmzu0r9h6gny6eg8c9dc303xrrudee6z4he4y7cs5rnjwmyf40yaj, path: <nil> | ||
| ``` | ||
| </details> | ||
|
|
||
| ## Interact with the `r/demo/boards` Realm | ||
|
|
||
| TODO: improve and explain | ||
|
|
||
| gitpod /workspace/gno/misc/devdeps (dev/moul/002-gnokey) $ gnokey maketx call -pkgpath "gno.land/r/demo/boards" -func "CreateReply" -gas-fee 1000000ugnot -gas-wanted 2000000 -send "100000000ugnot" -broadcast -chainid "dev" -args "1" -args "5" -args "5" -args "Hello 👋" -remote "localhost:26657 | ||
| " test1 | ||
| Enter password. | ||
| (6 gno.land/r/demo/boards.PostID) | ||
| OK! | ||
| GAS WANTED: 2000000 | ||
| GAS USED: 979800 | ||
|
|
||
|
|
||
| TODO: explain that it works on staging | ||
|
|
||
| TODO: explain faucet on staging | ||
|
|
||
| TODO: another example like banker | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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've changed this in #14 already; i've also reorganized the tasks in gitpod config so that the last one is for the cli, which is the one which is opened by default in vscode