-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
65 lines (47 loc) · 1.7 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
62
63
64
65
# Each major sub-repository in this monorepo has their own Makefiles;
# instead of making an even more compilicated common one, let's delegate to them.
default:
cd contracts && make gen
cargo build --locked --release
./target/release/ipc-cli --version
./target/release/fendermint --version
SUBTREES_RUST := fendermint ipc ipld/resolver recall
SUBTREES_CONTRACTS := contracts
SUBTREES_ALL := $(SUBTREES_RUST) $(SUBTREES_CONTRACTS)
test: test-rust test-contracts
test-rust: $(patsubst %, test/%, $(SUBTREES_RUST))
test-contracts: $(patsubst %, test/%, $(SUBTREES_CONTRACTS))
# Using `cd` instead of `-C` so $(PWD) is correct.
test/%:
cd $* && make test
lint/%:
cd $* && make lint || { echo "$* lint failed"; exit 1; }
license:
./scripts/add_license.sh
lint: license $(patsubst %, lint/%, $(SUBTREES_ALL))
## Recall
config-devnet:
PATH="./target/release:$(PATH)" \
./scripts/setup.sh
run-devnet-iroh:
cargo install iroh-cli --version 0.28.1
iroh --rpc-addr 127.0.0.1:4919 start
run-devnet-fendermint:
rm -rf ~/.fendermint/data/rocksdb
FM_NETWORK=test \
FM_TRACING__CONSOLE__LEVEL=info,fendermint=debug,recall_executor=debug \
FM_VALIDATOR_KEY__PATH=keys/validator.sk \
FM_VALIDATOR_KEY__KIND=regular \
FM_RESOLVER__CONNECTION__LISTEN_ADDR=/ip4/127.0.0.1/tcp/3001 \
./target/release/fendermint run --iroh-addr 127.0.0.1:4919
run-devnet-cometbft:
cometbft unsafe-reset-all
cometbft start
run-devnet-objects:
FM_NETWORK=test FM_OBJECTS__TRACING__CONSOLE__LEVEL=debug ./target/release/fendermint objects run
run-devnet-evm:
FM_ETH__TRACING__CONSOLE__LEVEL=debug ./target/release/fendermint eth run
run-localnet:
./scripts/deploy_subnet/deploy.sh localnet
stop-localnet:
./scripts/deploy_subnet/stop_local.sh