Skip to content

Commit

Permalink
feat: add ezSOL
Browse files Browse the repository at this point in the history
  • Loading branch information
tkporter committed Nov 29, 2024
1 parent 285184c commit 96320be
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
19 changes: 19 additions & 0 deletions src/consts/chains.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
import {
eclipsemainnet,
eclipsemainnetAddresses,
solanamainnet,
solanamainnetAddresses,
} from '@hyperlane-xyz/registry';
import { ChainMap, ChainMetadata } from '@hyperlane-xyz/sdk';

// A map of chain names to ChainMetadata
// Chains can be defined here, in chains.json, or in chains.yaml
// 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<ChainMetadata & { mailbox?: Address }> = {
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,
Expand Down
1 change: 1 addition & 0 deletions src/consts/warpRouteWhitelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
export const warpRouteWhitelist: Array<string> | null = [
'ezETH/arbitrum-base-blast-bsc-ethereum-fraxtal-linea-mode-optimism-sei-taiko-zircuit',
'pzETH/ethereum-zircuit',
'ezSOL/eclipsemainnet-solanamainnet',
];
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 96320be

Please sign in to comment.