The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hyperlane-monorepo/.changeset/shy-ants-wave.md

7 lines
115 B

feat(cli): Add hyperlane warp extend (#4107) ### Description - Adds "extend warp route" logic to `hyperlane warp update` - To extend, provide the existing `warp-route-deployment.yaml` with the additional `TokenRouterConfig` For example, considering `hyperlane warp deploy` is called with this config: ```yaml alpha: interchainSecurityModule: modules: - relayer: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' type: trustedRelayerIsm - domains: {} owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' type: defaultFallbackRoutingIsm threshold: 1 type: staticAggregationIsm isNft: false mailbox: '0xe04e5D673F3f253BF43A82ce66Bba0Ae771CF09B' owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' type: native ``` To extend, add a new TokenRouter config: ```yaml alpha: interchainSecurityModule: modules: - relayer: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' type: trustedRelayerIsm - domains: {} owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' type: defaultFallbackRoutingIsm threshold: 1 type: staticAggregationIsm isNft: false mailbox: '0xe04e5D673F3f253BF43A82ce66Bba0Ae771CF09B' owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' type: native arbitrum: interchainSecurityModule: modules: - relayer: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' type: trustedRelayerIsm - domains: {} owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' type: defaultFallbackRoutingIsm threshold: 1 type: staticAggregationIsm isNft: false mailbox: '0x979Ca5202784112f4738403dBec5D0F3B9daabB9' owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' type: native ``` The newly deployed `arbitrum` `TokenRouterConfig` will deploy the Router, and then enroll the existing `alpha` Router with each other. ### Drive by - Fix native deriving to send 0 wei instead of 1 ### Related issues https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/4078 ### Testing Manual - Tested with deploying - native and extending with native - native and extending with native, and native - native and extending with synthetic - use `cast abi-decode "domain()(uint32[])" $(cast call $TOKEN_ROUTER "domains()")` to test enrollment E2e test --------- Co-authored-by: Noah Bayindirli 🥂 <noah@primeprotocol.xyz>
5 months ago
---
'@hyperlane-xyz/cli': minor
'@hyperlane-xyz/sdk': minor
---
Add hyperlane warp update to extend a warp config