Skip to content

Commit 06ced3b

Browse files
committed
building canonical cw3-flex-multisig and cw4-group contracts
1 parent 169f8f2 commit 06ced3b

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "cw-plus"]
2+
path = cw-plus
3+
url = [email protected]:CosmWasm/cw-plus.git

Makefile

+16
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,22 @@ CONTRACTS_OUT_DIR=contracts/target/wasm32-unknown-unknown/release
138138

139139
contracts: build-release-contracts wasm-opt-contracts
140140

141+
multisig: prepare-cw-plus build-cw3 build-cw4 opt-cw3 opt-cw4
142+
prepare-cw-plus:
143+
git -C cw-plus fetch
144+
# make sure to use correct version
145+
git -C cw-plus reset --hard v1.0.0
146+
147+
build-cw3:
148+
RUSTFLAGS='-C link-arg=-s' cargo build --manifest-path cw-plus/contracts/cw3-flex-multisig/Cargo.toml --release --lib --target wasm32-unknown-unknown
149+
build-cw4:
150+
RUSTFLAGS='-C link-arg=-s' cargo build --manifest-path cw-plus/contracts/cw4-group/Cargo.toml --release --lib --target wasm32-unknown-unknown
151+
152+
opt-cw3:
153+
wasm-opt --signext-lowering -Os cw-plus/target/wasm32-unknown-unknown/release/cw3_flex_multisig.wasm -o cw-plus/target/wasm32-unknown-unknown/release/cw3_flex_multisig.wasm
154+
opt-cw4:
155+
wasm-opt --signext-lowering -Os cw-plus/target/wasm32-unknown-unknown/release/cw4_group.wasm -o cw-plus/target/wasm32-unknown-unknown/release/cw4_group.wasm
156+
141157
wasm-opt-contracts:
142158
for contract in $(CONTRACTS_WASM); do \
143159
wasm-opt --signext-lowering -Os $(CONTRACTS_OUT_DIR)/$$contract -o $(CONTRACTS_OUT_DIR)/$$contract; \

cw-plus

Submodule cw-plus added at 1a598fd

0 commit comments

Comments
 (0)