Skip to content

BioforestChain/BFMeta-PC-Mars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BFMeta-PC-Mars (English)

For Chinese version please see README-zh.

Overview

Full BFMeta node/console app handling chain services, P2P, APIs, and ops scripts for testnet/mainnet deployments.

Usage

  1. Install deps: yarn install. To switch dependency channels, set DEPS_CHANNEL / DEPS_INJECT before installing.
  2. Init configs: run yarn init to generate testnet/mainnet or custom chain configs; edit conf/*.json for mongoDb.user and logConfig.
  3. Build: dev watch yarn dev; full rebuild yarn rebuild.
  4. Run node: node index.js (first run prompts for Mongo credentials).
  5. Bind delegate: after seeing waiting for keypairs from master process, run node index.js /ba /? and fill delegateSecret.
  6. Mongo tools: create mongoComponents/win|linux with Mongo shell binaries to enable import/export helpers.

Contribution (brief)

  • Node >=14, Yarn only; keep TS strict, avoid any/@ts-ignore.
  • Place business logic in src/*, shared helpers in helpers to stay DRY.
  • Document config/script changes; update package.json scripts for new commands.
  • Run yarn build or targeted bdk-tsc before committing to ensure compilability.

About

Full BFMeta node/console for testnet & mainnet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 13