npm.io
2.0.2 • Published 1 month ago

@arkecosystem/crypto-networks

Licence
MIT
Version
2.0.2
Deps
0
Size
1.1 MB
Vulns
0
Weekly
0

ARK TypeScript Crypto - Network Configurations

Network Configurations for the ARK Blockchain. Developed for TypeScript.

Installation

npm install @arkecosystem/crypto-networks

Usage

Each 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; // 1

Development

The 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 formatting

Network configuration lives in src/ as plain JSON; each network's index.ts only re-exports it.

Releasing

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 master

The workflow builds and runs npm publish --access public, using the NPM_TOKEN repository secret. Every release publishes to the latest dist-tag.

Security

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.

Credits

This project exists thanks to all the people who contribute.

License

MIT ARK Ecosystem