Comprehensive documentation for all public contract methods, including arguments, authorization requirements, runnable soroban contract invoke examples (local network), and expected events.
- MyFans Main (contract/src/lib.rs)
- Content Access
- Creator Deposits
- Content Likes
- Creator Registry
- Creator Earnings
- Earnings
- Subscription
- MyFans Token
- Treasury Contracts
- Treasury src
All public contract methods documented with args, auth, examples, events. Examples runnable via --dry-run.
Examples assume local deployment (contract/deployed-local.json). Replace:
<CONTRACT_ID>: Contract address fromdeployed-local.json<TOKEN_ID>: Token contract ID- Addresses/IDs with test values.
Run: soroban contract invoke --network local --source registry --wasm path/to/target.wasm --dry-run to validate.
To ensure contract interface docs stay linked to code, run:
npm run check:interfaces(validates alldocs/interfaces/*.mdmethod tables against referencedcontracts/**/src/lib.rsfiles)npm run test:interfaces(parser/unit tests for the drift check)
The release checklist (npm run release-check) now includes the interface drift check.