Repository navigation
feat(ecosystem): multi-chain provider integration - #167
Merged
Merged
Conversation
- Add EIP-1193 compatible window.ethereum Provider for EVM chains (ETH, BSC) - Add TronLink compatible window.tronWeb/tronLink Provider for TRON - Add chain ID mapping utilities (hex chainId <-> KeyApp internal ID) - Create evm.ts and tron.ts handlers for host-side message processing - Extend bridge.ts to support eth_request and tron_request protocols - Add ChainSwitchConfirmJob sheet for wallet_switchEthereumChain - Enhance WalletPickerJob to resolve various chain ID formats - Update Forge miniapp to use window.ethereum for EVM connections This fixes the '暂无支持bsc的钱包' error by implementing standard dApp protocols that miniapps can use instead of bio_selectAccount with mismatched chain IDs. Closes #forge-bsc-wallet-issue
- Update useForge.ts to use window.ethereum for EVM chains (ETH, BSC) - Update useForge.ts to use window.tronLink for TRON chain - Add ethereum-provider.test.ts with 18 tests - Add tron-provider.test.ts with 16 tests - Add ChainSwitchConfirmJob.stories.tsx for Storybook All 65 SDK tests pass.
…t layouts - Add MiniappSheetHeader component that combines MiniappIcon + title + description - Extend HandlerContext type to include appIcon from miniapp manifest - Pass appIcon through EVM/TRON wallet picker and chain switch callbacks - Refactor WalletPickerJob and ChainSwitchConfirmJob to use MiniappSheetHeader - Resolve appIcon from miniappRuntimeStore in bridge.ts context creation
Gaubee
force-pushed
the
feat/multi-chain-provider
branch
from
January 5, 2026 06:28
4be9c80 to
fc87345
Compare
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.
Local: pnpm turbo run lint:run typecheck:run build i18n:run theme:run test:run test:storybook e2e:audit e2e:ci e2e:ci:mock e2e:ci:real