Skip to content

docs(course-registry): rewrite README to match actual API - #72

Open
Degentle12 wants to merge 1 commit into
Kqirox:mainfrom
Degentle12:issue-10-readme-rewrite
Open

docs(course-registry): rewrite README to match actual API#72
Degentle12 wants to merge 1 commit into
Kqirox:mainfrom
Degentle12:issue-10-readme-rewrite

Conversation

@Degentle12

Copy link
Copy Markdown

Problem

contracts/course-registry/README.md described an API contract that didn't match the actual code — stale function signatures, wrong event types, incorrect storage keys, and misleading security guidance.

Solution

Complete rewrite of the README covering:

  • All 16 public function signatures with parameters, return types, and panic conditions
  • 8 typed contract events with topics and data columns
  • Storage layout table with all DataKey::* variants (instance + persistent)
  • Auth model table showing who can call what
  • Cross-contract wiring (BadgeNFT, RewardPool)
  • Constants table and upgrade/migration docs

Closes #10

- Replace all stale function signatures with actual code-matched signatures
- Document all 16 public functions with params, returns, and panics
- Add event types table with topics and data columns
- Add storage layout table covering all DataKey variants
- Add auth model table showing who can call what
- Document cross-contract wiring (BadgeNFT, RewardPool)
- Add constants and versioning information

Closes Kqirox#10
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.

[10] course-registry README.md is severely out of date — describes an API that doesn't exist

1 participant