Skip to content

feat(events): add typed event listeners for StreamCliffReached and StreamTopUpExtended - #1114

Open
aswadi wants to merge 1 commit into
conduit-protocol:mainfrom
aswadi:feat/typed-events-cliff-topup-1067
Open

aswadi wants to merge 1 commit into
conduit-protocol:mainfrom
aswadi:feat/typed-events-cliff-topup-1067

Conversation

@aswadi

@aswadi aswadi commented Nov 19, 2026

Copy link
Copy Markdown

Summary

  • Define StreamCliffReachedEvent, StreamTopUpExtendedEvent, StreamEventMap, and TypedStreamEventHandlers in src/events.ts.
  • Support decoding and dispatching StreamCliffReached (cliff_rch) and StreamTopUpExtended (topup_ext) in dispatchEvent, parseStreamEvent, and onStreamEvent.
  • Add unit tests in src/tests/events.test.ts verifying payload decoding and handler invocation.

Closes #1067

This branch has not been deployed

No deployments
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.

src/events.ts: add typed event listeners for StreamCliffReached and StreamTopUpExtended

1 participant