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

Wallet docs describing how to view account #570

Merged
merged 2 commits into from
Feb 26, 2022

Conversation

patrickkuo
Copy link
Contributor

  • 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
Copy link
Contributor

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
Copy link
Contributor

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.
Copy link
Contributor

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.
Copy link
Contributor

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`,
Copy link
Contributor

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:
Copy link
Contributor

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?

Copy link
Contributor Author

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.
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a pretty

Copy link
Contributor

@Clay-Mysten Clay-Mysten left a 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.

Copy link
Contributor

@awelc awelc left a 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=="
},
...
Copy link
Contributor

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.

@patrickkuo patrickkuo merged commit 4870e1b into main Feb 26, 2022
@patrickkuo patrickkuo deleted the pat/view_and_create_account_doc branch February 26, 2022 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants