Skip to content

wallet-sdk: Add pureValues transaction analyzer rule#922

Draft
clud-bot[bot] wants to merge 1 commit intomainfrom
clud/add-pure-values-analyzer
Draft

wallet-sdk: Add pureValues transaction analyzer rule#922
clud-bot[bot] wants to merge 1 commit intomainfrom
clud/add-pure-values-analyzer

Conversation

@clud-bot
Copy link
Contributor

@clud-bot clud-bot bot commented Mar 3, 2026

Summary

  • Adds a new pureValues analyzer rule that decodes BCS-encoded pure transaction inputs into JavaScript values
  • Infers types from the commands that reference each pure input: MoveCall function parameter signatures, SplitCoins (u64), TransferObjects (address)
  • Handles all pure types: primitives (u8–u256, bool, address), vector, option, string (0x1::string::String), and ID (0x2::object::ID)
  • Includes 11 unit tests covering all type variants, mixed commands, deduplication, and edge cases

AI Assistance Notice

  • This PR was primarily written by AI

Adds a new analyzer rule that parses BCS-encoded pure inputs into
JavaScript values by inferring types from the commands that reference
them (MoveCall function signatures, SplitCoins u64, TransferObjects
address). Handles primitives, vector, option, string, address, and ID.
@vercel
Copy link

vercel bot commented Mar 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sui-typescript-docs Building Building Preview, Comment Mar 3, 2026 8:08pm

Request Review

@clud-bot clud-bot bot temporarily deployed to sui-typescript-aws-kms-test-env March 3, 2026 20:08 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

⚠️ 🦋 Changesets Warning: This PR has changes to public npm packages, but does not contain a changeset. You can create a changeset easily by running pnpm changeset in the root of the Sui repo, and following the prompts. If your change does not need a changeset (e.g. a documentation-only change), you can ignore this message. This warning will be removed when a changeset is added to this pull request.

Learn more about Changesets.

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.

0 participants