Skip to content

Publish a per-contract API reference with a shared error-code table #12

Description

@Meshmulla

Summary

The workspace has ~35 contracts but no unified reference for their public entry points or error codes. Contributors and integrators currently have to read each source file. A generated/curated API reference plus a shared error-code table would make the codebase far more approachable.

What we'd like

  • A per-contract reference listing each public function, its arguments, auth requirements, and emitted events
  • A single, shared error-code table so error values are unique and documented in one place
  • Links from the top-level README into these docs

Where to look

  • soroban/src/ — all contract modules and their error enums
  • soroban/docs/ — existing docs to extend rather than duplicate
  • soroban/TRUSTED_SOURCE_IMPLEMENTATION.md — a good example of the documentation style to match

Acceptance criteria

  • Each contract has a reference entry (functions, args, auth, events)
  • A consolidated ERRORS.md maps every error code to its meaning and originating contract
  • Error codes are verified to be unique across contracts (no collisions)
  • The README links to the reference and error table

Notes

Where possible, derive the docs from doc-comments (///) so they stay close to the code and easier to keep current.

Activity

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

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions