项目作者: JoinColony

项目描述 :
Colony Token and Crowdsale Contracts
高级语言: JavaScript
项目地址: git://github.com/JoinColony/colonySale.git
创建时间: 2017-04-26T12:28:51Z
项目社区:https://github.com/JoinColony/colonySale

开源协议:GNU General Public License v3.0

下载


Colony Logo

Colony Token and Crowdsale contracts

About

This is the repository for the postponed Colony token sale.

If you’re curious, you can read the blog post about why we postponed the sale.

For a description of the sale contract and its design, have a look at @elena_di/3da67d833087">Elena’s post on the Token Sale Contract and the CLNY token.

The contracts contained in this repo have been released under a GPL-3.0 license.

It should go without saying, but the code contained herein is designed to handle potentially large amounts of Ether, and as such should be deployed at your own risk and sole responsibility.

If you’ve found a bug, please reach out to us here on github or by email.

Install

  1. git clone https://github.com/JoinColony/colonySale.git
  2. yarn global add mkdirp gulp@3.9.1
  3. yarn --pure-lockfile
  4. git submodule update --init --recursive --remote

Contracts

The CLNY Token contract is defined in contracts/Token.sol and contracts/EtherRouter.sol.

The Token Sale contract is defined in contracts/ColonyTokenSale.sol

The math, erc20 and a significant part of the token contracts have been reused from the Dappsys library.

Testing

To run all tests:

  1. gulp test:contracts

To run tests with code coverage using solidity-coverage:

  1. gulp test:contracts:coverage

To lint contracts using Solium

  1. gulp lint:contracts