Skip to content
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

Merged
merged 17 commits into from
Apr 26, 2024
Merged

[EVM] Optimize event data #5779

merged 17 commits into from
Apr 26, 2024

Conversation

devbugging
Copy link
Contributor

@devbugging devbugging commented Apr 25, 2024

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 to payload (still contains the same data)
  • transactionHash renamed to hash
  • transactionType renamed to type
  • deployedContractAddress renamed to contractAddress
  • vmError renamed to error and now it only contains the error code not the description
  • failed field removed (error field can be used to detect failure)
  • index field was added, which determines the transaction index in block

On the block event a new field was added:

  • totalGasUsed which stores a sum of all the gas used by included transactions

Copy link
Collaborator

@m-Peter m-Peter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

Gregor G added 2 commits April 25, 2024 18:01
@codecov-commenter
Copy link

codecov-commenter commented Apr 25, 2024

Codecov Report

Attention: Patch coverage is 94.23077% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 55.70%. Comparing base (55bb6fe) to head (17430c7).

Files Patch % Lines
fvm/evm/types/block.go 0.00% 3 Missing ⚠️
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     
Flag Coverage Δ
unittests 55.70% <94.23%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@devbugging devbugging enabled auto-merge April 26, 2024 13:28
Copy link
Contributor

@janezpodhostnik janezpodhostnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice change

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 26, 2024
@devbugging devbugging added this pull request to the merge queue Apr 26, 2024
Merged via the queue into master with commit ed9f53f Apr 26, 2024
55 checks passed
@devbugging devbugging deleted the gregor/evm/event-field-tx branch April 26, 2024 17:55
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.

[Flow EVM] EVM block overhead optimization
5 participants