Skip to content
Contracts for the CLC Group Shares Presale
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contracts
migrations
test
.gitignore
README.md
flatten.sh
ganache-cli.sh
package-lock.json
package.json Initial commit Apr 24, 2019
truffle-config.js

README.md

Contracts for the CLC Group Shares Presale

Includes the CLCG Token contract: https://etherscan.io/address/0x0dF53a6946b21146A817c8C9e4792Dc442BBded2

and the crowdsale contract: https://etherscan.io/address/0xe651763f0138232a67303e3eda57c9328ea66e3d

Install packages

$ npm install

Run this on one terminal

$ ./ganache-cli.sh

and this on another terminal for the local tests

$ npm run test
  Contract: ClcgCrowdsale
    ✓ should be initialized with the correct parameters
    ✓ should not whitelist by default
    ✓ should be able to whitelist before opening time
    ✓ should not accept payment before opening time
    ✓ should be a minter of the token contract
    ✓ contract deployer should not be a minter of the token contract
    ✓ should be able to whitelist during crowdsale 
    ✓ should not accept below 0.04 ETH
    ✓ should not accept above the hard cap
    ✓ should not accept payment from non-whitelisted contributor during crowdsale
    ✓ redistribution recalculation should not cause overflow
    ✓ should not accept payment after closing time
    ✓ should distribute tokens if the soft cap is reached
    ✓ should refund if the soft cap is not reached

  Contract: ClcgToken
    ✓ should be initialized with the correct parameters
You can’t perform that action at this time.