-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathMakefile
61 lines (40 loc) · 1.1 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Submodule management
install:
@git submodule update --init --recursive
update:
@forge update
# Build and test
profile ?=default
build:
@FOUNDRY_PROFILE=production forge build
test:
forge test
e2e:
./test.sh -d tests/e2e -p $(profile)
fuzz:
./test.sh -d tests/fuzz -p $(profile)
integration:
./test.sh -d tests/integration -p $(profile)
strategies:
./test.sh -d tests/integration/strategies -p $(profile)
invariant:
./test.sh -d tests/invariants -p $(profile)
protocol-upgrade:
./test.sh -d tests/protocol-upgrade -p $(profile)
scenario:
./scenarios.sh
deploy:
./deploy.sh
# Utility
validate:
forge script Validate$(step) -vvv --rpc-url $(ETH_RPC_URL)
validateLocal:
forge script Validate$(step) --rpc-url "http://localhost:8545"
doLocal:
forge script Do$(step) --rpc-url "http://localhost:8545" --broadcast --unlocked
deal:
curl http://localhost:8545 -X POST -H "Content-Type: application/json" --data "{\"method\":\"anvil_setBalance\",\"params\":[\"$(to)\", \"0x021e19e0c9bab2400000\"],\"id\":1,\"jsonrpc\":\"2.0\"}"
clean:
@forge clean
slither-files:
@scripts/generate-slither-files.sh