Skip to content

docs: document all 28 public contract functions, fix count from 12 - #621

Open
joshfatoye0011-bit wants to merge 2 commits into
FlowwStar:mainfrom
joshfatoye0011-bit:docs/issue-521-document-missing-api-functions
Open

docs: document all 28 public contract functions, fix count from 12#621
joshfatoye0011-bit wants to merge 2 commits into
FlowwStar:mainfrom
joshfatoye0011-bit:docs/issue-521-document-missing-api-functions

Conversation

@joshfatoye0011-bit

Copy link
Copy Markdown
Contributor

Closes #521\n\nDocuments 16 previously missing public functions in api-reference.md and README.md following the existing per-function pattern.\n\nNew functions: initialize, pause, unpause, upgrade, migrate, create_streams_batch, cleanup_stream, get_archived_sent_streams, get_archived_received_streams, update_stream_metadata, get_stream_metadata, set_delegate, remove_delegate, get_delegate, version, name.\n\nAlso fixes: bump_stream auth (no auth required), TTL FAQ (30 days not 6 months), max-duration FAQ (10-year cap), auth table, and type definitions.

…oses FlowwStar#521 The API reference and README both claimed the contract exposed 12 public functions. A grep of contracts/streaming/src/lib.rs shows 28. This commit documents the 16 previously undocumented functions following the existing per-function pattern (signature, params, authorization, preconditions, returns, behavior, example): Admin / lifecycle (5): initialize, pause, unpause, upgrade, migrate Core write (2 new): create_streams_batch, cleanup_stream Query (2 new): get_archived_sent_streams, get_archived_received_streams Metadata (2): update_stream_metadata, get_stream_metadata Delegation (3): set_delegate, remove_delegate, get_delegate Contract info (2): version, name Additional fixes: - bump_stream: corrected auth claim (no auth required, not sender-only) - README TTL FAQ: 30 days not 6 months (matches PERSISTENT_TTL_LEDGERS) - README max-duration FAQ: 10-year hard cap documented - Auth table in README expanded to all 17 write/admin operations - Type Definitions updated: Stream gains linear_amount + duration fields; CreateStreamInput and StreamMetadata interfaces added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the 14 missing functions to docs/api-reference.md

1 participant