For Chinese version please see README-zh.
Full BFMeta node/console app handling chain services, P2P, APIs, and ops scripts for testnet/mainnet deployments.
- Install deps:
yarn install. To switch dependency channels, setDEPS_CHANNEL/DEPS_INJECTbefore installing. - Init configs: run
yarn initto generate testnet/mainnet or custom chain configs; editconf/*.jsonformongoDb.userandlogConfig. - Build: dev watch
yarn dev; full rebuildyarn rebuild. - Run node:
node index.js(first run prompts for Mongo credentials). - Bind delegate: after seeing
waiting for keypairs from master process, runnode index.js /ba /?and filldelegateSecret. - Mongo tools: create
mongoComponents/win|linuxwith Mongo shell binaries to enable import/export helpers.
- Node >=14, Yarn only; keep TS strict, avoid
any/@ts-ignore. - Place business logic in
src/*, shared helpers inhelpersto stay DRY. - Document config/script changes; update
package.jsonscripts for new commands. - Run
yarn buildor targetedbdk-tscbefore committing to ensure compilability.