-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
67 lines (56 loc) · 1.45 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
network = devnet-native
.PHONY: build
build:
cargo build -r --features $(network)
.PHONY: build-tesnet
build-testnet:
cargo build -r --features testnet-native
.PHONY: test
test:
cargo test --workspace --release --features $(network)
.PHONY: check
check:
cargo check -r --features $(network)
.PHONY: run
run:
./target/release/gafi \
--tmp \
--dev \
--rpc-port 9944 \
--rpc-cors all \
--rpc-methods=Unsafe \
--rpc-external \
--execution Native
.PHONY: check-benchmark
check-benchmark:
cargo check --release --features runtime-benchmarks,$(network)
.PHONY: check-benchmark-game
check-benchmark-game:
cargo check --release -p pallet-game --features runtime-benchmarks,$(network)
.PHONY: benchmark
benchmark:
cargo build --release --features runtime-benchmarks,$(network)
.PHONY: clippy
clippy:
cargo clippy --release -- -D warnings
.PHONY: benchmark-game
benchmark-game:
./target/release/devnet-node benchmark pallet \
--chain dev \
--wasm-execution compiled \
--pallet pallet_game \
--extrinsic '*' \
--steps 20 \
--repeat 10 \
--output ./benchmarking/pallet-game/weights.rs
.PHONY: pallet-game-weights
pallet-game-weights:
./target/release/devnet-node benchmark pallet \
--chain dev \
--wasm-execution compiled \
--pallet pallet_game \
--extrinsic '*' \
--steps 50 \
--repeat 20 \
--output ./benchmarking/pallet-game/weights.rs \
--template .maintain/frame-weight-template.hbs