-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Implement a query for EndBlock
msg events
#13703
Comments
There's already a query for this -> https://cosmos-rpc.quickapi.com/block_search?query=_&page=_&per_page=_&order_by=_ We could add a proxy to this in the SDK's gRPC query layer, but just noting this already exists. In fact, tx searching also proxies directly to Tendermint (https://cosmos-rpc.quickapi.com/tx_search?query=_&prove=_&page=_&per_page=_&order_by=_) |
Awesome, thanks for this @alexanderbez! I figured this was the case with tx search alright, but just noticed the case of no way to get at events via the CLI for blocks. |
Yah, so we'd have to proxy Maybe @gsk967 has interest? |
If this is reliant on events we can't make guarantees that the events will be there in the long run. If events are removed from being stored in the node then it could break our api. |
Yes, but since we proxy |
I'd like to upvote this topic, am also looking for a way of accessing the One caveat: The data returned by tendermint's |
@symtor are you open to submitting a PR? |
Not right now, sorry about that. We worked around the issue by using the |
I've been doing the same with the |
@alexanderbez - I can take a stab at it if you like... |
@cipherzzz yes please! TYSM |
@alexanderbez - you can assign it to me - I'll get started |
@alexanderbez - working through this right now. Could you give me some feedback on
Thanks! |
@tac0turtle - I think I have it mostly there. One issue I'm having with my
Any idea why I have to manually add the |
If you needed to add the |
thinking through this some more, I think we should have a general query method for events. With 0.38 of tendermint the notion of begin and end block events disappear and they become events. This is finalise block. |
@tac0turtle - so are you saying that you want to query for events in general regardless of whether they are associated with a tx or block? Or are you saying that we should just query for block events regardless of whether they are in a begin/end callback? |
There will be two sets of events with Tendermint v0.38 -- Block and Tx events, so essentially I can see a general events query interface where we take a type argument -- |
Summary
Implement a CLI query for
EndBlocker
emitted events.When debugging an integration issue associated with #13389 I faced the problem of having no simple way to query for events associated with msgs exec'd by
x/gov
.Problem Definition
We currently have a means of querying msg events associated with transactions.
For example, we can query a tx by:
hash|acc_seq|signature
. We can also query for associated events like below:However, for messages executed by modules such as
x/gov
orx/group
we can't seem to use the same approach.Proposal
Add a similar CLI query for events associated with those executed by
x/gov
andx/group
.The text was updated successfully, but these errors were encountered: