generated from smartcontractkit/foundry-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (27 loc) · 975 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
-include .env
.PHONY: all test clean install compile snapshot
all: clean install test
# Clean the repo
clean :; forge clean
# Local installation
install :; npm i && npx husky install
# CI installation
install-ci :; touch .env; npm ci
# Update Dependencies
forge-update:; forge update
compile :; npx hardhat compile
test :; forge test -vvv; npx hardhat test
snapshot :; forge snapshot
format :; forge fmt src/; forge fmt test/
lint :; npx solhint src/**/*.sol
node :; npx hardhat node
network?=hardhat
deploy :; npx hardhat --network $(network) deploy-bundle
amount?=1
oracle?=Oracle
refund :; npx hardhat --network $(network) refund --amount $(amount) --oracle $(oracle)
onRegister :; npx hardhat --network $(network) onRegister --id $(id) --oracle $(oracle)
eth?=0.001
trade-demo :; npx hardhat --network $(network) demo:trade --amount $(eth)
migrate-demo :; npx hardhat --network $(network) demo:migrate
-include ${FCT_PLUGIN_PATH}/makefile-external