Skip to content

docs: add glossary of PayStream and Stellar terms#2

Open
devSoniia wants to merge 24 commits into
mainfrom
feat/glossary-93
Open

docs: add glossary of PayStream and Stellar terms#2
devSoniia wants to merge 24 commits into
mainfrom
feat/glossary-93

Conversation

@devSoniia
Copy link
Copy Markdown
Owner

Summary

Creates docs/glossary.md to satisfy all acceptance criteria for Vera3289#93.

Changes

  • 30+ terms defined — stream, claimable, rate_per_second, stop_time, deposit, withdrawn, Soroban, SEP-41, SAC, ledger, stroops, escrow, admin nonce, fee_bps, fee recipient, persistent/instance/temporary storage, reentrancy, and more
  • Written to be accessible to developers unfamiliar with Stellar
  • Linked from docs/api-reference.md with a callout at the top

Checklist

  • At least 20 terms defined (30+ included)
  • Terms linked from relevant docs (api-reference.md)
  • Accessible to non-Stellar developers

Closes Vera3289#93

Gloriachinedu and others added 24 commits April 25, 2026 04:36
…289#63)

- Add ERR_SAME_PARTY (E010) constant to types.rs for consistent error codes
- Use ERR_SAME_PARTY in validate_create_stream() instead of inline string
- Update test to match new error code prefix
- Pre-deployment checklist (tests, keys, audit, XLM balance)
- Step-by-step deploy commands for token and stream contracts
- Post-deploy verification steps
- Rollback procedure: pause+upgrade or revert to previous WASM
- Connect wallet via Freighter
- Create stream, withdraw, query state with TypeScript examples
- Error handling with PayStream error codes
- examples/javascript/stream.js — create stream, query state (Node.js)
- examples/python/stream.py — create stream, query state (stellar-sdk)
- examples/rust/stream.rs — create stream, query claimable (off-chain client)
- examples/README.md — setup instructions and links
- README.md — link examples/ and docs/integration/frontend.md
Closes Vera3289#101 — TypeScript SDK (sdk/ package)
Closes Vera3289#102 — Freighter wallet integration
Closes Vera3289#103 — Demo React app
Closes Vera3289#104 — pollClaimable utility

- sdk/: PayStreamClient wrapping all 10 contract functions with full
  TypeScript types; read-only calls via simulateTransaction, mutating
  calls return unsigned XDR for caller to sign and submit
- sdk/src/freighter.ts: connectFreighter, getFreighterPublicKey,
  freighterSignTransaction, isFreighterConnected helpers; throws
  FreighterNotInstalledError with install link when extension absent
- sdk/src/poll.ts: pollClaimable(client, streamId, intervalMs, cb)
  polls claimable() at a configurable interval, stops on unsubscribe,
  handles network errors gracefully
- demo/: Vite + React app connecting to testnet; connect wallet,
  create stream, load stream by ID, live claimable balance (5 s poll),
  withdraw button for employee
- 30+ terms defined covering streams, storage, Soroban, SEP-41, fees, etc.
- Accessible to developers unfamiliar with Stellar
- Linked from docs/api-reference.md

Closes Vera3289#93
Audits all DataKey and TokenDataKey variants across both contracts.
No PII found. Documents methodology, findings, and recommendations.

Closes Vera3289#67
feat: TypeScript SDK, Freighter wallet, pollClaimable, and demo app
…ema-docs

Issue Vera3289#87: add event schema reference documentation
…-audit

Issue Vera3289#75: Fund-lock audit and recovery regression test
…ce-docs

Issue Vera3289#97: add performance benchmark documentation
feat: add SDK usage examples in JS, Python, and Rust (Vera3289#95)
…ntegration

docs: add frontend integration guide for JS/TS (Vera3289#91)
…-employee

fix: reject stream creation when employer == employee (Vera3289#63)
- Add FeeBps and FeeRecipient variants to DataKey enum
- Add PendingAdmin to DataKey (was missing, used by storage.rs)
- Add get/set_fee_bps and get/set_fee_recipient storage helpers
- Add set_protocol_fee admin function (0-100 bps, E011 if exceeded)
- Deduct fee from withdrawal amount; send to fee_recipient
- Fee of 0 disables the mechanism entirely
- Fix broken use statement in test.rs and add missing imports
- Add 5 tests: no fee default, 1% fee deduction, disable fee,
  above-max rejected (E011), non-admin rejected, 0.5% rounding

Closes Vera3289#125
docs: storage audit — no PII in contract storage
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 glossary of PayStream and Stellar terms

5 participants