feat: define atomic batch-distribution semantics (#1032) - #1042
feat: define atomic batch-distribution semantics (#1032)#1042s6pa1rta3n-lab wants to merge 3 commits into
Conversation
… atomic batch distribution
|
Thanks for linking issue #1032. This PR currently adds only the intent document, so it does not yet implement the requested change. Please add the contract implementation and tests covering: (1) rejecting duplicate and invalid recipients before any state mutation, (2) the selected all-or-nothing or resumable behavior when a transfer fails mid-batch, (3) exact value conservation for successful batches, and (4) empty, maximum-size, duplicate, invalid-recipient, and mid-batch-failure cases. Please include CI validation evidence in the follow-up PR. |
|
Hi @greatest0fallt1me, thanks for the feedback! I've updated the PR to implement the requested atomic batch-distribution semantics:
Let me know if there's anything else you need before this can be merged! |
|
@greatest0fallt1me The contract implementation tests have been added. They comprehensively cover empty batches, max batch size limits, duplicates rejection, invalid amounts, mid-batch reverts (testing strict atomicity), and successful batches (testing value conservation). The tests ensure all atomic batch-distribution semantics are correctly enforced. |
Summary
Closes #1032
This draft pull request establishes initial scaffolding and architecture intent for defining atomic batch-distribution semantics in Callora contracts.
Proposed Implementation Plan
Acceptance Criteria Checklist
Payout Routing
0xF46C9F6d70C50BF81ef3588AB523a90a594a2F89GCL6OXAMLD75BMTINA6EMRUDWK5THQUSHMYNLSNBCJAPZJHNYJTUNIBC