Skip to content

hatgit/contracts

 
 

Repository files navigation


0x 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. This repository contains the system of Ethereum smart contracts comprising 0x protocol's shared on-chain settlement layer, native token (ZRX) and decentralized governance structure. Truffle is used for deployment. Mocha is used for unit tests.

Slack Status Join the chat at https://gitter.im/0xProject/contracts License

Useful 0x Wiki Articles

Setup

Installing Dependencies

Install Node v6.9.1

Install project dependencies:

npm install

Running Tests

Start Testrpc

npm run testrpc

Compile contracts

npm run compile

Run tests

npm run test

Contributing

0x protocol is intended to serve as an open technical standard for EVM blockchains and we strongly encourage our community members to help us make improvements and to determine the future direction of the protocol. To report bugs within the 0x smart contracts or unit tests, please create an issue in this repository.

ZEIPs

Significant changes to 0x protocol's smart contracts, architecture, message format or functionality should be proposed in the 0x Improvement Proposals (ZEIPs) repository. Follow the contribution guidelines provided therein.

Coding conventions

We use a custom set of TSLint rules to enforce our coding conventions.

In order to see style violation errors, install a tslinter for your text editor. e.g Atom's atom-typescript.

About

0x smart contracts and tests.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.7%
  • JavaScript 0.3%