[0x][website-url] is an open protocol that facilitates trustless, low friction exchange of Ethereum-based assets. A full description of the protocol may be found in our [whitepaper][whitepaper-url].
This repository contains all the 0x developer tools written in TypeScript. Our hope is that these tools make it easy to build Relayers and other DApps that use the 0x protocol.
Instructions
Make sure you have yarn@1.x installed locally.
Creating a new sub-package
-
Make sure the
namefield in the sub-package'spackage.jsonstarts with@0xproject/and has a unique name (e.g@0xproject/assert). -
Run
yarn installto install all it's dependencies.
How to add a sub-package as a dependency to another sub-package:
-
Add the sub-packages name (declared in it's
package.json) to your sub-packagespackage.jsonunderdependenciesordevDependencies. -
Run
yarn installfrom anywhere in the mono repo. -
Import the sub-package as:
import {myPkg} from '@0xproject/myPkg';