-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (48 loc) · 1.7 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
BUILDDIR ?= $(CURDIR)/build
STRIDE_HOME ?= $(CURDIR)/../stride
format:
cargo fmt
lint:
cargo clippy
.PHONY: build
build:
cargo wasm
build-debug:
cargo wasm-debug
build-optimized:
docker run --rm -v "$(CURDIR)":/code \
--mount type=volume,source="$(notdir $(CURDIR))_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/rust-optimizer:0.12.13
validate:
cosmwasm-check ./artifacts/st_scaling_factor.wasm
# Uploads the contract to osmosis
store-contract:
@STRIDE_HOME=$(STRIDE_HOME) bash scripts/store_contract.sh
# Instantiates the contract directly with the osmosis dockernet validator as the admin
instantiate-contract:
@STRIDE_HOME=$(STRIDE_HOME) bash scripts/instantiate_contract.sh
# Mint stuosmo from Stride
mint-sttoken:
@STRIDE_HOME=$(STRIDE_HOME) bash scripts/mint_sttoken.sh
# Create stuosmo/uosmo pool on Osmosis
create-pool:
@STRIDE_HOME=$(STRIDE_HOME) bash scripts/create_pool.sh
# Registers the stableswap pool in the oracle
register-pool:
@STRIDE_HOME=$(STRIDE_HOME) bash scripts/register_pool.sh
# Registers the stableswap pool in the oracle
query-pools:
@STRIDE_HOME=$(STRIDE_HOME) bash scripts/query_pools.sh
# Executes the update-scaling-factor tx in the contract
update-scaling-factor:
@STRIDE_HOME=$(STRIDE_HOME) bash scripts/update_scaling_factor.sh
# Adjust's the scaling factor directly by bypassing the query
sudo-adjust-scaling-factors:
@STRIDE_HOME=$(STRIDE_HOME) bash scripts/sudo_adjust_scaling_factors.sh
# Initializes the contract and creates the stToken pool
setup-dockernet:
@$(MAKE) store-contract && sleep 5
@$(MAKE) instantiate-contract && sleep 5
@$(MAKE) mint-sttoken && sleep 5
@$(MAKE) create-pool