Colony Token and Crowdsale Contracts
Switch branches/tags
Nothing to show
Clone or download
Latest commit 8c97057 Oct 19, 2017
Permalink
Failed to load latest commit information.
contracts Group 3 bool + 1 address variable to optimise storage Oct 13, 2017
gasCosts Prefix event names with 'Log' for clarity Aug 11, 2017
helpers Simplify helper function to send ether Aug 9, 2017
installed_contracts/multisig-wallet Add to source control ethpm package for multisig Jun 26, 2017
lib Use Solidity division as div function removed from ds-math Oct 2, 2017
migrations Switch Token mint to accept uint256 Oct 2, 2017
test Switch Token mint to accept uint256 Oct 2, 2017
upgrade-test Run rename coverage test task in gulp Jun 30, 2017
.babelrc Add babel for truffle tests Jun 5, 2017
.gitignore Switch git submodule references to dappsys monolithic Aug 15, 2017
.gitmodules Switch git submodule references to dappsys monolithic Aug 15, 2017
.nvmrc Switch to node 8.4 Oct 11, 2017
.solcover.js Use gitsubmodules for ds-math and erc20 off source dappsys repos Aug 8, 2017
.soliumignore Use gitsubmodules for ds-math and erc20 off source dappsys repos Aug 8, 2017
.soliumrc.json Upgrade solium and revert back constant names after #92 was fixed Aug 8, 2017
LICENSE Create LICENSE Oct 19, 2017
README.md Update README.md Oct 19, 2017
circle.yml Remove git submodules update 'remote flag Oct 11, 2017
genesis.json Add parity genesis template and npm packages for CI Jun 15, 2017
gulpfile.babel.js Isolate gas costs tests to own folder and gulp run Aug 8, 2017
package.json Upgrade mocha Oct 11, 2017
parity-genesis.template.json Add parity genesis template and npm packages for CI Jun 15, 2017
truffle.js Let's get some soliditly-coverage all up in here Jun 27, 2017
yarn.lock Upgrade mocha Oct 11, 2017

README.md

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'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

git clone https://github.com/JoinColony/colonySale.git
yarn global add mkdirp gulp@3.9.1
yarn --pure-lockfile
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:

gulp test:contracts

To run tests with code coverage using solidity-coverage:

gulp test:contracts:coverage

To lint contracts using Solium

gulp lint:contracts