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

ISMP: Add a new field `context` to GetRequest #299

Closed seunlanlege closed 3 weeks ago

seunlanlege commented 3 weeks ago

When a GetRequest is dispatched, it only carries the requested keys. As such, when a response is received for a prior get request, applications have no "context" for which the original request was sent.

This PR introduces a new field that allows applications to persist some state in the request object itself so that when the response comes back, they can resume execution.