forked from pcaversaccio/hardhat-project-template-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (19 loc) · 729 Bytes
/
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
# include `.env` file and export its env vars
# (-include to ignore error if it does not exist)
-include .env
# dependencies
update :; forge update
# install proper solc version
solc :; nix-env -f https://github.com/dapphub/dapptools/archive/master.tar.gz -iA solc-static-versions.solc_0_8_19
# build & test
build :; forge build
build-optimised :; forge build --optimize
test-forge :; forge test
test-gasreport :; forge test --gas-report
trace :; forge test -vvv
clean :; forge clean
snapshot :; forge snapshot
# chmod scripts
scripts :; chmod +x ./scripts/*
# fork mainnet with Hardhat
mainnet-fork :; npx hardhat node --fork ${ETH_MAINNET_RPC_URL}