Skip to content

feat(rules): add oversized event emission detection rule#446

Merged
mijinummi merged 1 commit into
MDTechLabs:mainfrom
AlphaTechini:main
Jun 2, 2026
Merged

feat(rules): add oversized event emission detection rule#446
mijinummi merged 1 commit into
MDTechLabs:mainfrom
AlphaTechini:main

Conversation

@AlphaTechini
Copy link
Copy Markdown
Contributor

Closes #360

Detects events with large payloads that increase transaction costs. Measures event payload sizes and suggests compact alternatives:

  • Replace strings/arrays with bytes32 hashes
  • Remove unnecessary indexed parameters
  • Split events with many parameters

Rule ID: oversized-events
Default threshold: 128 bytes with severity scaling (64/128/192/256)

Detects events with large payloads that increase transaction costs.
Measures event payload sizes and suggests compact alternatives:
- Replace strings/arrays with bytes32 hashes
- Remove unnecessary indexed parameters
- Split events with many parameters

Rule ID: oversized-events
Default threshold: 128 bytes with severity scaling (64/128/192/256)
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 2, 2026

@AlphaTechini 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! 🚀

Learn more about application limits

@mijinummi mijinummi merged commit cb6b14d into MDTechLabs:main Jun 2, 2026
4 of 6 checks passed
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.

Detect Large Event Payloads

2 participants