-
Notifications
You must be signed in to change notification settings - Fork 80
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
Feat(exit precompile): Events for exit precompile calls. #288
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.
Great job! Thanks @birchmd !
@birchmd This should work for the frontend but I realized it would also be useful to filter by sender and token. Is it possible to include the |
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
However I agree with @paouvrard about using the extended version of the event.
Marking Request changes
to avoid overlooking that!
I don't think we can get the sender to include in the event. The issue is that the sender is two steps back in the call stack, not the previous step as with the lockup. This is because the flow is I can include the ERC-20 address though. I will replace the |
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.
I don't think we can get the sender to include in the event. The issue is that the sender is two steps back in the call stack, not the previous step as with the lockup.
I see
Understood, thanks @birchmd ! It shouldn't be a problem for erc20 because we can always filter with the burn event to get the sender. But for exits of |
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.
Looks great. No concerns here. Code quality and effort is excellent. Thanks.
Just FYI, these should only be staged to testnet first, followed by mainnet in next release. |
@paouvrard Yes, good point. Followed up in #292 |
* Exit precompiles create events * Do not filter out exit precompile events * Refactor exit precompiles test * Expand exit precompiles test to include looking at the generated event * Add test for exit to ethereum precompile * Include ERC-20 address in exit events
* Feat(exit precompile): Events for exit precompile calls. (#288) * Bump path-parse from 1.0.6 to 1.0.7 in /etc/eth-contracts (#229) * Include sender field in exit precompile events (#292) * Feat(tests): ecpair (#296) * Feat(tests): Uniswap V3 tests and benchmarks (#293) * Feat(tests): deploying the largest allowed contract (#294) * Fix(precompiles): Derive Default impl for PrecompileOutput (#295) * Feat(docs): Benchmark documentation (#298) Co-authored-by: Michael Birch <michael@aurora.dev> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Closes #245 (see that ticket for details)
@paouvrard mentioned that an explicit event for ERC-20 exit, was not required, but it seemed easy to me to include it now, so I did.
This PR includes new tests showing the events are created.