A nodejs library providing a unified API for sending and receiving crypto payments for multiple coin networks.
- Install required compiler tools
brew install autoconf automake libtool
- Install root dependencies:
npm install
- Execute tests (done by Jest)
npm run test
- Dependency management
- To remove dependency from leaf package, remove it from its
package.json
and runlerna bootstrap
- To regenerate
package-lock.json
for package, runnpm install --package-lock-only
- Ensure following branch naming conventions
<tag>/<subject_message>
; - Ensure following commit message conventions (templated);
- Ensure test and linting are executed successfully;
- You may merge the Pull Request in once you have the sign-off of other developers, or if you do not have permission to do that, you may request the reviewer to merge it for you;
Run
git config commit.template ./.gitmessage
Use lerna to import packages (More info in lerna docs)
Add payment factory to packages/coinlib/src/constants.ts
Add payment config to packages/coinlib/src/types.ts
Find types and interfaces at packages/coinlib-common/src/
npm i @bitaccess/coinlib
See @bitaccess/coinlib README for usage.
- @bitaccess/coinlib - Wrapper for all coins
- @bitaccess/coinlib-common - Common interfaces
- @bitaccess/coinlib-bitcoin - BTC
- @bitaccess/coinlib-ethereum - ETH & ERC20
- @bitaccess/coinlib-litecoin - LTC
- @bitaccess/coinlib-doge - DOGE
- @bitaccess/coinlib-bitcoin-cash - BCH
- @bitaccess/coinlib-tron - TRX
- @bitaccess/coinlib-stellar - XLM
- @bitaccess/coinlib-ripple - XRP
Note: Never use npm version
, it doesn't work with monorepo
patch
- fixes only, no feature or breaking changesminor
- feature changesmajor
- breaking changes
- Run tests
npm run test
- Create version commit and publish to npm
lerna publish (patch|minor|major)
or
- Create a new version commit
lerna version (patch|minor|major)
- Publish to npm
lerna publish from-git