Add token transfer/redeem events to the EVM token bridge #3376
Unanswered
kev1n-peters
asked this question in
Feature requests
Replies: 1 comment
|
For the time being it's sufficient to grab |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
As an integrator, I want the EVM token bridge to emit events when a token is transferred with details about the token being transferred. It would be useful for the events to log the recipient, token address, and amount (denormalized) for use in computing statistics like TVL, TVM, transfer volume, token holders, etc. Being able to query these details from an RPC node would be very convenient. I’d like to propose adding the following events to the EVM token bridge contract:
To be emitted when a token is bridged in:
Option 1:
TransferRedeemedalready exists, extend it to:Option 2:
To be emitted when a token is bridged out:
Thoughts
Would it be useful to include
toChain indexed uint16inTransferandfromChain indexed uint16inTokenRedeemed(option 2)?Please let me know your thoughts, thank you!
All reactions