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.
||Chai as promised typescript typings|
||Chai typescript typings|
||Web3 typescript typings|
||Tool to generate TS wrappers from smart contract ABIs|
||Type and schema assertions used by our packages|
||Dev utils to be shared across 0x projects and packages|
||0x-related json schemas|
||Useful web3 subproviders (e.g LedgerSubprovider)|
||Custom 0x development TSLint rules|
||Shared type declarations|
||0x solidity smart contracts & tests|
||Shared monorepo scripts|
||A faucet micro-service that dispenses test ERC20 tokens or Ether|
||0x website & Portal DApp|
Dedicated documentation pages:
We strongly recommend that the community help us make improvements and determine the future direction of the protocol. To report bugs within this package, please create an issue in this repository.
Please read our contribution guidelines before getting started.
If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:
yarn config set workspaces-experimental true
Then install dependencies
Build all packages
yarn lerna:run build
Continuously rebuild on exchange
Lint all packages
yarn lerna:run lint
Before running the tests, you will need to spin up a TestRPC instance and deploy all the 0x smart contracts.
In a separate terminal, start TestRPC (a convenience command is provided as part of this repo)
Then in your main terminal run
cd packages/contracts yarn migrate cd ..
And finally from the root project directory run
yarn lerna:run test