-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (40 loc) · 1.3 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
BUILDDIR ?= $(CURDIR)/build
.PHONY: build
build:
cargo wasm
.PHONY: fmt
fmt:
cargo fmt
.PHONY: test
test:
cargo test
build-debug:
cargo wasm-debug
build-optimized: fmt build test
docker run --rm -v "$(CURDIR)":/code \
--mount type=volume,source="$(notdir $(CURDIR))_cache",target=/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/optimizer:0.15.0
# Uploads the contract to osmosis
store-contract:
bash tests/scripts/store_contract.sh
# Instantiates the contract
instantiate-contract:
bash tests/scripts/instantiate_contract.sh
# Execute liquid staking
liquid-stake:
bash tests/scripts/execute_liquid_stake.sh
# Execute ibc liquid staking with ica transfer out
ibc_liquid_stake_ica_transfer_out:
bash tests/scripts/ibc_liquid_stake_ica_transfer_out.sh
# Queries all metrics stored in the contract
query-all:
bash tests/scripts/query.sh
###############################################################################
### Interchain test ###
###############################################################################
# Executes IBC tests via interchaintest
ictest-ibc:
cd tests/interchaintest && \
go clean -testcache && \
go test -timeout=25m -race -v -run TestPersistenceGaiaIBCTransfer .