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"