-
Notifications
You must be signed in to change notification settings - Fork 562
Allow evm to call native modules through logs #417
Conversation
Codecov Report
@@ Coverage Diff @@
## main #417 +/- ##
==========================================
+ Coverage 50.41% 50.53% +0.12%
==========================================
Files 57 58 +1
Lines 5465 5495 +30
==========================================
+ Hits 2755 2777 +22
- Misses 2594 2600 +6
- Partials 116 118 +2
|
@yihuang let's create an ADR for this that leverages Hooks. See the governance hooks for reference |
3c1652c
to
b7cfc57
Compare
b7cfc57
to
fef8a69
Compare
da83805
to
e6b5d10
Compare
✔️ Deploy Preview for stoic-ritchie-0f4a47 ready! 🔨 Explore the source changes: 87130edb959b8f1f469814c44b70c30a53b79b3d 🔍 Inspect the deploy log: https://app.netlify.com/sites/stoic-ritchie-0f4a47/deploys/6113fe699f783100085b611c 😎 Browse the preview: https://deploy-preview-417--stoic-ritchie-0f4a47.netlify.app |
87130ed
to
ff32ae9
Compare
Visit https://dashboard.github.orijtech.com?back=0&pr=417&remote=true&repo=yihuang%2Fethermint to see benchmark details. |
Closes #416 comment add txHash parameter review suggestions add hooks test
ff32ae9
to
9f8f0dd
Compare
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.
Final pass. Great work! Can you also add a new Features
entry on the Changelog? 🙏
x/evm/types/interfaces.go
Outdated
|
||
// EvmHooks event hooks for evm tx processing | ||
type EvmHooks interface { | ||
// Must be called after tx is processed, if failed, the whole evm transaction is reverted. |
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.
Add the warning that we discussed in the Negative
consequences section of the ADR
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.
Actually, that negative consequence is about the use case of utilizing the hook to process logs, not about the hook interface in general.
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 added the use case context to consequences in the ADR.
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
changelog added. |
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.
ACK 💯
Closes #416
Description
EvmHooks
, currently only single apiPostTxProcessing
.BankSendHook
which can send native coins, but not enabled in app by default.For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)