polytope-labs / hyperbridge

Hyperbridge is a hyperscalable coprocessor for verifiable, cross-chain interoperability
https://docs.hyperbridge.network/
Apache License 2.0
107 stars 33 forks source link

EvmHost: State Queries #286

Closed seunlanlege closed 1 month ago

seunlanlege commented 1 month ago

Introduce support for state queries through a pallet-state-coprocessor that receives GetRequest(s) dispatched by a connected chain, fetches the values from the associated state proof and inserts a (GetResponse) into the MMR tree.

In the EvmHost, this means that GetResponse(s) are verified via MMR and GetRequestTimeout(s) are evaluated relative to hyperbridge time.