From 40f5f3656396a8df1299d33d2c8b4fa2adcbbe31 Mon Sep 17 00:00:00 2001 From: Trevor Porter Date: Mon, 13 Jan 2025 11:42:52 +0000 Subject: [PATCH] feat: add SOON network SOL and Bonk routes --- package.json | 2 +- src/consts/chains.ts | 6 ++++++ src/consts/warpRouteWhitelist.ts | 4 ++++ yarn.lock | 10 +++++----- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 3235fa80..b4452281 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.12.0", + "@hyperlane-xyz/registry": "6.13.0", "@hyperlane-xyz/sdk": "8.0.0-beta.0", "@hyperlane-xyz/utils": "8.0.0-beta.0", "@hyperlane-xyz/widgets": "8.0.0-beta.0", diff --git a/src/consts/chains.ts b/src/consts/chains.ts index 04091c83..b7e69d41 100644 --- a/src/consts/chains.ts +++ b/src/consts/chains.ts @@ -4,6 +4,8 @@ import { injective, solanamainnet, solanamainnetAddresses, + soon, + soonAddresses, } from '@hyperlane-xyz/registry'; import { ChainMap, ChainMetadata, ExplorerFamily } from '@hyperlane-xyz/sdk'; import { ProtocolType } from '@hyperlane-xyz/utils'; @@ -26,6 +28,10 @@ export const chains: ChainMap = { ...eclipsemainnet, mailbox: eclipsemainnetAddresses.mailbox, }, + soon: { + ...soon, + mailbox: soonAddresses.mailbox, + }, injective: { ...injective, rpcUrls: process.env.NEXT_PUBLIC_INJECTIVE_RPC_URL diff --git a/src/consts/warpRouteWhitelist.ts b/src/consts/warpRouteWhitelist.ts index d1038de7..818716c9 100644 --- a/src/consts/warpRouteWhitelist.ts +++ b/src/consts/warpRouteWhitelist.ts @@ -46,6 +46,7 @@ export const warpRouteWhitelist: Array | null = [ // SOL routes 'SOL/eclipsemainnet-solanamainnet', + 'SOL/solanamainnet-soon', // ezSOL routes 'ezSOL/eclipsemainnet-solanamainnet', @@ -67,4 +68,7 @@ export const warpRouteWhitelist: Array | null = [ // USDC ink 'USDC/ethereum-ink', + + // Bonk routes + 'Bonk/solanamainnet-soon', ]; diff --git a/yarn.lock b/yarn.lock index 91757bf0..ed9338f3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3898,13 +3898,13 @@ __metadata: languageName: node linkType: hard -"@hyperlane-xyz/registry@npm:6.12.0": - version: 6.12.0 - resolution: "@hyperlane-xyz/registry@npm:6.12.0" +"@hyperlane-xyz/registry@npm:6.13.0": + version: 6.13.0 + resolution: "@hyperlane-xyz/registry@npm:6.13.0" dependencies: yaml: "npm:2.4.5" zod: "npm:^3.21.2" - checksum: 10/94d5141c2b4e1496d4eab74153c998590c986794eaae0404434f0235e7c3de1936c108937bda60006c57422c709dd5539658ca8cddd6504f59f5553f68b0e252 + checksum: 10/9ffc240deb166c00c55838761c90d0759cd84de0302f3a746ca729027197cfb472937efe83d56eb2fa154426559de79ce990c5bc9433e6fad30aeac55a462a7a languageName: node linkType: hard @@ -3985,7 +3985,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.12.0" + "@hyperlane-xyz/registry": "npm:6.13.0" "@hyperlane-xyz/sdk": "npm:8.0.0-beta.0" "@hyperlane-xyz/utils": "npm:8.0.0-beta.0" "@hyperlane-xyz/widgets": "npm:8.0.0-beta.0"