-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (28 loc) · 1012 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
-include .env
# setup
init-install:
forge install Openzeppelin/openzeppelin-contracts Openzeppelin/openzeppelin-contracts-upgradeable \
foundry-rs/forge-std smartcontractkit/chainlink uniswap/v2-core=Uniswap/v2-core uniswap/v2-periphery=Uniswap/v2-periphery uniswap/lib=Uniswap/solidity-lib
install:
forge install
run-node:
anvil --fork-url ${MAINNET_RPC_URL}
# tests
test-contracts-all:
forge test -vvvv
test-contracts-offline:
forge test --no-match-test testFork -vvvv
test-contracts-online:
forge test --match-test testFork -vvvv
# scripts
script-factory-local:
forge script script/UniswapV2TWAPFactory.s.sol:UniswapV2TWAPFactoryScript \
--fork-url http://localhost:8545 --verifier-url http://localhost:3000/api/verify --etherscan-api-key linkpool \
--broadcast --verify -vvvv
# docs
gen-docs:
forge doc
run-doc-server:
forge doc --serve --port 4000
clean:
remove :; rm -rf .gitmodules && rm -rf .git/modules/* && rm -rf lib && touch .gitmodules && git add . && git commit -m "modules"