-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
58 lines (45 loc) · 2.79 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
NETWORK:= "development"
MERGE_PATH:=merged
.PHONY: test clean
clean:
@echo "Cleaning Project Builds"
@rm -rf $(shell pwd)/merged
@rm -rf $(shell pwd)/build/contracts
merge:
@exec $(shell pwd)/node_modules/.bin/sol-merger $(shell pwd)/contracts/$(value MERGE_FILE) $(shell pwd)/$(value MERGE_PATH)
compile: node_modules
@echo "Begining of compilation"
@exec $(shell pwd)/node_modules/.bin/truffle compile
migrate: compile
@echo "Begin migrate to $(value NETWORK)"
@exec $(shell pwd)/node_modules/.bin/truffle migrate --network=$(value NETWORK)
migrate-hard: clean compile
@echo "Begin migrate --reset to $(value NETWORK)"
@exec $(shell pwd)/node_modules/.bin/truffle migrate --reset --network=$(value NETWORK)
exec:
@exec $(shell pwd)/node_modules/.bin/truffle exec $(value EXEC_SCRIPT) --network=$(value NETWORK)
setup:
@echo "Nothing to setup"
deploy: clean compile migrate setup
node_modules:
npm install
test:
@exec $(shell pwd)/node_modules/.bin/truffle --network=$(value NETWORK) test $(value TEST)
test-hard: deploy
@exec $(shell pwd)/node_modules/.bin/truffle --network=$(value NETWORK) test $(value TEST)
testrpc: node_modules
@exec $(shell pwd)/node_modules/.bin/ganache-cli --gasPrice=0x01 --gasLimit=0xfffffffffff \
-d="candy maple velvet cake sugar cream honey rich smooth crumble sweet treat" \
--account="0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d,1000000000000000000000000000000000000000" \
--account="0x6cbed15c793ce57650b9877cf6fa156fbef513c4e6134f022a85b1ffdd59b2a1,1000000000000000000000000000000000000000" \
--account="0x6370fd033278c143179d81c5526140625662b8daa446c22ee2d73db3707e620c,1000000000000000000000000000000000000000" \
--account="0x646f1ce2fdad0e6deeeb5c7e8e5543bdde65e86029e2fd9fc169899c440a7913,1000000000000000000000000000000000000000" \
--account="0xadd53f9a7e588d003326d1cbf9e4a43c061aadd9bc938c843a79e7b4fd2ad743,1000000000000000000000000000000000000000" \
--account="0x395df67f0c2d2d9fe1ad08d1bc8b6627011959b79c53d7dd6a3536a33ab8a4fd,1000000000000000000000000000000000000000" \
--account="0xe485d098507f54e7733a205420dfddbe58db035fa577fc294ebd14db90767a52,1000000000000000000000000000000000000000" \
--account="0xa453611d9419d0e56f499079478fd72c37b251a94bfde4d19872c44cf65386e3,1000000000000000000000000000000000000000" \
--account="0x829e924fdf021ba3dbbc4225edfece9aca04b929d6e75613329ca6f1d31c0bb4,1000000000000000000000000000000000000000" \
--account="0xb0057716d5917badaf911b193b12b910811c1497b5bada8d7711f758981c3773,1000000000000000000000000000000000000000" \
--account="0x4eca7090ae56d1aeebcca9600f3c363b98440281b7a9dd31823fb2456abe4083,1000000000000000000000000000000000000000" \
--account="0xe22691555326a123f3f404a5a487f1698fdae74304dc362ce2740e2dba4f6773,1000000000000000000000000000000000000000" \
--networkId="0xC0FFEE1"