@flarenetwork/mcc
TypeScript icon, indicating that this package has built-in type declarations

4.0.3 • Public • Published

Multi-Chain Client

Welcome to MCC.

What is the MCC?

MCC or Multi-Chain Client is a Typescript library that allows querying nodes from any blockchain in a unified manner. Retrieved data is encapsulated in objects that hold all the original information and allow adding static, named properties.

Underlying nodes

We recommend to deploy nodes from our docker repo

Documentation (outdated)

Find it here.

Development notes

Find notes for developers here.

Testing

In order to run the tests one needs a connection to a running DOGe node (mainnet), BTC node (mainnet), XRP node (mainnet) and XRP node (testnet). Provide the url and possible basic auth credentials as variables in env.

# BITCOIN
BTC_URL=url
BTC_USERNAME=user
BTC_PASSWORD=pass
# DOGECOIN
DOGE_URL=url
DOGE_USERNAME=user
DOGE_PASSWORD=pass
# XRP
XRP_URL=url
XRP_USERNAME=user
XRP_PASSWORD=pass
# XRP TESTNET
XRP_URL_TESTNET=url
XRP_USERNAME_TESTNET=user
XRP_PASSWORD_TESTNET=pass

You can run a specific test using:

yarn test <path_to_test_file>

Run all tests associated with one of the supported chains using

yarn test:btc
yarn test:doge
yarn test:xrp

Run all of the test

yarn test:all

Run all of the tests and create coverage report

yarn test:coverage

Readme

Keywords

none

Package Sidebar

Install

npm i @flarenetwork/mcc

Weekly Downloads

14

Version

4.0.3

License

MIT

Unpacked Size

5.55 MB

Total Files

492

Last publish

Collaborators

  • kuco23
  • avbrehtluka
  • joshuagedwards
  • mkamau
  • sprwn
  • fkoprivec