Skip to content

[Docs] Write complete smart contract API reference documentation #19

Description

@grantfox-oss

Getting Started

  1. Fork the repository: https://github.com/JointSave-org/Joint_Save
  2. Clone your fork:
   git clone https://github.com/<your-username>/Joint_Save.git
   cd Joint_Save
  1. Create a new branch:
   git checkout -b docs/smart-contract-api-reference

Overview

smartcontract/README.md is minimal. There is no complete API reference for the four contracts, making it difficult for developers to integrate with or build on top of JointSave.

Requirements

Expand smartcontract/README.md or create docs/contract-api.md with the following for each of the four contracts:

  1. Overview — what it does and when to use it
  2. Deployment — how to deploy from WASM hash
  3. Functions table — Function Name | Parameters | Returns | Auth Required | Description
  4. Events table — Event Topic | Event Body | Emitted When
  5. Storage Keys — key, type, lifetime
  6. Error conditions — every assert! message and what triggers it
  7. Example CLI invocations using stellar contract invoke

Acceptance Criteria

  • All 4 contracts fully documented
  • Every public function has an entry in the functions table
  • Every env.events().publish(...) call documented in the events table
  • Every assert! documented in error conditions
  • Example CLI invocations for common operations
  • README.md and ARCHITECTURE.md link to the new API reference

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSOfficial CampaignCampaign: Official CampaigndocumentationImprovements or additions to documentationgood first issueGood for newcomers

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions