For Chinese version please see README-zh.
Monorepo SDK to embed BFMeta wallet capabilities in third‑party apps: account lifecycle, signing, RPC helpers, and UI glue.
- Workspaces
packages/:core: core logic and typessdk: public SDK surfacewallet: optional UI glue/adapterstypings: shared TS definitionstest: integration/regression harness
- Tooling:
lerna.json,pnpm-workspace.yaml,tsconfig.build.json; scripts inscripts/.
pnpm install
pnpm build # build all packages
pnpm test # run tests (if configured)Usage pattern:
- Initialize SDK with node endpoints + network params.
- Use SDK to create/import accounts, sign transactions, and broadcast via chain RPC.
- Handle typed results/errors; extend
coreutilities for custom flows.
- SDK layer(MPL 2.0): keep TS strict; avoid
any/@ts-ignore. - Reuse
coreutilities; place types intypings; keepsdkAPI surface small and documented (JSDoc + examples). - Add regression tests in
packages/testfor new RPC/signing flows before release. - Branches:
feature/<scope>/fix/<issue>; concise commits.