feat(client): add WalletConnect integration for mobile wallet support#194
Open
winsznx wants to merge 1 commit intofungible-systems:mainfrom
Open
feat(client): add WalletConnect integration for mobile wallet support#194winsznx wants to merge 1 commit intofungible-systems:mainfrom
winsznx wants to merge 1 commit intofungible-systems:mainfrom
Conversation
Implements WalletConnect support to enable mobile wallet connections, specifically Xverse mobile, alongside existing browser extension support. Features: - WalletConnect provider with Stacks blockchain support (CAIP-2) - Auto-detect connection method (extension first, WalletConnect fallback) - Explicit provider selection (extension or walletconnect) - Session management and persistence - Transaction, message, and structured data signing Closes fungible-systems#180
|
@winsznx is attempting to deploy a commit to the Fungible Systems Team on Vercel. A member of the Team first needs to authorize it. |
|
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.
Implements WalletConnect support to enable mobile wallet connections, specifically Xverse mobile, alongside existing browser extension support.
Features:
Closes #180
Pull Request: Add WalletConnect Integration for Mobile Wallet Support
Description
This PR implements WalletConnect support for micro-stacks, enabling mobile wallet connections (specifically Xverse mobile) as requested in issue #180. The implementation maintains full backward compatibility with existing browser extension wallet support.
Changes
New Files
packages/client/src/walletconnect-provider.ts- Core WalletConnect provider implementationModified Files
packages/client/src/common/types.ts- Added WalletConnectConfig interfacepackages/client/src/micro-stacks-client.ts- Integrated WalletConnect providerpackages/client/src/index.ts- Exported WalletConnectProviderpackages/client/package.json- Added WalletConnect dependenciesDependencies Added
Features
Connection Methods
Stacks Blockchain Support
stacks:1stacks:2147483648Supported Operations
Usage Example
Testing
pnpm buildBackward Compatibility
This implementation is fully backward compatible. Existing applications using browser extension wallets will continue to work without any changes. WalletConnect is an opt-in feature requiring explicit configuration.
Related Issues
Closes #180
Next Steps
Future enhancements could include:
Checklist