Network Configurations for the ARK Blockchain. Developed for TypeScript.
npm install @arkecosystem/crypto-networksEach network exposes its exceptions, genesisBlock, milestones and network configuration.
import { devnet, mainnet, testnet } from "@arkecosystem/crypto-networks";
mainnet.network.client.symbol; // "Ѧ"
mainnet.milestones[0].height; // 1The toolchain version is pinned in .nvmrc and used by CI.
npm ci # install dependencies
npm run build # compile src to dist
npm run lint # check formatting
npm run format # apply formattingNetwork configuration lives in src/ as plain JSON; each network's index.ts only re-exports it.
Publishing is automated by .github/workflows/publish.yml, which runs
when a commit whose message starts with release: lands on master:
npm version 2.0.0 --no-git-tag-version # updates package.json and package-lock.json
git commit -am "release: 2.0.0"
git push origin masterThe workflow builds and runs npm publish --access public, using the NPM_TOKEN repository secret.
Every release publishes to the latest dist-tag.
If you discover a security vulnerability within this package, please send an e-mail to security@ark.io. All security vulnerabilities will be promptly addressed.
This project exists thanks to all the people who contribute.
