diff --git a/CHANGELOG.md b/CHANGELOG.md index 19ac6223..517a631f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,18 @@ 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.59.0] - Unpublished + +### Added + +### Fixed + +- [bug](https://github.com/FrankC01/pysui/issues/200) - Typo in cursor reference in sample code + +### Changed + +### Removed + ## [0.58.0] - - 2024-04-22 ### Added @@ -23,7 +35,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bump support to Sui 1.24.0 - SuiCoinObjectGQL now supports various owner types (AddressOwner, Immutable, Shared, Parent) - ### Removed ## [0.57.0] - 2024-04-15 diff --git a/README.md b/README.md index 3712ad97..27434950 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@ Python Client SDK for Sui blockchain ## pysui SDK current (github) -**Release-0.58.0** +**Release-0.59.0** -- Supports _SUI 1.24.x RPC API_ +- Supports _SUI 1.25.x RPC API_ - Backwards compatable to _Sui 1.18.x RPC API_ See [CHANGELOG](https://github.com/FrankC01/pysui/blob/main/CHANGELOG.md) diff --git a/pgql_a_example.py b/pgql_a_example.py index 3d788b1a..0d997980 100644 --- a/pgql_a_example.py +++ b/pgql_a_example.py @@ -83,7 +83,7 @@ async def do_all_balances(client: AsyncSuiGQLClient): result = await client.execute_query_node( with_node=qn.GetAllCoinBalances( owner=client.config.active_address.address, - next_page=result.next_cursor, + next_page=result.result_data.next_cursor, ) ) handle_result(result) diff --git a/pgql_s_example.py b/pgql_s_example.py index 6dc5a592..c5f4f2b8 100644 --- a/pgql_s_example.py +++ b/pgql_s_example.py @@ -120,7 +120,7 @@ def do_all_balances(client: SuiGQLClient): result = client.execute_query_node( with_node=qn.GetAllCoinBalances( owner=client.config.active_address.address, - next_page=result.next_cursor, + next_page=result.result_data.next_cursor, ) ) handle_result(result) @@ -260,7 +260,7 @@ def do_tx(client: SuiGQLClient): handle_result( client.execute_query_node( - with_node=qn.GetTx(digest="CMyUnPRqz9ECAtBeL19aWDG9CdsEd5K2p5NMHTyvaoa7") + with_node=qn.GetTx(digest="7ZP8jboeNPu6vKx6pnx9CxmvDsXV9CKu48sv2LLCAuUj") ) ) @@ -569,7 +569,11 @@ def do_execute_new(client: SuiGQLClient): def merge_some(client: SuiGQLClient): - """Merge all coins in wallet.""" + """Merge some coins in wallet. + + To merge all coins, ensure to use paging to gather all coins first and + combine them into a single list, then perform the merge. + """ result = client.execute_query_node( with_node=qn.GetCoins(owner=client.config.active_address.address) @@ -586,7 +590,11 @@ def merge_some(client: SuiGQLClient): def split_1_half(client: SuiGQLClient): - """Merge all coins in wallet.""" + """Split the 1 coin into 2 (or more) in wallet. + + If there is more than 1 coin for the address, this transaction won't be + submitted. + """ result = client.execute_query_node( with_node=qn.GetCoins(owner=client.config.active_address.address) @@ -618,11 +626,11 @@ def split_1_half(client: SuiGQLClient): ## QueryNodes (fetch) # do_coin_meta(client_init) # do_coins_for_type(client_init) - do_gas(client_init) + # do_gas(client_init) # do_all_gas(client_init) # do_gas_ids(client_init) # do_sysstate(client_init) - # do_all_balances(client_init) + do_all_balances(client_init) # do_object(client_init) # do_objects(client_init) # do_past_object(client_init) diff --git a/pysui/sui/sui_clients/common.py b/pysui/sui/sui_clients/common.py index 62f564e5..2c488b67 100644 --- a/pysui/sui/sui_clients/common.py +++ b/pysui/sui/sui_clients/common.py @@ -147,7 +147,7 @@ class ClientMixin(Provider): """ _RPC_MINIMAL_VERSION: str = "1.18.0" - _RPC_REQUIRED_VERSION: str = "1.24.0" + _RPC_REQUIRED_VERSION: str = "1.25.0" @versionchanged( version="0.26.1", diff --git a/pysui/version.py b/pysui/version.py index 121f86f2..6d51e67d 100644 --- a/pysui/version.py +++ b/pysui/version.py @@ -12,5 +12,5 @@ # -*- coding: utf-8 -*- # Read in command line and posting to PyPi -__version__ = "0.58.0" +__version__ = "0.59.0" """Pysui Version."""