-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
41 lines (25 loc) · 1.46 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
30
31
32
33
34
35
36
37
38
39
40
41
all: install build
# Install forge dependencies (not needed if submodules are already initialized).
install:; forge install && npm install
# Build contracts and inject the Poseidon library.
build:; forge build
# Run tests, with debug information and gas reports.
test:; FOUNDRY_PROFILE=debug forge test
# ===== Profiling Rules ===============================================================================================
# Benchmark the tests.
bench:; FOUNDRY_PROFILE=bench forge test --gas-report
# Snapshot the current test usages.
snapshot:; FOUNDRY_PROFILE=bench forge snapshot
# ===== Deployment Rules ==============================================================================================
# Deploy contracts
deploy-airdrop:; node --no-warnings script/deploy.js deploy-airdrop
deploy-airdrop-reservations:; node --no-warnings script/deploy.js deploy-airdrop-reservations
set-allowance-max:; node --no-warnings script/deploy.js set-allowance-max
set-allowance:; node --no-warnings script/deploy.js set-allowance
add-allowed-nullifier-hash-blocker:; node --no-warnings script/deploy.js add-allowed-nullifier-hash-blocker
deploy-wld-grant-pre-grant-4-new:; node --no-warnings script/deploy.js deploy-wld-grant-pre-grant-4-new
# ===== Utility Rules =================================================================================================
# Format the solidity code.
format:; forge fmt; npx prettier --write .
# Update forge dependencies.
update:; forge update