polytope-labs / hyperbridge

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

Add source and destination metadata to Timeout events #202

Closed seunlanlege closed 3 months ago

seunlanlege commented 3 months ago

The existing timeout events only produced the commitment of the request/response. While this is useful to clients, it's not very useful to indexers or the consensus provers. This PR introduces the metadata about the timeot message to both the EvmHost and the ismp crate.

NOTE The conversion from EvmHostEvents to ismp::events::Events fills the source field with the same value as it's destination, this is because it's unneccessary from the context of the evm as it does not proxy requests. Callers should already know the appropriate source chain of the timeout message.