Skip to content

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

@stwiname

Description

@stwiname

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions