-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (18 loc) · 977 Bytes
/
Makefile
File metadata and controls
31 lines (18 loc) · 977 Bytes
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
-include .env
.PHONY: all test clean
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
install :; forge install OpenZeppelin/openzeppelin-contracts --no-commit && forge install foundry-rs/forge-std --no-commit
# Update Dependencies
update :; forge update
build :; forge build
test :; forge test
snapshot :; forge snapshot
slither :; forge flatten src/PrizeDistributor.sol > flattened.sol && slither flattened.sol; rm -rf flattened.sol
format :; prettier --write src/*/*.sol && prettier --write test/*.sol && prettier --write script/*.sol
# solhint should be installed globally
lint :; solhint src/*/*.sol && solhint test/*.sol && solhint script/*.sol
deploy :; @forge script script/PrizeDistributor.s.sol:Deploy --rpc-url ${RPC_URL} --private-key ${PRIVATE_KEY} --broadcast --verify --etherscan-api-key ${ETHERSCAN_API_KEY} -vvvv