Skip to content

Add rating board contract example#59

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

Add rating board contract example#59
alexgduarte wants to merge 1 commit into
athena-consulting:mainfrom
alexgduarte:codex/rating-board-example

Conversation

@alexgduarte

Copy link
Copy Markdown

Summary

Adds an original simple-tier rating-board CosmWasm example.

The contract lets users create named items and lets each address rate each item once, with support for updating an existing rating. Aggregate totals are stored on the item, so average-rating queries do not scan every individual rating.

What is included

  • rating-board contract with instantiate, execute, query, state, and error modules
  • README with example instantiate/execute/query messages
  • Root README link under the introduction examples
  • Seven unit tests covering config, item creation, aggregate rating updates, invalid input, rating queries, item pagination, and owner-only config updates

Verification

  • cargo fmt
  • cargo test
  • git diff --check

Note: Cargo prints the same .cargo/config deprecation warning used by existing examples, but the tests pass.

Bounty / authorship

Related to #11 simple contract tier.

This is an original contract example authored for this PR. Contact for payout coordination: 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