feat: add ISSUE-190 Soroban transaction event monitor example - #265
Merged
Dantama022 merged 1 commit intoAug 31, 2026
Merged
Conversation
- Add src/examples/190-soroban-transaction-event-monitor.ts - Validates transaction hash (64 hex chars) - Polls until terminal state with configurable interval/maxInterval/timeout - Retries on transient RPC failures without terminating - Retrieves contract events and diagnostic events by ledger window - Decodes ScVal topics and data with formatNativeValue (JSON-safe) - Groups events by contract and event type/name - Preserves raw XDR alongside decoded values - Handles no-event, failed tx, timeout, and unsupported ScVal cases - Supports JSON output via params.json or JSON_OUTPUT env var - Add tests/soroban-transaction-event-monitor.test.ts - Covers hash validation, polling, timeout, transient errors - Covers event parsing, topic/value decoding, grouping - Covers empty events, failed tx, JSON output - Covers runner registration and README documentation - Register example in src/runner/catalog.ts with rpcUrl/txHash prompts - Add entry to README example catalog
|
@Olisachukwuma1 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! 🚀 |
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.
Summary
Describe the changes introduced by this Pull Request.
Related Issue
Closes #250
Type of Change
Changes Made
Testing
npm run run-example <name>)npm run lint)npm run typecheck)CLI Output
Paste successful execution logs from your terminal here.