-
Notifications
You must be signed in to change notification settings - Fork 45
refactor(sdk)!: typed params for state transition methods #2932
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
base: v3.0-dev
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughThe PR refactors the WASM SDK API from granular, multi-parameter method signatures to a consolidated options-based approach. It introduces helper functions for extracting and converting values from JavaScript option objects, replaces contract and identity state transition methods with option-driven signatures, and adds comprehensive document operation support with strongly-typed result objects. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (7)
🧰 Additional context used📓 Path-based instructions (1)**/*.rs📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (20)📓 Common learnings📚 Learning: 2024-11-20T10:01:50.837ZApplied to files:
📚 Learning: 2024-10-06T16:11:34.946ZApplied to files:
📚 Learning: 2025-08-05T13:55:39.147ZApplied to files:
📚 Learning: 2024-11-20T16:05:40.200ZApplied to files:
📚 Learning: 2025-07-28T20:00:08.502ZApplied to files:
📚 Learning: 2024-10-03T11:51:06.980ZApplied to files:
📚 Learning: 2025-09-02T13:30:17.703ZApplied to files:
📚 Learning: 2025-09-02T13:30:17.703ZApplied to files:
📚 Learning: 2025-09-03T14:41:16.196ZApplied to files:
📚 Learning: 2024-10-09T00:22:57.778ZApplied to files:
📚 Learning: 2024-10-09T00:22:57.778ZApplied to files:
📚 Learning: 2025-11-25T13:10:23.481ZApplied to files:
📚 Learning: 2025-04-11T09:08:05.652ZApplied to files:
📚 Learning: 2025-09-03T14:42:29.958ZApplied to files:
📚 Learning: 2025-11-25T13:10:23.481ZApplied to files:
📚 Learning: 2024-10-29T14:40:54.727ZApplied to files:
📚 Learning: 2025-08-14T15:03:56.681ZApplied to files:
📚 Learning: 2025-09-03T19:33:21.688ZApplied to files:
📚 Learning: 2025-10-01T08:37:32.168ZApplied to files:
🧬 Code graph analysis (5)packages/wasm-sdk/src/settings.rs (2)
packages/wasm-dpp2/src/identity/public_key.rs (3)
packages/wasm-dpp2/src/data_contract/model.rs (2)
packages/wasm-sdk/src/state_transitions/contracts/mod.rs (3)
packages/wasm-sdk/src/state_transitions/documents/mod.rs (4)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
🔇 Additional comments (19)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Issue being fixed or feature implemented
Currently, state transition methods accept many arguments instead of typed objects, which is a better UX.
What was done?
How Has This Been Tested?
With functional tests
Breaking Changes
Public API of Evo SDK is changed
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit
New Features
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.