Skip to content

Add habit tracker contract example#62

Open
alexgduarte wants to merge 1 commit into
athena-consulting:mainfrom
alexgduarte:codex/habit-tracker-example
Open

Add habit tracker contract example#62
alexgduarte wants to merge 1 commit into
athena-consulting:mainfrom
alexgduarte:codex/habit-tracker-example

Conversation

@alexgduarte

Copy link
Copy Markdown

Summary

  • Adds a new habit-tracker simple contract example.
  • Stores one habit record per user address with current streak, best streak, total check-ins, last check-in height, and an optional short note.
  • Demonstrates block-height cooldowns, streak reset logic, owner-only config updates, self-reset, and paginated record queries.
  • Links the new example from the root README.

Validation

  • cargo fmt --manifest-path habit-tracker/Cargo.toml -- --check
  • cargo test --manifest-path habit-tracker/Cargo.toml --target-dir /private/tmp/codex-habit-tracker-target (8 passed)
  • git diff --check

Bounty / Authorship

This is an original simple-tier contract example for bounty issue #11.

I authored this contract for this repository. Contact: GitHub @alexgduarte; stablecoin payout details can be provided privately if accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant