Skip to content

feat(contract): add batch_claim_inheritance_plan entry point - #1056

Closed
abikedaniel22 wants to merge 1 commit into
Fracverse:masterfrom
abikedaniel22:feat/batch-claim-inheritance-plan
Closed

feat(contract): add batch_claim_inheritance_plan entry point#1056
abikedaniel22 wants to merge 1 commit into
Fracverse:masterfrom
abikedaniel22:feat/batch-claim-inheritance-plan

Conversation

@abikedaniel22

Copy link
Copy Markdown

Implement batch_claim_inheritance_plan(env, plan_id, claimers, emails, claim_codes) in the Soroban inheritance contract.

  • Accepts parallel Vec, Vec, Vec inputs (one entry per beneficiary)
  • Validates all inputs atomically: length parity, MAX_BENEFICIARIES cap, pause/freeze/legal-hold checks, trigger state, per-claimer KYC and rate-limit, claim-code verification, frozen-beneficiary, vesting schedule, waterfall ordering, emergency cap and liquidity
  • Accumulates plan mutations in-memory across the batch before a single store_plan write, ensuring atomic rollback on any individual failure
  • Emits per-beneficiary CLAIM SUCCESS and F_PAYOUT events after all validations pass
  • Grants Role::Beneficiary to each successful claimer

Closes #1042

Implement batch_claim_inheritance_plan(env, plan_id, claimers, emails,
claim_codes) in the Soroban inheritance contract.

- Accepts parallel Vec<Address>, Vec<String>, Vec<u32> inputs (one
  entry per beneficiary)
- Validates all inputs atomically: length parity, MAX_BENEFICIARIES cap,
  pause/freeze/legal-hold checks, trigger state, per-claimer KYC and
  rate-limit, claim-code verification, frozen-beneficiary, vesting
  schedule, waterfall ordering, emergency cap and liquidity
- Accumulates plan mutations in-memory across the batch before a single
  store_plan write, ensuring atomic rollback on any individual failure
- Emits per-beneficiary CLAIM SUCCESS and F_PAYOUT events after all
  validations pass
- Grants Role::Beneficiary to each successful claimer

Closes Fracverse#1042
@drips-wave

drips-wave Bot commented Aug 26, 2026

Copy link
Copy Markdown

@abikedaniel22 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ONEONUORA ONEONUORA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GReat job @abikedaniel22

@ONEONUORA

Copy link
Copy Markdown
Contributor

@abikedaniel22
Run cargo fmt --all -- --check and clippy

@ONEONUORA

Copy link
Copy Markdown
Contributor

@abikedaniel22
Pls update on this pr

@ONEONUORA ONEONUORA closed this Aug 28, 2026
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.

contract: Implement Batch Claim Function for Multi-Beneficiary Inheritance Payouts

2 participants