Skip to content

Latest commit

 

History

History
 
 

typescript

tBTC v2 TypeScript bindings

TypeScript bindings build status

This package provides TypeScript bindings to the tBTC v2 system.

Build, test and deploy

Prerequisites

Please make sure you have the following prerequisites installed on your machine:

Install dependencies

To install dependencies, run:

yarn install

NOTE: The @keep-network/tbtc.ts package contains an indirect dependency to @summa-tx/[email protected] package, which downloads one of its sub-dependencies via unathenticated git:// protocol. That protocol is no longer supported by GitHub. This means that in certain situations installation of the package or update of its dependencies using Yarn may result in The unauthenticated git protocol on port 9418 is no longer supported or fatal: unable to connect to github.com errors.

As a workaround, we advise changing Git configuration to use https:// protocol instead of git:// by executing:

git config --global url."https://".insteadOf git://

Build

To build the library, invoke:

yarn build

A dist directory containing the resulting artifacts will be created.

Test

To run unit tests, do:

yarn test