-
Notifications
You must be signed in to change notification settings - Fork 673
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
Emit forwarding information in transfer events #6585
Comments
I bumped into this a little when doing #6556, as the current OnRecvPacket does not emit any events on async ack. What should the events look like in that scenario? |
I'd personally lean towards having a separate event for forwarding, at least that is what comes to mind initially... What do others think? Maybe we can discuss this on Monday? |
agree with Damian, thinking these fields will most likely be empty most of the time considering simple transfers will be majority of cases. |
Is it not possible to not emit the attribute if the value is empty/nil? |
ah right, guess so. think that would make for more conditional code for us and for event parsers but could do the trick if this information is important for each of the events. |
going to do this after #6618 |
Just for reference: we decided to add forwarding information for now to the events mentioned in the description of the issue. We will revisit once we have more context about how these events are used. |
Emit forwarding information in transfer events:
sendTransfer
OnRecvPacket
OnAcknowledgementPacket
OnTimeoutPacket
As we have done for
tokens
anddenom
, we can emit the JSON-encoded string of the field.The text was updated successfully, but these errors were encountered: