-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a CLI command to generate an agent config from registry content #3720
Labels
Comments
tkporter
changed the title
Migrate infra's update-agent-config.ts to the CLI
Add a CLI command to generate an agent config from registry content
Jun 6, 2024
github-merge-queue bot
pushed a commit
that referenced
this issue
Jun 13, 2024
### Description - Add support for creating agent configs using the CLI - registry agent-config command with a required --chains option - This will pick up local registry data Example usage: `hyperlane registry agent-config --chains anvil8545` <!-- What's included in this PR? --> ### Drive-by changes <!-- Are there any minor or drive-by changes also included? --> ### Related issues <!-- - Fixes #[issue number here] --> - Fixes #[3720](#3720) ### Backward compatibility <!-- Are these changes backward compatible? Are there any infrastructure implications, e.g. changes that would prohibit deploying older commits using this infra tooling? Yes/No --> Yes ### Testing Manual <!-- What kind of testing have these changes undergone? None/Manual/Unit Tests -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
See here for full context and design: https://www.notion.so/hyperlanexyz/Hybrid-HaaS-67195982e71b42de92bc83038498583a?pvs=4#a3831e1497b249028ae6bca6a70994a1
Here's the current state:
typecript/infra/scripts/update-agent-config.ts
is the current way in which we generate agent configs for our mainnet3 and testnet4 deploysmain
of the registryhyperlane-monorepo/.github/workflows/test.yml
Lines 177 to 225 in 4261df7
Solution
For now, we'll keep using infra's
update-agent-config.ts
, and we'll keep the existing CI steps for generating the mainnet3 and testnet4 agent configs. This is because of open design questions around how make sure that transaction overrides that live in infra still make their way into the agent config. This'll be tracked in a separate issueAlso note you'll want to build off the
cli-2.0
branch and notmain
, unless cli-2.0 gets merged into main by the time this gets picked upFor this issue, we want:
update-agent-config.ts
. Something likehyperlane registry agent-config
. It should be able to take--chains <list of chains>
, where it generates an agent config for each of the provided chains, or alternatively be told to generate an agent config for either all testnets or mainnets.The text was updated successfully, but these errors were encountered: