ConsenSys/eth-stdlib

Name: eth-stdlib

Owner: ConsenSys

Description: Standard Library for Ethereum

Created: 2015-09-15 16:25:20.0

Updated: 2017-12-08 20:05:50.0

Pushed: 2015-09-15 17:01:04.0

Homepage: null

Size: 93

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Ethereum Standard Library

A standard contract library for Ethereum.

Use

All contracts contained in the library have two forms:

  1. Full Solidity contract code, in ./contracts; and,
  2. Abstract “header” files, which only include function signatures.

Depending on your project you'll need to use both. Import the full Solidity code into your contract when you need to extend one of the Standard Library classes or you need to put a new instance of that class on the blockchain; import the contract header file when you only need to make calls on an Standard Library class that already exists on the blockchain.

Contributing

Contributing classes to the Standard Library is easy.

  1. Write your contract you'd like to include.
  2. Drop that contract into the ./contracts directory.
  3. Compile the contract with truffle compile. Get Truffle.
  4. Run ./make_headers.es6 to remake all the header files automatically, which includes a header file for the contract you just added.
  5. Add tests for your contract in ./test
  6. Make sure the tests pass with truffle test
  7. Submit a pull request with your new changes!

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.