Skip to content

Compact events#571

Open
theFirstCodeManiac wants to merge 13 commits into
Samuel1-ona:mainfrom
theFirstCodeManiac:compact-events
Open

Compact events#571
theFirstCodeManiac wants to merge 13 commits into
Samuel1-ona:mainfrom
theFirstCodeManiac:compact-events

Conversation

@theFirstCodeManiac

Copy link
Copy Markdown
Contributor

Closes #439

Pull Request

Summary

Optimized smart contract event payloads to reduce transaction costs by minimizing emitted data while preserving compatibility for downstream consumers.

Changes Made

  • Removed redundant fields from emitted events
  • Replaced full object data with lightweight identifier references where applicable
  • Updated event emission logic to use compact payloads
  • Preserved event structure required for existing indexers
  • Benchmarked gas usage before and after optimization for each affected event type

Testing

  • Verified all events emit the expected data using IDs instead of full objects
  • Confirmed existing indexers continue to process events correctly
  • Compared gas consumption before and after optimization
  • Executed existing unit and integration tests to ensure no regressions

Acceptance Criteria

  • Remove redundant fields from events
  • Use IDs instead of full objects in events
  • Measure gas savings per event type
  • Maintain backward compatibility for indexers

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.

Reduce event data size

1 participant