-
Notifications
You must be signed in to change notification settings - Fork 70
/
Makefile
116 lines (87 loc) · 3.22 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
.PHONY: check
check: githooks
SKIP_WASM_BUILD= cargo check --features with-metaverse-runtime
.PHONY: check-pioneer
check-pioneer: githooks
SKIP_WASM_BUILD= cargo check --features with-pioneer-runtime
.PHONY: check-continuum
check-continuum: githooks
SKIP_WASM_BUILD= cargo check --features with-continuum-runtime
.PHONY: check-all
check-all: githooks
SKIP_WASM_BUILD= cargo check --features with-pioneer-runtime,with-metaverse-runtime
.PHONY: check-debug
check-debug:
RUSTFLAGS="-Z macro-backtrace" SKIP_WASM_BUILD= cargo +nightly check --features with-metaverse-runtime
.PHONY: check-formatting
check-formatting:
cargo fmt --all -- --check
.PHONY: test
test:
SKIP_WASM_BUILD= cargo test --all --features with-pioneer-runtime,with-metaverse-runtime
.PHONY: test-pioneer
test-pioneer:
SKIP_WASM_BUILD= cargo test --all --features with-pioneer-runtime
.PHONY: test-precompiles
test-precompiles:
SKIP_WASM_BUILD= cargo test --all --features with-pioneer-runtime,with-precompile-tests
.PHONY: run
run:
cargo run --release -- --dev --tmp -lruntime=debug
.PHONY: build
build:
cargo build --release --features with-metaverse-runtime
.PHONY: build-pioneer
build-pioneer:
cargo build --release --features with-pioneer-runtime
.PHONY: build-continuum
build-continuum:
cargo build --release --features with-continuum-runtime
.PHONY: build-benchmarking
build-benchmarking:
cargo build --release --features runtime-benchmarks
.PHONY: build-docker
build-docker:
./scripts/docker_run.sh
.PHONY: build-docker-pioneer
build-docker-pioneer:
./scripts/docker_build_pioneer.sh
.PHONY: run-dev
run-dev:
./target/release/metaverse-node purge-chain --dev
./target/release/metaverse-node --dev --tmp --alice --node-key 0000000000000000000000000000000000000000000000000000000000000001 -lruntime=debug
.PHONY: run-bob-dev
run-bob-dev:
./target/release/metaverse-node --dev --tmp --bob --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp -lruntime=debug
.PHONY: spawn-zombienet-basic
spawn-zombienet-basic:
./scripts/zombienet/zombienet.sh spawn_basic
.PHONY: spawn-zombienet-metaverse
spawn-zombienet-metaverse:
./scripts/zombienet/zombienet.sh spawn_metaverse
.PHONY: spawn-zombienet-pioneer
spawn-zombienet-pioneer:
./scripts/zombienet/zombienet.sh spawn_pioneer
.PHONY: install-chopsticks
install-chopsticks:
npm i -g @acala-network/chopsticks@latest
.PHONY: run-chopsticks-pioneer
run-chopsticks-pioneer:
npx @acala-network/chopsticks --config=scripts/chopsticks/chopsticks_pioneer.yml
.PHONY: run-chopsticks-pioneer-xcm
run-chopsticks-pioneer-xcm:
npx @acala-network/chopsticks xcm -r kusama -p statemine -p scripts/chopsticks/chopsticks_pioneer.yml
.PHONY: get-default-substrate-address
get-default-substrate-address:
cd ./scripts/evm-tools && npm i && node get_default_substrate_address.js $(EVM_ADDRESS) $(PREFIX)
.PHONY: check-missing-std-dependencies
check-missing-std-dependencies:
cargo install subalfred && ./scripts/subalfred-check.sh "benchmarking|frame-try-runtime|frame-std"
GITHOOKS_SRC = $(wildcard githooks/*)
GITHOOKS_DEST = $(patsubst githooks/%, .git/hooks/%, $(GITHOOKS_SRC))
.git/hooks:
mkdir .git/hooks
.git/hooks/%: githooks/%
cp $^ $@
.PHONY: githooks
githooks: .git/hooks $(GITHOOKS_DEST)