Proposal Details

Proposal #184

Passed

Proposal title

CronCat Mod Balances

Submit time

Deposit end time

Voting start time

Voting end time

Tally result

98.26%

Proposal #184 description

CronCat Module: Balances

The CronCat mod balances contract is a helpful abstraction that allows different kinds of balances (native, cw20, ibc\u2026) to be queried by CronCat. This is especially helpful when using the \if this then that\ aspect of CronCat, which is described in the task fields

queries
and
transforms
. You can read more about those fields at https://docs.cron.cat/docs/task-anatomy/#queries--transforms.

See https://docs.cron.cat/docs for more additional info.

Store WASM Code

Contract uploaded:

croncat_mod_balances.wasm

Source code: https://github.com/CronCats/cw-croncat/tree/main/contracts/mod-balances

Compile Instructions

CronCat consists of several smart contracts, utilizing cargo workspaces. Look in the project root for a

justfile
that contains several helper utilities.

To compile the canonical way:

docker run --rm -v \$(pwd)\:/code --mount type=volume,source=\$(basename \$(pwd)\)_cache\,target=/code/target --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry cosmwasm/workspace-optimizer:0.12.13

The above will take a while. \ud83d\ude3c

This results in the following checksum:

55d5a36be3d0da9b73e3b090c64f7d3967ba42ca5b82c2eeea836561ac23e971

Verify on-chain contract

starsd q gov proposal $ID --output json | jq -r '.content.wasm_byte_code' | base64 -d | gzip -dc | sha256sum

Verify locally

sha256sum artifacts/croncat_mod_balances.wasm

Hakuna matata.

Proposal #184 overview

Total votes
997
Voters
996
Total deposit
50,000 STARS