Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Latest commit

 

History

History
45 lines (31 loc) · 1.19 KB

README.md

File metadata and controls

45 lines (31 loc) · 1.19 KB

@shapeshiftoss/chain-adapters

TODO: description

Usage

const chainAdapters = require('@shapeshift/chain-adapters');

// TODO: DEMONSTRATE API

Hot Reloading

To enable hot reloading, you need to have WML and Watchman installed.

  • Once WML is installed, add link(s) from packages to corresponding node_modules in project, ie:

// TODO: update package name once lib is published

wml add lib/packages/chain-adapters web/node_modules/@shapeshift/chain-adapters
  • Check packages are linked correctly by running wml list, you should see a response similar to this:
Links:
enabled (0) /Users/userName/projectFolder/lib/packages/chain-adapters -> /Users/userName/projectFolder/web/node_modules/@shapeshift/chain-adapters
  • Start WML
wml start

Note: If you start wml and nothing happens, or you see an error, a common cause is watchman is not watching the linked directory. Try "watching" the directory that was linked.

watchman watch [path-to-package]
  • In a different terminal window, run the typescript server inside the package.
yarn dev