hyperlane-xyz / hyperlane-monorepo

The home for Hyperlane core contracts, sdk packages, and other infrastructure
https://hyperlane.xyz
Other
311 stars 341 forks source link

Alternate message triggers for the relayer #2442

Open nambrot opened 1 year ago

nambrot commented 1 year ago

Currently, relayers look to process messages after indexing them on the origin chain mailbox they observing. However, there may be other "messages" relayers could be processing with minor-ish modifications. This ticket tracks such messages, and what they could look like

In some regard, this becomes a generalized relayer, akin to Chainlink Automation or Gelato and we should be careful to not overly complicate the relayer and thus make it worse at its main job of relaying messages between chains.

### Tasks
- [ ] https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/2443
nambrot commented 1 year ago

Telepathy/Succinct folks probably had to think about this, so we can probably learn from their thinking:

https://hackmd.io/@succinctlabs/rywE5pam2?type=view

I.e. require somebody to create a "subscription" which is really just a message trigger