forked from edge2b/privatix-smart-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (20 loc) · 1.59 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
compile: deps
@truffle --network local compile
@solidity_flattener --solc-paths=zeppelin-solidity=$(shell pwd)/node_modules/zeppelin-solidity/ contracts/Presale.sol > build/CombinedPresale.sol
@solidity_flattener --solc-paths=zeppelin-solidity=$(shell pwd)/node_modules/zeppelin-solidity/ contracts/Sale.sol > build/CombinedSale.sol
@solc zeppelin-solidity=$(shell pwd)/node_modules/zeppelin-solidity/ contracts/PresaleToken.sol --abi 2>/dev/null| grep :Token -A2 | tail -n1 > build/PresaleToken.abi
@solc zeppelin-solidity=$(shell pwd)/node_modules/zeppelin-solidity/ contracts/Presale.sol --abi 2>/dev/null| grep :Presale -A2 | tail -n1 > build/Presale.abi
@solc zeppelin-solidity=$(shell pwd)/node_modules/zeppelin-solidity/ contracts/Token.sol --abi 2>/dev/null| grep :Token -A2 | tail -n1 > build/Token.abi
@solc zeppelin-solidity=$(shell pwd)/node_modules/zeppelin-solidity/ contracts/Sale.sol --abi 2>/dev/null| grep :Sale -A2 | tail -n1 > build/Sale.abi
node_modules:
npm install
deps: node_modules
@pip3 install solidity_flattener -q
test: node_modules
@truffle --network local test tests/sale.js
testrpc:
./node_modules/.bin/testrpc \
--account="0x7e9a1de56cce758c544ba5dea3a6347a4a01c453d81edc32c2385e9767f29505, 1000000000000000000000000000000000000000" \
--account="0x1fdc76364db4a4bcfad8f2c010995a96fcb98a165e34858665a234ba5471520b, 0" \
--account="0xf2029a2f20a9f57cd1a9a2a44c63d0c875f906c646f333b028cb6f1c38ef7db5, 1000000000000000000000000000000000000000" \
--account="0x84f24b0dddc8262675927168bbbf8688f846bcaedc2618ae576d34c043401719, 1000000000000000000000000000000000000000" \