Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate SDK to RPC 2.0 #14

Merged
merged 44 commits into from
Aug 19, 2024
Merged

Migrate SDK to RPC 2.0 #14

merged 44 commits into from
Aug 19, 2024

Conversation

astinz
Copy link
Contributor

@astinz astinz commented Aug 19, 2024

RPC 2.0 Update

This pull request introduces significant breaking changes to the SDK, aligning it with the new RPC 2.0 standards:

  • New API Implementation: A redesigned API offers enhanced capabilities and a more intuitive experience when working with the SDK.
val sui = Sui()
val transferredGasObjs =  sui.requestTestTokens(SuiAddress("0x833...e8c"))
  • Deprecated JSON-RPC: Complete removal of JSON-RPC support to streamline the SDK and embrace the future of RPC.
  • Namespace Refactoring: The codebase has been reorganized into logical namespaces, improving maintainability and clarity.

Versioning

The SDK version is now bumped to v2.0.0. All versions from v2.0.0 onwards will exclusively support RPC 2.0.

astinz added 30 commits April 28, 2024 14:58
…lCoins method

- Enhanced function in Coin class to accept additional optional  parameter for specifying coin type.
- This new parameter allows for more granular control over balance queries.
- Removed the `getAllCoins` method as it is redundant with.
- Change inline package access to imports
…ased on specified criteria

- Implemented a method to query transaction blocks for specific criteria.
- Introduced a new suspend inline function `<reified T> General.query` to perform GraphQL queries.
- The function utilizes `xyz.mcxross.ksui.internal.query` to execute the query with the provided configuration.
- This addition allows for type-safe querying within the General class using the provided GraphQL query.
- This update makes client configurations available to the respective classes.
- Limitations: They are only available to node and faucet clients.
astinz added 14 commits August 20, 2024 02:22
…lCoins method

- Enhanced function in Coin class to accept additional optional  parameter for specifying coin type.
- This new parameter allows for more granular control over balance queries.
- Removed the `getAllCoins` method as it is redundant with.
- Change inline package access to imports
…ased on specified criteria

- Implemented a method to query transaction blocks for specific criteria.
- Introduced a new suspend inline function `<reified T> General.query` to perform GraphQL queries.
- The function utilizes `xyz.mcxross.ksui.internal.query` to execute the query with the provided configuration.
- This addition allows for type-safe querying within the General class using the provided GraphQL query.
- This update makes client configurations available to the respective classes.
- Limitations: They are only available to node and faucet clients.
# Conflicts:
#	lib/src/commonMain/kotlin/xyz/mcxross/ksui/model/Effects.kt
@astinz astinz merged commit ba962e0 into master Aug 19, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant