-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (53 loc) · 1.39 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
ifneq (,$(wildcard ./.env))
include .env
export
endif
DEPLOY_CMD = forge script script/Deploy.s.sol:$(CONTRACT)Script --rpc-url $(RPC_URL) --broadcast
.PHONY: clean test
all: clean deploy-all-contracts verify-all-contracts
test:
forge test --gas-report
clean:
forge clean && rm -rf cache
ilo-manager:
$(eval CONTRACT=ILOManager)
ilo-pool:
$(eval CONTRACT=ILOPool)
ilo-pool-sale:
$(eval CONTRACT=ILOPoolSale)
token-factory:
$(eval CONTRACT=TokenFactory)
all-contracts:
$(eval CONTRACT=AllContracts)
deploy-all-contracts:
deploy-ilo-manager:
deploy-ilo-pool:
deploy-ilo-pool-sale:
deploy-token-factory:
deploy-all-contracts-legacy:
deploy-ilo-manager-legacy:
deploy-ilo-pool-legacy:
deploy-ilo-pool-sale-legacy:
deploy-token-factory-legacy:
deploy-all-contracts-with-gas-price:
deploy-ilo-manager-with-gas-price:
deploy-ilo-pool-with-gas-price:
deploy-ilo-pool-sale-with-gas-price:
deploy-token-factory-with-gas-price:
deploy-%: %
$(DEPLOY_CMD)
deploy-%-legacy: %
$(DEPLOY_CMD) --legacy
deploy-%-with-gas-price: %
$(DEPLOY_CMD) --legacy --gas-price $(GAS_PRICE)
verify-all-contracts:
verify-ilo-manager:
verify-token-factory:
verify-ilo-pool:
verify-ilo-pool-sale:
verify-%: %
forge script script/Verify.s.sol:Verify$(CONTRACT)Script | awk 'END{print}' | bash
init-ilo-manager:
init-token-factory:
init-%: %
forge script script/Init.s.sol:$(CONTRACT)InitializeScript --rpc-url $(RPC_URL) --broadcast