Skip to content
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

[$1000 in SQT] Query chain state at the current height #241

Open
stwiname opened this issue Mar 20, 2024 · 2 comments
Open

[$1000 in SQT] Query chain state at the current height #241

stwiname opened this issue Mar 20, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@stwiname
Copy link
Contributor

stwiname commented Mar 20, 2024

It is not always practical or possible to get all the information required from handlers and the only way to get that information is by querying the contract state. Subql-cosmos allows querying contract state through the injected client but this will return the current state and not the state at the height being indexed.

This feature should inject a client to the sandbox that limits querying state to the current height being indexed.

Other requirements

  • Documentation should be updated to include the feature
  • Tests with examples that query the correct data at a specific height

Here is an example of querying wasm state at a specific height:
aelesbao@c71a4db

@github-project-automation github-project-automation bot moved this to Coming Soon in Developer Guild Mar 20, 2024
@stwiname stwiname added the enhancement New feature or request label Mar 20, 2024
@stwiname stwiname changed the title Query chain state at the current height [$1000 in SQT] Query chain state at the current height Mar 20, 2024
@jilt
Copy link

jilt commented Apr 8, 2024

So this is for Cosmos?
Shouldn't be that hard with their contract API...
I worked on Mars protocol recently, may be able to come up with a solution

@stwiname stwiname moved this from Coming Soon to Open Tasks! in Developer Guild May 5, 2024
@jamesbayly
Copy link
Contributor

@jilt that is correct, we'd appreciate some pointers here if you know exactly how to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Open Tasks!
Development

No branches or pull requests

3 participants