Skip to content

Add guestbook contract example#57

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

Add guestbook contract example#57
alexgduarte wants to merge 1 commit into
athena-consulting:mainfrom
alexgduarte:codex/guestbook-example

Conversation

@alexgduarte

Copy link
Copy Markdown

Summary

Adds an original simple-tier guestbook CosmWasm example.

The contract lets any address sign a guestbook with one current entry, update that entry by signing again, remove its own entry, and query entries with pagination. The owner can update the title/message limit, transfer ownership, and remove any entry.

What is included

  • guestbook contract with instantiate, execute, query, state, and error modules
  • README with example instantiate/execute/query messages
  • Root README link under the introduction examples
  • Six unit tests covering config, signing/updating, validation, deletion rules, pagination, and ownership transfer

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