Description
Bounded Vec of stream IDs per payer for simple UIs without indexer (cap e.g. 50).
Requirements and context
- Document overflow policy when cap exceeded.
- Gas implications.
Suggested execution
- Fork the repository and create a branch (example below).
- Implement the changes in the StreamPay-Contracts Soroban crate (
streampay-contracts).
- Keep the contract secure, tested, and documented; prefer small, reviewable diffs.
git checkout -b feature/payer-stream-index-capped
Implementation targets
lib.rs storage.
- Tests at cap.
Tests and validation
-
Add or extend contract tests for this scope.
-
Cover edge cases; paste summarized test output and security notes in the PR.
-
Run cargo test in StreamPay-Contracts.
-
Cover edge cases; capture test output and short security notes in the PR description.
Guidelines
- Target minimum 95% test coverage for touched contract code (or justify gaps explicitly).
- Clear documentation (rustdoc / project docs as specified).
- Timeframe: 96 hours from assignment.
Example commit message
feat(contracts): capped on-chain payer to stream id index
Description
Bounded Vec of stream IDs per payer for simple UIs without indexer (cap e.g. 50).
Requirements and context
Suggested execution
streampay-contracts).Implementation targets
lib.rsstorage.Tests and validation
Add or extend contract tests for this scope.
Cover edge cases; paste summarized test output and security notes in the PR.
Run
cargo testinStreamPay-Contracts.Cover edge cases; capture test output and short security notes in the PR description.
Guidelines
Example commit message