-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
80 lines (68 loc) · 3.42 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
PNPM_HARDHAT_BASE=pnpm hardhat
DEPLOY_SCRIPT_PATH=./deploy-scripts/v1/
NAVTIVE_TOKEN_WRAPPER=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
SYNS_NFT_NAME=Spark-Your-Noble-Story
SYNS_NFT_SYMBOL=SYNS
SYNS_NFT_SERVICE_RECIPIENT=0x0851072d7bB726305032Eff23CB8fd22eB74c85B
SYNS_NFT_DEFAULT_PLATOFRM_FREE_BPS=2000
## MUMBAI NETWORK
MUMBAI_NETWORK=mumbai
MUMBAI_CLUB_SC_ADDRESS=0x2A4E26C5FC5CA26E9ca04DbAc64d54F3D99DD3Ce
MUMBAI_DONATION_SC_ADDRESS=0x7CEA07382bfad656945F990BBfB872A255f95A56
MUMBAI_721_SC_ADDRESS=0xfDe11549f6133020721975BAc8A054EF6FCb4C0f
MUMBAI_1155_SC_ADDRESS=0x8aa884a1297f10C5B9Daa48Cd8e85Acb4C713933
MUMBAI_MARKETPLACE_SC_ADDRESS=0x990D76F1190D5098928cd2cAcCe0a2C9293EfBa8
## GOERLI NETWORK
GOERLI_NETWORK=goerli
GOERLI_CLUB_SC_ADDRESS=0x81238B62F7B51871B20d13cd8Ab4B3456C50d155
GOERLI_DONATION_SC_ADDRESS=0xD77A9F361d76e407cDC830395F8D9BFbf75E2c98
GOERLI_721_SC_ADDRESS=0xD77a1d4b16e029150E1cF3650D8AfbBF55f44a52
GOERLI_1155_SC_ADDRESS=0x8dC33f3Df601311994608B08173E6b525c798cA7
GOERLI_MARKETPLACE_SC_ADDRESS=0xE8E21801faee5B6aa714fd38E72838C341EaF551
## Clean dev environment
.PHONY: clean
clean:
@echo Deep cleaning dev environment...
@echo Purging ./artifacts...
rm -rf ./artifacts
@echo Purging ./cache...
rm -rf ./cache
@echo Purging ./node_modules...
rm -rf ./node_modules
@echo Reinstalling dependencies modules
pnpm i
## COMPILE SCs
.PHONY: compile
compile:
${PNPM_HARDHAT_BASE} compile
## DEPLOY SCs
mumbai-deploy:
$(PNPM_HARDHAT_BASE) run $(DEPLOY_SCRIPT_PATH) --network $(MUMBAI_NETWORK)
goerli-deploy:
$(PNPM_HARDHAT_BASE) run $(DEPLOY_SCRIPT_PATH) --network $(GOERLI_NETWORK)
## VERIFY SCs
### MUMBAI
mumbai-verify-club:
$(PNPM_HARDHAT_BASE) verify --network $(MUMBAI_NETWORK) $(MUMBAI_CLUB_SC_ADDRESS) ${NAVTIVE_TOKEN_WRAPPER} --show-stack-traces
mumbai-verify-donation:
$(PNPM_HARDHAT_BASE) verify --network $(MUMBAI_NETWORK) $(MUMBAI_DONATION_SC_ADDRESS) ${NAVTIVE_TOKEN_WRAPPER} --show-stack-traces
mumbai-verify-721:
$(PNPM_HARDHAT_BASE) verify --network $(MUMBAI_NETWORK) $(MUMBAI_721_SC_ADDRESS) --show-stack-traces
mumbai-verify-1155:
$(PNPM_HARDHAT_BASE) verify --network $(MUMBAI_NETWORK) $(MUMBAI_1155_SC_ADDRESS) --show-stack-traces
mumbai-verify-marketplace:
$(PNPM_HARDHAT_BASE) verify --network $(MUMBAI_NETWORK) $(MUMBAI_MARKETPLACE_SC_ADDRESS) ${NAVTIVE_TOKEN_WRAPPER} ${SYNS_NFT_SERVICE_RECIPIENT} ${SYNS_NFT_DEFAULT_PLATOFRM_FREE_BPS} --show-stack-traces
### GOERLI
goerli-verify-club:
$(PNPM_HARDHAT_BASE) verify --network $(GOERLI_NETWORK) $(GOERLI_CLUB_SC_ADDRESS) ${NAVTIVE_TOKEN_WRAPPER} --show-stack-traces
goerli-verify-donation:
$(PNPM_HARDHAT_BASE) verify --network $(GOERLI_NETWORK) $(GOERLI_DONATION_SC_ADDRESS) ${NAVTIVE_TOKEN_WRAPPER} --show-stack-traces
goerli-verify-721:
$(PNPM_HARDHAT_BASE) verify --network $(GOERLI_NETWORK) $(GOERLI_721_SC_ADDRESS) --show-stack-traces
goerli-verify-1155:
$(PNPM_HARDHAT_BASE) verify --network $(GOERLI_NETWORK) $(GOERLI_1155_SC_ADDRESS) --show-stack-traces
goerli-verify-marketplace:
$(PNPM_HARDHAT_BASE) verify --network $(GOERLI_NETWORK) $(GOERLI_MARKETPLACE_SC_ADDRESS) ${NAVTIVE_TOKEN_WRAPPER} ${SYNS_NFT_SERVICE_RECIPIENT} ${SYNS_NFT_DEFAULT_PLATOFRM_FREE_BPS} --show-stack-traces
### verify all
mumbai-verify: mumbai-verify-club mumbai-verify-donation mumbai-verify-marketplace mumbai-verify-721 mumbai-verify-1155
goerli-verify: goerli-verify-club goerli-verify-donation goerli-verify-marketplace goerli-verify-721 goerli-verify-1155