forked from nervosnetwork/force-bridge-btc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
21 lines (16 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
schema:
moleculec --language rust --schema-file contracts/toCKB-typescript/src/utils/types/schemas/basic.mol > contracts/toCKB-typescript/src/utils/types/generated/basic.rs
moleculec --language rust --schema-file contracts/toCKB-typescript/src/utils/types/schemas/toCKB_cell_data.mol > contracts/toCKB-typescript/src/utils/types/generated/toCKB_cell_data.rs
moleculec --language rust --schema-file contracts/toCKB-typescript/src/utils/types/schemas/btc_difficulty.mol > contracts/toCKB-typescript/src/utils/types/generated/btc_difficulty.rs
moleculec --language rust --schema-file contracts/toCKB-typescript/src/utils/types/schemas/mint_xt_witness.mol > contracts/toCKB-typescript/src/utils/types/generated/mint_xt_witness.rs
cp contracts/toCKB-typescript/src/utils/types/generated/*.rs tests/src/toCKB_typescript/utils/types/generated
fmt:
cd contracts/toCKB-typescript && cargo fmt --all
cd contracts/toCKB-lockscript && cargo fmt --all
cd tests && cargo fmt --all
build:
capsule build
test:
capsule test
ci: fmt build test
.PHONY: fmt build test ci schema