-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (33 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
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
-include .env
.PHONY: all test clean deploy-anvil
all: clean remove install update build
# Clean the repo
clean :; forge clean
# Remove modules
remove :; rm -rf .gitmodules && rm -rf .git/modules/* && rm -rf lib && touch .gitmodules && git add . && git commit -m "modules"
install :; forge install foundry-rs/forge-std && forge install allo-protocol/contracts
# Update Dependencies
update:; forge update
build:; forge build
test :; forge test
snapshot :; forge snapshot
slither :; slither ./src
format :; prettier --write src/**/*.sol && prettier --write src/*.sol
# solhint should be installed globally
lint :; solhint src/**/*.sol && solhint src/*.sol
anvil :; anvil -m 'test test test test test test test test test test test junk' --fork-url ${MUMBAI_RPC_URL}
# deploy commands
deploy-anvil :; ./script/deploy.sh anvil ${contract}
deploy-sandbox :; ./script/deploy.sh sandbox ${contract}
deploy-testnet :; ./script/deploy.sh testnet ${contract} --verify
deploy-mainnet :; ./script/deploy.sh mainnet ${contract} --verify
deploy-contracts :; make deploy-${network} contract=GitcoinCollectModule && \
make deploy-${network} contract=LensCollectVotingStrategyFactory && \
make deploy-${network} contract=LensCollectVotingStrategyImplementation;
deploy-all :; make deploy-contracts network=${network} && \
make deploy-${network} contract=MerklePayoutStrategyFactory && \
make deploy-${network} contract=ProgramFactory && \
make deploy-${network} contract=ProjectRegistry && \
make deploy-${network} contract=RoundFactory;
# execute commands
create-round :; script/execute.sh ${network} RoundFactory RoundCreate