Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions src/core/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ import {
aurora,
canto,
flowMainnet,

xLayer,

// Testnets
sepolia,
optimismSepolia,
Expand All @@ -57,7 +58,8 @@ import {
goerli,
holesky,
flowTestnet,
filecoinCalibration
filecoinCalibration,
xLayerTestnet,
} from 'viem/chains';

// Default configuration values
Expand Down Expand Up @@ -98,7 +100,8 @@ export const chainMap: Record<number, Chain> = {
1313161554: aurora,
7700: canto,
747: flowMainnet,

196: xLayer,

// Testnets
11155111: sepolia,
11155420: optimismSepolia,
Expand All @@ -124,6 +127,7 @@ export const chainMap: Record<number, Chain> = {
17000: holesky,
545: flowTestnet,
314159: filecoinCalibration,
1952: xLayerTestnet,
};

// Map network names to chain IDs for easier reference
Expand Down Expand Up @@ -172,7 +176,8 @@ export const networkNameMap: Record<string, number> = {
'aurora': 1313161554,
'canto': 7700,
'flow': 747,

'xlayer': 196,

// Testnets
'sepolia': 11155111,
'optimism-sepolia': 11155420,
Expand Down Expand Up @@ -218,6 +223,7 @@ export const networkNameMap: Record<string, number> = {
'holesky': 17000,
'flow-testnet': 545,
'filecoin-calibration': 314159,
'xlayer-testnet': 1952,
};

// Map chain IDs to RPC URLs
Expand Down Expand Up @@ -254,7 +260,8 @@ export const rpcUrlMap: Record<number, string> = {
1313161554: 'https://mainnet.aurora.dev',
7700: 'https://canto.gravitychain.io',
747: 'https://mainnet.evm.nodes.onflow.org',

196: 'https://xlayerrpc.okx.com',

// Testnets
11155111: 'https://sepolia.drpc.org',
11155420: 'https://sepolia.optimism.io',
Expand All @@ -280,6 +287,7 @@ export const rpcUrlMap: Record<number, string> = {
17000: 'https://ethereum-holesky.publicnode.com',
545: 'https://testnet.evm.nodes.onflow.org',
314159: 'https://api.calibration.node.glif.io/rpc/v1',
1952: 'https://xlayertestrpc.okx.com',
};

/**
Expand Down