-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
30 lines (16 loc) · 814 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
25
26
27
28
29
30
# Setups
install :; git submodule update --init --recursive
# Linting and Formatting
lint :; solhint ./src/* ./scripts/forge/* # Solhint from Protofire: https://github.com/protofire/solhint
# Coverage https://github.com/linux-test-project/lcov (brew install lcov)
cover :; forge coverage --rpc-url ${rpc} --report lcov && genhtml lcov.info --branch-coverage --output-dir coverage
show :; npx http-server ./coverage
# Utilities
clean :; forge clean
# Testing
ci-test :; forge test --rpc-url ${rpc} --summary --detailed --gas-report
# Build and Deploy
build :; forge build
deploy-protocol :; forge script script/DeployYieldNest.s.sol:DeployYieldNest --rpc-url ${rpc} --broadcast --etherscan-api-key ${key} --verify
# Verify
verify-roles :; forge script script/Verify.s.sol --rpc-url ${rpc}