Skip to content

Conversation

@Gaubee
Copy link
Contributor

@Gaubee Gaubee commented Jan 5, 2026

  • Finish multi-protocol miniapp bridge/provider wiring (bio/eth/tron)
  • Fix Forge to sign external tx via bio tx pipeline with normalized chain ids
  • Add Storybook-safe previews and improve test mocks
  • Update BioSDK white-book guide for window.ethereum / tronLink usage

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

Gaubee added 8 commits January 5, 2026 14:27
- 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 Gaubee force-pushed the feat/multi-chain-provider branch from 4be9c80 to fc87345 Compare January 5, 2026 06:28
@Gaubee Gaubee merged commit 5c76d80 into main Jan 5, 2026
5 checks passed
@Gaubee Gaubee deleted the feat/multi-chain-provider branch January 5, 2026 06:29
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