forked from hyperlane-xyz/hyperlane-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hyperlane-xyz:main' into main
- Loading branch information
Showing
11 changed files
with
66 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@hyperlane-xyz/core': minor | ||
--- | ||
|
||
Revert zksync changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
typescript/infra/scripts/warp-routes/export-warp-configs.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { getRegistry } from '../../config/registry.js'; | ||
import { getWarpConfig, warpConfigGetterMap } from '../../config/warp.js'; | ||
import { getArgs, withOutputFile } from '../agent-utils.js'; | ||
import { getEnvironmentConfig, getHyperlaneCore } from '../core-utils.js'; | ||
|
||
// Writes the warp configs into the Registry | ||
async function main() { | ||
const { environment } = await withOutputFile(getArgs()).argv; | ||
const { multiProvider } = await getHyperlaneCore(environment); | ||
const envConfig = getEnvironmentConfig(environment); | ||
const registry = getRegistry(); | ||
|
||
const warpIdsToCheck = Object.keys(warpConfigGetterMap); | ||
for (const warpRouteId of warpIdsToCheck) { | ||
console.log(`Generating Warp config for ${warpRouteId}`); | ||
|
||
const warpConfig = await getWarpConfig( | ||
multiProvider, | ||
envConfig, | ||
warpRouteId, | ||
); | ||
|
||
const configFileName = `${warpRouteId}-deploy.yaml`; | ||
registry.addWarpRouteConfig(warpConfig, configFileName); | ||
|
||
// TODO: Use registry.getWarpRoutesPath() to dynamically generate path by removing "protected" | ||
console.log( | ||
`Warp config successfully created at ${registry.getUri()}/deployments/warp_routes/${configFileName}`, | ||
); | ||
} | ||
} | ||
|
||
main().catch((err) => console.error('Error:', err)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters