-
Notifications
You must be signed in to change notification settings - Fork 44
feat(sdk): wasm sdk core and test suite #2709
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
Conversation
Caution Review failedFailed to post review comments. WalkthroughThis change introduces a comprehensive wallet and key derivation module to the WASM SDK, supporting BIP44, DIP9, DIP13, DIP14, and DIP15 standards, and exposes wallet operations in the web interface. It adds new token state transitions, extensive test coverage, documentation updates, new build and CI scripts, and a shared worker SDK client for browser environments. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant WebUI
participant WASM_SDK
participant WalletModule
User->>WebUI: Selects Wallet Operation & Inputs
WebUI->>WASM_SDK: Calls wallet function (e.g., generate_key_pair, derive_key_from_seed_with_path)
WASM_SDK->>WalletModule: Executes requested wallet logic
WalletModule-->>WASM_SDK: Returns key/address/result
WASM_SDK-->>WebUI: Returns result
WebUI-->>User: Displays result
sequenceDiagram
participant User
participant WebUI
participant WASM_SDK
participant SharedWorker
participant RustBackend
User->>WebUI: Initiates SDK operation (e.g., query, state transition)
WebUI->>SharedWorker: Sends request (via SharedSdkClient)
SharedWorker->>RustBackend: Executes SDK method
RustBackend-->>SharedWorker: Returns result/error
SharedWorker-->>WebUI: Delivers result/error
WebUI-->>User: Displays outcome
Estimated code review effort🎯 5 (Critical) | ⏱️ ~90+ minutes
Possibly related PRs
Suggested labels
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✅ gRPC Query Coverage Report
|
…ing or encoding Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…reted as HTML Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…reted as HTML Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…reted as HTML Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…as HTML Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@CodeRabbit review |
✅ Actions performedReview triggered.
|
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Tests
Chores
Checklist:
For repository code-owners and collaborators only