stargaze

Prop 180: CronCat Manager

CronCat Manager

The CronCat manager is a somewhat central contract in the factory architecture. This is the contract that will store and manage task funds, refunds, etc. It is also the contract that gets called by the agents when it's time to fulfill tasks.

There's a smooth interplay between the manager and the agents and tasks contract, where these contracts habitually query and execute methods with one another.

See https://docs.cron.cat/docs/contracts-manager for more info.

## Store WASM Code

Contract uploaded: croncat_manager.wasm

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

## 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 />229f1a91efdac64ce3271aa7d868baa85d7589521b9a9c0f9e816b13cb2bd049<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_manager.wasm<br />

Hakuna matata.