-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
29 lines (25 loc) · 1.33 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
# include .env file and export its env vars
# (-include to ignore error if it does not exist)
-include .env
# Update dependencies
install :; forge install
update :; forge update
# Build
build :; forge build --sizes
clean :; forge clean
lint :; yarn install && yarn run lint
format :; npx prettier --write "src/**/*.sol"
# Testing
test :; forge test --match-path "src/test/**/*.t.sol"
# test :; forge test --match-path "src/test/**/CDPVault.t.sol"
test-gas :; forge test --match-path "src/test/**/*.t.sol" --gas-report
test-contract :; forge test --match-contract $(contract)
test-fuzz :; forge test --ffi --match-path "src/test/fuzz/**/*.t.sol"
test-invariant :; forge test --ffi --match-path "src/test/invariant/**/*.t.sol"
test-integration :; forge test --ffi --match-path "src/test/integration/**/*.t.sol"
test-unit :; forge test --ffi --match-path "src/test/unit/**/*.t.sol"
# Deployment
anvil :; anvil --fork-url $(MAINNET_RPC_URL) --auto-impersonate
deploy-anvil :; rm -rf scripts/*-local.json && npx hardhat run scripts/Deploy.js --network local --show-stack-traces
deploy-tenderly :; npx hardhat run scripts/Deploy.js --network tenderly
deploy-arbitrum :; npx hardhat run scripts/Deploy.js --network arbitrum