-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
33 lines (21 loc) · 1.12 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
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: install build; node --no-warnings scripts/deploy.js deploy-airdrop
mock-airdrop: install build; node --no-warnings scripts/deploy.js mock-airdrop
# ===== Utility Rules =================================================================================================
# Format the solidity code.
format:; forge fmt; npx prettier --write .
# Update forge dependencies.
update:; forge update