Skip to content

Commit

Permalink
Release 0.67.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankC01 committed Aug 21, 2024
1 parent 5a0390c commit 230102b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
8 changes: 4 additions & 4 deletions 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.67.0] - Unpublished
## [0.67.0] - 2024-08-21

### Added

Expand All @@ -16,9 +16,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- [bug](https://github.com/FrankC01/pysui/issues/226) Encoding of bytes argument
- [bug](https://github.com/FrankC01/pysui/issues/224) When previous txn digest not present
- Handling exception for unsupported schema version query at initiatlization of client
- [bug](https://github.com/FrankC01/pysui/issues/226) Encoding of bytes argument (GraphQL)
- [bug](https://github.com/FrankC01/pysui/issues/224) When previous txn digest not present (GraphQL)
- Handling exception for unsupported schema version query at initiatlization of client (GraphQL)

### Changed

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ See [CHANGELOG](https://github.com/FrankC01/pysui/blob/main/CHANGELOG.md)

## PyPi current

**Release-0.66.0 - Released 2024-08-04**
**Release-0.67.0 - Released 2024-08-21**

**_BREAKING CHANGES to GraphQL support_**

Expand Down
4 changes: 2 additions & 2 deletions pgql_s_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def do_unstake(client: SyncGqlClient):
try:
cfg = PysuiConfiguration(
group_name=PysuiConfiguration.SUI_GQL_RPC_GROUP,
profile_name="testnet",
# profile_name="testnet",
# persist=True,
)
client_init = SyncGqlClient(write_schema=False, pysui_config=cfg)
Expand All @@ -690,7 +690,7 @@ def do_unstake(client: SyncGqlClient):
## 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)
Expand Down
12 changes: 9 additions & 3 deletions pysui/sui/sui_pgql/pgql_txn_argb.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,18 @@ def _bytes_converter(
return silist


def _canbt(arg: Any, expected_type: Any, in_optional: bool) -> tuple[Any, Any]:
def _canbt(
arg: Any, expected_type: Any, in_optional: bool, in_vector
) -> tuple[Any, Any]:
"""."""
match expected_type.scalar_type:
case "address" | "signature" | "ID":
return bcs.Address.from_str, pass_through
if in_vector:
return bcs.Address.from_str, pass_through
return bcs.Address.from_str, tx_builder.PureInput.as_input
case "digest":
if in_vector:
return bcs.Digest.from_str, pass_through
return bcs.Digest.from_str, tx_builder.PureInput.as_input
case "String":
return (
Expand Down Expand Up @@ -241,7 +247,7 @@ def _scalar_argument(
elif not isinstance(arg, str):
raise ValueError(f"Expected str found {arg.__class__}")

return _canbt(arg, expected_type, in_optional)
return _canbt(arg, expected_type, in_optional, in_vector)


def _object_argument(
Expand Down

0 comments on commit 230102b

Please sign in to comment.