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

Update Txn related ops #18

Merged
merged 10 commits into from
Sep 1, 2024
Merged

Update Txn related ops #18

merged 10 commits into from
Sep 1, 2024

Conversation

astinz
Copy link
Contributor

@astinz astinz commented Sep 1, 2024

  • Refactor SuiAddress to AccountAddress. This changes all APIs to use AccountAddress as input of result
  • Added moveCall for calling on-chain endpoints
  • Added support for passing objects as inputs to endpoints
  • Added support to directly pass an account address as an input to a command. This removes the inputStr function
  • Added sample for function calling (JVM)
  • Update README.md to reflect the current API

astinz added 10 commits August 31, 2024 00:54
- pass address directly as an input during ptb composition
- all `SuiAddress`' have been renamed to `AccountAddress`
- `inputs` ptb builder function now supports `Argument.Result` inputs
- one needn't pass in `emptyList()` when calling Move _nullary_ functions

This provides a clean API, less clutter
This DSL is more expressive when passing type args to a move call
limitations: currently, only structs are supported
- `ImmOrOwned`, `Shared`, and `Receiving` object support

This enables calling move functions with an object type.
- added prebuilt txn builders for common functions

This enables txn generation without knowing the details of PTBs
@astinz astinz merged commit 3f9d6d7 into master Sep 1, 2024
2 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