@circle-fin/app-kit 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/chains.mjs ADDED
@@ -0,0 +1,3212 @@
1
+ /**
2
+ * Copyright (c) 2026, Circle Internet Group, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ import { z } from 'zod';
20
+
21
+ // -----------------------------------------------------------------------------
22
+ // Blockchain Enum
23
+ // -----------------------------------------------------------------------------
24
+ /**
25
+ * Enumeration of all blockchains known to this library.
26
+ *
27
+ * This enum contains every blockchain that has a chain definition, regardless
28
+ * of whether bridging is currently supported. For chains that support bridging
29
+ * via CCTPv2, see {@link BridgeChain}.
30
+ *
31
+ * @enum
32
+ * @category Enums
33
+ * @description Provides string identifiers for each blockchain with a definition.
34
+ * @see {@link BridgeChain} for the subset of chains that support CCTPv2 bridging.
35
+ */
36
+ var Blockchain;
37
+ (function (Blockchain) {
38
+ Blockchain["Algorand"] = "Algorand";
39
+ Blockchain["Algorand_Testnet"] = "Algorand_Testnet";
40
+ Blockchain["Aptos"] = "Aptos";
41
+ Blockchain["Aptos_Testnet"] = "Aptos_Testnet";
42
+ Blockchain["Arc_Testnet"] = "Arc_Testnet";
43
+ Blockchain["Arbitrum"] = "Arbitrum";
44
+ Blockchain["Arbitrum_Sepolia"] = "Arbitrum_Sepolia";
45
+ Blockchain["Avalanche"] = "Avalanche";
46
+ Blockchain["Avalanche_Fuji"] = "Avalanche_Fuji";
47
+ Blockchain["Base"] = "Base";
48
+ Blockchain["Base_Sepolia"] = "Base_Sepolia";
49
+ Blockchain["Celo"] = "Celo";
50
+ Blockchain["Celo_Alfajores_Testnet"] = "Celo_Alfajores_Testnet";
51
+ Blockchain["Codex"] = "Codex";
52
+ Blockchain["Codex_Testnet"] = "Codex_Testnet";
53
+ Blockchain["Edge"] = "Edge";
54
+ Blockchain["Edge_Testnet"] = "Edge_Testnet";
55
+ Blockchain["Ethereum"] = "Ethereum";
56
+ Blockchain["Ethereum_Sepolia"] = "Ethereum_Sepolia";
57
+ Blockchain["Hedera"] = "Hedera";
58
+ Blockchain["Hedera_Testnet"] = "Hedera_Testnet";
59
+ Blockchain["HyperEVM"] = "HyperEVM";
60
+ Blockchain["HyperEVM_Testnet"] = "HyperEVM_Testnet";
61
+ Blockchain["Ink"] = "Ink";
62
+ Blockchain["Ink_Testnet"] = "Ink_Testnet";
63
+ Blockchain["Linea"] = "Linea";
64
+ Blockchain["Linea_Sepolia"] = "Linea_Sepolia";
65
+ Blockchain["Monad"] = "Monad";
66
+ Blockchain["Monad_Testnet"] = "Monad_Testnet";
67
+ Blockchain["Morph"] = "Morph";
68
+ Blockchain["Morph_Testnet"] = "Morph_Testnet";
69
+ Blockchain["NEAR"] = "NEAR";
70
+ Blockchain["NEAR_Testnet"] = "NEAR_Testnet";
71
+ Blockchain["Noble"] = "Noble";
72
+ Blockchain["Noble_Testnet"] = "Noble_Testnet";
73
+ Blockchain["Optimism"] = "Optimism";
74
+ Blockchain["Optimism_Sepolia"] = "Optimism_Sepolia";
75
+ Blockchain["Polkadot_Asset_Hub"] = "Polkadot_Asset_Hub";
76
+ Blockchain["Polkadot_Westmint"] = "Polkadot_Westmint";
77
+ Blockchain["Plume"] = "Plume";
78
+ Blockchain["Plume_Testnet"] = "Plume_Testnet";
79
+ Blockchain["Polygon"] = "Polygon";
80
+ Blockchain["Polygon_Amoy_Testnet"] = "Polygon_Amoy_Testnet";
81
+ Blockchain["Sei"] = "Sei";
82
+ Blockchain["Sei_Testnet"] = "Sei_Testnet";
83
+ Blockchain["Solana"] = "Solana";
84
+ Blockchain["Solana_Devnet"] = "Solana_Devnet";
85
+ Blockchain["Sonic"] = "Sonic";
86
+ Blockchain["Sonic_Testnet"] = "Sonic_Testnet";
87
+ Blockchain["Stellar"] = "Stellar";
88
+ Blockchain["Stellar_Testnet"] = "Stellar_Testnet";
89
+ Blockchain["Sui"] = "Sui";
90
+ Blockchain["Sui_Testnet"] = "Sui_Testnet";
91
+ Blockchain["Unichain"] = "Unichain";
92
+ Blockchain["Unichain_Sepolia"] = "Unichain_Sepolia";
93
+ Blockchain["World_Chain"] = "World_Chain";
94
+ Blockchain["World_Chain_Sepolia"] = "World_Chain_Sepolia";
95
+ Blockchain["XDC"] = "XDC";
96
+ Blockchain["XDC_Apothem"] = "XDC_Apothem";
97
+ Blockchain["ZKSync_Era"] = "ZKSync_Era";
98
+ Blockchain["ZKSync_Sepolia"] = "ZKSync_Sepolia";
99
+ })(Blockchain || (Blockchain = {}));
100
+ /**
101
+ * Enum representing the subset of {@link Blockchain} that supports swap operations.
102
+ *
103
+ * This enum provides compile-time type safety for swap chain selection,
104
+ * ensuring only supported chains are available in IDE autocomplete
105
+ * when building swap parameters.
106
+ *
107
+ * @remarks
108
+ * Unlike the full {@link Blockchain} enum, SwapChain only includes networks
109
+ * where the swap functionality is actively supported by the library.
110
+ * Using this enum prevents runtime errors from attempting unsupported
111
+ * cross-chain swaps.
112
+ *
113
+ * Currently supports:
114
+ * - Ethereum mainnet
115
+ * - Base mainnet
116
+ * - Polygon mainnet
117
+ * - Solana mainnet
118
+ *
119
+ * @example
120
+ * ```typescript
121
+ * import { SwapChain, swap, createSwapKitContext } from '@circle-fin/swap-kit'
122
+ * import { createViemAdapterFromPrivateKey } from '@circle-fin/adapter-viem-v2'
123
+ *
124
+ * const context = createSwapKitContext()
125
+ * const adapter = createViemAdapterFromPrivateKey({
126
+ * privateKey: process.env.PRIVATE_KEY
127
+ * })
128
+ *
129
+ * // ✅ Autocomplete shows only swap-supported chains
130
+ * const result = await swap(context, {
131
+ * from: {
132
+ * adapter,
133
+ * chain: SwapChain.Ethereum // Autocomplete: Ethereum, Base, Polygon, Solana
134
+ * },
135
+ * tokenIn: 'USDC',
136
+ * tokenOut: 'USDT',
137
+ * amount: '100.0'
138
+ * })
139
+ * ```
140
+ *
141
+ * @example
142
+ * ```typescript
143
+ * // String literals also work (constrained to SwapChain values)
144
+ * const result = await swap(context, {
145
+ * from: {
146
+ * adapter,
147
+ * chain: 'Ethereum' // ✅ Only SwapChain strings allowed
148
+ * },
149
+ * tokenIn: 'USDC',
150
+ * tokenOut: 'NATIVE',
151
+ * amount: '50.0'
152
+ * })
153
+ *
154
+ * // ❌ TypeScript error - Sui not in SwapChain enum
155
+ * const invalidResult = await swap(context, {
156
+ * from: {
157
+ * adapter,
158
+ * chain: 'Sui' // Compile-time error!
159
+ * },
160
+ * tokenIn: 'USDC',
161
+ * tokenOut: 'USDT',
162
+ * amount: '100.0'
163
+ * })
164
+ * ```
165
+ */
166
+ /**
167
+ * Enum representing chains that support same-chain swaps through the Swap Kit.
168
+ *
169
+ * Unlike the full {@link Blockchain} enum, SwapChain includes only mainnet
170
+ * networks where adapter contracts are deployed (CCTPv2 support).
171
+ *
172
+ * Dynamic validation via {@link isSwapSupportedChain} ensures chains
173
+ * automatically work when adapter contracts and supported tokens are deployed.
174
+ *
175
+ * @example
176
+ * ```typescript
177
+ * import { SwapChain } from '@core/chains'
178
+ * import { swap } from '@circle-fin/swap-kit'
179
+ *
180
+ * const result = await swap(context, {
181
+ * from: {
182
+ * adapter,
183
+ * chain: SwapChain.Arbitrum // Now supported!
184
+ * },
185
+ * tokenIn: 'USDC',
186
+ * tokenOut: 'WETH',
187
+ * amount: '100.0'
188
+ * })
189
+ * ```
190
+ *
191
+ * @see {@link isSwapSupportedChain} for runtime validation
192
+ * @see {@link getSwapSupportedChains} for all supported chains
193
+ */
194
+ var SwapChain;
195
+ (function (SwapChain) {
196
+ // Original 4 chains
197
+ SwapChain["Ethereum"] = "Ethereum";
198
+ SwapChain["Base"] = "Base";
199
+ SwapChain["Polygon"] = "Polygon";
200
+ SwapChain["Solana"] = "Solana";
201
+ // Additional supported chains
202
+ SwapChain["Arbitrum"] = "Arbitrum";
203
+ SwapChain["Optimism"] = "Optimism";
204
+ SwapChain["Avalanche"] = "Avalanche";
205
+ SwapChain["Linea"] = "Linea";
206
+ SwapChain["Ink"] = "Ink";
207
+ SwapChain["World_Chain"] = "World_Chain";
208
+ SwapChain["Unichain"] = "Unichain";
209
+ SwapChain["Plume"] = "Plume";
210
+ SwapChain["Sei"] = "Sei";
211
+ SwapChain["Sonic"] = "Sonic";
212
+ SwapChain["XDC"] = "XDC";
213
+ SwapChain["HyperEVM"] = "HyperEVM";
214
+ SwapChain["Monad"] = "Monad";
215
+ })(SwapChain || (SwapChain = {}));
216
+ // -----------------------------------------------------------------------------
217
+ // Bridge Chain Enum (CCTPv2 Supported Chains)
218
+ // -----------------------------------------------------------------------------
219
+ /**
220
+ * Enumeration of blockchains that support cross-chain bridging via CCTPv2.
221
+ *
222
+ * The enum is derived from the full {@link Blockchain} enum but filtered to only
223
+ * include chains with active CCTPv2 support. When new chains gain CCTPv2 support,
224
+ * they are added to this enum.
225
+ *
226
+ * @enum
227
+ * @category Enums
228
+ *
229
+ * @remarks
230
+ * - This enum is the **canonical source** of bridging-supported chains.
231
+ * - Use this enum (or its string literals) in `kit.bridge()` calls for type safety.
232
+ * - Attempting to use a chain not in this enum will produce a TypeScript compile error.
233
+ *
234
+ * @example
235
+ * ```typescript
236
+ * import { BridgeKit, BridgeChain } from '@circle-fin/bridge-kit'
237
+ *
238
+ * const kit = new BridgeKit()
239
+ *
240
+ * // ✅ Valid - autocomplete suggests only supported chains
241
+ * await kit.bridge({
242
+ * from: { adapter, chain: BridgeChain.Ethereum },
243
+ * to: { adapter, chain: BridgeChain.Base },
244
+ * amount: '100'
245
+ * })
246
+ *
247
+ * // ✅ Also valid - string literals work with autocomplete
248
+ * await kit.bridge({
249
+ * from: { adapter, chain: 'Ethereum_Sepolia' },
250
+ * to: { adapter, chain: 'Base_Sepolia' },
251
+ * amount: '100'
252
+ * })
253
+ *
254
+ * // ❌ Compile error - Algorand is not in BridgeChain
255
+ * await kit.bridge({
256
+ * from: { adapter, chain: 'Algorand' }, // TypeScript error!
257
+ * to: { adapter, chain: 'Base' },
258
+ * amount: '100'
259
+ * })
260
+ * ```
261
+ *
262
+ * @see {@link Blockchain} for the complete list of all known blockchains.
263
+ * @see {@link BridgeChainIdentifier} for the type that accepts these values.
264
+ */
265
+ var BridgeChain;
266
+ (function (BridgeChain) {
267
+ // Mainnet chains with CCTPv2 support
268
+ BridgeChain["Arbitrum"] = "Arbitrum";
269
+ BridgeChain["Avalanche"] = "Avalanche";
270
+ BridgeChain["Base"] = "Base";
271
+ BridgeChain["Codex"] = "Codex";
272
+ BridgeChain["Edge"] = "Edge";
273
+ BridgeChain["Ethereum"] = "Ethereum";
274
+ BridgeChain["HyperEVM"] = "HyperEVM";
275
+ BridgeChain["Ink"] = "Ink";
276
+ BridgeChain["Linea"] = "Linea";
277
+ BridgeChain["Monad"] = "Monad";
278
+ BridgeChain["Morph"] = "Morph";
279
+ BridgeChain["Optimism"] = "Optimism";
280
+ BridgeChain["Plume"] = "Plume";
281
+ BridgeChain["Polygon"] = "Polygon";
282
+ BridgeChain["Sei"] = "Sei";
283
+ BridgeChain["Solana"] = "Solana";
284
+ BridgeChain["Sonic"] = "Sonic";
285
+ BridgeChain["Unichain"] = "Unichain";
286
+ BridgeChain["World_Chain"] = "World_Chain";
287
+ BridgeChain["XDC"] = "XDC";
288
+ // Testnet chains with CCTPv2 support
289
+ BridgeChain["Arc_Testnet"] = "Arc_Testnet";
290
+ BridgeChain["Arbitrum_Sepolia"] = "Arbitrum_Sepolia";
291
+ BridgeChain["Avalanche_Fuji"] = "Avalanche_Fuji";
292
+ BridgeChain["Base_Sepolia"] = "Base_Sepolia";
293
+ BridgeChain["Codex_Testnet"] = "Codex_Testnet";
294
+ BridgeChain["Edge_Testnet"] = "Edge_Testnet";
295
+ BridgeChain["Ethereum_Sepolia"] = "Ethereum_Sepolia";
296
+ BridgeChain["HyperEVM_Testnet"] = "HyperEVM_Testnet";
297
+ BridgeChain["Ink_Testnet"] = "Ink_Testnet";
298
+ BridgeChain["Linea_Sepolia"] = "Linea_Sepolia";
299
+ BridgeChain["Monad_Testnet"] = "Monad_Testnet";
300
+ BridgeChain["Morph_Testnet"] = "Morph_Testnet";
301
+ BridgeChain["Optimism_Sepolia"] = "Optimism_Sepolia";
302
+ BridgeChain["Plume_Testnet"] = "Plume_Testnet";
303
+ BridgeChain["Polygon_Amoy_Testnet"] = "Polygon_Amoy_Testnet";
304
+ BridgeChain["Sei_Testnet"] = "Sei_Testnet";
305
+ BridgeChain["Solana_Devnet"] = "Solana_Devnet";
306
+ BridgeChain["Sonic_Testnet"] = "Sonic_Testnet";
307
+ BridgeChain["Unichain_Sepolia"] = "Unichain_Sepolia";
308
+ BridgeChain["World_Chain_Sepolia"] = "World_Chain_Sepolia";
309
+ BridgeChain["XDC_Apothem"] = "XDC_Apothem";
310
+ })(BridgeChain || (BridgeChain = {}));
311
+
312
+ /**
313
+ * Helper function to define a chain with proper TypeScript typing.
314
+ *
315
+ * This utility function works with TypeScript's `as const` assertion to create
316
+ * strongly-typed, immutable chain definition objects. It preserves literal types
317
+ * from the input and ensures the resulting object maintains all type information.
318
+ *
319
+ * When used with `as const`, it allows TypeScript to infer the most specific
320
+ * possible types for all properties, including string literals and numeric literals,
321
+ * rather than widening them to general types like string or number.
322
+ * @typeParam T - The specific chain definition type (must extend ChainDefinition)
323
+ * @param chain - The chain definition object, typically with an `as const` assertion
324
+ * @returns The same chain definition with preserved literal types
325
+ * @example
326
+ * ```typescript
327
+ * // Define an EVM chain with literal types preserved
328
+ * const Ethereum = defineChain({
329
+ * type: 'evm',
330
+ * chain: Blockchain.Ethereum,
331
+ * chainId: 1,
332
+ * name: 'Ethereum',
333
+ * nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
334
+ * isTestnet: false,
335
+ * usdcAddress: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
336
+ * eurcAddress: null,
337
+ * cctp: {
338
+ * domain: 0,
339
+ * contracts: {
340
+ * TokenMessengerV1: '0xbd3fa81b58ba92a82136038b25adec7066af3155',
341
+ * MessageTransmitterV1: '0x0a992d191deec32afe36203ad87d7d289a738f81'
342
+ * }
343
+ * }
344
+ * } as const);
345
+ * ```
346
+ */
347
+ function defineChain(chain) {
348
+ return chain;
349
+ }
350
+
351
+ /**
352
+ * Algorand Mainnet chain definition
353
+ * @remarks
354
+ * This represents the official production network for the Algorand blockchain.
355
+ */
356
+ defineChain({
357
+ type: 'algorand',
358
+ chain: Blockchain.Algorand,
359
+ name: 'Algorand',
360
+ title: 'Algorand Mainnet',
361
+ nativeCurrency: {
362
+ name: 'Algo',
363
+ symbol: 'ALGO',
364
+ decimals: 6,
365
+ },
366
+ isTestnet: false,
367
+ explorerUrl: 'https://explorer.perawallet.app/tx/{hash}',
368
+ rpcEndpoints: ['https://mainnet-api.algonode.cloud'],
369
+ eurcAddress: null,
370
+ usdcAddress: '31566704',
371
+ usdtAddress: null,
372
+ cctp: null,
373
+ });
374
+
375
+ /**
376
+ * Algorand Testnet chain definition
377
+ * @remarks
378
+ * This represents the official testnet for the Algorand blockchain.
379
+ */
380
+ defineChain({
381
+ type: 'algorand',
382
+ chain: Blockchain.Algorand_Testnet,
383
+ name: 'Algorand Testnet',
384
+ title: 'Algorand Test Network',
385
+ nativeCurrency: {
386
+ name: 'Algo',
387
+ symbol: 'ALGO',
388
+ decimals: 6,
389
+ },
390
+ isTestnet: true,
391
+ explorerUrl: 'https://testnet.explorer.perawallet.app/tx/{hash}',
392
+ rpcEndpoints: ['https://testnet-api.algonode.cloud'],
393
+ eurcAddress: null,
394
+ usdcAddress: '10458941',
395
+ usdtAddress: null,
396
+ cctp: null,
397
+ });
398
+
399
+ /**
400
+ * Aptos Mainnet chain definition
401
+ * @remarks
402
+ * This represents the official production network for the Aptos blockchain.
403
+ */
404
+ defineChain({
405
+ type: 'aptos',
406
+ chain: Blockchain.Aptos,
407
+ name: 'Aptos',
408
+ title: 'Aptos Mainnet',
409
+ nativeCurrency: {
410
+ name: 'Aptos',
411
+ symbol: 'APT',
412
+ decimals: 8,
413
+ },
414
+ isTestnet: false,
415
+ explorerUrl: 'https://explorer.aptoslabs.com/txn/{hash}?network=mainnet',
416
+ rpcEndpoints: ['https://fullnode.mainnet.aptoslabs.com/v1'],
417
+ eurcAddress: null,
418
+ usdcAddress: '0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b',
419
+ usdtAddress: '0x357b0b74bc833e95a115ad22604854d6b0fca151cecd94111770e5d6ffc9dc2b',
420
+ cctp: {
421
+ domain: 9,
422
+ contracts: {
423
+ v1: {
424
+ type: 'split',
425
+ tokenMessenger: '0x9bce6734f7b63e835108e3bd8c36743d4709fe435f44791918801d0989640a9d',
426
+ messageTransmitter: '0x177e17751820e4b4371873ca8c30279be63bdea63b88ed0f2239c2eea10f1772',
427
+ confirmations: 1,
428
+ },
429
+ },
430
+ forwarderSupported: {
431
+ source: false,
432
+ destination: false,
433
+ },
434
+ },
435
+ });
436
+
437
+ /**
438
+ * Aptos Testnet chain definition
439
+ * @remarks
440
+ * This represents the official test network for the Aptos blockchain.
441
+ */
442
+ defineChain({
443
+ type: 'aptos',
444
+ chain: Blockchain.Aptos_Testnet,
445
+ name: 'Aptos Testnet',
446
+ title: 'Aptos Test Network',
447
+ nativeCurrency: {
448
+ name: 'Aptos',
449
+ symbol: 'APT',
450
+ decimals: 8,
451
+ },
452
+ isTestnet: true,
453
+ explorerUrl: 'https://explorer.aptoslabs.com/txn/{hash}?network=testnet',
454
+ rpcEndpoints: ['https://fullnode.testnet.aptoslabs.com/v1'],
455
+ eurcAddress: null,
456
+ usdcAddress: '0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832',
457
+ usdtAddress: null,
458
+ cctp: {
459
+ domain: 9,
460
+ contracts: {
461
+ v1: {
462
+ type: 'split',
463
+ tokenMessenger: '0x5f9b937419dda90aa06c1836b7847f65bbbe3f1217567758dc2488be31a477b9',
464
+ messageTransmitter: '0x081e86cebf457a0c6004f35bd648a2794698f52e0dde09a48619dcd3d4cc23d9',
465
+ confirmations: 1,
466
+ },
467
+ },
468
+ forwarderSupported: {
469
+ source: false,
470
+ destination: false,
471
+ },
472
+ },
473
+ });
474
+
475
+ /**
476
+ * Complete swap token registry - single source of truth for all swap-supported tokens.
477
+ *
478
+ * @remarks
479
+ * All packages should import from this registry for swap operations.
480
+ * Adding a new swap token requires updating only this registry.
481
+ *
482
+ * The NATIVE token is handled separately as it resolves dynamically based on chain.
483
+ *
484
+ * @example
485
+ * ```typescript
486
+ * import { SWAP_TOKEN_REGISTRY } from '@core/chains'
487
+ *
488
+ * // Get token decimals
489
+ * const decimals = SWAP_TOKEN_REGISTRY.USDC.decimals // 6
490
+ *
491
+ * // Check if token is stablecoin
492
+ * const isStable = SWAP_TOKEN_REGISTRY.DAI.category === 'stablecoin' // true
493
+ * ```
494
+ */
495
+ const SWAP_TOKEN_REGISTRY = {
496
+ // ============================================================================
497
+ // Stablecoins (6 decimals)
498
+ // ============================================================================
499
+ USDC: {
500
+ symbol: 'USDC',
501
+ decimals: 6,
502
+ category: 'stablecoin',
503
+ description: 'USD Coin',
504
+ },
505
+ EURC: {
506
+ symbol: 'EURC',
507
+ decimals: 6,
508
+ category: 'stablecoin',
509
+ description: 'Euro Coin',
510
+ },
511
+ USDT: {
512
+ symbol: 'USDT',
513
+ decimals: 6,
514
+ category: 'stablecoin',
515
+ description: 'Tether USD',
516
+ },
517
+ PYUSD: {
518
+ symbol: 'PYUSD',
519
+ decimals: 6,
520
+ category: 'stablecoin',
521
+ description: 'PayPal USD',
522
+ },
523
+ // ============================================================================
524
+ // Stablecoins (18 decimals)
525
+ // ============================================================================
526
+ DAI: {
527
+ symbol: 'DAI',
528
+ decimals: 18,
529
+ category: 'stablecoin',
530
+ description: 'MakerDAO stablecoin',
531
+ },
532
+ USDE: {
533
+ symbol: 'USDE',
534
+ decimals: 18,
535
+ category: 'stablecoin',
536
+ description: 'Ethena USD (synthetic dollar)',
537
+ },
538
+ // ============================================================================
539
+ // Wrapped Tokens
540
+ // ============================================================================
541
+ WBTC: {
542
+ symbol: 'WBTC',
543
+ decimals: 8,
544
+ category: 'wrapped',
545
+ description: 'Wrapped Bitcoin',
546
+ },
547
+ WETH: {
548
+ symbol: 'WETH',
549
+ decimals: 18,
550
+ category: 'wrapped',
551
+ description: 'Wrapped Ethereum',
552
+ },
553
+ WSOL: {
554
+ symbol: 'WSOL',
555
+ decimals: 9,
556
+ category: 'wrapped',
557
+ description: 'Wrapped Solana',
558
+ },
559
+ WAVAX: {
560
+ symbol: 'WAVAX',
561
+ decimals: 18,
562
+ category: 'wrapped',
563
+ description: 'Wrapped Avalanche',
564
+ },
565
+ WPOL: {
566
+ symbol: 'WPOL',
567
+ decimals: 18,
568
+ category: 'wrapped',
569
+ description: 'Wrapped Polygon',
570
+ },
571
+ };
572
+ /**
573
+ * Special NATIVE token constant for swap operations.
574
+ *
575
+ * @remarks
576
+ * NATIVE is handled separately from SWAP_TOKEN_REGISTRY because it resolves
577
+ * dynamically based on the chain (ETH on Ethereum, SOL on Solana, etc.).
578
+ * Its decimals are chain-specific.
579
+ */
580
+ const NATIVE_TOKEN = 'NATIVE';
581
+ /**
582
+ * Array of all supported swap token symbols including NATIVE.
583
+ * Useful for iteration, validation, and filtering.
584
+ */
585
+ [
586
+ ...Object.keys(SWAP_TOKEN_REGISTRY),
587
+ NATIVE_TOKEN,
588
+ ];
589
+
590
+ /**
591
+ * The bridge contract address for EVM testnet networks.
592
+ *
593
+ * This contract handles USDC transfers on testnet environments across
594
+ * EVM-compatible chains. Use this address when deploying or testing
595
+ * cross-chain USDC transfers on test networks.
596
+ */
597
+ const BRIDGE_CONTRACT_EVM_TESTNET = '0xC5567a5E3370d4DBfB0540025078e283e36A363d';
598
+ /**
599
+ * The bridge contract address for EVM mainnet networks.
600
+ *
601
+ * This contract handles USDC transfers on mainnet environments across
602
+ * EVM-compatible chains. Use this address for production cross-chain
603
+ * USDC transfers on live networks.
604
+ */
605
+ const BRIDGE_CONTRACT_EVM_MAINNET = '0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0';
606
+ /**
607
+ * The adapter contract address for EVM mainnet networks.
608
+ *
609
+ * This contract serves as an adapter for integrating with various protocols
610
+ * on EVM-compatible chains. Use this address for mainnet adapter integrations.
611
+ */
612
+ const ADAPTER_CONTRACT_EVM_MAINNET = '0x7FB8c7260b63934d8da38aF902f87ae6e284a845';
613
+
614
+ /**
615
+ * Arc Testnet chain definition
616
+ * @remarks
617
+ * This represents the test network for the Arc blockchain,
618
+ * Circle's EVM-compatible Layer-1 designed for stablecoin finance
619
+ * and asset tokenization. Arc uses USDC as the native gas token and
620
+ * features the Malachite Byzantine Fault Tolerant (BFT) consensus
621
+ * engine for sub-second finality.
622
+ */
623
+ const ArcTestnet = defineChain({
624
+ type: 'evm',
625
+ chain: Blockchain.Arc_Testnet,
626
+ name: 'Arc Testnet',
627
+ title: 'ArcTestnet',
628
+ nativeCurrency: {
629
+ name: 'USDC',
630
+ symbol: 'USDC',
631
+ // Arc uses native USDC with 18 decimals for gas payments (EVM standard).
632
+ // Note: The ERC-20 USDC contract at usdcAddress uses 6 decimals.
633
+ // See: https://docs.arc.network/arc/references/contract-addresses
634
+ decimals: 18,
635
+ },
636
+ chainId: 5042002,
637
+ isTestnet: true,
638
+ explorerUrl: 'https://testnet.arcscan.app/tx/{hash}',
639
+ rpcEndpoints: ['https://rpc.testnet.arc.network/'],
640
+ eurcAddress: '0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a',
641
+ usdcAddress: '0x3600000000000000000000000000000000000000',
642
+ usdtAddress: null,
643
+ cctp: {
644
+ domain: 26,
645
+ contracts: {
646
+ v2: {
647
+ type: 'split',
648
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
649
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
650
+ confirmations: 1,
651
+ fastConfirmations: 1,
652
+ },
653
+ },
654
+ forwarderSupported: {
655
+ source: true,
656
+ destination: true,
657
+ },
658
+ },
659
+ kitContracts: {
660
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
661
+ },
662
+ });
663
+
664
+ /**
665
+ * Arbitrum Mainnet chain definition
666
+ * @remarks
667
+ * This represents the official production network for the Arbitrum blockchain.
668
+ */
669
+ const Arbitrum = defineChain({
670
+ type: 'evm',
671
+ chain: Blockchain.Arbitrum,
672
+ name: 'Arbitrum',
673
+ title: 'Arbitrum Mainnet',
674
+ nativeCurrency: {
675
+ name: 'Ether',
676
+ symbol: 'ETH',
677
+ decimals: 18,
678
+ },
679
+ chainId: 42161,
680
+ isTestnet: false,
681
+ explorerUrl: 'https://arbiscan.io/tx/{hash}',
682
+ rpcEndpoints: ['https://arb1.arbitrum.io/rpc'],
683
+ eurcAddress: null,
684
+ usdcAddress: '0xaf88d065e77c8cc2239327c5edb3a432268e5831',
685
+ usdtAddress: null,
686
+ cctp: {
687
+ domain: 3,
688
+ contracts: {
689
+ v1: {
690
+ type: 'split',
691
+ tokenMessenger: '0x19330d10D9Cc8751218eaf51E8885D058642E08A',
692
+ messageTransmitter: '0xC30362313FBBA5cf9163F0bb16a0e01f01A896ca',
693
+ confirmations: 65,
694
+ },
695
+ v2: {
696
+ type: 'split',
697
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
698
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
699
+ confirmations: 65,
700
+ fastConfirmations: 1,
701
+ },
702
+ },
703
+ forwarderSupported: {
704
+ source: true,
705
+ destination: true,
706
+ },
707
+ },
708
+ kitContracts: {
709
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
710
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
711
+ },
712
+ });
713
+
714
+ /**
715
+ * Arbitrum Sepolia Testnet chain definition
716
+ * @remarks
717
+ * This represents the official test network for the Arbitrum blockchain on Sepolia.
718
+ */
719
+ const ArbitrumSepolia = defineChain({
720
+ type: 'evm',
721
+ chain: Blockchain.Arbitrum_Sepolia,
722
+ name: 'Arbitrum Sepolia',
723
+ title: 'Arbitrum Sepolia Testnet',
724
+ nativeCurrency: {
725
+ name: 'Sepolia Ether',
726
+ symbol: 'ETH',
727
+ decimals: 18,
728
+ },
729
+ chainId: 421614,
730
+ isTestnet: true,
731
+ explorerUrl: 'https://sepolia.arbiscan.io/tx/{hash}',
732
+ rpcEndpoints: ['https://sepolia-rollup.arbitrum.io/rpc'],
733
+ eurcAddress: null,
734
+ usdcAddress: '0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d',
735
+ usdtAddress: null,
736
+ cctp: {
737
+ domain: 3,
738
+ contracts: {
739
+ v1: {
740
+ type: 'split',
741
+ tokenMessenger: '0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5',
742
+ messageTransmitter: '0xaCF1ceeF35caAc005e15888dDb8A3515C41B4872',
743
+ confirmations: 65,
744
+ },
745
+ v2: {
746
+ type: 'split',
747
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
748
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
749
+ confirmations: 65,
750
+ fastConfirmations: 1,
751
+ },
752
+ },
753
+ forwarderSupported: {
754
+ source: true,
755
+ destination: true,
756
+ },
757
+ },
758
+ kitContracts: {
759
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
760
+ },
761
+ });
762
+
763
+ /**
764
+ * Avalanche Mainnet chain definition
765
+ * @remarks
766
+ * This represents the official production network for the Avalanche blockchain.
767
+ */
768
+ const Avalanche = defineChain({
769
+ type: 'evm',
770
+ chain: Blockchain.Avalanche,
771
+ name: 'Avalanche',
772
+ title: 'Avalanche Mainnet',
773
+ nativeCurrency: {
774
+ name: 'Avalanche',
775
+ symbol: 'AVAX',
776
+ decimals: 18,
777
+ },
778
+ chainId: 43114,
779
+ isTestnet: false,
780
+ explorerUrl: 'https://subnets.avax.network/c-chain/tx/{hash}',
781
+ rpcEndpoints: ['https://api.avax.network/ext/bc/C/rpc'],
782
+ eurcAddress: '0xc891eb4cbdeff6e073e859e987815ed1505c2acd',
783
+ usdcAddress: '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E',
784
+ usdtAddress: '0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7',
785
+ cctp: {
786
+ domain: 1,
787
+ contracts: {
788
+ v1: {
789
+ type: 'split',
790
+ tokenMessenger: '0x6b25532e1060ce10cc3b0a99e5683b91bfde6982',
791
+ messageTransmitter: '0x8186359af5f57fbb40c6b14a588d2a59c0c29880',
792
+ confirmations: 1,
793
+ },
794
+ v2: {
795
+ type: 'split',
796
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
797
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
798
+ confirmations: 1,
799
+ fastConfirmations: 1,
800
+ },
801
+ },
802
+ forwarderSupported: {
803
+ source: true,
804
+ destination: true,
805
+ },
806
+ },
807
+ kitContracts: {
808
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
809
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
810
+ },
811
+ });
812
+
813
+ /**
814
+ * Avalanche Fuji Testnet chain definition
815
+ * @remarks
816
+ * This represents the official test network for the Avalanche blockchain.
817
+ */
818
+ const AvalancheFuji = defineChain({
819
+ type: 'evm',
820
+ chain: Blockchain.Avalanche_Fuji,
821
+ name: 'Avalanche Fuji',
822
+ title: 'Avalanche Fuji Testnet',
823
+ nativeCurrency: {
824
+ name: 'Avalanche',
825
+ symbol: 'AVAX',
826
+ decimals: 18,
827
+ },
828
+ chainId: 43113,
829
+ isTestnet: true,
830
+ explorerUrl: 'https://subnets-test.avax.network/c-chain/tx/{hash}',
831
+ eurcAddress: '0x5e44db7996c682e92a960b65ac713a54ad815c6b',
832
+ usdcAddress: '0x5425890298aed601595a70ab815c96711a31bc65',
833
+ usdtAddress: null,
834
+ cctp: {
835
+ domain: 1,
836
+ contracts: {
837
+ v1: {
838
+ type: 'split',
839
+ tokenMessenger: '0xeb08f243e5d3fcff26a9e38ae5520a669f4019d0',
840
+ messageTransmitter: '0xa9fb1b3009dcb79e2fe346c16a604b8fa8ae0a79',
841
+ confirmations: 1,
842
+ },
843
+ v2: {
844
+ type: 'split',
845
+ tokenMessenger: '0x8fe6b999dc680ccfdd5bf7eb0974218be2542daa',
846
+ messageTransmitter: '0xe737e5cebeeba77efe34d4aa090756590b1ce275',
847
+ confirmations: 1,
848
+ fastConfirmations: 1,
849
+ },
850
+ },
851
+ forwarderSupported: {
852
+ source: true,
853
+ destination: true,
854
+ },
855
+ },
856
+ rpcEndpoints: ['https://api.avax-test.network/ext/bc/C/rpc'],
857
+ kitContracts: {
858
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
859
+ },
860
+ });
861
+
862
+ /**
863
+ * Base chain definition
864
+ * @remarks
865
+ * This represents the official production network for the Base blockchain.
866
+ */
867
+ const Base = defineChain({
868
+ type: 'evm',
869
+ chain: Blockchain.Base,
870
+ name: 'Base',
871
+ title: 'Base Mainnet',
872
+ nativeCurrency: {
873
+ name: 'Ether',
874
+ symbol: 'ETH',
875
+ decimals: 18,
876
+ },
877
+ chainId: 8453,
878
+ isTestnet: false,
879
+ explorerUrl: 'https://basescan.org/tx/{hash}',
880
+ rpcEndpoints: ['https://mainnet.base.org', 'https://base.publicnode.com'],
881
+ eurcAddress: '0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42',
882
+ usdcAddress: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
883
+ usdtAddress: null,
884
+ cctp: {
885
+ domain: 6,
886
+ contracts: {
887
+ v1: {
888
+ type: 'split',
889
+ tokenMessenger: '0x1682Ae6375C4E4A97e4B583BC394c861A46D8962',
890
+ messageTransmitter: '0xAD09780d193884d503182aD4588450C416D6F9D4',
891
+ confirmations: 65,
892
+ },
893
+ v2: {
894
+ type: 'split',
895
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
896
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
897
+ confirmations: 65,
898
+ fastConfirmations: 1,
899
+ },
900
+ },
901
+ forwarderSupported: {
902
+ source: true,
903
+ destination: true,
904
+ },
905
+ },
906
+ kitContracts: {
907
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
908
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
909
+ },
910
+ });
911
+
912
+ /**
913
+ * Base Sepolia Testnet chain definition
914
+ * @remarks
915
+ * This represents the official test network for the Base blockchain on Sepolia.
916
+ */
917
+ const BaseSepolia = defineChain({
918
+ type: 'evm',
919
+ chain: Blockchain.Base_Sepolia,
920
+ name: 'Base Sepolia',
921
+ title: 'Base Sepolia Testnet',
922
+ nativeCurrency: {
923
+ name: 'Sepolia Ether',
924
+ symbol: 'ETH',
925
+ decimals: 18,
926
+ },
927
+ chainId: 84532,
928
+ isTestnet: true,
929
+ explorerUrl: 'https://sepolia.basescan.org/tx/{hash}',
930
+ rpcEndpoints: ['https://sepolia.base.org'],
931
+ eurcAddress: '0x808456652fdb597867f38412077A9182bf77359F',
932
+ usdcAddress: '0x036CbD53842c5426634e7929541eC2318f3dCF7e',
933
+ usdtAddress: null,
934
+ cctp: {
935
+ domain: 6,
936
+ contracts: {
937
+ v1: {
938
+ type: 'split',
939
+ tokenMessenger: '0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5',
940
+ messageTransmitter: '0x7865fAfC2db2093669d92c0F33AeEF291086BEFD',
941
+ confirmations: 65,
942
+ },
943
+ v2: {
944
+ type: 'split',
945
+ tokenMessenger: '0x8fe6b999dc680ccfdd5bf7eb0974218be2542daa',
946
+ messageTransmitter: '0xe737e5cebeeba77efe34d4aa090756590b1ce275',
947
+ confirmations: 65,
948
+ fastConfirmations: 1,
949
+ },
950
+ },
951
+ forwarderSupported: {
952
+ source: true,
953
+ destination: true,
954
+ },
955
+ },
956
+ kitContracts: {
957
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
958
+ },
959
+ });
960
+
961
+ /**
962
+ * Celo Mainnet chain definition
963
+ * @remarks
964
+ * This represents the official production network for the Celo blockchain.
965
+ */
966
+ defineChain({
967
+ type: 'evm',
968
+ chain: Blockchain.Celo,
969
+ name: 'Celo',
970
+ title: 'Celo Mainnet',
971
+ nativeCurrency: {
972
+ name: 'Celo',
973
+ symbol: 'CELO',
974
+ decimals: 18,
975
+ },
976
+ chainId: 42220,
977
+ isTestnet: false,
978
+ explorerUrl: 'https://celoscan.io/tx/{hash}',
979
+ rpcEndpoints: ['https://forno.celo.org'],
980
+ eurcAddress: null,
981
+ usdcAddress: '0xcebA9300f2b948710d2653dD7B07f33A8B32118C',
982
+ usdtAddress: '0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e',
983
+ cctp: null,
984
+ });
985
+
986
+ /**
987
+ * Celo Alfajores Testnet chain definition
988
+ * @remarks
989
+ * This represents the official test network for the Celo blockchain.
990
+ */
991
+ defineChain({
992
+ type: 'evm',
993
+ chain: Blockchain.Celo_Alfajores_Testnet,
994
+ name: 'Celo Alfajores',
995
+ title: 'Celo Alfajores Testnet',
996
+ nativeCurrency: {
997
+ name: 'Celo',
998
+ symbol: 'CELO',
999
+ decimals: 18,
1000
+ },
1001
+ chainId: 44787,
1002
+ isTestnet: true,
1003
+ explorerUrl: 'https://alfajores.celoscan.io/tx/{hash}',
1004
+ rpcEndpoints: ['https://alfajores-forno.celo-testnet.org'],
1005
+ eurcAddress: null,
1006
+ usdcAddress: '0x2F25deB3848C207fc8E0c34035B3Ba7fC157602B',
1007
+ usdtAddress: null,
1008
+ cctp: null,
1009
+ });
1010
+
1011
+ /**
1012
+ * Codex Mainnet chain definition
1013
+ * @remarks
1014
+ * This represents the main network for the Codex blockchain.
1015
+ */
1016
+ const Codex = defineChain({
1017
+ type: 'evm',
1018
+ chain: Blockchain.Codex,
1019
+ name: 'Codex Mainnet',
1020
+ title: 'Codex Mainnet',
1021
+ nativeCurrency: {
1022
+ name: 'ETH',
1023
+ symbol: 'ETH',
1024
+ decimals: 18,
1025
+ },
1026
+ chainId: 81224,
1027
+ isTestnet: false,
1028
+ explorerUrl: 'https://explorer.codex.xyz/tx/{hash}',
1029
+ rpcEndpoints: ['https://rpc.codex.xyz'],
1030
+ eurcAddress: null,
1031
+ usdcAddress: '0xd996633a415985DBd7D6D12f4A4343E31f5037cf',
1032
+ usdtAddress: null,
1033
+ cctp: {
1034
+ domain: 12,
1035
+ contracts: {
1036
+ v2: {
1037
+ type: 'split',
1038
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
1039
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
1040
+ confirmations: 65,
1041
+ fastConfirmations: 1,
1042
+ },
1043
+ },
1044
+ forwarderSupported: {
1045
+ source: true,
1046
+ destination: false,
1047
+ },
1048
+ },
1049
+ kitContracts: {
1050
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
1051
+ },
1052
+ });
1053
+
1054
+ /**
1055
+ * Codex Testnet chain definition
1056
+ * @remarks
1057
+ * This represents the test network for the Codex blockchain.
1058
+ */
1059
+ const CodexTestnet = defineChain({
1060
+ type: 'evm',
1061
+ chain: Blockchain.Codex_Testnet,
1062
+ name: 'Codex Testnet',
1063
+ title: 'Codex Testnet',
1064
+ nativeCurrency: {
1065
+ name: 'ETH',
1066
+ symbol: 'ETH',
1067
+ decimals: 18,
1068
+ },
1069
+ chainId: 812242,
1070
+ isTestnet: true,
1071
+ explorerUrl: 'https://explorer.codex-stg.xyz/tx/{hash}',
1072
+ rpcEndpoints: ['https://rpc.codex-stg.xyz'],
1073
+ eurcAddress: null,
1074
+ usdcAddress: '0x6d7f141b6819C2c9CC2f818e6ad549E7Ca090F8f',
1075
+ usdtAddress: null,
1076
+ cctp: {
1077
+ domain: 12,
1078
+ contracts: {
1079
+ v2: {
1080
+ type: 'split',
1081
+ tokenMessenger: '0x8fe6b999dc680ccfdd5bf7eb0974218be2542daa',
1082
+ messageTransmitter: '0xe737e5cebeeba77efe34d4aa090756590b1ce275',
1083
+ confirmations: 65,
1084
+ fastConfirmations: 1,
1085
+ },
1086
+ },
1087
+ forwarderSupported: {
1088
+ source: true,
1089
+ destination: false,
1090
+ },
1091
+ },
1092
+ kitContracts: {
1093
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
1094
+ },
1095
+ });
1096
+
1097
+ /**
1098
+ * Edge Mainnet chain definition
1099
+ * @remarks
1100
+ * This represents the official production network for the Edge blockchain.
1101
+ * Edge is an EVM-compatible blockchain.
1102
+ */
1103
+ defineChain({
1104
+ type: 'evm',
1105
+ chain: Blockchain.Edge,
1106
+ name: 'Edge',
1107
+ title: 'Edge Mainnet',
1108
+ nativeCurrency: {
1109
+ name: 'Ether',
1110
+ symbol: 'ETH',
1111
+ decimals: 18,
1112
+ },
1113
+ chainId: 3343,
1114
+ isTestnet: false,
1115
+ explorerUrl: 'https://pro.edgex.exchange/en-US/explorer/tx/{hash}',
1116
+ rpcEndpoints: ['https://edge-mainnet.g.alchemy.com/public'],
1117
+ eurcAddress: null,
1118
+ usdcAddress: '0x98d2919b9A214E6Fa5384AC81E6864bA686Ad74c',
1119
+ usdtAddress: null,
1120
+ cctp: {
1121
+ domain: 28,
1122
+ contracts: {
1123
+ v2: {
1124
+ type: 'split',
1125
+ tokenMessenger: '0x98706A006bc632Df31CAdFCBD43F38887ce2ca5c',
1126
+ messageTransmitter: '0x5b61381Fc9e58E70EfC13a4A97516997019198ee',
1127
+ confirmations: 65,
1128
+ fastConfirmations: 1,
1129
+ },
1130
+ },
1131
+ forwarderSupported: {
1132
+ source: true,
1133
+ destination: true,
1134
+ },
1135
+ },
1136
+ kitContracts: {
1137
+ bridge: '0x6D1AaE1c34Aeb582022916a67f2A655C6f4eDFF2', //Unique bridge address as CCTP address for Edge is also unique
1138
+ },
1139
+ });
1140
+
1141
+ /**
1142
+ * Edge Testnet chain definition
1143
+ * @remarks
1144
+ * This represents the official test network for the Edge blockchain.
1145
+ * Edge is an EVM-compatible blockchain.
1146
+ */
1147
+ defineChain({
1148
+ type: 'evm',
1149
+ chain: Blockchain.Edge_Testnet,
1150
+ name: 'Edge Testnet',
1151
+ title: 'Edge Testnet',
1152
+ nativeCurrency: {
1153
+ name: 'Ether',
1154
+ symbol: 'ETH',
1155
+ decimals: 18,
1156
+ },
1157
+ chainId: 33431,
1158
+ isTestnet: true,
1159
+ explorerUrl: 'https://edge-testnet.explorer.alchemy.com/tx/{hash}',
1160
+ rpcEndpoints: ['https://edge-testnet.g.alchemy.com/public'],
1161
+ eurcAddress: null,
1162
+ usdcAddress: '0x2d9F7CAD728051AA35Ecdc472a14cf8cDF5CFD6B',
1163
+ usdtAddress: null,
1164
+ cctp: {
1165
+ domain: 28,
1166
+ contracts: {
1167
+ v2: {
1168
+ type: 'split',
1169
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
1170
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
1171
+ confirmations: 65,
1172
+ fastConfirmations: 1,
1173
+ },
1174
+ },
1175
+ forwarderSupported: {
1176
+ source: true,
1177
+ destination: true,
1178
+ },
1179
+ },
1180
+ kitContracts: {
1181
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
1182
+ },
1183
+ });
1184
+
1185
+ /**
1186
+ * Ethereum Mainnet chain definition
1187
+ * @remarks
1188
+ * This represents the official production network for the Ethereum blockchain.
1189
+ */
1190
+ const Ethereum = defineChain({
1191
+ type: 'evm',
1192
+ chain: Blockchain.Ethereum,
1193
+ name: 'Ethereum',
1194
+ title: 'Ethereum Mainnet',
1195
+ nativeCurrency: {
1196
+ name: 'Ether',
1197
+ symbol: 'ETH',
1198
+ decimals: 18,
1199
+ },
1200
+ chainId: 1,
1201
+ isTestnet: false,
1202
+ explorerUrl: 'https://etherscan.io/tx/{hash}',
1203
+ rpcEndpoints: ['https://eth.merkle.io', 'https://ethereum.publicnode.com'],
1204
+ eurcAddress: '0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c',
1205
+ usdcAddress: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
1206
+ usdtAddress: '0xdac17f958d2ee523a2206206994597c13d831ec7',
1207
+ cctp: {
1208
+ domain: 0,
1209
+ contracts: {
1210
+ v1: {
1211
+ type: 'split',
1212
+ tokenMessenger: '0xbd3fa81b58ba92a82136038b25adec7066af3155',
1213
+ messageTransmitter: '0x0a992d191deec32afe36203ad87d7d289a738f81',
1214
+ confirmations: 65,
1215
+ },
1216
+ v2: {
1217
+ type: 'split',
1218
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
1219
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
1220
+ confirmations: 65,
1221
+ fastConfirmations: 2,
1222
+ },
1223
+ },
1224
+ forwarderSupported: {
1225
+ source: true,
1226
+ destination: true,
1227
+ },
1228
+ },
1229
+ kitContracts: {
1230
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
1231
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
1232
+ },
1233
+ });
1234
+
1235
+ /**
1236
+ * Ethereum Sepolia Testnet chain definition
1237
+ * @remarks
1238
+ * This represents the official test network for the Ethereum blockchain on Sepolia.
1239
+ */
1240
+ const EthereumSepolia = defineChain({
1241
+ type: 'evm',
1242
+ chain: Blockchain.Ethereum_Sepolia,
1243
+ name: 'Ethereum Sepolia',
1244
+ title: 'Ethereum Sepolia Testnet',
1245
+ nativeCurrency: {
1246
+ name: 'Sepolia Ether',
1247
+ symbol: 'ETH',
1248
+ decimals: 18,
1249
+ },
1250
+ chainId: 11155111,
1251
+ isTestnet: true,
1252
+ explorerUrl: 'https://sepolia.etherscan.io/tx/{hash}',
1253
+ rpcEndpoints: ['https://sepolia.drpc.org'],
1254
+ eurcAddress: '0x08210F9170F89Ab7658F0B5E3fF39b0E03C594D4',
1255
+ usdcAddress: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238',
1256
+ usdtAddress: null,
1257
+ cctp: {
1258
+ domain: 0,
1259
+ contracts: {
1260
+ v1: {
1261
+ type: 'split',
1262
+ tokenMessenger: '0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5',
1263
+ messageTransmitter: '0x7865fAfC2db2093669d92c0F33AeEF291086BEFD',
1264
+ confirmations: 65,
1265
+ },
1266
+ v2: {
1267
+ type: 'split',
1268
+ tokenMessenger: '0x8fe6b999dc680ccfdd5bf7eb0974218be2542daa',
1269
+ messageTransmitter: '0xe737e5cebeeba77efe34d4aa090756590b1ce275',
1270
+ confirmations: 65,
1271
+ fastConfirmations: 2,
1272
+ },
1273
+ },
1274
+ forwarderSupported: {
1275
+ source: true,
1276
+ destination: true,
1277
+ },
1278
+ },
1279
+ kitContracts: {
1280
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
1281
+ },
1282
+ });
1283
+
1284
+ /**
1285
+ * Hedera Mainnet chain definition
1286
+ * @remarks
1287
+ * This represents the official production network for the Hedera blockchain.
1288
+ */
1289
+ defineChain({
1290
+ type: 'hedera',
1291
+ chain: Blockchain.Hedera,
1292
+ name: 'Hedera',
1293
+ title: 'Hedera Mainnet',
1294
+ nativeCurrency: {
1295
+ name: 'HBAR',
1296
+ symbol: 'HBAR',
1297
+ decimals: 18,
1298
+ },
1299
+ isTestnet: false,
1300
+ explorerUrl: 'https://hashscan.io/mainnet/transaction/{hash}', // Note: Hedera uses `transaction_id`, not hash. Format is typically `0.0.X-YYYY...`.
1301
+ rpcEndpoints: ['https://mainnet.hashio.io/api'],
1302
+ eurcAddress: null,
1303
+ usdcAddress: '0.0.456858',
1304
+ usdtAddress: null,
1305
+ cctp: null,
1306
+ });
1307
+
1308
+ /**
1309
+ * Hedera Testnet chain definition
1310
+ * @remarks
1311
+ * This represents the official test network for the Hedera blockchain.
1312
+ */
1313
+ defineChain({
1314
+ type: 'hedera',
1315
+ chain: Blockchain.Hedera_Testnet,
1316
+ name: 'Hedera Testnet',
1317
+ title: 'Hedera Test Network',
1318
+ nativeCurrency: {
1319
+ name: 'HBAR',
1320
+ symbol: 'HBAR',
1321
+ decimals: 18,
1322
+ },
1323
+ isTestnet: true,
1324
+ explorerUrl: 'https://hashscan.io/testnet/transaction/{hash}', // Note: Hedera uses `transaction_id`, not hash. Format is typically `0.0.X-YYYY...`.
1325
+ rpcEndpoints: ['https://testnet.hashio.io/api'],
1326
+ eurcAddress: null,
1327
+ usdcAddress: '0.0.429274',
1328
+ usdtAddress: null,
1329
+ cctp: null,
1330
+ });
1331
+
1332
+ /**
1333
+ * HyperEVM Mainnet chain definition
1334
+ * @remarks
1335
+ * This represents the official production network for the HyperEVM blockchain.
1336
+ * HyperEVM is a Layer 1 blockchain specialized for DeFi and trading applications
1337
+ * with native orderbook and matching engine.
1338
+ */
1339
+ const HyperEVM = defineChain({
1340
+ type: 'evm',
1341
+ chain: Blockchain.HyperEVM,
1342
+ name: 'HyperEVM',
1343
+ title: 'HyperEVM Mainnet',
1344
+ nativeCurrency: {
1345
+ name: 'Hype',
1346
+ symbol: 'HYPE',
1347
+ decimals: 18,
1348
+ },
1349
+ chainId: 999,
1350
+ isTestnet: false,
1351
+ explorerUrl: 'https://hyperevmscan.io/tx/{hash}',
1352
+ rpcEndpoints: ['https://rpc.hyperliquid.xyz/evm'],
1353
+ eurcAddress: null,
1354
+ usdcAddress: '0xb88339CB7199b77E23DB6E890353E22632Ba630f',
1355
+ usdtAddress: null,
1356
+ cctp: {
1357
+ domain: 19,
1358
+ contracts: {
1359
+ v2: {
1360
+ type: 'split',
1361
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
1362
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
1363
+ confirmations: 1,
1364
+ fastConfirmations: 1,
1365
+ },
1366
+ },
1367
+ forwarderSupported: {
1368
+ source: true,
1369
+ destination: true,
1370
+ },
1371
+ },
1372
+ kitContracts: {
1373
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
1374
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
1375
+ },
1376
+ });
1377
+
1378
+ /**
1379
+ * HyperEVM Testnet chain definition
1380
+ * @remarks
1381
+ * This represents the official testnet for the HyperEVM blockchain.
1382
+ * Used for development and testing purposes before deploying to mainnet.
1383
+ */
1384
+ const HyperEVMTestnet = defineChain({
1385
+ type: 'evm',
1386
+ chain: Blockchain.HyperEVM_Testnet,
1387
+ name: 'HyperEVM Testnet',
1388
+ title: 'HyperEVM Test Network',
1389
+ nativeCurrency: {
1390
+ name: 'Hype',
1391
+ symbol: 'HYPE',
1392
+ decimals: 18,
1393
+ },
1394
+ chainId: 998,
1395
+ isTestnet: true,
1396
+ explorerUrl: 'https://testnet.hyperliquid.xyz/explorer/tx/{hash}',
1397
+ rpcEndpoints: ['https://rpc.hyperliquid-testnet.xyz/evm'],
1398
+ eurcAddress: null,
1399
+ usdcAddress: '0x2B3370eE501B4a559b57D449569354196457D8Ab',
1400
+ usdtAddress: null,
1401
+ cctp: {
1402
+ domain: 19,
1403
+ contracts: {
1404
+ v2: {
1405
+ type: 'split',
1406
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
1407
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
1408
+ confirmations: 1,
1409
+ fastConfirmations: 1,
1410
+ },
1411
+ },
1412
+ forwarderSupported: {
1413
+ source: true,
1414
+ destination: true,
1415
+ },
1416
+ },
1417
+ kitContracts: {
1418
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
1419
+ },
1420
+ });
1421
+
1422
+ /**
1423
+ * Ink Mainnet chain definition
1424
+ * @remarks
1425
+ * This represents the official production network for the Ink blockchain.
1426
+ * Ink is a Layer 1 blockchain specialized for DeFi and trading applications
1427
+ * with native orderbook and matching engine.
1428
+ */
1429
+ const Ink = defineChain({
1430
+ type: 'evm',
1431
+ chain: Blockchain.Ink,
1432
+ name: 'Ink',
1433
+ title: 'Ink Mainnet',
1434
+ nativeCurrency: {
1435
+ name: 'Ether',
1436
+ symbol: 'ETH',
1437
+ decimals: 18,
1438
+ },
1439
+ chainId: 57073,
1440
+ isTestnet: false,
1441
+ explorerUrl: 'https://explorer.inkonchain.com/tx/{hash}',
1442
+ rpcEndpoints: [
1443
+ 'https://rpc-gel.inkonchain.com',
1444
+ 'https://rpc-qnd.inkonchain.com',
1445
+ ],
1446
+ eurcAddress: null,
1447
+ usdcAddress: '0x2D270e6886d130D724215A266106e6832161EAEd',
1448
+ usdtAddress: null,
1449
+ cctp: {
1450
+ domain: 21,
1451
+ contracts: {
1452
+ v2: {
1453
+ type: 'split',
1454
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
1455
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
1456
+ confirmations: 65,
1457
+ fastConfirmations: 1,
1458
+ },
1459
+ },
1460
+ forwarderSupported: {
1461
+ source: true,
1462
+ destination: true,
1463
+ },
1464
+ },
1465
+ kitContracts: {
1466
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
1467
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
1468
+ },
1469
+ });
1470
+
1471
+ /**
1472
+ * Ink Testnet chain definition
1473
+ * @remarks
1474
+ * This represents the official testnet for the Ink blockchain.
1475
+ * Used for development and testing purposes before deploying to mainnet.
1476
+ */
1477
+ const InkTestnet = defineChain({
1478
+ type: 'evm',
1479
+ chain: Blockchain.Ink_Testnet,
1480
+ name: 'Ink Sepolia',
1481
+ title: 'Ink Sepolia Testnet',
1482
+ nativeCurrency: {
1483
+ name: 'Sepolia Ether',
1484
+ symbol: 'ETH',
1485
+ decimals: 18,
1486
+ },
1487
+ chainId: 763373,
1488
+ isTestnet: true,
1489
+ explorerUrl: 'https://explorer-sepolia.inkonchain.com/tx/{hash}',
1490
+ rpcEndpoints: [
1491
+ 'https://rpc-gel-sepolia.inkonchain.com',
1492
+ 'https://rpc-qnd-sepolia.inkonchain.com',
1493
+ ],
1494
+ eurcAddress: null,
1495
+ usdcAddress: '0xFabab97dCE620294D2B0b0e46C68964e326300Ac',
1496
+ usdtAddress: null,
1497
+ cctp: {
1498
+ domain: 21,
1499
+ contracts: {
1500
+ v2: {
1501
+ type: 'split',
1502
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
1503
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
1504
+ confirmations: 65,
1505
+ fastConfirmations: 1,
1506
+ },
1507
+ },
1508
+ forwarderSupported: {
1509
+ source: true,
1510
+ destination: true,
1511
+ },
1512
+ },
1513
+ kitContracts: {
1514
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
1515
+ },
1516
+ });
1517
+
1518
+ /**
1519
+ * Linea Mainnet chain definition
1520
+ * @remarks
1521
+ * This represents the official production network for the Linea blockchain.
1522
+ */
1523
+ const Linea = defineChain({
1524
+ type: 'evm',
1525
+ chain: Blockchain.Linea,
1526
+ name: 'Linea',
1527
+ title: 'Linea Mainnet',
1528
+ nativeCurrency: {
1529
+ name: 'Ether',
1530
+ symbol: 'ETH',
1531
+ decimals: 18,
1532
+ },
1533
+ chainId: 59144,
1534
+ isTestnet: false,
1535
+ explorerUrl: 'https://lineascan.build/tx/{hash}',
1536
+ rpcEndpoints: ['https://rpc.linea.build'],
1537
+ eurcAddress: null,
1538
+ usdcAddress: '0x176211869ca2b568f2a7d4ee941e073a821ee1ff',
1539
+ usdtAddress: null,
1540
+ cctp: {
1541
+ domain: 11,
1542
+ contracts: {
1543
+ v2: {
1544
+ type: 'split',
1545
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
1546
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
1547
+ confirmations: 1,
1548
+ fastConfirmations: 1,
1549
+ },
1550
+ },
1551
+ forwarderSupported: {
1552
+ source: true,
1553
+ destination: true,
1554
+ },
1555
+ },
1556
+ kitContracts: {
1557
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
1558
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
1559
+ },
1560
+ });
1561
+
1562
+ /**
1563
+ * Linea Sepolia Testnet chain definition
1564
+ * @remarks
1565
+ * This represents the official test network for the Linea blockchain on Sepolia.
1566
+ */
1567
+ const LineaSepolia = defineChain({
1568
+ type: 'evm',
1569
+ chain: Blockchain.Linea_Sepolia,
1570
+ name: 'Linea Sepolia',
1571
+ title: 'Linea Sepolia Testnet',
1572
+ nativeCurrency: {
1573
+ name: 'Sepolia Ether',
1574
+ symbol: 'ETH',
1575
+ decimals: 18,
1576
+ },
1577
+ chainId: 59141,
1578
+ isTestnet: true,
1579
+ explorerUrl: 'https://sepolia.lineascan.build/tx/{hash}',
1580
+ rpcEndpoints: ['https://rpc.sepolia.linea.build'],
1581
+ eurcAddress: null,
1582
+ usdcAddress: '0xfece4462d57bd51a6a552365a011b95f0e16d9b7',
1583
+ usdtAddress: null,
1584
+ cctp: {
1585
+ domain: 11,
1586
+ contracts: {
1587
+ v2: {
1588
+ type: 'split',
1589
+ tokenMessenger: '0x8fe6b999dc680ccfdd5bf7eb0974218be2542daa',
1590
+ messageTransmitter: '0xe737e5cebeeba77efe34d4aa090756590b1ce275',
1591
+ confirmations: 1,
1592
+ fastConfirmations: 1,
1593
+ },
1594
+ },
1595
+ forwarderSupported: {
1596
+ source: true,
1597
+ destination: true,
1598
+ },
1599
+ },
1600
+ kitContracts: {
1601
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
1602
+ },
1603
+ });
1604
+
1605
+ /**
1606
+ * Monad Mainnet chain definition
1607
+ * @remarks
1608
+ * This represents the official production network for the Monad blockchain.
1609
+ * Monad is a high-performance EVM-compatible Layer-1 blockchain featuring
1610
+ * over 10,000 TPS, sub-second finality, and near-zero gas fees.
1611
+ */
1612
+ defineChain({
1613
+ type: 'evm',
1614
+ chain: Blockchain.Monad,
1615
+ name: 'Monad',
1616
+ title: 'Monad Mainnet',
1617
+ nativeCurrency: {
1618
+ name: 'Monad',
1619
+ symbol: 'MON',
1620
+ decimals: 18,
1621
+ },
1622
+ chainId: 143,
1623
+ isTestnet: false,
1624
+ explorerUrl: 'https://monadscan.com/tx/{hash}',
1625
+ rpcEndpoints: ['https://rpc.monad.xyz'],
1626
+ eurcAddress: null,
1627
+ usdcAddress: '0x754704Bc059F8C67012fEd69BC8A327a5aafb603',
1628
+ usdtAddress: null,
1629
+ cctp: {
1630
+ domain: 15,
1631
+ contracts: {
1632
+ v2: {
1633
+ type: 'split',
1634
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
1635
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
1636
+ confirmations: 1,
1637
+ fastConfirmations: 1,
1638
+ },
1639
+ },
1640
+ forwarderSupported: {
1641
+ source: true,
1642
+ destination: true,
1643
+ },
1644
+ },
1645
+ kitContracts: {
1646
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
1647
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
1648
+ },
1649
+ });
1650
+
1651
+ /**
1652
+ * Monad Testnet chain definition
1653
+ * @remarks
1654
+ * This represents the official test network for the Monad blockchain.
1655
+ * Monad is a high-performance EVM-compatible Layer-1 blockchain featuring
1656
+ * over 10,000 TPS, sub-second finality, and near-zero gas fees.
1657
+ */
1658
+ defineChain({
1659
+ type: 'evm',
1660
+ chain: Blockchain.Monad_Testnet,
1661
+ name: 'Monad Testnet',
1662
+ title: 'Monad Testnet',
1663
+ nativeCurrency: {
1664
+ name: 'Monad',
1665
+ symbol: 'MON',
1666
+ decimals: 18,
1667
+ },
1668
+ chainId: 10143,
1669
+ isTestnet: true,
1670
+ explorerUrl: 'https://testnet.monadscan.com/tx/{hash}',
1671
+ rpcEndpoints: ['https://testnet-rpc.monad.xyz'],
1672
+ eurcAddress: null,
1673
+ usdcAddress: '0x534b2f3A21130d7a60830c2Df862319e593943A3',
1674
+ usdtAddress: null,
1675
+ cctp: {
1676
+ domain: 15,
1677
+ contracts: {
1678
+ v2: {
1679
+ type: 'split',
1680
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
1681
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
1682
+ confirmations: 1,
1683
+ fastConfirmations: 1,
1684
+ },
1685
+ },
1686
+ forwarderSupported: {
1687
+ source: true,
1688
+ destination: true,
1689
+ },
1690
+ },
1691
+ kitContracts: {
1692
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
1693
+ },
1694
+ });
1695
+
1696
+ /**
1697
+ * Morph Mainnet chain definition
1698
+ * @remarks
1699
+ * This represents the official production network for the Morph blockchain.
1700
+ * Morph is an EVM-compatible Layer-2 blockchain built on the OP Stack.
1701
+ */
1702
+ defineChain({
1703
+ type: 'evm',
1704
+ chain: Blockchain.Morph,
1705
+ name: 'Morph',
1706
+ title: 'Morph Mainnet',
1707
+ nativeCurrency: {
1708
+ name: 'Ether',
1709
+ symbol: 'ETH',
1710
+ decimals: 18,
1711
+ },
1712
+ chainId: 2818,
1713
+ isTestnet: false,
1714
+ explorerUrl: 'https://explorer.morph.network/tx/{hash}',
1715
+ rpcEndpoints: ['https://rpc.morphl2.io'],
1716
+ eurcAddress: null,
1717
+ usdcAddress: '0xCfb1186F4e93D60E60a8bDd997427D1F33bc372B',
1718
+ usdtAddress: null,
1719
+ cctp: {
1720
+ domain: 30,
1721
+ contracts: {
1722
+ v2: {
1723
+ type: 'split',
1724
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
1725
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
1726
+ confirmations: 64,
1727
+ fastConfirmations: 1,
1728
+ },
1729
+ },
1730
+ forwarderSupported: {
1731
+ source: false,
1732
+ destination: false,
1733
+ },
1734
+ },
1735
+ kitContracts: {
1736
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
1737
+ },
1738
+ });
1739
+
1740
+ /**
1741
+ * Morph Hoodi Testnet chain definition
1742
+ * @remarks
1743
+ * This represents the official test network for the Morph blockchain.
1744
+ * Morph is an EVM-compatible Layer-2 blockchain built on the OP Stack.
1745
+ */
1746
+ defineChain({
1747
+ type: 'evm',
1748
+ chain: Blockchain.Morph_Testnet,
1749
+ name: 'Morph Hoodi',
1750
+ title: 'Morph Hoodi Testnet',
1751
+ nativeCurrency: {
1752
+ name: 'Ether',
1753
+ symbol: 'ETH',
1754
+ decimals: 18,
1755
+ },
1756
+ chainId: 2910,
1757
+ isTestnet: true,
1758
+ explorerUrl: 'https://explorer-hoodi.morphl2.io/tx/{hash}',
1759
+ rpcEndpoints: ['https://rpc-hoodi.morphl2.io'],
1760
+ eurcAddress: null,
1761
+ usdcAddress: '0x7433b41C6c5e1d58D4Da99483609520255ab661B',
1762
+ usdtAddress: null,
1763
+ cctp: {
1764
+ domain: 30,
1765
+ contracts: {
1766
+ v2: {
1767
+ type: 'split',
1768
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
1769
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
1770
+ confirmations: 64,
1771
+ fastConfirmations: 1,
1772
+ },
1773
+ },
1774
+ forwarderSupported: {
1775
+ source: false,
1776
+ destination: false,
1777
+ },
1778
+ },
1779
+ kitContracts: {
1780
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
1781
+ },
1782
+ });
1783
+
1784
+ /**
1785
+ * NEAR Protocol Mainnet chain definition
1786
+ * @remarks
1787
+ * This represents the official production network for the NEAR Protocol blockchain.
1788
+ */
1789
+ defineChain({
1790
+ type: 'near',
1791
+ chain: Blockchain.NEAR,
1792
+ name: 'NEAR Protocol',
1793
+ title: 'NEAR Mainnet',
1794
+ nativeCurrency: {
1795
+ name: 'NEAR',
1796
+ symbol: 'NEAR',
1797
+ decimals: 24,
1798
+ },
1799
+ isTestnet: false,
1800
+ explorerUrl: 'https://nearblocks.io/txns/{hash}',
1801
+ rpcEndpoints: ['https://eth-rpc.mainnet.near.org'],
1802
+ eurcAddress: null,
1803
+ usdcAddress: '17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1',
1804
+ usdtAddress: 'usdt.tether-token.near',
1805
+ cctp: null,
1806
+ });
1807
+
1808
+ /**
1809
+ * NEAR Testnet chain definition
1810
+ * @remarks
1811
+ * This represents the official test network for the NEAR Protocol blockchain.
1812
+ */
1813
+ defineChain({
1814
+ type: 'near',
1815
+ chain: Blockchain.NEAR_Testnet,
1816
+ name: 'NEAR Protocol Testnet',
1817
+ title: 'NEAR Test Network',
1818
+ nativeCurrency: {
1819
+ name: 'NEAR',
1820
+ symbol: 'NEAR',
1821
+ decimals: 24,
1822
+ },
1823
+ isTestnet: true,
1824
+ explorerUrl: 'https://testnet.nearblocks.io/txns/{hash}',
1825
+ rpcEndpoints: ['https://eth-rpc.testnet.near.org'],
1826
+ eurcAddress: null,
1827
+ usdcAddress: '3e2210e1184b45b64c8a434c0a7e7b23cc04ea7eb7a6c3c32520d03d4afcb8af',
1828
+ usdtAddress: null,
1829
+ cctp: null,
1830
+ });
1831
+
1832
+ /**
1833
+ * Noble Mainnet chain definition
1834
+ * @remarks
1835
+ * This represents the official production network for the Noble blockchain.
1836
+ */
1837
+ defineChain({
1838
+ type: 'noble',
1839
+ chain: Blockchain.Noble,
1840
+ name: 'Noble',
1841
+ title: 'Noble Mainnet',
1842
+ nativeCurrency: {
1843
+ name: 'Noble USDC',
1844
+ symbol: 'USDC',
1845
+ decimals: 6,
1846
+ },
1847
+ isTestnet: false,
1848
+ explorerUrl: 'https://www.mintscan.io/noble/tx/{hash}',
1849
+ rpcEndpoints: ['https://noble-rpc.polkachu.com'],
1850
+ eurcAddress: null,
1851
+ usdcAddress: 'uusdc',
1852
+ usdtAddress: null,
1853
+ cctp: {
1854
+ domain: 4,
1855
+ contracts: {
1856
+ v1: {
1857
+ type: 'merged',
1858
+ contract: 'noble12l2w4ugfz4m6dd73yysz477jszqnfughxvkss5',
1859
+ confirmations: 1,
1860
+ },
1861
+ },
1862
+ forwarderSupported: {
1863
+ source: false,
1864
+ destination: false,
1865
+ },
1866
+ },
1867
+ });
1868
+
1869
+ /**
1870
+ * Noble Testnet chain definition
1871
+ * @remarks
1872
+ * This represents the official test network for the Noble blockchain.
1873
+ */
1874
+ defineChain({
1875
+ type: 'noble',
1876
+ chain: Blockchain.Noble_Testnet,
1877
+ name: 'Noble Testnet',
1878
+ title: 'Noble Test Network',
1879
+ nativeCurrency: {
1880
+ name: 'Noble USDC',
1881
+ symbol: 'USDC',
1882
+ decimals: 6,
1883
+ },
1884
+ isTestnet: true,
1885
+ explorerUrl: 'https://www.mintscan.io/noble-testnet/tx/{hash}',
1886
+ rpcEndpoints: ['https://noble-testnet-rpc.polkachu.com'],
1887
+ eurcAddress: null,
1888
+ usdcAddress: 'uusdc',
1889
+ usdtAddress: null,
1890
+ cctp: {
1891
+ domain: 4,
1892
+ contracts: {
1893
+ v1: {
1894
+ type: 'merged',
1895
+ contract: 'noble12l2w4ugfz4m6dd73yysz477jszqnfughxvkss5',
1896
+ confirmations: 1,
1897
+ },
1898
+ },
1899
+ forwarderSupported: {
1900
+ source: false,
1901
+ destination: false,
1902
+ },
1903
+ },
1904
+ });
1905
+
1906
+ /**
1907
+ * Optimism Mainnet chain definition
1908
+ * @remarks
1909
+ * This represents the official production network for the Optimism blockchain.
1910
+ */
1911
+ const Optimism = defineChain({
1912
+ type: 'evm',
1913
+ chain: Blockchain.Optimism,
1914
+ name: 'Optimism',
1915
+ title: 'Optimism Mainnet',
1916
+ nativeCurrency: {
1917
+ name: 'Ether',
1918
+ symbol: 'ETH',
1919
+ decimals: 18,
1920
+ },
1921
+ chainId: 10,
1922
+ isTestnet: false,
1923
+ explorerUrl: 'https://optimistic.etherscan.io/tx/{hash}',
1924
+ rpcEndpoints: ['https://mainnet.optimism.io'],
1925
+ eurcAddress: null,
1926
+ usdcAddress: '0x0b2c639c533813f4aa9d7837caf62653d097ff85',
1927
+ usdtAddress: null,
1928
+ cctp: {
1929
+ domain: 2,
1930
+ contracts: {
1931
+ v1: {
1932
+ type: 'split',
1933
+ tokenMessenger: '0x2B4069517957735bE00ceE0fadAE88a26365528f',
1934
+ messageTransmitter: '0x0a992d191deec32afe36203ad87d7d289a738f81',
1935
+ confirmations: 65,
1936
+ },
1937
+ v2: {
1938
+ type: 'split',
1939
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
1940
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
1941
+ confirmations: 65,
1942
+ fastConfirmations: 1,
1943
+ },
1944
+ },
1945
+ forwarderSupported: {
1946
+ source: true,
1947
+ destination: true,
1948
+ },
1949
+ },
1950
+ kitContracts: {
1951
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
1952
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
1953
+ },
1954
+ });
1955
+
1956
+ /**
1957
+ * Optimism Sepolia Testnet chain definition
1958
+ * @remarks
1959
+ * This represents the official test network for the Optimism blockchain on Sepolia.
1960
+ */
1961
+ const OptimismSepolia = defineChain({
1962
+ type: 'evm',
1963
+ chain: Blockchain.Optimism_Sepolia,
1964
+ name: 'Optimism Sepolia',
1965
+ title: 'Optimism Sepolia Testnet',
1966
+ nativeCurrency: {
1967
+ name: 'Sepolia Ether',
1968
+ symbol: 'ETH',
1969
+ decimals: 18,
1970
+ },
1971
+ chainId: 11155420,
1972
+ isTestnet: true,
1973
+ explorerUrl: 'https://sepolia-optimistic.etherscan.io/tx/{hash}',
1974
+ rpcEndpoints: ['https://sepolia.optimism.io'],
1975
+ eurcAddress: null,
1976
+ usdcAddress: '0x5fd84259d66Cd46123540766Be93DFE6D43130D7',
1977
+ usdtAddress: null,
1978
+ cctp: {
1979
+ domain: 2,
1980
+ contracts: {
1981
+ v1: {
1982
+ type: 'split',
1983
+ tokenMessenger: '0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5',
1984
+ messageTransmitter: '0x7865fAfC2db2093669d92c0F33AeEF291086BEFD',
1985
+ confirmations: 65,
1986
+ },
1987
+ v2: {
1988
+ type: 'split',
1989
+ tokenMessenger: '0x8fe6b999dc680ccfdd5bf7eb0974218be2542daa',
1990
+ messageTransmitter: '0xe737e5cebeeba77efe34d4aa090756590b1ce275',
1991
+ confirmations: 65,
1992
+ fastConfirmations: 1,
1993
+ },
1994
+ },
1995
+ forwarderSupported: {
1996
+ source: true,
1997
+ destination: true,
1998
+ },
1999
+ },
2000
+ kitContracts: {
2001
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
2002
+ },
2003
+ });
2004
+
2005
+ /**
2006
+ * Plume Mainnet chain definition
2007
+ * @remarks
2008
+ * This represents the official production network for the Plume blockchain.
2009
+ * Plume is a Layer 1 blockchain specialized for DeFi and trading applications
2010
+ * with native orderbook and matching engine.
2011
+ */
2012
+ const Plume = defineChain({
2013
+ type: 'evm',
2014
+ chain: Blockchain.Plume,
2015
+ name: 'Plume',
2016
+ title: 'Plume Mainnet',
2017
+ nativeCurrency: {
2018
+ name: 'Plume',
2019
+ symbol: 'PLUME',
2020
+ decimals: 18,
2021
+ },
2022
+ chainId: 98866,
2023
+ isTestnet: false,
2024
+ explorerUrl: 'https://explorer.plume.org/tx/{hash}',
2025
+ rpcEndpoints: ['https://rpc.plume.org'],
2026
+ eurcAddress: null,
2027
+ usdcAddress: '0x222365EF19F7947e5484218551B56bb3965Aa7aF',
2028
+ usdtAddress: null,
2029
+ cctp: {
2030
+ domain: 22,
2031
+ contracts: {
2032
+ v2: {
2033
+ type: 'split',
2034
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
2035
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
2036
+ confirmations: 65,
2037
+ fastConfirmations: 1,
2038
+ },
2039
+ },
2040
+ forwarderSupported: {
2041
+ source: true,
2042
+ destination: false,
2043
+ },
2044
+ },
2045
+ kitContracts: {
2046
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
2047
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
2048
+ },
2049
+ });
2050
+
2051
+ /**
2052
+ * Plume Testnet chain definition
2053
+ * @remarks
2054
+ * This represents the official testnet for the Plume blockchain.
2055
+ * Used for development and testing purposes before deploying to mainnet.
2056
+ */
2057
+ const PlumeTestnet = defineChain({
2058
+ type: 'evm',
2059
+ chain: Blockchain.Plume_Testnet,
2060
+ name: 'Plume Testnet',
2061
+ title: 'Plume Test Network',
2062
+ nativeCurrency: {
2063
+ name: 'Plume',
2064
+ symbol: 'PLUME',
2065
+ decimals: 18,
2066
+ },
2067
+ chainId: 98867,
2068
+ isTestnet: true,
2069
+ explorerUrl: 'https://testnet-explorer.plume.org/tx/{hash}',
2070
+ rpcEndpoints: ['https://testnet-rpc.plume.org'],
2071
+ eurcAddress: null,
2072
+ usdcAddress: '0xcB5f30e335672893c7eb944B374c196392C19D18',
2073
+ usdtAddress: null,
2074
+ cctp: {
2075
+ domain: 22,
2076
+ contracts: {
2077
+ v2: {
2078
+ type: 'split',
2079
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
2080
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
2081
+ confirmations: 65,
2082
+ fastConfirmations: 1,
2083
+ },
2084
+ },
2085
+ forwarderSupported: {
2086
+ source: true,
2087
+ destination: false,
2088
+ },
2089
+ },
2090
+ kitContracts: {
2091
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
2092
+ },
2093
+ });
2094
+
2095
+ /**
2096
+ * Polkadot Asset Hub chain definition
2097
+ * @remarks
2098
+ * This represents the official asset management parachain for the Polkadot blockchain.
2099
+ */
2100
+ defineChain({
2101
+ type: 'polkadot',
2102
+ chain: Blockchain.Polkadot_Asset_Hub,
2103
+ name: 'Polkadot Asset Hub',
2104
+ title: 'Polkadot Asset Hub',
2105
+ nativeCurrency: {
2106
+ name: 'Polkadot',
2107
+ symbol: 'DOT',
2108
+ decimals: 10,
2109
+ },
2110
+ isTestnet: false,
2111
+ explorerUrl: 'https://polkadot.subscan.io/extrinsic/{hash}',
2112
+ rpcEndpoints: ['https://asset-hub-polkadot-rpc.n.dwellir.com'],
2113
+ eurcAddress: null,
2114
+ usdcAddress: '1337',
2115
+ usdtAddress: '1984',
2116
+ cctp: null,
2117
+ });
2118
+
2119
+ /**
2120
+ * Polkadot Westmint chain definition
2121
+ * @remarks
2122
+ * This represents an asset management parachain in the Polkadot ecosystem.
2123
+ */
2124
+ defineChain({
2125
+ type: 'polkadot',
2126
+ chain: Blockchain.Polkadot_Westmint,
2127
+ name: 'Polkadot Westmint',
2128
+ title: 'Polkadot Westmint',
2129
+ nativeCurrency: {
2130
+ name: 'Polkadot',
2131
+ symbol: 'DOT',
2132
+ decimals: 10,
2133
+ },
2134
+ isTestnet: false,
2135
+ explorerUrl: 'https://assethub-polkadot.subscan.io/extrinsic/{hash}',
2136
+ rpcEndpoints: ['https://westmint-rpc.polkadot.io'],
2137
+ eurcAddress: null,
2138
+ usdcAddress: 'Asset ID 31337',
2139
+ usdtAddress: null,
2140
+ cctp: null,
2141
+ });
2142
+
2143
+ /**
2144
+ * Polygon Mainnet chain definition
2145
+ * @remarks
2146
+ * This represents the official production network for the Polygon blockchain.
2147
+ */
2148
+ const Polygon = defineChain({
2149
+ type: 'evm',
2150
+ chain: Blockchain.Polygon,
2151
+ name: 'Polygon',
2152
+ title: 'Polygon Mainnet',
2153
+ nativeCurrency: {
2154
+ name: 'POL',
2155
+ symbol: 'POL',
2156
+ decimals: 18,
2157
+ },
2158
+ chainId: 137,
2159
+ isTestnet: false,
2160
+ explorerUrl: 'https://polygonscan.com/tx/{hash}',
2161
+ rpcEndpoints: ['https://polygon.publicnode.com', 'https://polygon.drpc.org'],
2162
+ eurcAddress: null,
2163
+ usdcAddress: '0x3c499c542cef5e3811e1192ce70d8cc03d5c3359',
2164
+ usdtAddress: null,
2165
+ cctp: {
2166
+ domain: 7,
2167
+ contracts: {
2168
+ v1: {
2169
+ type: 'split',
2170
+ tokenMessenger: '0x9daF8c91AEFAE50b9c0E69629D3F6Ca40cA3B3FE',
2171
+ messageTransmitter: '0xF3be9355363857F3e001be68856A2f96b4C39Ba9',
2172
+ confirmations: 200,
2173
+ },
2174
+ v2: {
2175
+ type: 'split',
2176
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
2177
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
2178
+ confirmations: 33,
2179
+ fastConfirmations: 13,
2180
+ },
2181
+ },
2182
+ forwarderSupported: {
2183
+ source: true,
2184
+ destination: true,
2185
+ },
2186
+ },
2187
+ kitContracts: {
2188
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
2189
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
2190
+ },
2191
+ });
2192
+
2193
+ /**
2194
+ * Polygon Amoy Testnet chain definition
2195
+ * @remarks
2196
+ * This represents the official test network for the Polygon blockchain.
2197
+ */
2198
+ const PolygonAmoy = defineChain({
2199
+ type: 'evm',
2200
+ chain: Blockchain.Polygon_Amoy_Testnet,
2201
+ name: 'Polygon Amoy',
2202
+ title: 'Polygon Amoy Testnet',
2203
+ nativeCurrency: {
2204
+ name: 'POL',
2205
+ symbol: 'POL',
2206
+ decimals: 18,
2207
+ },
2208
+ chainId: 80002,
2209
+ isTestnet: true,
2210
+ explorerUrl: 'https://amoy.polygonscan.com/tx/{hash}',
2211
+ rpcEndpoints: ['https://rpc-amoy.polygon.technology'],
2212
+ eurcAddress: null,
2213
+ usdcAddress: '0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582',
2214
+ usdtAddress: null,
2215
+ cctp: {
2216
+ domain: 7,
2217
+ contracts: {
2218
+ v1: {
2219
+ type: 'split',
2220
+ tokenMessenger: '0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5',
2221
+ messageTransmitter: '0x7865fAfC2db2093669d92c0F33AeEF291086BEFD',
2222
+ confirmations: 200,
2223
+ },
2224
+ v2: {
2225
+ type: 'split',
2226
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
2227
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
2228
+ confirmations: 33,
2229
+ fastConfirmations: 13,
2230
+ },
2231
+ },
2232
+ forwarderSupported: {
2233
+ source: true,
2234
+ destination: true,
2235
+ },
2236
+ },
2237
+ kitContracts: {
2238
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
2239
+ },
2240
+ });
2241
+
2242
+ /**
2243
+ * Sei Mainnet chain definition
2244
+ * @remarks
2245
+ * This represents the official production network for the Sei blockchain.
2246
+ * Sei is a Layer 1 blockchain specialized for DeFi and trading applications
2247
+ * with native orderbook and matching engine.
2248
+ */
2249
+ const Sei = defineChain({
2250
+ type: 'evm',
2251
+ chain: Blockchain.Sei,
2252
+ name: 'Sei',
2253
+ title: 'Sei Mainnet',
2254
+ nativeCurrency: {
2255
+ name: 'Sei',
2256
+ symbol: 'SEI',
2257
+ decimals: 18,
2258
+ },
2259
+ chainId: 1329,
2260
+ isTestnet: false,
2261
+ explorerUrl: 'https://seitrace.com/tx/{hash}?chain=pacific-1',
2262
+ rpcEndpoints: ['https://evm-rpc.sei-apis.com'],
2263
+ eurcAddress: null,
2264
+ usdcAddress: '0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392',
2265
+ usdtAddress: null,
2266
+ cctp: {
2267
+ domain: 16,
2268
+ contracts: {
2269
+ v2: {
2270
+ type: 'split',
2271
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
2272
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
2273
+ confirmations: 1,
2274
+ fastConfirmations: 1,
2275
+ },
2276
+ },
2277
+ forwarderSupported: {
2278
+ source: true,
2279
+ destination: true,
2280
+ },
2281
+ },
2282
+ kitContracts: {
2283
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
2284
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
2285
+ },
2286
+ });
2287
+
2288
+ /**
2289
+ * Sei Testnet chain definition
2290
+ * @remarks
2291
+ * This represents the official testnet for the Sei blockchain.
2292
+ * Used for development and testing purposes before deploying to mainnet.
2293
+ */
2294
+ const SeiTestnet = defineChain({
2295
+ type: 'evm',
2296
+ chain: Blockchain.Sei_Testnet,
2297
+ name: 'Sei Testnet',
2298
+ title: 'Sei Test Network',
2299
+ nativeCurrency: {
2300
+ name: 'Sei',
2301
+ symbol: 'SEI',
2302
+ decimals: 18,
2303
+ },
2304
+ chainId: 1328,
2305
+ isTestnet: true,
2306
+ explorerUrl: 'https://seitrace.com/tx/{hash}?chain=atlantic-2',
2307
+ rpcEndpoints: ['https://evm-rpc-testnet.sei-apis.com'],
2308
+ eurcAddress: null,
2309
+ usdcAddress: '0x4fCF1784B31630811181f670Aea7A7bEF803eaED',
2310
+ usdtAddress: null,
2311
+ cctp: {
2312
+ domain: 16,
2313
+ contracts: {
2314
+ v2: {
2315
+ type: 'split',
2316
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
2317
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
2318
+ confirmations: 1,
2319
+ fastConfirmations: 1,
2320
+ },
2321
+ },
2322
+ forwarderSupported: {
2323
+ source: true,
2324
+ destination: true,
2325
+ },
2326
+ },
2327
+ kitContracts: {
2328
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
2329
+ },
2330
+ });
2331
+
2332
+ /**
2333
+ * Sonic Mainnet chain definition
2334
+ * @remarks
2335
+ * This represents the official production network for the Sonic blockchain.
2336
+ */
2337
+ const Sonic = defineChain({
2338
+ type: 'evm',
2339
+ chain: Blockchain.Sonic,
2340
+ name: 'Sonic',
2341
+ title: 'Sonic Mainnet',
2342
+ nativeCurrency: {
2343
+ name: 'Sonic',
2344
+ symbol: 'S',
2345
+ decimals: 18,
2346
+ },
2347
+ chainId: 146,
2348
+ isTestnet: false,
2349
+ explorerUrl: 'https://sonicscan.org/tx/{hash}',
2350
+ rpcEndpoints: ['https://rpc.soniclabs.com'],
2351
+ eurcAddress: null,
2352
+ usdcAddress: '0x29219dd400f2Bf60E5a23d13Be72B486D4038894',
2353
+ usdtAddress: null,
2354
+ cctp: {
2355
+ domain: 13,
2356
+ contracts: {
2357
+ v2: {
2358
+ type: 'split',
2359
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
2360
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
2361
+ confirmations: 1,
2362
+ fastConfirmations: 1,
2363
+ },
2364
+ },
2365
+ forwarderSupported: {
2366
+ source: true,
2367
+ destination: true,
2368
+ },
2369
+ },
2370
+ kitContracts: {
2371
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
2372
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
2373
+ },
2374
+ });
2375
+
2376
+ /**
2377
+ * Sonic Testnet chain definition
2378
+ * @remarks
2379
+ * This represents the official test network for the Sonic blockchain.
2380
+ */
2381
+ const SonicTestnet = defineChain({
2382
+ type: 'evm',
2383
+ chain: Blockchain.Sonic_Testnet,
2384
+ name: 'Sonic Testnet',
2385
+ title: 'Sonic Testnet',
2386
+ nativeCurrency: {
2387
+ name: 'Sonic',
2388
+ symbol: 'S',
2389
+ decimals: 18,
2390
+ },
2391
+ chainId: 14601,
2392
+ isTestnet: true,
2393
+ explorerUrl: 'https://testnet.sonicscan.org/tx/{hash}',
2394
+ rpcEndpoints: ['https://rpc.testnet.soniclabs.com'],
2395
+ eurcAddress: null,
2396
+ usdcAddress: '0x0BA304580ee7c9a980CF72e55f5Ed2E9fd30Bc51',
2397
+ usdtAddress: null,
2398
+ cctp: {
2399
+ domain: 13,
2400
+ contracts: {
2401
+ v2: {
2402
+ type: 'split',
2403
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
2404
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
2405
+ confirmations: 1,
2406
+ fastConfirmations: 1,
2407
+ },
2408
+ },
2409
+ forwarderSupported: {
2410
+ source: true,
2411
+ destination: true,
2412
+ },
2413
+ },
2414
+ kitContracts: {
2415
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
2416
+ },
2417
+ });
2418
+
2419
+ /**
2420
+ * Solana Mainnet chain definition
2421
+ * @remarks
2422
+ * This represents the official production network for the Solana blockchain.
2423
+ */
2424
+ const Solana = defineChain({
2425
+ type: 'solana',
2426
+ chain: Blockchain.Solana,
2427
+ name: 'Solana',
2428
+ title: 'Solana Mainnet',
2429
+ nativeCurrency: {
2430
+ name: 'Solana',
2431
+ symbol: 'SOL',
2432
+ decimals: 9,
2433
+ },
2434
+ isTestnet: false,
2435
+ explorerUrl: 'https://solscan.io/tx/{hash}',
2436
+ rpcEndpoints: ['https://api.mainnet-beta.solana.com'],
2437
+ eurcAddress: 'HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr',
2438
+ usdcAddress: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
2439
+ usdtAddress: 'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB',
2440
+ cctp: {
2441
+ domain: 5,
2442
+ contracts: {
2443
+ v1: {
2444
+ type: 'split',
2445
+ tokenMessenger: 'CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3',
2446
+ messageTransmitter: 'CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd',
2447
+ confirmations: 32,
2448
+ },
2449
+ v2: {
2450
+ type: 'split',
2451
+ tokenMessenger: 'CCTPV2vPZJS2u2BBsUoscuikbYjnpFmbFsvVuJdgUMQe',
2452
+ messageTransmitter: 'CCTPV2Sm4AdWt5296sk4P66VBZ7bEhcARwFaaS9YPbeC',
2453
+ confirmations: 32,
2454
+ fastConfirmations: 3,
2455
+ },
2456
+ },
2457
+ forwarderSupported: {
2458
+ source: true,
2459
+ destination: false,
2460
+ },
2461
+ },
2462
+ kitContracts: {
2463
+ bridge: 'DFaauJEjmiHkPs1JG89A4p95hDWi9m9SAEERY1LQJiC3',
2464
+ },
2465
+ });
2466
+
2467
+ /**
2468
+ * Solana Devnet chain definition
2469
+ * @remarks
2470
+ * This represents the development test network for the Solana blockchain.
2471
+ */
2472
+ const SolanaDevnet = defineChain({
2473
+ type: 'solana',
2474
+ chain: Blockchain.Solana_Devnet,
2475
+ name: 'Solana Devnet',
2476
+ title: 'Solana Development Network',
2477
+ nativeCurrency: {
2478
+ name: 'Solana',
2479
+ symbol: 'SOL',
2480
+ decimals: 9,
2481
+ },
2482
+ isTestnet: true,
2483
+ explorerUrl: 'https://solscan.io/tx/{hash}?cluster=devnet',
2484
+ eurcAddress: 'HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr',
2485
+ usdcAddress: '4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU',
2486
+ usdtAddress: null,
2487
+ cctp: {
2488
+ domain: 5,
2489
+ contracts: {
2490
+ v1: {
2491
+ type: 'split',
2492
+ tokenMessenger: 'CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3',
2493
+ messageTransmitter: 'CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd',
2494
+ confirmations: 32,
2495
+ },
2496
+ v2: {
2497
+ type: 'split',
2498
+ tokenMessenger: 'CCTPV2vPZJS2u2BBsUoscuikbYjnpFmbFsvVuJdgUMQe',
2499
+ messageTransmitter: 'CCTPV2Sm4AdWt5296sk4P66VBZ7bEhcARwFaaS9YPbeC',
2500
+ confirmations: 32,
2501
+ fastConfirmations: 3,
2502
+ },
2503
+ },
2504
+ forwarderSupported: {
2505
+ source: true,
2506
+ destination: false,
2507
+ },
2508
+ },
2509
+ kitContracts: {
2510
+ bridge: 'DFaauJEjmiHkPs1JG89A4p95hDWi9m9SAEERY1LQJiC3',
2511
+ },
2512
+ rpcEndpoints: ['https://api.devnet.solana.com'],
2513
+ });
2514
+
2515
+ /**
2516
+ * Stellar Mainnet chain definition
2517
+ * @remarks
2518
+ * This represents the official production network for the Stellar blockchain.
2519
+ */
2520
+ defineChain({
2521
+ type: 'stellar',
2522
+ chain: Blockchain.Stellar,
2523
+ name: 'Stellar',
2524
+ title: 'Stellar Mainnet',
2525
+ nativeCurrency: {
2526
+ name: 'Stellar Lumens',
2527
+ symbol: 'XLM',
2528
+ decimals: 7,
2529
+ },
2530
+ isTestnet: false,
2531
+ explorerUrl: 'https://stellar.expert/explorer/public/tx/{hash}',
2532
+ rpcEndpoints: ['https://horizon.stellar.org'],
2533
+ eurcAddress: 'EURC-GDHU6WRG4IEQXM5NZ4BMPKOXHW76MZM4Y2IEMFDVXBSDP6SJY4ITNPP2',
2534
+ usdcAddress: 'USDC-GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN',
2535
+ usdtAddress: null,
2536
+ cctp: null,
2537
+ });
2538
+
2539
+ /**
2540
+ * Stellar Testnet chain definition
2541
+ * @remarks
2542
+ * This represents the official test network for the Stellar blockchain.
2543
+ */
2544
+ defineChain({
2545
+ type: 'stellar',
2546
+ chain: Blockchain.Stellar_Testnet,
2547
+ name: 'Stellar Testnet',
2548
+ title: 'Stellar Test Network',
2549
+ nativeCurrency: {
2550
+ name: 'Stellar Lumens',
2551
+ symbol: 'XLM',
2552
+ decimals: 7,
2553
+ },
2554
+ isTestnet: true,
2555
+ explorerUrl: 'https://stellar.expert/explorer/testnet/tx/{hash}',
2556
+ rpcEndpoints: ['https://horizon-testnet.stellar.org'],
2557
+ eurcAddress: 'EURC-GB3Q6QDZYTHWT7E5PVS3W7FUT5GVAFC5KSZFFLPU25GO7VTC3NM2ZTVO',
2558
+ usdcAddress: 'USDC-GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5',
2559
+ usdtAddress: null,
2560
+ cctp: null,
2561
+ });
2562
+
2563
+ /**
2564
+ * Sui Mainnet chain definition
2565
+ * @remarks
2566
+ * This represents the official production network for the Sui blockchain.
2567
+ */
2568
+ defineChain({
2569
+ type: 'sui',
2570
+ chain: Blockchain.Sui,
2571
+ name: 'Sui',
2572
+ title: 'Sui Mainnet',
2573
+ nativeCurrency: {
2574
+ name: 'Sui',
2575
+ symbol: 'SUI',
2576
+ decimals: 9,
2577
+ },
2578
+ isTestnet: false,
2579
+ explorerUrl: 'https://suiscan.xyz/mainnet/tx/{hash}',
2580
+ rpcEndpoints: ['https://fullnode.mainnet.sui.io'],
2581
+ eurcAddress: null,
2582
+ usdcAddress: '0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC',
2583
+ usdtAddress: null,
2584
+ cctp: {
2585
+ domain: 8,
2586
+ contracts: {
2587
+ v1: {
2588
+ type: 'split',
2589
+ tokenMessenger: '0x2aa6c5d56376c371f88a6cc42e852824994993cb9bab8d3e6450cbe3cb32b94e',
2590
+ messageTransmitter: '0x08d87d37ba49e785dde270a83f8e979605b03dc552b5548f26fdf2f49bf7ed1b',
2591
+ confirmations: 1,
2592
+ },
2593
+ },
2594
+ forwarderSupported: {
2595
+ source: false,
2596
+ destination: false,
2597
+ },
2598
+ },
2599
+ });
2600
+
2601
+ /**
2602
+ * Sui Testnet chain definition
2603
+ * @remarks
2604
+ * This represents the official test network for the Sui blockchain.
2605
+ */
2606
+ defineChain({
2607
+ type: 'sui',
2608
+ chain: Blockchain.Sui_Testnet,
2609
+ name: 'Sui Testnet',
2610
+ title: 'Sui Test Network',
2611
+ nativeCurrency: {
2612
+ name: 'Sui',
2613
+ symbol: 'SUI',
2614
+ decimals: 9,
2615
+ },
2616
+ isTestnet: true,
2617
+ explorerUrl: 'https://suiscan.xyz/testnet/tx/{hash}',
2618
+ rpcEndpoints: ['https://fullnode.testnet.sui.io'],
2619
+ eurcAddress: null,
2620
+ usdcAddress: '0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC',
2621
+ usdtAddress: null,
2622
+ cctp: {
2623
+ domain: 8,
2624
+ contracts: {
2625
+ v1: {
2626
+ type: 'split',
2627
+ tokenMessenger: '0x31cc14d80c175ae39777c0238f20594c6d4869cfab199f40b69f3319956b8beb',
2628
+ messageTransmitter: '0x4931e06dce648b3931f890035bd196920770e913e43e45990b383f6486fdd0a5',
2629
+ confirmations: 1,
2630
+ },
2631
+ },
2632
+ forwarderSupported: {
2633
+ source: false,
2634
+ destination: false,
2635
+ },
2636
+ },
2637
+ });
2638
+
2639
+ /**
2640
+ * Unichain Mainnet chain definition
2641
+ * @remarks
2642
+ * This represents the official production network for the Unichain blockchain.
2643
+ */
2644
+ const Unichain = defineChain({
2645
+ type: 'evm',
2646
+ chain: Blockchain.Unichain,
2647
+ name: 'Unichain',
2648
+ title: 'Unichain Mainnet',
2649
+ nativeCurrency: {
2650
+ name: 'Uni',
2651
+ symbol: 'UNI',
2652
+ decimals: 18,
2653
+ },
2654
+ chainId: 130,
2655
+ isTestnet: false,
2656
+ explorerUrl: 'https://unichain.blockscout.com/tx/{hash}',
2657
+ rpcEndpoints: ['https://mainnet.unichain.org'],
2658
+ eurcAddress: null,
2659
+ usdcAddress: '0x078D782b760474a361dDA0AF3839290b0EF57AD6',
2660
+ usdtAddress: null,
2661
+ cctp: {
2662
+ domain: 10,
2663
+ contracts: {
2664
+ v1: {
2665
+ type: 'split',
2666
+ tokenMessenger: '0x4e744b28E787c3aD0e810eD65A24461D4ac5a762',
2667
+ messageTransmitter: '0x353bE9E2E38AB1D19104534e4edC21c643Df86f4',
2668
+ confirmations: 65,
2669
+ },
2670
+ v2: {
2671
+ type: 'split',
2672
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
2673
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
2674
+ confirmations: 65,
2675
+ fastConfirmations: 1,
2676
+ },
2677
+ },
2678
+ forwarderSupported: {
2679
+ source: true,
2680
+ destination: true,
2681
+ },
2682
+ },
2683
+ kitContracts: {
2684
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
2685
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
2686
+ },
2687
+ });
2688
+
2689
+ /**
2690
+ * Unichain Sepolia Testnet chain definition
2691
+ * @remarks
2692
+ * This represents the official test network for the Unichain blockchain.
2693
+ */
2694
+ const UnichainSepolia = defineChain({
2695
+ type: 'evm',
2696
+ chain: Blockchain.Unichain_Sepolia,
2697
+ name: 'Unichain Sepolia',
2698
+ title: 'Unichain Sepolia Testnet',
2699
+ nativeCurrency: {
2700
+ name: 'Sepolia Uni',
2701
+ symbol: 'UNI',
2702
+ decimals: 18,
2703
+ },
2704
+ chainId: 1301,
2705
+ isTestnet: true,
2706
+ explorerUrl: 'https://unichain-sepolia.blockscout.com/tx/{hash}',
2707
+ rpcEndpoints: ['https://sepolia.unichain.org'],
2708
+ eurcAddress: null,
2709
+ usdcAddress: '0x31d0220469e10c4E71834a79b1f276d740d3768F',
2710
+ usdtAddress: null,
2711
+ cctp: {
2712
+ domain: 10,
2713
+ contracts: {
2714
+ v1: {
2715
+ type: 'split',
2716
+ tokenMessenger: '0x8ed94B8dAd2Dc5453862ea5e316A8e71AAed9782',
2717
+ messageTransmitter: '0xbc498c326533d675cf571B90A2Ced265ACb7d086',
2718
+ confirmations: 65,
2719
+ },
2720
+ v2: {
2721
+ type: 'split',
2722
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
2723
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
2724
+ confirmations: 65,
2725
+ fastConfirmations: 1,
2726
+ },
2727
+ },
2728
+ forwarderSupported: {
2729
+ source: true,
2730
+ destination: true,
2731
+ },
2732
+ },
2733
+ kitContracts: {
2734
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
2735
+ },
2736
+ });
2737
+
2738
+ /**
2739
+ * World Chain chain definition
2740
+ * @remarks
2741
+ * This represents the main network for the World Chain blockchain.
2742
+ */
2743
+ const WorldChain = defineChain({
2744
+ type: 'evm',
2745
+ chain: Blockchain.World_Chain,
2746
+ name: 'World Chain',
2747
+ title: 'World Chain',
2748
+ nativeCurrency: {
2749
+ name: 'Ether',
2750
+ symbol: 'ETH',
2751
+ decimals: 18,
2752
+ },
2753
+ chainId: 480,
2754
+ isTestnet: false,
2755
+ explorerUrl: 'https://worldscan.org/tx/{hash}',
2756
+ rpcEndpoints: ['https://worldchain-mainnet.g.alchemy.com/public'],
2757
+ eurcAddress: null,
2758
+ usdcAddress: '0x79A02482A880bCE3F13e09Da970dC34db4CD24d1',
2759
+ usdtAddress: null,
2760
+ cctp: {
2761
+ domain: 14,
2762
+ contracts: {
2763
+ v2: {
2764
+ type: 'split',
2765
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cF5d',
2766
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
2767
+ confirmations: 65,
2768
+ fastConfirmations: 1,
2769
+ },
2770
+ },
2771
+ forwarderSupported: {
2772
+ source: true,
2773
+ destination: true,
2774
+ },
2775
+ },
2776
+ kitContracts: {
2777
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
2778
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
2779
+ },
2780
+ });
2781
+
2782
+ /**
2783
+ * World Chain Sepolia chain definition
2784
+ * @remarks
2785
+ * This represents the test network for the World Chain blockchain.
2786
+ */
2787
+ const WorldChainSepolia = defineChain({
2788
+ type: 'evm',
2789
+ chain: Blockchain.World_Chain_Sepolia,
2790
+ name: 'World Chain Sepolia',
2791
+ title: 'World Chain Sepolia',
2792
+ nativeCurrency: {
2793
+ name: 'Ether',
2794
+ symbol: 'ETH',
2795
+ decimals: 18,
2796
+ },
2797
+ chainId: 4801,
2798
+ isTestnet: true,
2799
+ explorerUrl: 'https://sepolia.worldscan.org/tx/{hash}',
2800
+ rpcEndpoints: [
2801
+ 'https://worldchain-sepolia.drpc.org',
2802
+ 'https://worldchain-sepolia.g.alchemy.com/public',
2803
+ ],
2804
+ eurcAddress: null,
2805
+ usdcAddress: '0x66145f38cBAC35Ca6F1Dfb4914dF98F1614aeA88',
2806
+ usdtAddress: null,
2807
+ cctp: {
2808
+ domain: 14,
2809
+ contracts: {
2810
+ v2: {
2811
+ type: 'split',
2812
+ tokenMessenger: '0x8fe6b999dc680ccfdd5bf7eb0974218be2542daa',
2813
+ messageTransmitter: '0xe737e5cebeeba77efe34d4aa090756590b1ce275',
2814
+ confirmations: 65,
2815
+ fastConfirmations: 1,
2816
+ },
2817
+ },
2818
+ forwarderSupported: {
2819
+ source: true,
2820
+ destination: true,
2821
+ },
2822
+ },
2823
+ kitContracts: {
2824
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
2825
+ },
2826
+ });
2827
+
2828
+ /**
2829
+ * XDC Mainnet chain definition
2830
+ * @remarks
2831
+ * This represents the official production network for the XDC blockchain.
2832
+ * XDC is a Layer 1 blockchain specialized for DeFi and trading applications
2833
+ * with native orderbook and matching engine.
2834
+ */
2835
+ const XDC = defineChain({
2836
+ type: 'evm',
2837
+ chain: Blockchain.XDC,
2838
+ name: 'XDC',
2839
+ title: 'XDC Mainnet',
2840
+ nativeCurrency: {
2841
+ name: 'XDC',
2842
+ symbol: 'XDC',
2843
+ decimals: 18,
2844
+ },
2845
+ chainId: 50,
2846
+ isTestnet: false,
2847
+ explorerUrl: 'https://xdcscan.io/tx/{hash}',
2848
+ rpcEndpoints: ['https://erpc.xdcrpc.com', 'https://erpc.xinfin.network'],
2849
+ eurcAddress: null,
2850
+ usdcAddress: '0xfA2958CB79b0491CC627c1557F441eF849Ca8eb1',
2851
+ usdtAddress: null,
2852
+ cctp: {
2853
+ domain: 18,
2854
+ contracts: {
2855
+ v2: {
2856
+ type: 'split',
2857
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
2858
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
2859
+ confirmations: 3,
2860
+ fastConfirmations: 3,
2861
+ },
2862
+ },
2863
+ forwarderSupported: {
2864
+ source: true,
2865
+ destination: false,
2866
+ },
2867
+ },
2868
+ kitContracts: {
2869
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
2870
+ adapter: ADAPTER_CONTRACT_EVM_MAINNET,
2871
+ },
2872
+ });
2873
+
2874
+ /**
2875
+ * XDC Apothem Testnet chain definition
2876
+ * @remarks
2877
+ * This represents the official test network for the XDC Network, known as Apothem.
2878
+ */
2879
+ const XDCApothem = defineChain({
2880
+ type: 'evm',
2881
+ chain: Blockchain.XDC_Apothem,
2882
+ name: 'Apothem Network',
2883
+ title: 'Apothem Network',
2884
+ nativeCurrency: {
2885
+ name: 'TXDC',
2886
+ symbol: 'TXDC',
2887
+ decimals: 18,
2888
+ },
2889
+ chainId: 51,
2890
+ isTestnet: true,
2891
+ explorerUrl: 'https://testnet.xdcscan.com/tx/{hash}',
2892
+ rpcEndpoints: ['https://erpc.apothem.network'],
2893
+ eurcAddress: null,
2894
+ usdcAddress: '0xb5AB69F7bBada22B28e79C8FFAECe55eF1c771D4',
2895
+ usdtAddress: null,
2896
+ cctp: {
2897
+ domain: 18,
2898
+ contracts: {
2899
+ v2: {
2900
+ type: 'split',
2901
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
2902
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
2903
+ confirmations: 3,
2904
+ fastConfirmations: 1,
2905
+ },
2906
+ },
2907
+ forwarderSupported: {
2908
+ source: true,
2909
+ destination: false,
2910
+ },
2911
+ },
2912
+ kitContracts: {
2913
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
2914
+ },
2915
+ });
2916
+
2917
+ /**
2918
+ * ZKSync Era Mainnet chain definition
2919
+ * @remarks
2920
+ * This represents the official production network for the ZKSync Era blockchain.
2921
+ */
2922
+ defineChain({
2923
+ type: 'evm',
2924
+ chain: Blockchain.ZKSync_Era,
2925
+ name: 'ZKSync Era',
2926
+ title: 'ZKSync Era Mainnet',
2927
+ nativeCurrency: {
2928
+ name: 'Ether',
2929
+ symbol: 'ETH',
2930
+ decimals: 18,
2931
+ },
2932
+ chainId: 324,
2933
+ isTestnet: false,
2934
+ explorerUrl: 'https://explorer.zksync.io/tx/{hash}',
2935
+ rpcEndpoints: ['https://mainnet.era.zksync.io'],
2936
+ eurcAddress: null,
2937
+ usdcAddress: '0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4',
2938
+ usdtAddress: null,
2939
+ cctp: null,
2940
+ });
2941
+
2942
+ /**
2943
+ * ZKSync Era Sepolia Testnet chain definition
2944
+ * @remarks
2945
+ * This represents the official test network for the ZKSync Era blockchain on Sepolia.
2946
+ */
2947
+ defineChain({
2948
+ type: 'evm',
2949
+ chain: Blockchain.ZKSync_Sepolia,
2950
+ name: 'ZKSync Era Sepolia',
2951
+ title: 'ZKSync Era Sepolia Testnet',
2952
+ nativeCurrency: {
2953
+ name: 'Sepolia Ether',
2954
+ symbol: 'ETH',
2955
+ decimals: 18,
2956
+ },
2957
+ chainId: 300,
2958
+ isTestnet: true,
2959
+ explorerUrl: 'https://sepolia.explorer.zksync.io/tx/{hash}',
2960
+ rpcEndpoints: ['https://sepolia.era.zksync.dev'],
2961
+ eurcAddress: null,
2962
+ usdcAddress: '0xAe045DE5638162fa134807Cb558E15A3F5A7F853',
2963
+ usdtAddress: null,
2964
+ cctp: null,
2965
+ });
2966
+
2967
+ /**
2968
+ * Base schema for common chain definition properties.
2969
+ * This contains all properties shared between EVM and non-EVM chains.
2970
+ */
2971
+ const baseChainDefinitionSchema = z.object({
2972
+ chain: z.nativeEnum(Blockchain, {
2973
+ required_error: 'Chain enum is required. Please provide a valid Blockchain enum value.',
2974
+ invalid_type_error: 'Chain must be a valid Blockchain enum value.',
2975
+ }),
2976
+ name: z.string({
2977
+ required_error: 'Chain name is required. Please provide a valid chain name.',
2978
+ invalid_type_error: 'Chain name must be a string.',
2979
+ }),
2980
+ title: z.string().optional(),
2981
+ nativeCurrency: z.object({
2982
+ name: z.string(),
2983
+ symbol: z.string(),
2984
+ decimals: z.number(),
2985
+ }),
2986
+ isTestnet: z.boolean({
2987
+ required_error: 'isTestnet is required. Please specify whether this is a testnet.',
2988
+ invalid_type_error: 'isTestnet must be a boolean.',
2989
+ }),
2990
+ explorerUrl: z.string({
2991
+ required_error: 'Explorer URL is required. Please provide a valid explorer URL.',
2992
+ invalid_type_error: 'Explorer URL must be a string.',
2993
+ }),
2994
+ rpcEndpoints: z.array(z.string()),
2995
+ eurcAddress: z.string().nullable(),
2996
+ usdcAddress: z.string().nullable(),
2997
+ usdtAddress: z.string().nullable(),
2998
+ cctp: z.any().nullable(), // We'll accept any CCTP config structure
2999
+ kitContracts: z
3000
+ .object({
3001
+ bridge: z.string().optional(),
3002
+ adapter: z.string().optional(),
3003
+ })
3004
+ .optional(),
3005
+ });
3006
+ /**
3007
+ * Zod schema for validating EVM chain definitions specifically.
3008
+ * This schema extends the base schema with EVM-specific properties.
3009
+ *
3010
+ * @example
3011
+ * ```typescript
3012
+ * import { evmChainDefinitionSchema } from '@core/chains/validation'
3013
+ * import { Blockchain } from '@core/chains'
3014
+ *
3015
+ * const ethereumChain = {
3016
+ * type: 'evm',
3017
+ * chain: Blockchain.Ethereum,
3018
+ * name: 'Ethereum',
3019
+ * chainId: 1,
3020
+ * nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
3021
+ * isTestnet: false,
3022
+ * explorerUrl: 'https://etherscan.io/tx/{hash}',
3023
+ * usdcAddress: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
3024
+ * eurcAddress: null,
3025
+ * cctp: null
3026
+ * }
3027
+ *
3028
+ * const result = evmChainDefinitionSchema.safeParse(ethereumChain)
3029
+ * if (result.success) {
3030
+ * console.log('EVM chain definition is valid')
3031
+ * } else {
3032
+ * console.error('Validation failed:', result.error)
3033
+ * }
3034
+ * ```
3035
+ */
3036
+ const evmChainDefinitionSchema = baseChainDefinitionSchema
3037
+ .extend({
3038
+ type: z.literal('evm'),
3039
+ chainId: z.number({
3040
+ required_error: 'EVM chains must have a chainId. Please provide a valid EVM chain ID.',
3041
+ invalid_type_error: 'EVM chain ID must be a number.',
3042
+ }),
3043
+ })
3044
+ .strict(); //// Reject any additional properties not defined in the schema
3045
+ /**
3046
+ * Zod schema for validating non-EVM chain definitions.
3047
+ * This schema extends the base schema with non-EVM specific properties.
3048
+ */
3049
+ const nonEvmChainDefinitionSchema = baseChainDefinitionSchema
3050
+ .extend({
3051
+ type: z.enum([
3052
+ 'algorand',
3053
+ 'avalanche',
3054
+ 'solana',
3055
+ 'aptos',
3056
+ 'near',
3057
+ 'stellar',
3058
+ 'sui',
3059
+ 'hedera',
3060
+ 'noble',
3061
+ 'polkadot',
3062
+ ]),
3063
+ })
3064
+ .strict(); // Reject any additional properties not defined in the schema
3065
+ /**
3066
+ * Discriminated union schema for all chain definitions.
3067
+ * This schema validates different chain types based on their 'type' field.
3068
+ *
3069
+ * @example
3070
+ * ```typescript
3071
+ * import { chainDefinitionSchema } from '@core/chains/validation'
3072
+ * import { Blockchain } from '@core/chains'
3073
+ *
3074
+ * // EVM chain
3075
+ * chainDefinitionSchema.parse({
3076
+ * type: 'evm',
3077
+ * chain: Blockchain.Ethereum,
3078
+ * chainId: 1,
3079
+ * // ... other properties
3080
+ * })
3081
+ *
3082
+ * // Non-EVM chain
3083
+ * chainDefinitionSchema.parse({
3084
+ * type: 'solana',
3085
+ * chain: Blockchain.Solana,
3086
+ * // ... other properties (no chainId)
3087
+ * })
3088
+ * ```
3089
+ */
3090
+ const chainDefinitionSchema = z.discriminatedUnion('type', [
3091
+ evmChainDefinitionSchema,
3092
+ nonEvmChainDefinitionSchema,
3093
+ ]);
3094
+ /**
3095
+ * Zod schema for validating chain identifiers.
3096
+ * This schema accepts either a string blockchain identifier, a Blockchain enum value,
3097
+ * or a full ChainDefinition object.
3098
+ *
3099
+ * @example
3100
+ * ```typescript
3101
+ * import { chainIdentifierSchema } from '@core/chains/validation'
3102
+ * import { Blockchain, Ethereum } from '@core/chains'
3103
+ *
3104
+ * // All of these are valid:
3105
+ * chainIdentifierSchema.parse('Ethereum')
3106
+ * chainIdentifierSchema.parse(Blockchain.Ethereum)
3107
+ * chainIdentifierSchema.parse(Ethereum)
3108
+ * ```
3109
+ */
3110
+ z.union([
3111
+ z
3112
+ .string()
3113
+ .refine((val) => val in Blockchain, 'Must be a valid Blockchain enum value as string'),
3114
+ z.nativeEnum(Blockchain),
3115
+ chainDefinitionSchema,
3116
+ ]);
3117
+ /**
3118
+ * Zod schema for validating swap-specific chain identifiers.
3119
+ *
3120
+ * Validates chains based on:
3121
+ * - CCTPv2 support (adapter contract deployed)
3122
+ * - Mainnet only (no testnets)
3123
+ * - At least one supported token available
3124
+ *
3125
+ */
3126
+ z.union([
3127
+ // String blockchain identifier (accepts SwapChain enum values)
3128
+ z.string().refine((val) => val in SwapChain, (val) => ({
3129
+ message: `"${val}" is not a supported swap chain. ` +
3130
+ `Supported chains: ${Object.values(SwapChain).join(', ')}`,
3131
+ })),
3132
+ // SwapChain enum
3133
+ z.nativeEnum(SwapChain),
3134
+ // ChainDefinition object (checks if chain.chain is in SwapChain)
3135
+ chainDefinitionSchema.refine((chain) => chain.chain in SwapChain, (chain) => ({
3136
+ message: `"${chain.chain}" is not a supported swap chain. ` +
3137
+ `Supported chains: ${Object.values(SwapChain).join(', ')}`,
3138
+ })),
3139
+ ]);
3140
+ /**
3141
+ * Zod schema for validating bridge chain identifiers.
3142
+ *
3143
+ * This schema validates that the provided chain is supported for CCTPv2 bridging.
3144
+ * It accepts either a BridgeChain enum value, a string matching a BridgeChain value,
3145
+ * or a ChainDefinition for a supported chain.
3146
+ *
3147
+ * Use this schema when validating chain parameters for bridge operations to ensure
3148
+ * only CCTPv2-supported chains are accepted at runtime.
3149
+ *
3150
+ * @example
3151
+ * ```typescript
3152
+ * import { bridgeChainIdentifierSchema } from '@core/chains/validation'
3153
+ * import { BridgeChain, Chains } from '@core/chains'
3154
+ *
3155
+ * // Valid - BridgeChain enum value
3156
+ * bridgeChainIdentifierSchema.parse(BridgeChain.Ethereum)
3157
+ *
3158
+ * // Valid - string literal
3159
+ * bridgeChainIdentifierSchema.parse('Base_Sepolia')
3160
+ *
3161
+ * // Valid - ChainDefinition (validated by CCTP support)
3162
+ * bridgeChainIdentifierSchema.parse(Chains.Solana)
3163
+ *
3164
+ * // Invalid - Algorand is not in BridgeChain (throws ZodError)
3165
+ * bridgeChainIdentifierSchema.parse('Algorand')
3166
+ * ```
3167
+ *
3168
+ * @see {@link BridgeChain} for the enum of supported chains.
3169
+ */
3170
+ z.union([
3171
+ z.string().refine((val) => val in BridgeChain, (val) => ({
3172
+ message: `Chain "${val}" is not supported for bridging. Only chains in the BridgeChain enum support CCTPv2 bridging.`,
3173
+ })),
3174
+ chainDefinitionSchema.refine((chainDef) => chainDef.chain in BridgeChain, (chainDef) => ({
3175
+ message: `Chain "${chainDef.name}" (${chainDef.chain}) is not supported for bridging. Only chains in the BridgeChain enum support CCTPv2 bridging.`,
3176
+ })),
3177
+ ]);
3178
+
3179
+ /**
3180
+ * @packageDocumentation
3181
+ * @module SwapTokenSchemas
3182
+ *
3183
+ * Zod validation schemas for supported swap tokens.
3184
+ */
3185
+ // Internal enum used after input normalization.
3186
+ const swapTokenEnumSchema = z.enum([
3187
+ ...Object.keys(SWAP_TOKEN_REGISTRY),
3188
+ NATIVE_TOKEN,
3189
+ ]);
3190
+ /**
3191
+ * Zod schema for validating supported swap token symbols.
3192
+ *
3193
+ * Accepts any token symbol from the SWAP_TOKEN_REGISTRY plus NATIVE.
3194
+ * Input matching is case-insensitive and normalized to uppercase.
3195
+ *
3196
+ * @example
3197
+ * ```typescript
3198
+ * import { supportedSwapTokenSchema } from '@core/chains'
3199
+ *
3200
+ * const result = supportedSwapTokenSchema.safeParse('USDC')
3201
+ * if (result.success) {
3202
+ * console.log('Valid swap token:', result.data)
3203
+ * }
3204
+ * ```
3205
+ */
3206
+ z
3207
+ .string()
3208
+ .transform((value) => value.toUpperCase())
3209
+ .pipe(swapTokenEnumSchema);
3210
+
3211
+ export { Arbitrum, ArbitrumSepolia, ArcTestnet, Avalanche, AvalancheFuji, Base, BaseSepolia, Codex, CodexTestnet, Ethereum, EthereumSepolia, HyperEVM, HyperEVMTestnet, Ink, InkTestnet, Linea, LineaSepolia, Optimism, OptimismSepolia, Plume, PlumeTestnet, Polygon, PolygonAmoy, Sei, SeiTestnet, Solana, SolanaDevnet, Sonic, SonicTestnet, Unichain, UnichainSepolia, WorldChain, WorldChainSepolia, XDC, XDCApothem };
3212
+ //# sourceMappingURL=chains.mjs.map