-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjustfile
34 lines (31 loc) · 1.3 KB
/
justfile
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
# Build all wasm using cosmwasm/optimizer:0.15.1 docker image
build-optimize:
@echo "Compiling optimized wasm..."
docker run --rm -t -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/optimizer:0.15.1
# Run cargo fmt and clippy checks
lint:
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
# Generate JSON schema files for all contracts in the project in a directory named `schemas`
generate-schemas:
mkdir -p schemas
@echo "Generating JSON schema files for ics02-client..."
cargo run --bin ics02_schema
cp schema/cw-ibc-lite-ics02-client.json schemas/
@echo "Generating JSON schema files for ics07-tendermint..."
cargo run --bin ics07_schema
cp schema/cw-ibc-lite-ics07-tendermint.json schemas/
@echo "Generating JSON schema files for ics26-router..."
cargo run --bin ics26_schema
cp schema/cw-ibc-lite-ics26-router.json schemas/
@echo "Generating JSON schema files for ics20-transfer..."
cargo run --bin ics20_schema
cp schema/cw-ibc-lite-ics20-transfer.json schemas/
rm -r schema
# Run the e2e tests
e2e-test testname:
@echo "Running {{testname}} test..."
cd e2e/interchaintestv8 && go test -v -run={{testname}}