forked from oxen-io/eth-sn-contracts
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
39 lines (28 loc) · 1.08 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
.PHONY: build test clean deploy-sepolia deploy-local node
test:
#REPORT_GAS=true npx hardhat test
npx hardhat test --parallel --bail
build:
npx hardhat compile
node:
npx hardhat node --verbose
#anvil
analyze:
# NOTE: (Block) timestamp comparison warnings are ignored (typically
# vesting or contribution withdrawal delays). At most Arbitrum nodes can
# rewind time by up to 24 hours or, 1 hr into the future.
slither . \
--filter-paths node_modules\|contracts/test \
--exclude timestamp,naming-convention,assembly
fuzz:
echidna . --contract ServiceNodeContributionEchidnaTest --config echidna-local.config.yml
deploy-local:
npx hardhat run scripts/deploy-local-test.js --network localhost
deploy-local-devnet:
npx hardhat run scripts/deploy-local-devnet.js --network localhost
deploy-testnet:
npx hardhat run scripts/deploy-devnet.js --network arbitrumSepolia
otterscan:
docker run --rm -p 5100:80 --name otterscan --env ERIGON_URL="http://127.0.0.1:8545" otterscan/otterscan:latest
format-sol:
npx prettier --write --plugin=prettier-plugin-solidity 'contracts/**/*.sol'