Skip to content

feat: implement batch_contribute for TreasuryContract - #17

Open
JHON12091986 wants to merge 17 commits into
coopfinance:mainfrom
JHON12091986:feat/issue-2-batch-contribute
Open

feat: implement batch_contribute for TreasuryContract#17
JHON12091986 wants to merge 17 commits into
coopfinance:mainfrom
JHON12091986:feat/issue-2-batch-contribute

Conversation

@JHON12091986

Copy link
Copy Markdown

Closes #2
/claim #2

Changes

  • Added batch_contribute function to TreasuryContract
  • Allows admin to process multiple member contributions in one transaction
  • Skips non-members with skipped_non_member event
  • Emits batch_contribution summary event
  • Includes member authorization for each transfer
  • Added comprehensive tests

Testing

  • ✅ Full batch: all members processed
  • ✅ Partial skip: non-members skipped
  • ✅ Empty batch: no changes
  • ✅ Unauthorized: non-admin rejected

All 29 tests passed.

Payment wallet (USDC on Ethereum): 0x46243c949f30280771c0675Bc8A16155A9B96e51

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.

[Contracts] Add batch_contribute function for multiple members in a single transaction

1 participant