Important ressources:
Token:
- LabCoin.sol: Main contract for the token. It is an ERC20 token derived from the OpenZeppelin StandardToken and BurnableToken.
Sale:
- LabStartCrowdsale.sol: Implementation of the features of the Crowdsale. It is derived from the OpenZeppelin WhitelistedCrowdsale and FinalizableCrowdsale contracts.
- LabStartPresale.sol: The LabStart pre-sale. Derives from LabStartCrowdsale.sol and burns the remaining LAB at the end of the pre-sale.
- LabStartICO.sol: The ICO. Derives from LabStartCrowdsale.sol. At the end of the ICO, sends LAB to the team, so that the team owns 20% of the total supply of LAB when the crowdsale is over. Burns the remaining LAB at the end of the ICO.
To run the crowdsale by yourself, you need to have Truffle installed. Then, download the project dependencies using npm install.
npm install -g truffle
npm install
In order to run the project with Truffle, do not forget to add a truffle config file. An exemple of config file could be the following
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*"
}
}
};
You can now migrate the LabStart Crowdsale (pre-sale and ICO) on the network of your choice, using the migrate command.
truffle migrate