-
Notifications
You must be signed in to change notification settings - Fork 35
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
Querying through ABCI #347
Closed
Labels
Comments
This was referenced Feb 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To interrogate the state we must implement the
query
method. To do so, create a new ADT to represent all possible queries, and create a new interpreter to handle it. It may be a good idea to split the interpreter modules into further pieces.I'm not exactly sure how it should work with FEVM in the future. During integration testing, to query EVM contracts I had to send transactions, even if they were views. But there are plenty of other Web3 JSON-RPC methods that might be supported by queries. I'll look at Ethermint when the time comes.
For now, it would be enough to return a balance and the state root of the actor: the latter is useful because we can use general CBOR/IPLD resolution to actually get the state independently.
The ABCI query message allows the client to supply the block height at which they want the results to be evaluated. To support that, we'd need to save the last N state root hashes. Depends on what we want to do:
ActorState
) then they will be consistentThe text was updated successfully, but these errors were encountered: