Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Parthasarathy Ramanujam
Parthasarathy Ramanujam Fixed the deployment script
Latest commit 210dec1 Jul 14, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
contracts
migrations
test
.babelrc
.eslintignore
.eslintrc
.gitignore
README.md
package.json
truffle.js
webpack.config.js

README.md

Pillar Contracts

Description:

The pillar ICO is made of three contracts which are ERC20 compliant token built using OpenZeppelin library.
The naming convention used describs the purpose of the individual contracts.

  1. PillarPreSale -
  2. PillarToken - deployed in Rinkeby testnet
  3. TeamAllocation -
  4. UnsoldAllocation - deployed in Rinkeby testnet

Dependencies

We use Truffle in order to compile and test the contracts.

It can be installed: npm install -g truffle

For more information visit https://truffle.readthedocs.io/en/latest/

Also running node with active json-rpc is required. For testing puproses we suggest using https://github.com/ethereumjs/testrpc

Usage

./run_testrpc.sh - run testrpc node with required params

truffle compile - compile all contracts

truffle test - run tests

Specification

PillarToken

Extends Zeppelin Ownable and StandardToken classes.
This class will handle the ICO transaction.

Methods

pause() - emergency stop of ICO

function pause() onlyOwner external returns (bool)

payable - validator function

function() payable isFundingModeStop external

purchase - carry out purchase transaction

function purchase() payable isFundingModeStop external

finalize - end the ICO gracefully

finalize() external onlyOwner

refund -

function refund() isFundingModeStop external

Events

Refund

event Refund(address indexed _from,uint256 _value);

Migrate

event Migrate(address indexed _from, address indexed _to, uint256 _value);

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.