-
Notifications
You must be signed in to change notification settings - Fork 180
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] Emit events as Cadence events #5090
Conversation
fvm/environment/event_emitter.go
Outdated
@@ -39,14 +39,11 @@ func DefaultEventEmitterParams() EventEmitterParams { | |||
// with the runtime environment interface. | |||
type EventEmitter interface { | |||
// EmitEvent satisfies Cadence's runtime API. | |||
// This will encode the cadence event and call EmitRawEvent. | |||
// This will encode the cadence event and call emitRawEvent. |
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.
This comment is not needed anymore
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #5090 +/- ##
==========================================
+ Coverage 56.24% 56.65% +0.41%
==========================================
Files 977 656 -321
Lines 91105 66455 -24650
==========================================
- Hits 51238 37650 -13588
+ Misses 36062 25949 -10113
+ Partials 3805 2856 -949
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Closes: #5079
This PR implements converting EVM events into native Cadence events so the can be emitted and encoded using the same modules as other Flow events. This also benefits clients that already parse events in a certain way.
An example of event output now looks something like:
A follow-up PR will introduce special EVM event type ID. #5091