Skip to content

Commit

Permalink
Release 0.60.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankC01 committed May 15, 2024
1 parent 09d3d83 commit b8ba86d
Show file tree
Hide file tree
Showing 10 changed files with 119 additions and 188 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.60.0] - Unpublished
## [0.60.0] - 2024-05-15

### Added

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ Python Client SDK for Sui blockchain

**Release-0.60.0**

- Supports _SUI 1.25.x RPC API_
- Supports _SUI 1.26.x RPC API_
- Backwards compatable to _Sui 1.18.x RPC API_

See [CHANGELOG](https://github.com/FrankC01/pysui/blob/main/CHANGELOG.md)

## PyPi current

**Release-0.59.0 - Released 2024-05-02**
**Release-0.59.0 - Released 2024-05-15**

- Supports _SUI 1.24.x RPC API_
- Supports _SUI 1.26.x RPC API_
- Backwards compatable to _Sui 1.18.x RPC API_

- [Latest PyPi Version](https://pypi.org/project/pysui/)
Expand All @@ -46,7 +46,7 @@ Note: MystenLabs/Sui GraphQL RPC is available on devnet, testnet and mainnet

[Testnet](https://sui-testnet.mystenlabs.com/graphql)

[Devnet](https://sui-devnet.mystenlabs.com/graphql)
[Devnet](https://sui-devnet.mystenlabs.com/graphql/stable)

### pysui GraphQL support

Expand All @@ -56,9 +56,9 @@ We continue to monitor and support changes as they evolve.

#### Examples

- [Synchronous Client](https://github.com/FrankC01/pysui/blob/v0.57.0/pgql_s_example.py) - Examples for all supported QueryNode queries and mutations
- [Asynchronous Client](https://github.com/FrankC01/pysui/blob/v0.57.0/pgql_a_example.py) - Examples for all supported QueryNode queries and mutations
- [Synchronous TransactionBuilder](https://github.com/FrankC01/pysui/blob/v0.57.0/pgql_s_ptb.py) - Example of new pysui Transaction Builder leveraging Sui GraphQL
- [Synchronous Client](https://github.com/FrankC01/pysui/blob/v0.59.0/pgql_s_example.py) - Examples for all supported QueryNode queries and mutations
- [Asynchronous Client](https://github.com/FrankC01/pysui/blob/v0.59.0/pgql_a_example.py) - Examples for all supported QueryNode queries and mutations
- [Synchronous TransactionBuilder](https://github.com/FrankC01/pysui/blob/v0.59.0/pgql_s_ptb.py) - Example of new pysui Transaction Builder leveraging Sui GraphQL

You can read pysui documentation on graphql beta [here](https://pysui.readthedocs.io/en/latest/graphql.html)

Expand Down
107 changes: 55 additions & 52 deletions pgql_s_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,9 @@ def do_func(client: SuiGQLClient):
"""Fetch structures by package::module."""
result = client.execute_query_node(
with_node=qn.GetFunction(
package="0x1",
module_name="ascii",
function_name="all_characters_printable",
package="0x3",
module_name="sui_system",
function_name="request_add_stake_mul_coin",
)
)
if result.is_ok():
Expand Down Expand Up @@ -689,57 +689,60 @@ def do_unstake(client: SuiGQLClient):

cfg = SuiConfig.default_config()
client_init = SuiGQLClient(
write_schema=False,
write_schema=True,
config=cfg,
)
print(f"Schema base version {client_init.base_schema_version}")
print(f"Schema full version {client_init.schema_version}")
## QueryNodes (fetch)
# do_coin_meta(client_init)
# do_coins_for_type(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_object(client_init)
# do_objects(client_init)
# do_past_object(client_init)
# do_multiple_past_object(client_init)
# do_objects_for(client_init)
# do_dynamics(client_init)
# do_event(client_init)
# do_tx(client_init)
# do_txs(client_init)
# do_staked_sui(client_init)
# do_latest_cp(client_init)
# do_sequence_cp(client_init)
# do_digest_cp(client_init)
# do_checkpoints(client_init)
# do_nameservice(client_init)
# do_owned_nameservice(client_init)
# do_validators_apy(client_init)
# do_validators(client_init)
# do_refgas(client_init)
# do_struct(client_init)
# do_structs(client_init)
# do_func(client_init)
# do_funcs(client_init)
# do_module(client_init)
# do_package(client_init)
# do_dry_run(client_init)
# do_dry_run_new(client_init)
# do_dry_run_kind_new(client_init)
# do_dry_run_kind(client_init)
# do_execute(client_init)
# do_execute_new(client_init)
# merge_some(client_init)
# split_1_half(client_init)
# do_stake(client_init)
# do_unstake(client_init)
## Config
# do_chain_id(client_init)
# do_configs(client_init)
# do_service_config(client_init)
# do_protcfg(client_init)
try:
## QueryNodes (fetch)
# do_coin_meta(client_init)
# do_coins_for_type(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_object(client_init)
# do_objects(client_init)
# do_past_object(client_init)
# do_multiple_past_object(client_init)
# do_objects_for(client_init)
# do_dynamics(client_init)
# do_event(client_init)
# do_tx(client_init)
# do_txs(client_init)
# do_staked_sui(client_init)
# do_latest_cp(client_init)
# do_sequence_cp(client_init)
# do_digest_cp(client_init)
# do_checkpoints(client_init)
# do_nameservice(client_init)
# do_owned_nameservice(client_init)
# do_validators_apy(client_init)
# do_validators(client_init)
# do_refgas(client_init)
# do_struct(client_init)
# do_structs(client_init)
# do_func(client_init)
# do_funcs(client_init)
# do_module(client_init)
# do_package(client_init)
# do_dry_run(client_init)
# do_dry_run_new(client_init)
# do_dry_run_kind_new(client_init)
# do_dry_run_kind(client_init)
# do_execute(client_init)
# do_execute_new(client_init)
# merge_some(client_init)
# split_1_half(client_init)
# do_stake(client_init)
# do_unstake(client_init)
## Config
# do_chain_id(client_init)
# do_configs(client_init)
# do_service_config(client_init)
# do_protcfg(client_init)
except Exception as ex:
print(ex.args)
client_init.client.close_sync()
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.25.0"
_RPC_REQUIRED_VERSION: str = "1.24.0"

@versionchanged(
version="0.26.1",
Expand Down
Loading

0 comments on commit b8ba86d

Please sign in to comment.