Skip to content

Commit

Permalink
Update justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ismellike committed Dec 18, 2024
1 parent aaad88b commit e0f5366
Showing 1 changed file with 25 additions and 11 deletions.
36 changes: 25 additions & 11 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@ check:

download-deps:
mkdir -p artifacts target
wget https://github.com/CosmWasm/cw-plus/releases/latest/download/cw20_base.wasm -O artifacts/cw20_base.wasm
wget https://github.com/CosmWasm/cw-plus/releases/latest/download/cw4_group.wasm -O artifacts/cw4_group.wasm
wget https://github.com/CosmWasm/cw-nfts/releases/latest/download/cw721_base.wasm -O artifacts/cw721_base.wasm
wget https://github.com/DA0-DA0/dao-contracts/releases/latest/download/dao_dao_core.wasm -O artifacts/dao_dao_core.wasm
wget https://github.com/DA0-DA0/dao-contracts/releases/latest/download/dao_proposal_sudo.wasm -O artifacts/dao_proposal_sudo.wasm
wget https://github.com/DA0-DA0/dao-contracts/releases/latest/download/dao_proposal_single.wasm -O artifacts/dao_proposal_single.wasm
wget "https://github.com/CosmWasm/cw-plus/releases/latest/download/cw20_base.wasm" -O artifacts/cw20_base.wasm
wget "https://github.com/CosmWasm/cw-plus/releases/latest/download/cw4_group.wasm" -O artifacts/cw4_group.wasm
wget "https://github.com/CosmWasm/cw-nfts/releases/latest/download/cw721_base.wasm" -O artifacts/cw721_base.wasm
wget "https://github.com/DA0-DA0/dao-contracts/releases/latest/download/dao_dao_core.wasm" -O artifacts/dao_dao_core.wasm
wget "https://github.com/DA0-DA0/dao-contracts/releases/latest/download/dao_proposal_sudo.wasm" -O artifacts/dao_proposal_sudo.wasm
wget "https://github.com/DA0-DA0/dao-contracts/releases/latest/download/dao_proposal_single.wasm" -O artifacts/dao_proposal_single.wasm

test:
cargo test

ci:
just check
just test

udeps:
cargo +nightly udeps

Expand All @@ -22,13 +26,23 @@ optimize:
-v "$(pwd)":/code \
--mount type=volume,source=arena_cache,target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/optimizer:0.16.1
"$DOCKER_OPTIMIZER"

schema:
./scripts/schema.sh

deploy_testnet:
cargo run --bin scripts -- deploy testnet all
deploy network target:
cargo run --bin scripts -- deploy {{network}} {{target}}

deploy_mainnet:
cargo run --bin scripts -- deploy mainnet all
help:
@echo "Available tasks:"
@echo " check Run formatting and lint checks"
@echo " download-deps Download dependency WASM files"
@echo " test Run tests"
@echo " udeps Check for unused dependencies"
@echo " optimize Optimize WASM files using Docker"
@echo " schema Generate JSON schemas"
@echo " deploy Deploy contracts"
@echo " usage: just deploy <network> <target>"
@echo " network: testnet or mainnet"
@echo " target: all or specific contract name"

0 comments on commit e0f5366

Please sign in to comment.