Getting Started
- Fork the repository: https://github.com/JointSave-org/Joint_Save
- Clone your fork:
git clone https://github.com/<your-username>/Joint_Save.git
cd Joint_Save
- 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:
- Overview — what it does and when to use it
- Deployment — how to deploy from WASM hash
- Functions table — Function Name | Parameters | Returns | Auth Required | Description
- Events table — Event Topic | Event Body | Emitted When
- Storage Keys — key, type, lifetime
- Error conditions — every
assert! message and what triggers it
- Example CLI invocations using
stellar contract invoke
Acceptance Criteria
Getting Started
Overview
smartcontract/README.mdis 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.mdor createdocs/contract-api.mdwith the following for each of the four contracts:assert!message and what triggers itstellar contract invokeAcceptance Criteria
env.events().publish(...)call documented in the events tableassert!documented in error conditionsREADME.mdandARCHITECTURE.mdlink to the new API reference