-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
24 additions
and
74 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
|
@@ -5,26 +5,31 @@ Samples and utilities included in both the `pysui` repo as well as when installi | |
|
||
## Examples: | ||
|
||
- async-gas collects and prints all gas for all addresses found in configuration | ||
- Sample [WalletG](#walletG) providing equivalent functionality as `sui client ...` | ||
### Async Gas | ||
|
||
Example demonstrating using the `pysui` asynchronus client. See [DEVELOP](../DEVELOP.md) | ||
|
||
### Sui GraphQL Schemas | ||
|
||
Example that takes one or more GraphQL nodes and writes schemas to folder | ||
|
||
### WalletG | ||
|
||
Implementation demonstrating most commands like the SUI CLI (i.e. `sui client ...`) using Sui GraphQL RPC. | ||
|
||
|
||
**Note:** If running from cloned repo, examples are started with `python -m ....` | ||
|
||
- `python -m samples.walletg` | ||
- `python -m samples.async_gasg` | ||
- `python -m samples.sgqls` | ||
- `python -m samples.walletg` | ||
|
||
**Note:** If running from PyPi install, examples can be started directly | ||
|
||
- `wallet` | ||
- `async-gas` | ||
- `sgqls` | ||
- `wallet` | ||
|
||
### Async Gas | ||
|
||
Example demonstrating using the `pysui` asynchronus client. See [DEVELOP](../DEVELOP.md) | ||
|
||
### WalletG | ||
|
||
Implementation demonstrating most commands like the SUI CLI (i.e. `sui client ...`) using Sui GraphQL RPC. | ||
|
||
#### WalletG Commands | ||
```shell | ||
|
@@ -118,58 +123,3 @@ subcommand: | |
from Return transaction events from sender address. | ||
to Return transaction events from recipient address. | ||
``` | ||
## Run Local (wallet only) | ||
We've changed the abbility to operate with a local running node to rely on [sui-base](https://github.com/ChainMovers/suibase). | ||
After you've cloned and installed `suibase` you can add the `--local` flag as shown below | ||
Note that this is different if you are swiitching between `envs` using the standard sui configuration. | ||
### Running with `sui-base` | ||
1. Change to your home folder `cd ~/` | ||
2. `git clone [email protected]:ChainMovers/suibase.git` | ||
3. `cd suibase` | ||
4. `./install` | ||
5. `localnet start` <= This will download sui source code and start a local node (devnet level) | ||
6. Finally, add the `--local` switch to the command line `pysui` wallet or other samples | ||
Example: | ||
```bash | ||
wallet --local gas | ||
``` | ||
Or (if running pysui from repo clone): | ||
```bash | ||
python samples/wallet.py --local gas | ||
``` | ||
### Running with standard sui configuration | ||
If your standard configuration has `envs` that include `localnet` | ||
1. `sui client switch --env localnet | ||
Example: | ||
```bash | ||
wallet gas | ||
``` | ||
```bash | ||
walletg gas | ||
``` | ||
Or (if running pysui from repo clone): | ||
```bash | ||
python samples/wallet.py gas | ||
``` | ||
```bash | ||
python samples/walletg.py gas | ||
``` |