Skip to content

feat: add support for claimable balance creation and claiming events …#259

Open
fathiaoyinloye wants to merge 1 commit intodetermined-001:mainfrom
fathiaoyinloye:Normalize_create_claimable_balance_and_claim_claimable_balance
Open

feat: add support for claimable balance creation and claiming events …#259
fathiaoyinloye wants to merge 1 commit intodetermined-001:mainfrom
fathiaoyinloye:Normalize_create_claimable_balance_and_claim_claimable_balance

Conversation

@fathiaoyinloye
Copy link
Copy Markdown

Linked issue
Closes #79

What changed and why
This PR implements support for Claimable Balance events (CLAIMABLE_BALANCE_CREATED and CLAIMABLE_BALANCE_CLAIMED) within the core Event Engine. These changes allow the engine to normalize asset-locking actions and route them effectively to relevant participants.

The implementation features a multi-claimant fan-out strategy: when a claimable balance is created with multiple potential claimants, the engine generates routing for all parties involved. It includes deduplication logic (via a Set) to prevent redundant event delivery in cases where a sponsor is also a listed claimant.

Test plan
[x] Existing tests pass (pnpm test)

[x] New tests added for new behaviour

[x] Typechecks pass (pnpm -r typecheck)

[ ] Manually tested against testnet / mainnet (describe what you tested)

Added 17 new tests in pulse-core.test.ts covering normalization, routing, fan-out, and validation. Total test suite: 29 passing tests.

Breaking changes
None

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 28, 2026

@fathiaoyinloye is attempting to deploy a commit to the determined's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 28, 2026

@fathiaoyinloye 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

@determined-001
Copy link
Copy Markdown
Owner

Thanks for the contribution! Merging now.

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.

1.19 — Normalize create_claimable_balance and claim_claimable_balance

2 participants