From c7cef397487fc4179d9596e89a845171b2d93263 Mon Sep 17 00:00:00 2001 From: "Frank V. Castellucci" Date: Tue, 8 Oct 2024 04:38:09 -0400 Subject: [PATCH] Release 0.70.0 --- CHANGELOG.md | 2 +- README.md | 10 ++-- pysui/sui/sui_clients/common.py | 4 +- samples/README.md | 82 +++++++-------------------------- 4 files changed, 24 insertions(+), 74 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7954a95..805b5eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.70.0] - Unpublished +## [0.70.0] - 2024-10-08 ### Added diff --git a/README.md b/README.md index 30e97b6..070b412 100644 --- a/README.md +++ b/README.md @@ -19,19 +19,19 @@ Python Client SDK for Sui blockchain **Release-0.70.0** -- Supports _SUI 1.35.x RPC API_, _SUI 1.35.x GRAPHQL (devnet)_ -- Backwards compatable to _Sui 1.29.x RPC API_ +- Supports _SUI 1.36.x RPC API_, _SUI 1.35.x GRAPHQL (devnet)_ +- Backwards compatable to _Sui 1.30.x RPC API_ See [CHANGELOG](https://github.com/FrankC01/pysui/blob/main/CHANGELOG.md) ## PyPi current -**Release-0.68.0 - Released 2024-09-22** +**Release-0.70.0 - Released 2024-10-08** **_BREAKING CHANGES to GraphQL multi-schema support and removal of legacy samples_** -- Supports _SUI 1.35.x RPC API_ and _SUI 1.34.x GRAPHQL_ -- Backwards compatable to _Sui 1.28.x RPC API_ and _1.33.2 GraphQL schema_ +- Supports _SUI 1.36.x RPC API_ and _SUI 1.35.x GRAPHQL_ +- Backwards compatable to _Sui 1.30.x RPC API_ and _1.34.3 GraphQL schema_ - [Latest PyPi Version](https://pypi.org/project/pysui/) diff --git a/pysui/sui/sui_clients/common.py b/pysui/sui/sui_clients/common.py index 28358ad..f026855 100644 --- a/pysui/sui/sui_clients/common.py +++ b/pysui/sui/sui_clients/common.py @@ -146,8 +146,8 @@ class ClientMixin(Provider): constructor consistency as well as utility functions """ - _RPC_MINIMAL_VERSION: str = "1.29.0" - _RPC_REQUIRED_VERSION: str = "1.35.0" + _RPC_MINIMAL_VERSION: str = "1.30.0" + _RPC_REQUIRED_VERSION: str = "1.36.0" @versionchanged( version="0.26.1", diff --git a/samples/README.md b/samples/README.md index 4479182..2370825 100644 --- a/samples/README.md +++ b/samples/README.md @@ -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 git@github.com: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 -```