Skip to content

flare-foundation/multi-chain-client

Repository files navigation

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