-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### TL;DR Added event decoding functionality for Ethereum logs, enabling the parsing and interpretation of indexed and non-indexed event parameters. ### What changed? - Added `ConstructEventABI` function to parse event signatures into ABI format - Implemented log decoding functionality to handle both indexed and non-indexed event parameters - Created new `DecodedLog` and `DecodedLogData` structures to represent decoded event data - Enhanced log handlers to support automatic event decoding when a signature is provided - Added support for converting various data types (bytes, numerics) to hexadecimal format ### How to test? 1. Make a GET request to `/{chainId}/events/{contract}/{signature}` with a valid event signature 2. Verify that the response includes decoded event data with: - Event name and signature - Indexed parameters properly decoded - Non-indexed parameters converted to appropriate formats - All byte and numeric values properly converted to hex ### Why make this change? To improve the readability and usability of event log data by automatically decoding raw event parameters into their proper types and formats. This makes it easier for developers to work with and understand event data without having to manually decode the raw logs.
- Loading branch information
Showing
10 changed files
with
876 additions
and
99 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.