npm install
npm run build
- npm run deploy-rinkeby (Rinkeby testnet)
- npm run deploy-ropsten (Ropsten testnet)
- npm run deploy-mainnet (Mainnet testnet)
- npm run data
NOTE:
- All the below scripts are in the folder "./script"
- Need to configure 4 parameters in the file "app/global.js"
- pm2 start script/script_presale_rinkeby.sh (Rinkeby testnet)
- pm2 start script/script_presale_ropsten.sh (Ropsten testnet)
- pm2 start script/script_presale_mainnet.sh (Mainnet)
- pm2 start script/script_veri_rinkeby.sh (Rinkeby testnet)
- pm2 start script/script_veri_ropsten.sh (Ropsten testnet)
- pm2 start script/script_veri_mainnet.sh (Mainnet)
- pm2 start script/script_ico_rinkeby.sh (Rinkeby testnet)
- pm2 start script/script_ico_ropsten.sh (Ropsten testnet)
- pm2 start script/script_ico_mainnet.sh (Mainnet)
- pm2 start script/script_rate_rinkeby.sh (Rinkeby testnet)
- pm2 start script/script_rate_ropsten.sh (Ropsten testnet)
- pm2 start script/script_rate_mainnet.sh (Mainnet)
The contracts are tested using Truffle Framework under TestRPC.
- Please install Truffle using npm as described here
- Install TestRPC or new Ganache as described here
- Run TestRPC/Ganache as Ethereum network and expose port 8545 under 127.0.0.1 (These should be default options).
- Run
truffle test <test_file>
for each test file. They are located undertest/token
folder.
NOTE:
- Please test each file under folder test/token seperately.
- For example:
truffle test test/token/ShareTokenTest.js
- For example:
- Please restart TestRPC/Ganache after certain testruns to update testing accounts' balances and states
npm test <test_file>