-
Notifications
You must be signed in to change notification settings - Fork 36
feat: multichain support #338
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
🦋 Changeset detectedLatest commit: 8444e2e The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Published pre-release version: 0.0.0-canary-20250513154354 |
|
Published pre-release version: 0.0.0-canary-20250703193538 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SonarCloud found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
chore: add phantom as custom wallet if available
fix: default network + network button
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces multichain support for AppKit React Native, enabling the library to support multiple blockchain networks including EVM, Solana, and Bitcoin. The implementation centralizes connection handling through a new ConnectionsController that replaces the previous AccountController and NetworkController.
Key Changes
- Implemented unified connection management through
ConnectionsController - Created blockchain adapters for different chains (EVM, Solana, Bitcoin)
- Introduced modular connector system with abstracted interfaces
- Updated version from 1.3.2 to 2.0.0-alpha.6 across all packages
Reviewed Changes
Copilot reviewed 247 out of 537 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
packages/core/src/__tests__/controllers/ |
Removed old controller tests and updated existing ones to support new multichain architecture |
packages/common/src/types/ |
Added comprehensive type definitions for adapters, connectors, networks, and blockchain interfaces |
packages/coinbase/ |
New coinbase connector implementation with provider abstraction |
packages/bitcoin/ |
New Bitcoin adapter with UTXO handling and message signing capabilities |
packages/appkit/src/views/ |
Updated UI views to work with new connection model and improved UX |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
chore: added react-native-compat import
chore: removed dev check from LogController
fix: added trycatch for safe provider access
|



Summary
Enable support for multiple chains to AppKit React Native
📁 Important files:
packages/appkit/src/AppKit.ts-> Centralizes general logic. Handles the connections, adapters, subscribes to adapter events to update controllerspackages/appkit/src/connectors/WalletConnectConnector.ts-> Connector that uses Universal Provider internallypackages/core/src/controllers/ConnectionsController.ts-> This is the most important Controller, which replaces AccountController and NetworkController. It contains all connections related data. It also has a derived state to make things easierpackages/solana/src/adapter.ts-> Basic adapter for Solanapackages/ethers/src/adapter.ts-> Basic adapter for EVM connections using Etherspackages/bitcoin/src/adapter.ts-> Basic adapter for Bitcoinpackages/appkit/src/AppKitContext.tsx-> The instance of AppKit is saved on a context, so the view can access it and execute methods. So now instead of views calling controller methods directly, its all centralized in AppKit.packages/appkit/src/views/w3m-account-default-view/index.tsxcalls AppKit disconnect instead of clearing controllers, etc.packages/common-> The package contains the new abstractions for Connectors, Adapters and Providers.📚 Related resources
Note
Introduce multichain support with unified connection management, new adapters/connectors (EVM, Solana, Bitcoin), and broad UI/native updates.
AccountControllerandNetworkControllerwithcontrollers/ConnectionsController.tsand related state/derived-state updates.src/AppKit.tswith context viasrc/AppKitContext.tsxand new hooks (useAppKit*,useAccount,useProvider).connectors/WalletConnectConnector.tsand route/modal/view updates acrossmodal/,partials/, andviews/for multichain flows (connect, network switch, onramp, swap, wallet info).packages/ethers,packages/solana, andpackages/bitcoinwith shared abstractions inpackages/common.packages/wagmi,packages/coinbase*,packages/siwe, andpackages/uito integrate multichain and new UI elements/components.Ethers,Solana,Bitcoin) and wallet flows.packages/walletwith frame/webview providers, storage, schema, and helpers.Written by Cursor Bugbot for commit 8444e2e. This will update automatically on new commits. Configure here.