stargaze

Prop 174: CronCat Factory

CronCat Factory

The CronCat factory contract is a custom factory architecture that allows for \child\ CosmWasm contracts where new versions can be deployed.

The factory is controlled by a cw3 fixed multisig.

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

## Store WASM Code

Contract uploaded: croncat_factory.wasm

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

## 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:

sh<br />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<br />

The above will take a while. \ud83d\ude3c

This results in the following checksum:

<br />1664a842cd8f549e6eb6618a1115b7bbdbade6b2cb5ebbfa7aaf717223dcae1a<br />

## Verify on-chain contract

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

## Verify locally

sh<br />sha256sum artifacts/croncat_factory.wasm<br />

Be good to yourself.