-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
20 lines (17 loc) · 901 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# include .env file and export its env vars
# (-include to ignore error if it does not exist)
-include .env
# deps
update:; forge update
# Build & test
build :; forge clean && forge build --optimize --optimizer-runs 1000000
test :; forge clean && forge test --optimize --optimizer-runs 1000000 -v
test-debug :; forge clean && forge test --optimize --optimizer-runs 1000000 -vv
test-trace :; forge clean && forge test --optimize --optimizer-runs 1000000 -vvv
gas-report :; forge clean && forge test --optimize --optimizer-runs 1000000 --gas-report
clean :; forge clean
snapshot :; forge clean && forge snapshot --optimize --optimizer-runs 1000000
# Hardhat
deploy-local :; npx hardhat run --network localhost scripts/deploy.local.ts
deploy-testnet :; npx hardhat run --network rinkeby scripts/deploy.testnet.ts
deploy-mainnet :; npx hardhat run --network localhost scripts/deploy.mainnet.ts