-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (34 loc) · 999 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
.PHONY: install_anvil
install_anvil:
cargo install --git https://github.com/foundry-rs/foundry anvil \
--bin anvil \
--target-dir ./third_party/anvil/artifacts \
--root ./third_party/anvil
.PHONY: run_anvil_mainnet
run_anvil_mainnet:
./third_party/anvil/bin/anvil \
--fork-url https://mainnet.infura.io/v3/<your token> \
--fork-block-number 17572253 \
--auto-impersonate \
--gas-price 0 \
--base-fee 0 \
--chain-id 1 \
--gas-limit 30000000 \
--accounts 15 \
--balance 10000 \
--mnemonic "test test test test test test test test test test test junk" \
--config-out ./etc/anvil.json
.PHONY: run_anvil_goerly
run_anvil_goerly:
./third_party/anvil/bin/anvil \
--fork-url https://goerli.infura.io/v3/<your token> \
--fork-block-number 9720000
--auto-impersonate \
--gas-price 0 \
--base-fee 0 \
--chain-id 5 \
--gas-limit 30000000 \
--accounts 15 \
--balance 10000 \
--mnemonic "test test test test test test test test test test test junk" \
--config-out ./etc/anvil.json