-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EVM] Optimize event data #5779
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
# Conflicts: # fvm/evm/types/events.go
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5779 +/- ##
==========================================
+ Coverage 55.67% 55.70% +0.02%
==========================================
Files 1094 1094
Lines 85576 85571 -5
==========================================
+ Hits 47648 47669 +21
+ Misses 33321 33296 -25
+ Partials 4607 4606 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
# Conflicts: # fvm/evm/handler/handler.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice change
Closes: #5504 #5760 #5628
Change and optimize transaction event data emitted as well as refactor some of the code.
💔 API Breaking Change
There were several breaking changes made in the transaction event fields:
transaction
field renamed topayload
(still contains the same data)transactionHash
renamed tohash
transactionType
renamed totype
deployedContractAddress
renamed tocontractAddress
vmError
renamed toerror
and now it only contains the error code not the descriptionfailed
field removed (error field can be used to detect failure)index
field was added, which determines the transaction index in blockOn the block event a new field was added:
totalGasUsed
which stores a sum of all the gas used by included transactions