@circle-fin/adapter-ethers-v6 1.6.0 → 1.6.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @circle-fin/adapter-ethers-v6
2
2
 
3
+ ## 1.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Update HyperEVM explorer URLs to use the official Hyperliquid explorer
8
+
9
+ ## 1.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Internal dependency updates. No user-facing changes.
14
+
3
15
  ## 1.6.0
4
16
 
5
17
  ### Minor Changes
package/index.cjs CHANGED
@@ -1628,6 +1628,8 @@ exports.Blockchain = void 0;
1628
1628
  Blockchain["Celo_Alfajores_Testnet"] = "Celo_Alfajores_Testnet";
1629
1629
  Blockchain["Codex"] = "Codex";
1630
1630
  Blockchain["Codex_Testnet"] = "Codex_Testnet";
1631
+ Blockchain["Edge"] = "Edge";
1632
+ Blockchain["Edge_Testnet"] = "Edge_Testnet";
1631
1633
  Blockchain["Ethereum"] = "Ethereum";
1632
1634
  Blockchain["Ethereum_Sepolia"] = "Ethereum_Sepolia";
1633
1635
  Blockchain["Hedera"] = "Hedera";
@@ -1640,6 +1642,8 @@ exports.Blockchain = void 0;
1640
1642
  Blockchain["Linea_Sepolia"] = "Linea_Sepolia";
1641
1643
  Blockchain["Monad"] = "Monad";
1642
1644
  Blockchain["Monad_Testnet"] = "Monad_Testnet";
1645
+ Blockchain["Morph"] = "Morph";
1646
+ Blockchain["Morph_Testnet"] = "Morph_Testnet";
1643
1647
  Blockchain["NEAR"] = "NEAR";
1644
1648
  Blockchain["NEAR_Testnet"] = "NEAR_Testnet";
1645
1649
  Blockchain["Noble"] = "Noble";
@@ -1843,11 +1847,13 @@ var BridgeChain;
1843
1847
  BridgeChain["Avalanche"] = "Avalanche";
1844
1848
  BridgeChain["Base"] = "Base";
1845
1849
  BridgeChain["Codex"] = "Codex";
1850
+ BridgeChain["Edge"] = "Edge";
1846
1851
  BridgeChain["Ethereum"] = "Ethereum";
1847
1852
  BridgeChain["HyperEVM"] = "HyperEVM";
1848
1853
  BridgeChain["Ink"] = "Ink";
1849
1854
  BridgeChain["Linea"] = "Linea";
1850
1855
  BridgeChain["Monad"] = "Monad";
1856
+ BridgeChain["Morph"] = "Morph";
1851
1857
  BridgeChain["Optimism"] = "Optimism";
1852
1858
  BridgeChain["Plume"] = "Plume";
1853
1859
  BridgeChain["Polygon"] = "Polygon";
@@ -1863,11 +1869,13 @@ var BridgeChain;
1863
1869
  BridgeChain["Avalanche_Fuji"] = "Avalanche_Fuji";
1864
1870
  BridgeChain["Base_Sepolia"] = "Base_Sepolia";
1865
1871
  BridgeChain["Codex_Testnet"] = "Codex_Testnet";
1872
+ BridgeChain["Edge_Testnet"] = "Edge_Testnet";
1866
1873
  BridgeChain["Ethereum_Sepolia"] = "Ethereum_Sepolia";
1867
1874
  BridgeChain["HyperEVM_Testnet"] = "HyperEVM_Testnet";
1868
1875
  BridgeChain["Ink_Testnet"] = "Ink_Testnet";
1869
1876
  BridgeChain["Linea_Sepolia"] = "Linea_Sepolia";
1870
1877
  BridgeChain["Monad_Testnet"] = "Monad_Testnet";
1878
+ BridgeChain["Morph_Testnet"] = "Morph_Testnet";
1871
1879
  BridgeChain["Optimism_Sepolia"] = "Optimism_Sepolia";
1872
1880
  BridgeChain["Plume_Testnet"] = "Plume_Testnet";
1873
1881
  BridgeChain["Polygon_Amoy_Testnet"] = "Polygon_Amoy_Testnet";
@@ -2613,7 +2621,7 @@ const Codex = defineChain({
2613
2621
  },
2614
2622
  forwarderSupported: {
2615
2623
  source: true,
2616
- destination: false,
2624
+ destination: true,
2617
2625
  },
2618
2626
  },
2619
2627
  kitContracts: {
@@ -2656,7 +2664,95 @@ const CodexTestnet = defineChain({
2656
2664
  },
2657
2665
  forwarderSupported: {
2658
2666
  source: true,
2659
- destination: false,
2667
+ destination: true,
2668
+ },
2669
+ },
2670
+ kitContracts: {
2671
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
2672
+ },
2673
+ });
2674
+
2675
+ /**
2676
+ * Edge Mainnet chain definition
2677
+ * @remarks
2678
+ * This represents the official production network for the Edge blockchain.
2679
+ * Edge is an EVM-compatible blockchain.
2680
+ */
2681
+ const Edge = defineChain({
2682
+ type: 'evm',
2683
+ chain: exports.Blockchain.Edge,
2684
+ name: 'Edge',
2685
+ title: 'Edge Mainnet',
2686
+ nativeCurrency: {
2687
+ name: 'Ether',
2688
+ symbol: 'ETH',
2689
+ decimals: 18,
2690
+ },
2691
+ chainId: 3343,
2692
+ isTestnet: false,
2693
+ explorerUrl: 'https://pro.edgex.exchange/en-US/explorer/tx/{hash}',
2694
+ rpcEndpoints: ['https://edge-mainnet.g.alchemy.com/public'],
2695
+ eurcAddress: null,
2696
+ usdcAddress: '0x98d2919b9A214E6Fa5384AC81E6864bA686Ad74c',
2697
+ usdtAddress: null,
2698
+ cctp: {
2699
+ domain: 28,
2700
+ contracts: {
2701
+ v2: {
2702
+ type: 'split',
2703
+ tokenMessenger: '0x98706A006bc632Df31CAdFCBD43F38887ce2ca5c',
2704
+ messageTransmitter: '0x5b61381Fc9e58E70EfC13a4A97516997019198ee',
2705
+ confirmations: 65,
2706
+ fastConfirmations: 1,
2707
+ },
2708
+ },
2709
+ forwarderSupported: {
2710
+ source: true,
2711
+ destination: true,
2712
+ },
2713
+ },
2714
+ kitContracts: {
2715
+ bridge: '0x6D1AaE1c34Aeb582022916a67f2A655C6f4eDFF2', //Unique bridge address as CCTP address for Edge is also unique
2716
+ },
2717
+ });
2718
+
2719
+ /**
2720
+ * Edge Testnet chain definition
2721
+ * @remarks
2722
+ * This represents the official test network for the Edge blockchain.
2723
+ * Edge is an EVM-compatible blockchain.
2724
+ */
2725
+ const EdgeTestnet = defineChain({
2726
+ type: 'evm',
2727
+ chain: exports.Blockchain.Edge_Testnet,
2728
+ name: 'Edge Testnet',
2729
+ title: 'Edge Testnet',
2730
+ nativeCurrency: {
2731
+ name: 'Ether',
2732
+ symbol: 'ETH',
2733
+ decimals: 18,
2734
+ },
2735
+ chainId: 33431,
2736
+ isTestnet: true,
2737
+ explorerUrl: 'https://edge-testnet.explorer.alchemy.com/tx/{hash}',
2738
+ rpcEndpoints: ['https://edge-testnet.g.alchemy.com/public'],
2739
+ eurcAddress: null,
2740
+ usdcAddress: '0x2d9F7CAD728051AA35Ecdc472a14cf8cDF5CFD6B',
2741
+ usdtAddress: null,
2742
+ cctp: {
2743
+ domain: 28,
2744
+ contracts: {
2745
+ v2: {
2746
+ type: 'split',
2747
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
2748
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
2749
+ confirmations: 65,
2750
+ fastConfirmations: 1,
2751
+ },
2752
+ },
2753
+ forwarderSupported: {
2754
+ source: true,
2755
+ destination: true,
2660
2756
  },
2661
2757
  },
2662
2758
  kitContracts: {
@@ -2830,7 +2926,7 @@ const HyperEVM = defineChain({
2830
2926
  },
2831
2927
  chainId: 999,
2832
2928
  isTestnet: false,
2833
- explorerUrl: 'https://hyperevmscan.io/tx/{hash}',
2929
+ explorerUrl: 'https://app.hyperliquid.xyz/explorer/tx/{hash}',
2834
2930
  rpcEndpoints: ['https://rpc.hyperliquid.xyz/evm'],
2835
2931
  eurcAddress: null,
2836
2932
  usdcAddress: '0xb88339CB7199b77E23DB6E890353E22632Ba630f',
@@ -2875,7 +2971,7 @@ const HyperEVMTestnet = defineChain({
2875
2971
  },
2876
2972
  chainId: 998,
2877
2973
  isTestnet: true,
2878
- explorerUrl: 'https://testnet.hyperliquid.xyz/explorer/tx/{hash}',
2974
+ explorerUrl: 'https://app.hyperliquid-testnet.xyz/explorer/tx/{hash}',
2879
2975
  rpcEndpoints: ['https://rpc.hyperliquid-testnet.xyz/evm'],
2880
2976
  eurcAddress: null,
2881
2977
  usdcAddress: '0x2B3370eE501B4a559b57D449569354196457D8Ab',
@@ -3175,6 +3271,94 @@ const MonadTestnet = defineChain({
3175
3271
  },
3176
3272
  });
3177
3273
 
3274
+ /**
3275
+ * Morph Mainnet chain definition
3276
+ * @remarks
3277
+ * This represents the official production network for the Morph blockchain.
3278
+ * Morph is an EVM-compatible Layer-2 blockchain built on the OP Stack.
3279
+ */
3280
+ const Morph = defineChain({
3281
+ type: 'evm',
3282
+ chain: exports.Blockchain.Morph,
3283
+ name: 'Morph',
3284
+ title: 'Morph Mainnet',
3285
+ nativeCurrency: {
3286
+ name: 'Ether',
3287
+ symbol: 'ETH',
3288
+ decimals: 18,
3289
+ },
3290
+ chainId: 2818,
3291
+ isTestnet: false,
3292
+ explorerUrl: 'https://explorer.morph.network/tx/{hash}',
3293
+ rpcEndpoints: ['https://rpc.morphl2.io'],
3294
+ eurcAddress: null,
3295
+ usdcAddress: '0xCfb1186F4e93D60E60a8bDd997427D1F33bc372B',
3296
+ usdtAddress: null,
3297
+ cctp: {
3298
+ domain: 30,
3299
+ contracts: {
3300
+ v2: {
3301
+ type: 'split',
3302
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
3303
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
3304
+ confirmations: 64,
3305
+ fastConfirmations: 1,
3306
+ },
3307
+ },
3308
+ forwarderSupported: {
3309
+ source: false,
3310
+ destination: false,
3311
+ },
3312
+ },
3313
+ kitContracts: {
3314
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
3315
+ },
3316
+ });
3317
+
3318
+ /**
3319
+ * Morph Hoodi Testnet chain definition
3320
+ * @remarks
3321
+ * This represents the official test network for the Morph blockchain.
3322
+ * Morph is an EVM-compatible Layer-2 blockchain built on the OP Stack.
3323
+ */
3324
+ const MorphTestnet = defineChain({
3325
+ type: 'evm',
3326
+ chain: exports.Blockchain.Morph_Testnet,
3327
+ name: 'Morph Hoodi',
3328
+ title: 'Morph Hoodi Testnet',
3329
+ nativeCurrency: {
3330
+ name: 'Ether',
3331
+ symbol: 'ETH',
3332
+ decimals: 18,
3333
+ },
3334
+ chainId: 2910,
3335
+ isTestnet: true,
3336
+ explorerUrl: 'https://explorer-hoodi.morphl2.io/tx/{hash}',
3337
+ rpcEndpoints: ['https://rpc-hoodi.morphl2.io'],
3338
+ eurcAddress: null,
3339
+ usdcAddress: '0x7433b41C6c5e1d58D4Da99483609520255ab661B',
3340
+ usdtAddress: null,
3341
+ cctp: {
3342
+ domain: 30,
3343
+ contracts: {
3344
+ v2: {
3345
+ type: 'split',
3346
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
3347
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
3348
+ confirmations: 64,
3349
+ fastConfirmations: 1,
3350
+ },
3351
+ },
3352
+ forwarderSupported: {
3353
+ source: false,
3354
+ destination: false,
3355
+ },
3356
+ },
3357
+ kitContracts: {
3358
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
3359
+ },
3360
+ });
3361
+
3178
3362
  /**
3179
3363
  * NEAR Protocol Mainnet chain definition
3180
3364
  * @remarks
@@ -3433,7 +3617,7 @@ const Plume = defineChain({
3433
3617
  },
3434
3618
  forwarderSupported: {
3435
3619
  source: true,
3436
- destination: false,
3620
+ destination: true,
3437
3621
  },
3438
3622
  },
3439
3623
  kitContracts: {
@@ -3478,7 +3662,7 @@ const PlumeTestnet = defineChain({
3478
3662
  },
3479
3663
  forwarderSupported: {
3480
3664
  source: true,
3481
- destination: false,
3665
+ destination: true,
3482
3666
  },
3483
3667
  },
3484
3668
  kitContracts: {
@@ -4256,7 +4440,7 @@ const XDC = defineChain({
4256
4440
  },
4257
4441
  forwarderSupported: {
4258
4442
  source: true,
4259
- destination: false,
4443
+ destination: true,
4260
4444
  },
4261
4445
  },
4262
4446
  kitContracts: {
@@ -4300,7 +4484,7 @@ const XDCApothem = defineChain({
4300
4484
  },
4301
4485
  forwarderSupported: {
4302
4486
  source: true,
4303
- destination: false,
4487
+ destination: true,
4304
4488
  },
4305
4489
  },
4306
4490
  kitContracts: {
@@ -4375,6 +4559,8 @@ var Blockchains = {
4375
4559
  CeloAlfajoresTestnet: CeloAlfajoresTestnet,
4376
4560
  Codex: Codex,
4377
4561
  CodexTestnet: CodexTestnet,
4562
+ Edge: Edge,
4563
+ EdgeTestnet: EdgeTestnet,
4378
4564
  Ethereum: Ethereum,
4379
4565
  EthereumSepolia: EthereumSepolia,
4380
4566
  Hedera: Hedera,
@@ -4387,6 +4573,8 @@ var Blockchains = {
4387
4573
  LineaSepolia: LineaSepolia,
4388
4574
  Monad: Monad,
4389
4575
  MonadTestnet: MonadTestnet,
4576
+ Morph: Morph,
4577
+ MorphTestnet: MorphTestnet,
4390
4578
  NEAR: NEAR,
4391
4579
  NEARTestnet: NEARTestnet,
4392
4580
  Noble: Noble,
@@ -5742,12 +5930,14 @@ const USDC = {
5742
5930
  [exports.Blockchain.Base]: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
5743
5931
  [exports.Blockchain.Celo]: '0xcebA9300f2b948710d2653dD7B07f33A8B32118C',
5744
5932
  [exports.Blockchain.Codex]: '0xd996633a415985DBd7D6D12f4A4343E31f5037cf',
5933
+ [exports.Blockchain.Edge]: '0x98d2919b9A214E6Fa5384AC81E6864bA686Ad74c',
5745
5934
  [exports.Blockchain.Ethereum]: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
5746
5935
  [exports.Blockchain.Hedera]: '0.0.456858',
5747
5936
  [exports.Blockchain.HyperEVM]: '0xb88339CB7199b77E23DB6E890353E22632Ba630f',
5748
5937
  [exports.Blockchain.Ink]: '0x2D270e6886d130D724215A266106e6832161EAEd',
5749
5938
  [exports.Blockchain.Linea]: '0x176211869ca2b568f2a7d4ee941e073a821ee1ff',
5750
5939
  [exports.Blockchain.Monad]: '0x754704Bc059F8C67012fEd69BC8A327a5aafb603',
5940
+ [exports.Blockchain.Morph]: '0xCfb1186F4e93D60E60a8bDd997427D1F33bc372B',
5751
5941
  [exports.Blockchain.NEAR]: '17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1',
5752
5942
  [exports.Blockchain.Noble]: 'uusdc',
5753
5943
  [exports.Blockchain.Optimism]: '0x0b2c639c533813f4aa9d7837caf62653d097ff85',
@@ -5770,12 +5960,14 @@ const USDC = {
5770
5960
  [exports.Blockchain.Avalanche_Fuji]: '0x5425890298aed601595a70AB815c96711a31Bc65',
5771
5961
  [exports.Blockchain.Base_Sepolia]: '0x036CbD53842c5426634e7929541eC2318f3dCF7e',
5772
5962
  [exports.Blockchain.Codex_Testnet]: '0x6d7f141b6819C2c9CC2f818e6ad549E7Ca090F8f',
5963
+ [exports.Blockchain.Edge_Testnet]: '0x2d9F7CAD728051AA35Ecdc472a14cf8cDF5CFD6B',
5773
5964
  [exports.Blockchain.Ethereum_Sepolia]: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238',
5774
5965
  [exports.Blockchain.Hedera_Testnet]: '0.0.429274',
5775
5966
  [exports.Blockchain.HyperEVM_Testnet]: '0x2B3370eE501B4a559b57D449569354196457D8Ab',
5776
5967
  [exports.Blockchain.Ink_Testnet]: '0xFabab97dCE620294D2B0b0e46C68964e326300Ac',
5777
5968
  [exports.Blockchain.Linea_Sepolia]: '0xfece4462d57bd51a6a552365a011b95f0e16d9b7',
5778
5969
  [exports.Blockchain.Monad_Testnet]: '0x534b2f3A21130d7a60830c2Df862319e593943A3',
5970
+ [exports.Blockchain.Morph_Testnet]: '0x7433b41C6c5e1d58D4Da99483609520255ab661B',
5779
5971
  [exports.Blockchain.NEAR_Testnet]: '3e2210e1184b45b64c8a434c0a7e7b23cc04ea7eb7a6c3c32520d03d4afcb8af',
5780
5972
  [exports.Blockchain.Noble_Testnet]: 'uusdc',
5781
5973
  [exports.Blockchain.Optimism_Sepolia]: '0x5fd84259d66Cd46123540766Be93DFE6D43130D7',
package/index.d.ts CHANGED
@@ -501,6 +501,8 @@ declare enum Blockchain {
501
501
  Celo_Alfajores_Testnet = "Celo_Alfajores_Testnet",
502
502
  Codex = "Codex",
503
503
  Codex_Testnet = "Codex_Testnet",
504
+ Edge = "Edge",
505
+ Edge_Testnet = "Edge_Testnet",
504
506
  Ethereum = "Ethereum",
505
507
  Ethereum_Sepolia = "Ethereum_Sepolia",
506
508
  Hedera = "Hedera",
@@ -513,6 +515,8 @@ declare enum Blockchain {
513
515
  Linea_Sepolia = "Linea_Sepolia",
514
516
  Monad = "Monad",
515
517
  Monad_Testnet = "Monad_Testnet",
518
+ Morph = "Morph",
519
+ Morph_Testnet = "Morph_Testnet",
516
520
  NEAR = "NEAR",
517
521
  NEAR_Testnet = "NEAR_Testnet",
518
522
  Noble = "Noble",
@@ -663,6 +667,32 @@ interface EvmExecuteOverrides extends EvmEstimateOverrides {
663
667
  */
664
668
  nonce?: number;
665
669
  }
670
+ /**
671
+ * Raw EVM call data tuple for a single contract interaction.
672
+ *
673
+ * Represents the minimal data needed to submit an EVM transaction:
674
+ * the target contract address, the ABI-encoded calldata, and an
675
+ * optional native token value. Used by EIP-5792 batched execution
676
+ * to compose multiple calls into a single `wallet_sendCalls` request.
677
+ *
678
+ * @interface EvmCallData
679
+ *
680
+ * @example
681
+ * ```typescript
682
+ * const callData: EvmCallData = {
683
+ * to: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
684
+ * data: '0x095ea7b3000000000000000000000000...',
685
+ * }
686
+ * ```
687
+ */
688
+ interface EvmCallData {
689
+ /** The target contract address. */
690
+ to: `0x${string}`;
691
+ /** The ABI-encoded function calldata. */
692
+ data: `0x${string}`;
693
+ /** Optional native token value to send with the call. */
694
+ value?: bigint | undefined;
695
+ }
666
696
  /**
667
697
  * Prepared contract execution for EVM chains.
668
698
  *
@@ -691,6 +721,28 @@ interface EvmPreparedChainRequest {
691
721
  * @throws If the execution fails
692
722
  */
693
723
  execute(overrides?: EvmExecuteOverrides): Promise<string>;
724
+ /**
725
+ * Return the raw call tuple without executing or estimating.
726
+ *
727
+ * Expose the `{ to, data, value }` triple that would be sent on-chain so
728
+ * callers can feed it into EIP-5792 `wallet_sendCalls` or other batching
729
+ * mechanisms. This method is optional -- adapters that do not support
730
+ * calldata extraction (e.g. Ethers v6) may omit it.
731
+ *
732
+ * @returns The raw EVM call data for this prepared request.
733
+ * @throws Never — synchronous accessor with no failure path.
734
+ * @since 2.0.0
735
+ *
736
+ * @example
737
+ * ```typescript
738
+ * const prepared = await adapter.prepare(params, ctx)
739
+ * if (prepared.getCallData) {
740
+ * const { to, data, value } = prepared.getCallData()
741
+ * console.log('Target:', to, 'Data:', data)
742
+ * }
743
+ * ```
744
+ */
745
+ getCallData?(): EvmCallData;
694
746
  }
695
747
  /**
696
748
  * Union type for all supported prepared contract executions.
package/index.mjs CHANGED
@@ -1623,6 +1623,8 @@ var Blockchain;
1623
1623
  Blockchain["Celo_Alfajores_Testnet"] = "Celo_Alfajores_Testnet";
1624
1624
  Blockchain["Codex"] = "Codex";
1625
1625
  Blockchain["Codex_Testnet"] = "Codex_Testnet";
1626
+ Blockchain["Edge"] = "Edge";
1627
+ Blockchain["Edge_Testnet"] = "Edge_Testnet";
1626
1628
  Blockchain["Ethereum"] = "Ethereum";
1627
1629
  Blockchain["Ethereum_Sepolia"] = "Ethereum_Sepolia";
1628
1630
  Blockchain["Hedera"] = "Hedera";
@@ -1635,6 +1637,8 @@ var Blockchain;
1635
1637
  Blockchain["Linea_Sepolia"] = "Linea_Sepolia";
1636
1638
  Blockchain["Monad"] = "Monad";
1637
1639
  Blockchain["Monad_Testnet"] = "Monad_Testnet";
1640
+ Blockchain["Morph"] = "Morph";
1641
+ Blockchain["Morph_Testnet"] = "Morph_Testnet";
1638
1642
  Blockchain["NEAR"] = "NEAR";
1639
1643
  Blockchain["NEAR_Testnet"] = "NEAR_Testnet";
1640
1644
  Blockchain["Noble"] = "Noble";
@@ -1838,11 +1842,13 @@ var BridgeChain;
1838
1842
  BridgeChain["Avalanche"] = "Avalanche";
1839
1843
  BridgeChain["Base"] = "Base";
1840
1844
  BridgeChain["Codex"] = "Codex";
1845
+ BridgeChain["Edge"] = "Edge";
1841
1846
  BridgeChain["Ethereum"] = "Ethereum";
1842
1847
  BridgeChain["HyperEVM"] = "HyperEVM";
1843
1848
  BridgeChain["Ink"] = "Ink";
1844
1849
  BridgeChain["Linea"] = "Linea";
1845
1850
  BridgeChain["Monad"] = "Monad";
1851
+ BridgeChain["Morph"] = "Morph";
1846
1852
  BridgeChain["Optimism"] = "Optimism";
1847
1853
  BridgeChain["Plume"] = "Plume";
1848
1854
  BridgeChain["Polygon"] = "Polygon";
@@ -1858,11 +1864,13 @@ var BridgeChain;
1858
1864
  BridgeChain["Avalanche_Fuji"] = "Avalanche_Fuji";
1859
1865
  BridgeChain["Base_Sepolia"] = "Base_Sepolia";
1860
1866
  BridgeChain["Codex_Testnet"] = "Codex_Testnet";
1867
+ BridgeChain["Edge_Testnet"] = "Edge_Testnet";
1861
1868
  BridgeChain["Ethereum_Sepolia"] = "Ethereum_Sepolia";
1862
1869
  BridgeChain["HyperEVM_Testnet"] = "HyperEVM_Testnet";
1863
1870
  BridgeChain["Ink_Testnet"] = "Ink_Testnet";
1864
1871
  BridgeChain["Linea_Sepolia"] = "Linea_Sepolia";
1865
1872
  BridgeChain["Monad_Testnet"] = "Monad_Testnet";
1873
+ BridgeChain["Morph_Testnet"] = "Morph_Testnet";
1866
1874
  BridgeChain["Optimism_Sepolia"] = "Optimism_Sepolia";
1867
1875
  BridgeChain["Plume_Testnet"] = "Plume_Testnet";
1868
1876
  BridgeChain["Polygon_Amoy_Testnet"] = "Polygon_Amoy_Testnet";
@@ -2608,7 +2616,7 @@ const Codex = defineChain({
2608
2616
  },
2609
2617
  forwarderSupported: {
2610
2618
  source: true,
2611
- destination: false,
2619
+ destination: true,
2612
2620
  },
2613
2621
  },
2614
2622
  kitContracts: {
@@ -2651,7 +2659,95 @@ const CodexTestnet = defineChain({
2651
2659
  },
2652
2660
  forwarderSupported: {
2653
2661
  source: true,
2654
- destination: false,
2662
+ destination: true,
2663
+ },
2664
+ },
2665
+ kitContracts: {
2666
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
2667
+ },
2668
+ });
2669
+
2670
+ /**
2671
+ * Edge Mainnet chain definition
2672
+ * @remarks
2673
+ * This represents the official production network for the Edge blockchain.
2674
+ * Edge is an EVM-compatible blockchain.
2675
+ */
2676
+ const Edge = defineChain({
2677
+ type: 'evm',
2678
+ chain: Blockchain.Edge,
2679
+ name: 'Edge',
2680
+ title: 'Edge Mainnet',
2681
+ nativeCurrency: {
2682
+ name: 'Ether',
2683
+ symbol: 'ETH',
2684
+ decimals: 18,
2685
+ },
2686
+ chainId: 3343,
2687
+ isTestnet: false,
2688
+ explorerUrl: 'https://pro.edgex.exchange/en-US/explorer/tx/{hash}',
2689
+ rpcEndpoints: ['https://edge-mainnet.g.alchemy.com/public'],
2690
+ eurcAddress: null,
2691
+ usdcAddress: '0x98d2919b9A214E6Fa5384AC81E6864bA686Ad74c',
2692
+ usdtAddress: null,
2693
+ cctp: {
2694
+ domain: 28,
2695
+ contracts: {
2696
+ v2: {
2697
+ type: 'split',
2698
+ tokenMessenger: '0x98706A006bc632Df31CAdFCBD43F38887ce2ca5c',
2699
+ messageTransmitter: '0x5b61381Fc9e58E70EfC13a4A97516997019198ee',
2700
+ confirmations: 65,
2701
+ fastConfirmations: 1,
2702
+ },
2703
+ },
2704
+ forwarderSupported: {
2705
+ source: true,
2706
+ destination: true,
2707
+ },
2708
+ },
2709
+ kitContracts: {
2710
+ bridge: '0x6D1AaE1c34Aeb582022916a67f2A655C6f4eDFF2', //Unique bridge address as CCTP address for Edge is also unique
2711
+ },
2712
+ });
2713
+
2714
+ /**
2715
+ * Edge Testnet chain definition
2716
+ * @remarks
2717
+ * This represents the official test network for the Edge blockchain.
2718
+ * Edge is an EVM-compatible blockchain.
2719
+ */
2720
+ const EdgeTestnet = defineChain({
2721
+ type: 'evm',
2722
+ chain: Blockchain.Edge_Testnet,
2723
+ name: 'Edge Testnet',
2724
+ title: 'Edge Testnet',
2725
+ nativeCurrency: {
2726
+ name: 'Ether',
2727
+ symbol: 'ETH',
2728
+ decimals: 18,
2729
+ },
2730
+ chainId: 33431,
2731
+ isTestnet: true,
2732
+ explorerUrl: 'https://edge-testnet.explorer.alchemy.com/tx/{hash}',
2733
+ rpcEndpoints: ['https://edge-testnet.g.alchemy.com/public'],
2734
+ eurcAddress: null,
2735
+ usdcAddress: '0x2d9F7CAD728051AA35Ecdc472a14cf8cDF5CFD6B',
2736
+ usdtAddress: null,
2737
+ cctp: {
2738
+ domain: 28,
2739
+ contracts: {
2740
+ v2: {
2741
+ type: 'split',
2742
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
2743
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
2744
+ confirmations: 65,
2745
+ fastConfirmations: 1,
2746
+ },
2747
+ },
2748
+ forwarderSupported: {
2749
+ source: true,
2750
+ destination: true,
2655
2751
  },
2656
2752
  },
2657
2753
  kitContracts: {
@@ -2825,7 +2921,7 @@ const HyperEVM = defineChain({
2825
2921
  },
2826
2922
  chainId: 999,
2827
2923
  isTestnet: false,
2828
- explorerUrl: 'https://hyperevmscan.io/tx/{hash}',
2924
+ explorerUrl: 'https://app.hyperliquid.xyz/explorer/tx/{hash}',
2829
2925
  rpcEndpoints: ['https://rpc.hyperliquid.xyz/evm'],
2830
2926
  eurcAddress: null,
2831
2927
  usdcAddress: '0xb88339CB7199b77E23DB6E890353E22632Ba630f',
@@ -2870,7 +2966,7 @@ const HyperEVMTestnet = defineChain({
2870
2966
  },
2871
2967
  chainId: 998,
2872
2968
  isTestnet: true,
2873
- explorerUrl: 'https://testnet.hyperliquid.xyz/explorer/tx/{hash}',
2969
+ explorerUrl: 'https://app.hyperliquid-testnet.xyz/explorer/tx/{hash}',
2874
2970
  rpcEndpoints: ['https://rpc.hyperliquid-testnet.xyz/evm'],
2875
2971
  eurcAddress: null,
2876
2972
  usdcAddress: '0x2B3370eE501B4a559b57D449569354196457D8Ab',
@@ -3170,6 +3266,94 @@ const MonadTestnet = defineChain({
3170
3266
  },
3171
3267
  });
3172
3268
 
3269
+ /**
3270
+ * Morph Mainnet chain definition
3271
+ * @remarks
3272
+ * This represents the official production network for the Morph blockchain.
3273
+ * Morph is an EVM-compatible Layer-2 blockchain built on the OP Stack.
3274
+ */
3275
+ const Morph = defineChain({
3276
+ type: 'evm',
3277
+ chain: Blockchain.Morph,
3278
+ name: 'Morph',
3279
+ title: 'Morph Mainnet',
3280
+ nativeCurrency: {
3281
+ name: 'Ether',
3282
+ symbol: 'ETH',
3283
+ decimals: 18,
3284
+ },
3285
+ chainId: 2818,
3286
+ isTestnet: false,
3287
+ explorerUrl: 'https://explorer.morph.network/tx/{hash}',
3288
+ rpcEndpoints: ['https://rpc.morphl2.io'],
3289
+ eurcAddress: null,
3290
+ usdcAddress: '0xCfb1186F4e93D60E60a8bDd997427D1F33bc372B',
3291
+ usdtAddress: null,
3292
+ cctp: {
3293
+ domain: 30,
3294
+ contracts: {
3295
+ v2: {
3296
+ type: 'split',
3297
+ tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
3298
+ messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
3299
+ confirmations: 64,
3300
+ fastConfirmations: 1,
3301
+ },
3302
+ },
3303
+ forwarderSupported: {
3304
+ source: false,
3305
+ destination: false,
3306
+ },
3307
+ },
3308
+ kitContracts: {
3309
+ bridge: BRIDGE_CONTRACT_EVM_MAINNET,
3310
+ },
3311
+ });
3312
+
3313
+ /**
3314
+ * Morph Hoodi Testnet chain definition
3315
+ * @remarks
3316
+ * This represents the official test network for the Morph blockchain.
3317
+ * Morph is an EVM-compatible Layer-2 blockchain built on the OP Stack.
3318
+ */
3319
+ const MorphTestnet = defineChain({
3320
+ type: 'evm',
3321
+ chain: Blockchain.Morph_Testnet,
3322
+ name: 'Morph Hoodi',
3323
+ title: 'Morph Hoodi Testnet',
3324
+ nativeCurrency: {
3325
+ name: 'Ether',
3326
+ symbol: 'ETH',
3327
+ decimals: 18,
3328
+ },
3329
+ chainId: 2910,
3330
+ isTestnet: true,
3331
+ explorerUrl: 'https://explorer-hoodi.morphl2.io/tx/{hash}',
3332
+ rpcEndpoints: ['https://rpc-hoodi.morphl2.io'],
3333
+ eurcAddress: null,
3334
+ usdcAddress: '0x7433b41C6c5e1d58D4Da99483609520255ab661B',
3335
+ usdtAddress: null,
3336
+ cctp: {
3337
+ domain: 30,
3338
+ contracts: {
3339
+ v2: {
3340
+ type: 'split',
3341
+ tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
3342
+ messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
3343
+ confirmations: 64,
3344
+ fastConfirmations: 1,
3345
+ },
3346
+ },
3347
+ forwarderSupported: {
3348
+ source: false,
3349
+ destination: false,
3350
+ },
3351
+ },
3352
+ kitContracts: {
3353
+ bridge: BRIDGE_CONTRACT_EVM_TESTNET,
3354
+ },
3355
+ });
3356
+
3173
3357
  /**
3174
3358
  * NEAR Protocol Mainnet chain definition
3175
3359
  * @remarks
@@ -3428,7 +3612,7 @@ const Plume = defineChain({
3428
3612
  },
3429
3613
  forwarderSupported: {
3430
3614
  source: true,
3431
- destination: false,
3615
+ destination: true,
3432
3616
  },
3433
3617
  },
3434
3618
  kitContracts: {
@@ -3473,7 +3657,7 @@ const PlumeTestnet = defineChain({
3473
3657
  },
3474
3658
  forwarderSupported: {
3475
3659
  source: true,
3476
- destination: false,
3660
+ destination: true,
3477
3661
  },
3478
3662
  },
3479
3663
  kitContracts: {
@@ -4251,7 +4435,7 @@ const XDC = defineChain({
4251
4435
  },
4252
4436
  forwarderSupported: {
4253
4437
  source: true,
4254
- destination: false,
4438
+ destination: true,
4255
4439
  },
4256
4440
  },
4257
4441
  kitContracts: {
@@ -4295,7 +4479,7 @@ const XDCApothem = defineChain({
4295
4479
  },
4296
4480
  forwarderSupported: {
4297
4481
  source: true,
4298
- destination: false,
4482
+ destination: true,
4299
4483
  },
4300
4484
  },
4301
4485
  kitContracts: {
@@ -4370,6 +4554,8 @@ var Blockchains = /*#__PURE__*/Object.freeze({
4370
4554
  CeloAlfajoresTestnet: CeloAlfajoresTestnet,
4371
4555
  Codex: Codex,
4372
4556
  CodexTestnet: CodexTestnet,
4557
+ Edge: Edge,
4558
+ EdgeTestnet: EdgeTestnet,
4373
4559
  Ethereum: Ethereum,
4374
4560
  EthereumSepolia: EthereumSepolia,
4375
4561
  Hedera: Hedera,
@@ -4382,6 +4568,8 @@ var Blockchains = /*#__PURE__*/Object.freeze({
4382
4568
  LineaSepolia: LineaSepolia,
4383
4569
  Monad: Monad,
4384
4570
  MonadTestnet: MonadTestnet,
4571
+ Morph: Morph,
4572
+ MorphTestnet: MorphTestnet,
4385
4573
  NEAR: NEAR,
4386
4574
  NEARTestnet: NEARTestnet,
4387
4575
  Noble: Noble,
@@ -5737,12 +5925,14 @@ const USDC = {
5737
5925
  [Blockchain.Base]: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
5738
5926
  [Blockchain.Celo]: '0xcebA9300f2b948710d2653dD7B07f33A8B32118C',
5739
5927
  [Blockchain.Codex]: '0xd996633a415985DBd7D6D12f4A4343E31f5037cf',
5928
+ [Blockchain.Edge]: '0x98d2919b9A214E6Fa5384AC81E6864bA686Ad74c',
5740
5929
  [Blockchain.Ethereum]: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
5741
5930
  [Blockchain.Hedera]: '0.0.456858',
5742
5931
  [Blockchain.HyperEVM]: '0xb88339CB7199b77E23DB6E890353E22632Ba630f',
5743
5932
  [Blockchain.Ink]: '0x2D270e6886d130D724215A266106e6832161EAEd',
5744
5933
  [Blockchain.Linea]: '0x176211869ca2b568f2a7d4ee941e073a821ee1ff',
5745
5934
  [Blockchain.Monad]: '0x754704Bc059F8C67012fEd69BC8A327a5aafb603',
5935
+ [Blockchain.Morph]: '0xCfb1186F4e93D60E60a8bDd997427D1F33bc372B',
5746
5936
  [Blockchain.NEAR]: '17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1',
5747
5937
  [Blockchain.Noble]: 'uusdc',
5748
5938
  [Blockchain.Optimism]: '0x0b2c639c533813f4aa9d7837caf62653d097ff85',
@@ -5765,12 +5955,14 @@ const USDC = {
5765
5955
  [Blockchain.Avalanche_Fuji]: '0x5425890298aed601595a70AB815c96711a31Bc65',
5766
5956
  [Blockchain.Base_Sepolia]: '0x036CbD53842c5426634e7929541eC2318f3dCF7e',
5767
5957
  [Blockchain.Codex_Testnet]: '0x6d7f141b6819C2c9CC2f818e6ad549E7Ca090F8f',
5958
+ [Blockchain.Edge_Testnet]: '0x2d9F7CAD728051AA35Ecdc472a14cf8cDF5CFD6B',
5768
5959
  [Blockchain.Ethereum_Sepolia]: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238',
5769
5960
  [Blockchain.Hedera_Testnet]: '0.0.429274',
5770
5961
  [Blockchain.HyperEVM_Testnet]: '0x2B3370eE501B4a559b57D449569354196457D8Ab',
5771
5962
  [Blockchain.Ink_Testnet]: '0xFabab97dCE620294D2B0b0e46C68964e326300Ac',
5772
5963
  [Blockchain.Linea_Sepolia]: '0xfece4462d57bd51a6a552365a011b95f0e16d9b7',
5773
5964
  [Blockchain.Monad_Testnet]: '0x534b2f3A21130d7a60830c2Df862319e593943A3',
5965
+ [Blockchain.Morph_Testnet]: '0x7433b41C6c5e1d58D4Da99483609520255ab661B',
5774
5966
  [Blockchain.NEAR_Testnet]: '3e2210e1184b45b64c8a434c0a7e7b23cc04ea7eb7a6c3c32520d03d4afcb8af',
5775
5967
  [Blockchain.Noble_Testnet]: 'uusdc',
5776
5968
  [Blockchain.Optimism_Sepolia]: '0x5fd84259d66Cd46123540766Be93DFE6D43130D7',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@circle-fin/adapter-ethers-v6",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "EVM blockchain adapter powered by Ethers v6",
5
5
  "keywords": [
6
6
  "circle",