flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Docs] Add complete ContractError reference table with remediation steps to soroban-reference.md

Open blurbeast opened this issue 1 month ago • 4 comments

Overview

docs-site/docs/contracts/soroban-reference.md documents the Soroban stream contract functions, but does not include a complete table mapping numeric ContractError codes (#1 through #15) to their meaning and how to resolve them.

Problem

  • Developers encountering Error(Contract, #7) have to inspect the Rust source code in contracts/stream_contract/src/errors.rs to find out what went wrong.

Proposed Changes

  1. Read all variants and numeric codes from contracts/stream_contract/src/errors.rs.
  2. Add a Markdown reference table to docs-site/docs/contracts/soroban-reference.md listing: Code, Enum Variant, When Triggered, and How to Fix.

Acceptance Criteria

  • [ ] Every variant in errors.rs is documented with its exact numeric code.
  • [ ] Includes practical remediation advice for each error.
  • [ ] Renders cleanly in Docusaurus.

blurbeast avatar Oct 18 '26 05:10 blurbeast

@Awwal-dev34 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

I’d love to contribute to this! I’ve reviewed the issue and can work toward a clean implementation with proper testing.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Awwal-dev34 to this issue.

Awwal-dev34 avatar Oct 18 '26 11:10 Awwal-dev34

@greyforreal has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hello, please help assign this issues to me

ℹ️ Repo Maintainers: To accept this application, review their application or assign @greyforreal to this issue.

greyforreal avatar Oct 18 '26 11:10 greyforreal

Congratulations, @greyforreal! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

🧑‍💻 @greyforreal: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Oct 18 '26 11:10 drips-wave[bot]

This issue has been completed by @greyforreal as part of the Stellar Wave Program's 10th Wave 🥳

😎 @greyforreal: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Oct 18 '26 13:10 drips-wave[bot]