-
Notifications
You must be signed in to change notification settings - Fork 50
/
Makefile
26 lines (26 loc) · 1.85 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
all :; DAPP_LIBRARIES=' lib/dss-exec-lib/src/DssExecLib.sol:DssExecLib:$(shell cat DssExecLib.address)' \
DAPP_BUILD_OPTIMIZE=0 DAPP_BUILD_OPTIMIZE_RUNS=200 \
DAPP_REMAPPINGS=$$(cat remappings.txt) \
dapp --use solc:0.8.16 build
clean :; forge clean
# Usage example: make test match=SpellIsCast
test :; ./scripts/test-dssspell-forge.sh no-match="$(no-match)" match="$(match)" block="$(block)"
test-forge :; ./scripts/test-dssspell-forge.sh no-match="$(no-match)" match="$(match)" block="$(block)"
estimate :; ./scripts/estimate-deploy-gas.sh
deploy :; ./scripts/deploy.sh
deploy-info :; ./scripts/get-deploy-info.sh tx=$(tx)
verify :; ./scripts/verify.py DssSpell $(addr)
flatten :; forge flatten src/DssSpell.sol --output out/flat.sol
diff-deployed-spell :; ./scripts/diff-deployed-dssspell.sh $(spell)
check-deployed-spell :; ./scripts/check-deployed-dssspell.sh
cast-on-tenderly :; cd ./scripts/cast-on-tenderly/ && npm i && npm start -- $(spell); cd -
archive-spell :; ./scripts/archive-dssspell.sh "$(if $(date),$(date),$(shell date +'%Y-%m-%d'))"
diff-archive-spell :; ./scripts/diff-archive-dssspell.sh "$(if $(date),$(date),$(shell date +'%Y-%m-%d'))"
feed :; ./scripts/check-oracle-feed.sh $(pip)
feed-lp :; ./scripts/check-oracle-feed-lp.sh $(pip)
wards :; ./scripts/wards.sh $(target)
time :; ./scripts/time.py date="$(date)" stamp="$(stamp)"
exec-hash :; ./scripts/hash-exec-copy.py date="$(date)"
opt-cost :; ./scripts/get-opt-relay-cost.sh $(spell)
arb-cost :; ./scripts/get-arb-relay-cost.sh $(spell)
rates :; ./scripts/rates.sh $(pct)