Skip to content
This repository has been archived by the owner on Jun 9, 2019. It is now read-only.

davesag/ERC884-reference-implementation

Repository files navigation

ERC884-reference-implementation

Greenkeeper badge

An Interface and Reference Implementation of the ERC-884 Delaware General Corporate Law compliant (DGCL) token.

Branch Status Coverage
develop CircleCI codecov Work in progress — updating for Truffle V5
master CircleCI codecov Last stable release

Status

An ERC-884 token is an ERC-20 compatible token that is compliant with Delaware General Corporate Law.

Development

The smart contracts are implemented using Solidity 0.4.24.

Development Prerequisites

  • NodeJS, version 10 (I use nvm to manage Node versions — brew install nvm.) note does not work with Node 12.
  • truffle, which is a comprehensive framework for Ethereum development. npm install -g truffle — this should install Truffle v5.0.1 or better. Check that with truffle version.

Initialisation

npm install

Testing

Standalone

npm test

or with code coverage

npm run test:cov

From within Truffle

Run the truffle development environment

truffle develop

then from the prompt you can run

compile
migrate
test

as well as other Truffle commands. See truffleframework.com for more.

Linting

You can use the following linting options

  • npm run lint:sol — to lint the Solidity files, and
  • npm run lint:js — to lint the Javascript.

Contributing

Please see the contributing notes.