Repository navigation
feat(chain-adapter): EVM 和 BIP39 链适配器 - #132
Merged
Merged
Conversation
- Add EVM adapter for Ethereum/BSC chains - IdentityService, AssetService, TransactionService, ChainService - Balance queries via walletapi - Transaction signing placeholder (not yet implemented) - Add BIP39 adapter for Bitcoin/Tron chains - Similar structure to EVM adapter - Chain-specific fee estimates and confirmations - Update use-send.ts error messages - Show chain type name for unsupported chains - Prepare for future EVM/BIP39 transfer implementation - Register all adapters in setupAdapters()
- Add new chapter: 08-测试篇/06-测试网络 - Document public testnets: Sepolia, BSC Testnet, Nile, Signet - Include RPC endpoints, faucets, and explorer links - Add testnet-chains.json config file - Update white-book index
… RPC - Use standard Ethereum JSON-RPC instead of custom REST API - Implement proper secp256k1 signature parsing with recovery bit - Add PublicNode as unified RPC provider for all chains (ETH/BSC/Tron/BTC) - Update testnet documentation with PublicNode endpoints
- Add dedicated Tron chain type and adapter - Implement TronIdentityService with address derivation and signing - Implement TronAssetService for TRX balance queries - Implement TronChainService for block info and health checks - Implement TronTransactionService for transaction building/signing/broadcasting - Update ChainConfigTypeSchema to include 'tron' type - Update schema.test.ts for new chain type distribution
Gaubee
force-pushed
the
feat/web3-adapters
branch
from
December 27, 2025 13:49
4485109 to
20f814d
Compare
- Add BitcoinIdentityService with BIP84 address derivation (P2WPKH) - Add BitcoinAssetService for balance and UTXO queries - Add BitcoinChainService for block info and fee estimates - Add BitcoinTransactionService for transaction building - Implement custom bech32 encoding/decoding - Note: Full transaction signing requires specialized library
- Replace custom bech32/base58 implementation with @scure/base - Add viem for future EVM improvements - Simplify Bitcoin address validation using standard library
- Add use-send.web3.ts with transfer/fee/validation functions - Update use-send.ts to route EVM/Tron/Bitcoin transfers through adapters - Support address validation using chain adapter identity service - Support fee estimation using chain adapter transaction service
- Add white-book documentation explaining API choices (mempool.space vs PublicNode for Bitcoin) - Add unit tests for EVM, Bitcoin, and Tron adapters - Update testnet documentation with Bitcoin API comparison table
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.
变更内容
EVM Adapter (Ethereum, BSC)
IdentityService: 地址验证、checksum 转换AssetService: 余额查询 (via walletapi)TransactionService: 交易构建框架 (签名/广播待实现)ChainService: 链信息、区块高度、Gas 价格BIP39 Adapter (Bitcoin, Tron)
use-send.ts 更新
已注册的适配器
后续工作