Brikbit Digital Shares ICO smart contracts (WIP)
BRIK
The BRIK token is a standard ERC20 token that can be used for interacting with the Brikbit Platforms.
Documentation
Please see the Brikbit site for the whitepaper and for ICO launch details.
Install, testing and deploy:
This project uses the Truffle Framework.
- Install truffle
npm install -g truffle
-
Choose an ethereum client (Ganache recommended)
-
Clone the repository
git clone https://github.com/BrikbitDigitalShares/BrikToken.git
- Change parameters in contracts code:
// FirstCrowdsale.sol
uint256 public cap = XXXXXXXXXXXXXXXX; // Ln 20,Col 26
uint256 public constant RATE = XXXXXXXXXXXXXXXX; // Ln 22,Col 36
uint256 public openingTime = XXXXXXXXXXXXXXXX; // Ln 24,Col 34
uint256 public closingTime = XXXXXXXXXXXXXXXX; // Ln 25,Col 34
require(_weiAmount >= XXXXXXXXXXXXXXXX); // Ln 137,Col 31
// SecondCrowdsale.sol
uint256 public cap = XXXXXXXXXXXXXXXX; // Ln 19,Col 26
uint256 public openingTime = XXXXXXXXXXXXXXXX; // Ln 21,Col 35
uint256 public closingTime = XXXXXXXXXXXXXXXX; // Ln 22,Col 35
require(_weiAmount >= XXXXXXXXXXXXXXXX); // Ln 112,Col 31
rate = XXXXXXXXXXXXXXXX; // first rate, Ln 112,Col 31
rate = XXXXXXXXXXXXXXXX; // second rate, Ln 112,Col 31
rate = XXXXXXXXXXXXXXXX; // third rate, Ln 112,Col 31
- install node_modules
npm install
- compile and deploy
truffle compile && truffle migrate
- run tests (be sure to set correct parameters in BrikBitCrowdsaleTest.js before running test)
truffle test