Skip to content

Feature/canonical cw3 cw4 step1 #4293

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Draft
wants to merge 2 commits into
base: feature/delayed-dkg-start
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "cw-plus"]
path = cw-plus
url = git@github.com:CosmWasm/cw-plus.git
18 changes: 17 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,23 @@ CONTRACTS=vesting_contract mixnet_contract nym_service_provider_directory nym_na
CONTRACTS_WASM=$(addsuffix .wasm, $(CONTRACTS))
CONTRACTS_OUT_DIR=contracts/target/wasm32-unknown-unknown/release

contracts: build-release-contracts wasm-opt-contracts
contracts: build-release-contracts wasm-opt-contracts canonical-multisig

canonical-multisig: prepare-cw-plus build-cw3 build-cw4 opt-cw3 opt-cw4
prepare-cw-plus:
git -C cw-plus fetch
# make sure to use correct version
git -C cw-plus reset --hard v1.0.0

build-cw3:
RUSTFLAGS='-C link-arg=-s' cargo build --manifest-path cw-plus/contracts/cw3-flex-multisig/Cargo.toml --release --lib --target wasm32-unknown-unknown
build-cw4:
RUSTFLAGS='-C link-arg=-s' cargo build --manifest-path cw-plus/contracts/cw4-group/Cargo.toml --release --lib --target wasm32-unknown-unknown

opt-cw3:
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
opt-cw4:
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

wasm-opt-contracts:
for contract in $(CONTRACTS_WASM); do \
Expand Down
1 change: 1 addition & 0 deletions cw-plus
Submodule cw-plus added at 1a598f