wallet_getContext method implementation#41
Open
bobo-k2 wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for Startale app context access through the SDK via a new wallet_getContext RPC method.
Changes:
- Adds context state storage and persistence in the SDK store.
- Stores context from
wallet_connectresponses and exposes it throughwallet_getContext. - Updates test fixtures, example RPC methods, response typing, and package versions.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
packages/app-sdk/src/store/store.ts |
Adds context slice, persistence, and store accessors. |
packages/app-sdk/src/sign/app-sdk/Signer.ts |
Handles wallet_getContext and stores context from wallet_connect. |
packages/app-sdk/src/core/rpc/wallet_connect.ts |
Extends WalletConnectResponse with optional context. |
packages/app-sdk/src/sign/app-sdk/Signer.test.ts |
Updates mocked store states with context. |
packages/app-sdk/src/sign/app-sdk/utils.test.ts |
Updates mocked store state with context. |
examples/testapp/src/components/RpcMethods/method/walletTxMethods.ts |
Adds wallet_getContext to the test app RPC method list. |
packages/app-sdk/package.json |
Bumps package version. |
package.json |
Bumps workspace version. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Mini apps hosted in Startale app have access to the app context, while dApps using our SDK don't. This PR adds
wallet_getContextmethodHow did you test your changes?