hyperlane-xyz / hyperlane-monorepo

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

Construct the KnownHyperlaneDomain from agent config JSONs #4229

Open tkporter opened 3 months ago

tkporter commented 3 months ago

Problem

Adding a new core chain to the Rust KnownHyperlaneDomain and some impl functions is cumbersome.

We've had a few hiccups doing this in the past too:

I believe the main reasons we need/want KnownHyperlaneDomain are:

Solution

paulbalaji commented 2 months ago

less urgent, now that we don't update the KnownHyperlaneDomains enum with each addition of chains - we ensure the agent config is updated and baked into the resulting agent image