-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Wallet docs describing how to view account #570
Conversation
patrickkuo
commented
Feb 25, 2022
- added new sections for View created account
- added new sections for Add account to the wallet
doc/wallet.md
Outdated
### View created accounts | ||
The genesis process creates a configuration file `wallet.conf` for the sui wallet, | ||
the config file contains information of the accounts and the sui network, | ||
sui wallet uses the network information to communicate with the siu network authorities |
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.
Replace "siu" with "Sui"
doc/wallet.md
Outdated
can be used subsequently to start the network. A `wallet.conf` will | ||
also be generated to be used by the `wallet` binary to manage the | ||
can be used subsequently to start the network. A `wallet.conf` is | ||
also created to be used by the sui wallet to manage the |
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.
Capitalize Sui throughout the plain text for consistency with other docs.
doc/wallet.md
Outdated
The genesis process creates a configuration file `wallet.conf` for the sui wallet, | ||
the config file contains information of the accounts and the sui network, | ||
sui wallet uses the network information to communicate with the siu network authorities | ||
and create transactions using the key pairs reside in the config file. |
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.
residing
doc/wallet.md
Outdated
|
||
`send_timeout`, `recv_timeout` and `buffer_size` are the network parameters. | ||
`db_folder_path` is the path to the account's client state database, which will be storing | ||
all the transaction data, certificates and object data belongs to the account. |
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.
belonging
doc/wallet.md
Outdated
all the transaction data, certificates and object data belongs to the account. | ||
|
||
#### Key management | ||
As you might have noticed, the key pairs are stored as plain text in `wellet.conf`, |
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.
wallet.conf
@@ -77,15 +126,16 @@ The wallet config file path is defaulted to `./wallet.conf` if not specified. | |||
|
|||
The following commands are supported by the interactive wallet: |
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.
It would be good to specify when any of these commands take arguments, such as object
- does it require an object value?
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.
Will add the list of arg for each command in next PR
doc/wallet.md
Outdated
``` | ||
|
||
## Adding accounts to the wallet | ||
Sui's genesis process will create 5 accounts by default, if that's not enough, there are 2 ways to add accounts to the Sui wallet if needed. |
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.
five accounts... two ways
doc/wallet.md
Outdated
@@ -174,7 +248,6 @@ the GAS module using the following Sui Wallet command: | |||
--pure-args x\"5986f0651a5329b90d1d76acd992021377684509909b23a9bbf79c4416afd9cf\" \ | |||
--gas 1FD8DA0C56694229761E9A3DCE50C49AF2EA5DB1 \ | |||
--gas-budget 1000 \ | |||
--sender 0523fc67f30e3922147877ca56ce36a41ba122623fee86043f5c9a05d2b3bde4 | |||
``` | |||
|
|||
This a pretty complicated command so let's explain all its parameters |
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.
This is a pretty
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.
Great work, Patrick! I highlighted a few small issues. I will make more thorough edits and have you review them after merging in your change.
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.
Other than one minor comment, LGTM!
"address": "a4c0a493ce9879ea06bac93461810cf947823bb3", | ||
"key_pair": "MTpXG/yJq0OLOknghzYRCS6D/Rz+97gpR7hZhUCUNT5pMCy49v7hZkCSHm38e+cp+sdxLgTrSAuCbDxqkF1MTg==" | ||
}, | ||
... |
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.
It looks like a placeholder for omitted values. If it's indeed the case, then it may make sense to mention this explicitly to remove temptation to copy test this configuration verbatim.