Skip to content

wallet_getContext method implementation#41

Open
bobo-k2 wants to merge 2 commits into
masterfrom
wallet-get-context
Open

wallet_getContext method implementation#41
bobo-k2 wants to merge 2 commits into
masterfrom
wallet-get-context

Conversation

@bobo-k2
Copy link
Copy Markdown
Collaborator

@bobo-k2 bobo-k2 commented May 14, 2026

Summary

Mini apps hosted in Startale app have access to the app context, while dApps using our SDK don't. This PR adds wallet_getContext method

How did you test your changes?

image

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_connect responses and exposes it through wallet_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.

Comment thread packages/app-sdk/src/sign/app-sdk/Signer.ts
Comment thread packages/app-sdk/src/core/rpc/wallet_connect.ts
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.

2 participants