Skip to content

Commit

Permalink
Release 0.59.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankC01 committed Apr 28, 2024
1 parent 987ae2d commit c7a50af
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 12 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pgql_a_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
20 changes: 14 additions & 6 deletions pgql_s_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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")
)
)

Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pysui/sui/sui_clients/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pysui/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

0 comments on commit c7a50af

Please sign in to comment.