-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
30 lines (24 loc) · 1.59 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
.PHONY: toolchain
toolchain:
./s-node/scripts/init.sh
.PHONY: init
init:
make toolchain
git submodule update --init --recursive
.PHONY: build
build:
cd s-node && cargo build --manifest-path node/Cargo.toml --features runtime-benchmarks,with-ethereum-compatibility --release
.PHONY: tests
tests:
cd ./s-node/launchpad-crowdsales && cargo test --verbose
.PHONY: run
run:
cd s-node && RUST_BACKTRACE=1 cargo run --manifest-path node/Cargo.toml --features with-ethereum-compatibility -- --dev --tmp
.PHONY: benchmark
benchmark:
make benchmark-pallet
cd s-node && cargo run --release --features=runtime-benchmarks --features=with-ethereum-compatibility -- benchmark --chain=dev --steps=50 --repeat=20 '--pallet=*' '--extrinsic=*' --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/src/weights/
.PHONY: benchmark-pallet
benchmark-pallet:
cd s-node && cargo run --release --features=runtime-benchmarks --features=with-ethereum-compatibility -- benchmark --chain=dev --steps=50 --repeat=20 '--pallet=launchpad_crowdsales' '--extrinsic=*' --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/orml-weight-template.hbs --output=./launchpad-crowdsales/src/weights.rs
cd s-node && cargo run --release --features=runtime-benchmarks --features=with-ethereum-compatibility -- benchmark --chain=dev --steps=50 --repeat=20 '--pallet=launchpad_crowdsales' '--extrinsic=*' --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/orml-weight-template.hbs --output=../pallet/src/weights.rs