feat: implement EventEngine for Stellar network event monitoring and …#244
Merged
determined-001 merged 3 commits intodetermined-001:mainfrom May 1, 2026
Conversation
…stream management
|
Someone is attempting to deploy a commit to the determined's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Chrisbankz0 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! 🚀 |
…on, and a webhook registry service
Adds AccountCreatedEvent type and normalizeCreateAccount() with full field validation including created_at. Routes events to both funder and account watchers with passesFilter() applied independently to each.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#closes #72
Context
create_accountis the operation that funds a new Stellar account. Although it is semantically a payment, the Horizon API does not classify it as type: "payment". Because of this, the engine was previously dropping these records, causing problems for wallet onboarding flows that depend on detecting account creations.Changes Included
This PR introduces support for detecting and properly normalizing
create_accountevents.AccountEventTypeandAccountCreatedEventto the event-type union (NormalizedEvent) inpackages/pulse-core/src/index.ts.create_accountbranch withinEventEngine.tsnormalize(), which parses the record into anaccount.createdevent type containingfunder,account, andstarting_balancefields.route()method to correctly dispatchaccount.createdevents. The event is simultaneously emitted to any watcher subscribed to either the funder or the new account.packages/pulse-core/test/pulse-core.test.tsagainst a mockedcreate_accountoperation payload, ensuring strict normalization and routing assertions.Verification / Testing
pnpm installpnpm --filter @orbital/pulse-core testtest/pulse-core.test.tsshould pass, particularly the newly added block:describe("create_account → account.created").#closes