From 96320be6f52abe90dbc5d1d5a2aa608a4ba3c2c6 Mon Sep 17 00:00:00 2001 From: Trevor Porter Date: Fri, 29 Nov 2024 12:13:49 +0000 Subject: [PATCH 1/4] feat: add ezSOL --- package.json | 2 +- src/consts/chains.ts | 19 +++++++++++++++++++ src/consts/warpRouteWhitelist.ts | 1 + yarn.lock | 10 +++++----- 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index edd317dc..b4f8a8f5 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", "@headlessui/react": "^2.2.0", - "@hyperlane-xyz/registry": "6.1.0", + "@hyperlane-xyz/registry": "6.2.0", "@hyperlane-xyz/sdk": "7.1.0", "@hyperlane-xyz/utils": "7.1.0", "@hyperlane-xyz/widgets": "7.1.0", diff --git a/src/consts/chains.ts b/src/consts/chains.ts index 9083e108..1ee848df 100644 --- a/src/consts/chains.ts +++ b/src/consts/chains.ts @@ -1,3 +1,9 @@ +import { + eclipsemainnet, + eclipsemainnetAddresses, + solanamainnet, + solanamainnetAddresses, +} from '@hyperlane-xyz/registry'; import { ChainMap, ChainMetadata } from '@hyperlane-xyz/sdk'; // A map of chain names to ChainMetadata @@ -5,6 +11,19 @@ import { ChainMap, ChainMetadata } from '@hyperlane-xyz/sdk'; // Chains already in the SDK need not be included here unless you want to override some fields // Schema here: https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/typescript/sdk/src/metadata/chainMetadataTypes.ts export const chains: ChainMap = { + solanamainnet: { + ...solanamainnet, + // SVM chains require mailbox addresses for the token adapters + mailbox: solanamainnetAddresses.mailbox, + // Including a convenient rpc override because the Solana public RPC does not allow browser requests from localhost + rpcUrls: process.env.NEXT_PUBLIC_SOLANA_RPC_URL + ? [{ http: process.env.NEXT_PUBLIC_SOLANA_RPC_URL }, ...solanamainnet.rpcUrls] + : solanamainnet.rpcUrls, + }, + eclipsemainnet: { + ...eclipsemainnet, + mailbox: eclipsemainnetAddresses.mailbox, + }, // mycustomchain: { // protocol: ProtocolType.Ethereum, // chainId: 123123, diff --git a/src/consts/warpRouteWhitelist.ts b/src/consts/warpRouteWhitelist.ts index 510f45ed..c21c6676 100644 --- a/src/consts/warpRouteWhitelist.ts +++ b/src/consts/warpRouteWhitelist.ts @@ -5,4 +5,5 @@ export const warpRouteWhitelist: Array | null = [ 'ezETH/arbitrum-base-blast-bsc-ethereum-fraxtal-linea-mode-optimism-sei-taiko-zircuit', 'pzETH/ethereum-zircuit', + 'ezSOL/eclipsemainnet-solanamainnet', ]; diff --git a/yarn.lock b/yarn.lock index cd31cab4..1002d6cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3881,13 +3881,13 @@ __metadata: languageName: node linkType: hard -"@hyperlane-xyz/registry@npm:6.1.0": - version: 6.1.0 - resolution: "@hyperlane-xyz/registry@npm:6.1.0" +"@hyperlane-xyz/registry@npm:6.2.0": + version: 6.2.0 + resolution: "@hyperlane-xyz/registry@npm:6.2.0" dependencies: yaml: "npm:2.4.5" zod: "npm:^3.21.2" - checksum: 10/a0e1ecc02d83604793ddda0a3e00a9ffcaa38b1cddf9883b47cf8f1919b4474abd6cc2ee84846e6a35e1bc7539299b9bec92bfdf06be72beecff6aa44b73d382 + checksum: 10/4fb270af56e75589e01dead30de2a42a7f3bc15ba15436300b9b58e7e5fe059a4ec3b4e95b2fe1dd105d4512ba007c6bd61908487a27740956d747d3fd5f4e59 languageName: node linkType: hard @@ -3953,7 +3953,7 @@ __metadata: "@emotion/react": "npm:^11.13.3" "@emotion/styled": "npm:^11.13.0" "@headlessui/react": "npm:^2.2.0" - "@hyperlane-xyz/registry": "npm:6.1.0" + "@hyperlane-xyz/registry": "npm:6.2.0" "@hyperlane-xyz/sdk": "npm:7.1.0" "@hyperlane-xyz/utils": "npm:7.1.0" "@hyperlane-xyz/widgets": "npm:7.1.0" From 8f661672ea653bae84fde4d90d03835a0827a8a1 Mon Sep 17 00:00:00 2001 From: Le Yu <6251863+ltyu@users.noreply.github.com> Date: Thu, 12 Dec 2024 09:12:49 -0500 Subject: [PATCH 2/4] Readd pzeth to whitelist --- src/consts/warpRouteWhitelist.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/consts/warpRouteWhitelist.ts b/src/consts/warpRouteWhitelist.ts index f8ba38f6..d3d5eb87 100644 --- a/src/consts/warpRouteWhitelist.ts +++ b/src/consts/warpRouteWhitelist.ts @@ -4,5 +4,5 @@ // If set to a list (including an empty list), only the specified routes will be included export const warpRouteWhitelist: Array | null = [ 'ezETH/arbitrum-base-blast-bsc-ethereum-fraxtal-linea-mode-optimism-sei-taiko-zircuit', - // 'pzETH/ethereum-zircuit', + 'pzETH/ethereum-swell-zircuit', ]; From 88b89c51e553ac44b3830b403a4b073eb98b01e8 Mon Sep 17 00:00:00 2001 From: Le Yu <6251863+ltyu@users.noreply.github.com> Date: Tue, 10 Dec 2024 16:48:12 -0500 Subject: [PATCH 3/4] Bump Registry to 6.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index edd317dc..f45141a5 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", "@headlessui/react": "^2.2.0", - "@hyperlane-xyz/registry": "6.1.0", + "@hyperlane-xyz/registry": "6.6.0", "@hyperlane-xyz/sdk": "7.1.0", "@hyperlane-xyz/utils": "7.1.0", "@hyperlane-xyz/widgets": "7.1.0", From c6a2e32b2e657f12ed77f66e213b051949fd2a3c Mon Sep 17 00:00:00 2001 From: Le Yu <6251863+ltyu@users.noreply.github.com> Date: Thu, 12 Dec 2024 10:16:54 -0500 Subject: [PATCH 4/4] Use registry 6.5 --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index f45141a5..3b2984d3 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", "@headlessui/react": "^2.2.0", - "@hyperlane-xyz/registry": "6.6.0", + "@hyperlane-xyz/registry": "6.5.0", "@hyperlane-xyz/sdk": "7.1.0", "@hyperlane-xyz/utils": "7.1.0", "@hyperlane-xyz/widgets": "7.1.0", diff --git a/yarn.lock b/yarn.lock index cd31cab4..43516441 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3881,13 +3881,13 @@ __metadata: languageName: node linkType: hard -"@hyperlane-xyz/registry@npm:6.1.0": - version: 6.1.0 - resolution: "@hyperlane-xyz/registry@npm:6.1.0" +"@hyperlane-xyz/registry@npm:6.5.0": + version: 6.5.0 + resolution: "@hyperlane-xyz/registry@npm:6.5.0" dependencies: yaml: "npm:2.4.5" zod: "npm:^3.21.2" - checksum: 10/a0e1ecc02d83604793ddda0a3e00a9ffcaa38b1cddf9883b47cf8f1919b4474abd6cc2ee84846e6a35e1bc7539299b9bec92bfdf06be72beecff6aa44b73d382 + checksum: 10/e403434842a7ce65c63c807eb519049b58a60f24eaf807a0b49a1ad607e3dea26502d8e1a7b89ddfa111277c655da10baace869e0b2a1f1e51cd01fb7684edbd languageName: node linkType: hard @@ -3953,7 +3953,7 @@ __metadata: "@emotion/react": "npm:^11.13.3" "@emotion/styled": "npm:^11.13.0" "@headlessui/react": "npm:^2.2.0" - "@hyperlane-xyz/registry": "npm:6.1.0" + "@hyperlane-xyz/registry": "npm:6.5.0" "@hyperlane-xyz/sdk": "npm:7.1.0" "@hyperlane-xyz/utils": "npm:7.1.0" "@hyperlane-xyz/widgets": "npm:7.1.0"