-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
背景
当前 BioForest SDK 使用预编译的 bioforest-chain-bundle.cjs 文件。为了项目「自举」和代码透明,需要整合源代码。
阻塞原因
@bfchain/core* 系列包未发布到 npm,且有复杂的内部依赖关系:
- @bfchain/core-crypto 依赖 @bfchain/core-crypto-tweetnacl, @bfchain/core-crypto-ed2curve
- 这些子包不在 legacy-apps/internal/@bfchain/ 中
待办
- 整理 @bfchain/core* 系列包的依赖关系
- 发布 @bfchain/core* 系列包到 npm
- 删除
bioforest-chain-bundle.cjs - 从源代码整合 SDK 到
src/services/bioforest-sdk/internal/ - 配置 Vite 构建支持 tree-shaking
当前改进(Issue #97)
- ✅ 创世块移至
public/configs/genesis/,按需 fetch - ✅ SDK 支持多链(通过 chainId 加载对应创世块)
- ✅ 白皮书文档已更新
相关
- 前置:Issue 优化:合并 btgmeta-bundle 源代码并配置构建 #97 SDK 延迟加载优化
- 注:
@bfchain/util已在 npm,可直接使用
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request