Skip to content

feat(contracts): expose batch settle max size#112

Merged
greatest0fallt1me merged 4 commits into
Streampay-Org:mainfrom
Samaro1:feature/batch-settle-streams
Apr 1, 2026
Merged

feat(contracts): expose batch settle max size#112
greatest0fallt1me merged 4 commits into
Streampay-Org:mainfrom
Samaro1:feature/batch-settle-streams

Conversation

@Samaro1
Copy link
Copy Markdown
Contributor

@Samaro1 Samaro1 commented Apr 1, 2026

Closes #31

Adds batch settlement support for multiple streams in one call.
Defines all-or-nothing behavior: if any stream id is invalid, the whole transaction reverts.
Enforces a max batch size to keep Soroban resource usage predictable.
Adds an on-chain getter for the batch size limit.
Includes tests for empty input, single stream, multiple streams, missing id, and batch size limit.
Validation:

Ran cargo test --manifest-path /home/devmaro/stream/StreamPay-Contracts/Cargo.toml
Result: 35 passed, 0 failed

@Samaro1
Copy link
Copy Markdown
Contributor Author

Samaro1 commented Apr 1, 2026

@greatest0fallt1me something is wrong with the CI code, the tests run cleanly on my end

Screenshot_2026-04-01_12-25-47

@greatest0fallt1me greatest0fallt1me merged commit e51bef9 into Streampay-Org:main Apr 1, 2026
0 of 4 checks passed
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.

Batch operations: settle multiple stream IDs in one transaction

2 participants