Skip to content

Commit 44626fb

Browse files
authored
feat(cli): svm cross collateral token deployments in the cli (#8548)
1 parent 7ad1f9e commit 44626fb

15 files changed

Lines changed: 1041 additions & 65 deletions

File tree

.changeset/cc-cli-review-fixes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@hyperlane-xyz/cli': minor
3+
'@hyperlane-xyz/sdk': minor
4+
'@hyperlane-xyz/sealevel-sdk': patch
5+
'@hyperlane-xyz/provider-sdk': minor
6+
---
7+
8+
Enabled SVM cross-collateral token deployments in the CLI. Added `crossCollateral` to supported Alt-VM token types, allowing `warp deploy`, `warp combine`, and `warp apply` to work with SVM CC routes. Extracted `computeCrossCollateralRouterUpdates` into provider-sdk for cross-protocol reuse. Fixed CC-only gas preservation for domains transitioning from remote routers.

.github/workflows/test-cli-e2e.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ jobs:
382382
matrix:
383383
test:
384384
- warp-apply
385+
- warp-cc-evm-svm
385386
- warp-deploy
386387
- warp-send
387388
steps:
@@ -536,6 +537,7 @@ jobs:
536537
test:
537538
- core-deploy
538539
- core-apply
540+
- warp-cross-collateral
539541
steps:
540542
- uses: actions/checkout@v6
541543
with:

typescript/cli/src/deploy/warp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import {
4141
type WarpRouteDeployConfig,
4242
type WarpRouteDeployConfigMailboxRequired,
4343
WarpRouteDeployConfigSchema,
44-
TokenStandard,
44+
TOKEN_CROSS_COLLATERAL_STANDARDS,
4545
altVmChainLookup,
4646
enrollCrossChainRouters,
4747
executeWarpDeploy,
@@ -1280,7 +1280,7 @@ function assertCombineRoutesAreValid(routes: CombineRouteConfig[]): void {
12801280
);
12811281

12821282
const invalidCoreTokens = route.coreConfig.tokens.filter(
1283-
(token) => token.standard !== TokenStandard.EvmHypCrossCollateralRouter,
1283+
(token) => !TOKEN_CROSS_COLLATERAL_STANDARDS.has(token.standard),
12841284
);
12851285
assert(
12861286
invalidCoreTokens.length === 0,

typescript/cli/src/tests/cross-chain/e2e-test.setup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ let radixNodeInstance: StartedDockerComposeEnvironment;
3030
const TESTS_WITHOUT_RADIX_SETUP = new Set([
3131
'warp-apply-starknet',
3232
'warp-deploy-starknet',
33+
'warp-cc-evm-svm',
3334
]);
3435

3536
before(async function () {

0 commit comments

Comments
 (0)