All Projects → hermeznetwork → contracts

hermeznetwork / contracts

Licence: GPL-3.0 license
Hermez network protocol smart contracts

Programming Languages

javascript
184084 projects - #8 most used programming language
solidity
1140 projects
shell
77523 projects

Smart-contracts

Implements Hermez smart contracts

Install

$ yarn install && cp .env.example .env

#### Add pre-commit hook

$ git config core.hooksPath .githooks

Optional:

  • cp .env.example .env
  • Add your vars to .env after this commnad

Run tests

  • Contracts tests

$ yarn run test

Or for a specific contract:

$ yarn run test:hermez
$ yarn run test:auction
$ yarn run test:withdrawalDelayer
  • Contracts Coverage

$ yarn run test:coverage

Or for a specific contract:

$ yarn run test:coverage:hermez
$ yarn run test:coverage:auction
$ yarn run test:coverage:withdrawalDelayer
  • Contracts Gas Report

$ yarn run test:gas

Or for a specific contract:

$ yarn run test:gas:hermez
$ yarn run test:gas:auction
$ yarn run test:gas:withdrawalDelayer

License

hermeznetwork/contracts is part of the Hermez project copyright 2020 HermezDAO and published with GPL-3 license. Please check the COPYING file for more details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].