ICO Crowdsale Sample
ICO sample project with Truffle Framework + Solidity + OpenZeppelin on private network or ropsten/rinkeby + infura + metamask or rinkeby + local geth.
How to run
- Setup a Metamask account.
- Sign up a Infura account with the Metamask account you just created.
- Install geth and setup.
- Sync your geth with rinkeby test net e.g., geth --rinkeby --datadir "~/rinkby" --syncmode "light" --rpc --rpcaddr "localhost" --rpcport "8545" --rpccorsdomain "*" --rpcapi "eth,net,web3,personal"
- Gain Ether on Ropsten faucet and/or Rinkeby faucet.
- Clone the repository.
- run "npm install"
- Run below according to the
-
private network -- Run your geth on private network. e.g., geth --networkid "10" --nodiscover --datadir ./datadir --rpc --rpcaddr "localhost" --rpcport "8545" --rpccorsdomain "*" --rpcapi "eth,net,web3,personal" -- Run "export WALLET="{your account}"; truffle migrate --network development".
-
infura + ropsten/rinkeby + metamask
-- Run "export INFURA_ACCESS_TOKEN="{your infura access token}";export MNEMONIC="{your metamask mnemonic}"; export WALLET="{your metamask account}"; truffle migrate --network {ropsten or rinkeby}". -
ropsten + local geth
-- Run your geth as Rinkeby mode. e.g., geth --rinkeby --datadir "~/rinkby" --rpc --rpcaddr "localhost" --rpcport "8545" --rpccorsdomain "*" --rpcapi "eth,net,web3,personal" -- Run "export RINKEBY_ACCOUNT="{your account}"; export WALLET="{your account}"; truffle migrate --network rinkeby_local"
TODO
- missing test