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 only one event with multiple attributes in cosmos module handler #1626
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.
As I remember engine has a query for recaive this event somewhere. Is it still valid?
yes it's still working |
I think we should have events based on the module name instead of message (that is the name used by cosmos to have an event based on the messages processed) so if we want specific events we should make them dedicated for what we need.
This way we will be able to query all resources that has been created/updated and we can always query multiple resources with To avoid conflicts we could prefix the events with mesg so Another solution is to also embed the action in the event name |
let's continue the discussion when the codebase is updated to cosmos v0.38 and we refactor the sdk to cosmos modules. See #1639 |
Fixes #1624
New event output:
Should we also create a new type of event. Currently we are using "message" that is define by cosmos.