-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Return tags through hooks and in x/stake #3122
Comments
Let me get this straight, so when we certain transactions are called, hooks are also called. Normally we would only return tags for the given transaction, however it would also be useful to have tags for the events which occur on hooks being called. - the current system only allows for a single set of tags to be returned per message - but because of the hooks being called we should really be returning a list of all the events as a group of tags per message. Is that roughly what you're talking about? if so, then yes I agree this is useful information which we should be returning so we can sort navigate through all those events adequately 👍 Shouldn't be too too difficult but sounds like it requires some fundamental restructuring of the sdk tagging system |
Yes.
Yes, I think it does. I think it should be structured much more like logs, e.g. a |
cc @sunnya97 - interested / thoughts? |
@cwgoes thoughts on the label change here? |
Hmm, this will be pretty confusing for users (cc @jbibla) I think. |
hmmm. the first link 404s so i'm not sure what you're referring to exactly or how it might impact the user (or voyager). @fedekunze might have a better idea of what's being discussed here. |
(blocked on determining whether Tendermint will have the requisite tag indexing to make this useful) |
Ideally, I'd like to close this issue and create a new issue that updates the tagging system to an event-based system. Essentially, any part of a module that has access to a This is still blocked on the next breaking release of TM. |
@alexanderbez Has this been done (I know the events have - but have the additional tags?) |
I think there was specific interest in details of fee distribution events (e.g. on redelegating) since some delegators / validators needed dates & amounts for tax purposes. |
Unsolved problem, at the moment apparently we just don't, e.g. https://github.com/cosmos/cosmos-sdk/blob/develop/x/stake/keeper/delegation.go#L536
cc @rigelrozanski thoughts?
I wonder if we should instead find a way to pass "events" (lists of tags) through the context in a more natural fashion - they really are intended to be logs, not variables to manipulate.
The text was updated successfully, but these errors were encountered: