@circle-fin/app-kit 1.14.0 → 1.15.1
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 +72 -0
- package/README.md +3 -3
- package/bridge.cjs +7464 -454
- package/bridge.d.cts +585 -61
- package/bridge.d.mts +585 -61
- package/bridge.d.ts +585 -61
- package/bridge.mjs +7464 -454
- package/chains.cjs +146 -5
- package/chains.d.cts +108 -2
- package/chains.d.mts +108 -2
- package/chains.d.ts +108 -2
- package/chains.mjs +146 -6
- package/context.d.cts +522 -57
- package/context.d.mts +522 -57
- package/context.d.ts +522 -57
- package/earn.cjs +478 -181
- package/earn.d.cts +522 -57
- package/earn.d.mts +522 -57
- package/earn.d.ts +522 -57
- package/earn.mjs +478 -181
- package/estimateBridge.cjs +7464 -457
- package/estimateBridge.d.cts +643 -82
- package/estimateBridge.d.mts +643 -82
- package/estimateBridge.d.ts +643 -82
- package/estimateBridge.mjs +7464 -457
- package/estimateSwap.cjs +528 -185
- package/estimateSwap.d.cts +522 -57
- package/estimateSwap.d.mts +522 -57
- package/estimateSwap.d.ts +522 -57
- package/estimateSwap.mjs +528 -185
- package/index.cjs +11548 -2936
- package/index.d.cts +5073 -1738
- package/index.d.mts +5073 -1738
- package/index.d.ts +5073 -1738
- package/index.mjs +11547 -2937
- package/package.json +17 -6
- package/server.cjs +10040 -0
- package/server.cjs.map +1 -0
- package/server.d.cts +2467 -0
- package/server.d.mts +2467 -0
- package/server.d.ts +2467 -0
- package/server.mjs +10028 -0
- package/server.mjs.map +1 -0
- package/swap.cjs +528 -185
- package/swap.d.cts +522 -57
- package/swap.d.mts +522 -57
- package/swap.d.ts +522 -57
- package/swap.mjs +528 -185
- package/unifiedBalance.cjs +742 -44
- package/unifiedBalance.d.cts +223 -1
- package/unifiedBalance.d.mts +223 -1
- package/unifiedBalance.d.ts +223 -1
- package/unifiedBalance.mjs +742 -44
package/chains.cjs
CHANGED
|
@@ -63,9 +63,10 @@ var zod = require('zod');
|
|
|
63
63
|
Blockchain["Algorand_Testnet"] = "Algorand_Testnet";
|
|
64
64
|
Blockchain["Aptos"] = "Aptos";
|
|
65
65
|
Blockchain["Aptos_Testnet"] = "Aptos_Testnet";
|
|
66
|
-
Blockchain["Arc_Testnet"] = "Arc_Testnet";
|
|
67
66
|
Blockchain["Arbitrum"] = "Arbitrum";
|
|
68
67
|
Blockchain["Arbitrum_Sepolia"] = "Arbitrum_Sepolia";
|
|
68
|
+
Blockchain["Arc"] = "Arc";
|
|
69
|
+
Blockchain["Arc_Testnet"] = "Arc_Testnet";
|
|
69
70
|
Blockchain["Avalanche"] = "Avalanche";
|
|
70
71
|
Blockchain["Avalanche_Fuji"] = "Avalanche_Fuji";
|
|
71
72
|
Blockchain["Base"] = "Base";
|
|
@@ -152,6 +153,7 @@ var SwapChain;
|
|
|
152
153
|
SwapChain["XDC"] = "XDC";
|
|
153
154
|
SwapChain["HyperEVM"] = "HyperEVM";
|
|
154
155
|
SwapChain["Monad"] = "Monad";
|
|
156
|
+
SwapChain["Arc"] = "Arc";
|
|
155
157
|
// Testnet chains with swap support
|
|
156
158
|
SwapChain["Arc_Testnet"] = "Arc_Testnet";
|
|
157
159
|
})(SwapChain || (SwapChain = {}));
|
|
@@ -159,6 +161,7 @@ var BridgeChain;
|
|
|
159
161
|
(function(BridgeChain) {
|
|
160
162
|
// Mainnet chains with CCTPv2 support
|
|
161
163
|
BridgeChain["Arbitrum"] = "Arbitrum";
|
|
164
|
+
BridgeChain["Arc"] = "Arc";
|
|
162
165
|
BridgeChain["Avalanche"] = "Avalanche";
|
|
163
166
|
BridgeChain["Base"] = "Base";
|
|
164
167
|
BridgeChain["Codex"] = "Codex";
|
|
@@ -214,6 +217,7 @@ var BridgeChain;
|
|
|
214
217
|
var UnifiedBalanceChain;
|
|
215
218
|
(function(UnifiedBalanceChain) {
|
|
216
219
|
// Mainnet chains with Gateway V1 support
|
|
220
|
+
UnifiedBalanceChain["Arc"] = "Arc";
|
|
217
221
|
UnifiedBalanceChain["Arbitrum"] = "Arbitrum";
|
|
218
222
|
UnifiedBalanceChain["Avalanche"] = "Avalanche";
|
|
219
223
|
UnifiedBalanceChain["Base"] = "Base";
|
|
@@ -243,6 +247,7 @@ var UnifiedBalanceChain;
|
|
|
243
247
|
})(UnifiedBalanceChain || (UnifiedBalanceChain = {}));
|
|
244
248
|
var EarnChain;
|
|
245
249
|
(function(EarnChain) {
|
|
250
|
+
EarnChain["Arc"] = "Arc";
|
|
246
251
|
EarnChain["Arc_Testnet"] = "Arc_Testnet";
|
|
247
252
|
})(EarnChain || (EarnChain = {}));
|
|
248
253
|
/**
|
|
@@ -259,8 +264,11 @@ var EarnChain;
|
|
|
259
264
|
* console.log(EARN_BRIDGE_SOURCE_BLOCKCHAINS.join(', '))
|
|
260
265
|
* ```
|
|
261
266
|
*/ const EARN_BRIDGE_SOURCE_BLOCKCHAINS = [
|
|
267
|
+
"Arbitrum",
|
|
262
268
|
"Arbitrum_Sepolia",
|
|
269
|
+
"Base",
|
|
263
270
|
"Base_Sepolia",
|
|
271
|
+
"Ethereum",
|
|
264
272
|
"Ethereum_Sepolia"
|
|
265
273
|
];
|
|
266
274
|
/**
|
|
@@ -274,6 +282,7 @@ var EarnChain;
|
|
|
274
282
|
* console.log(EARN_BRIDGE_DESTINATION_BLOCKCHAINS.join(', '))
|
|
275
283
|
* ```
|
|
276
284
|
*/ const EARN_BRIDGE_DESTINATION_BLOCKCHAINS = [
|
|
285
|
+
"Arc",
|
|
277
286
|
"Arc_Testnet"
|
|
278
287
|
];
|
|
279
288
|
|
|
@@ -579,6 +588,25 @@ var EarnChain;
|
|
|
579
588
|
* EVM-compatible chains. Use this address when deploying or testing
|
|
580
589
|
* cross-chain USDC transfers on test networks.
|
|
581
590
|
*/ const BRIDGE_CONTRACT_EVM_TESTNET = '0xC5567a5E3370d4DBfB0540025078e283e36A363d';
|
|
591
|
+
/**
|
|
592
|
+
* The CrossChainTokenService (CCTPx) service address for EVM testnet networks.
|
|
593
|
+
*
|
|
594
|
+
* This service coordinates CCTPx cross-chain token operations on testnet
|
|
595
|
+
* environments and is shared by every EVM test network CCTPx supports. Read the
|
|
596
|
+
* chain definitions via `isCCTPXSupported` rather than trusting a list here,
|
|
597
|
+
* which goes stale as deployments land.
|
|
598
|
+
*/ const CCTPX_SERVICE_ADDRESS_EVM_TESTNET = '0x63753E722bd2C2A5DF6EE19C5106662208B81077';
|
|
599
|
+
/**
|
|
600
|
+
* CrossChainTokenService (CCTS) proxy address for CCTPx on EVM **mainnet**.
|
|
601
|
+
*
|
|
602
|
+
* @remarks
|
|
603
|
+
* A distinct deployment from {@link CCTPX_SERVICE_ADDRESS_EVM_TESTNET}, shared
|
|
604
|
+
* by every EVM mainnet chain that CCTPx supports. A chain becomes
|
|
605
|
+
* CCTPx-eligible only once its definition carries this as
|
|
606
|
+
* `cctpx.serviceAddress`, and a route additionally needs both of its endpoints
|
|
607
|
+
* eligible — so adding a chain here is the deliberate, reviewable step that
|
|
608
|
+
* opens mainnet CCTPx for it.
|
|
609
|
+
*/ const CCTPX_SERVICE_ADDRESS_EVM_MAINNET = '0x431871229103b780868f8C6BB820cd16ECf942BC';
|
|
582
610
|
/**
|
|
583
611
|
* The bridge contract address for EVM mainnet networks.
|
|
584
612
|
*
|
|
@@ -687,6 +715,76 @@ var EarnChain;
|
|
|
687
715
|
* Identical across all testnet EVM destination chains.
|
|
688
716
|
*/ const GENERIC_EXECUTOR_EVM_TESTNET = '0xEdC81040756AcCfF070c21D37b265b9D0b5Ba45e';
|
|
689
717
|
|
|
718
|
+
/**
|
|
719
|
+
* Arc Mainnet chain definition
|
|
720
|
+
* @remarks
|
|
721
|
+
* This represents the official production network for the Arc blockchain,
|
|
722
|
+
* Circle's EVM-compatible Layer-1 designed for stablecoin finance
|
|
723
|
+
* and asset tokenization. Arc uses USDC as the native gas token and
|
|
724
|
+
* features the Malachite Byzantine Fault Tolerant (BFT) consensus
|
|
725
|
+
* engine for sub-second finality.
|
|
726
|
+
*/ const Arc = defineChain({
|
|
727
|
+
type: 'evm',
|
|
728
|
+
chain: Blockchain.Arc,
|
|
729
|
+
name: 'Arc',
|
|
730
|
+
title: 'Arc Mainnet',
|
|
731
|
+
nativeCurrency: {
|
|
732
|
+
name: 'USDC',
|
|
733
|
+
symbol: 'USDC',
|
|
734
|
+
// Arc uses native USDC with 18 decimals for gas payments (EVM standard).
|
|
735
|
+
// Note: The ERC-20 USDC contract at usdcAddress uses 6 decimals.
|
|
736
|
+
// See: https://docs.arc.network/arc/references/contract-addresses
|
|
737
|
+
decimals: 18
|
|
738
|
+
},
|
|
739
|
+
chainId: 5042,
|
|
740
|
+
isTestnet: false,
|
|
741
|
+
explorerUrl: 'https://explorer.arc.io/tx/{hash}',
|
|
742
|
+
rpcEndpoints: [
|
|
743
|
+
'https://rpc.mainnet.arc.io/'
|
|
744
|
+
],
|
|
745
|
+
eurcAddress: '0xbEf5f6d51CB62b58e6A8f77868681825C6fe21c1',
|
|
746
|
+
usdcAddress: '0x3600000000000000000000000000000000000000',
|
|
747
|
+
usdtAddress: null,
|
|
748
|
+
cctp: {
|
|
749
|
+
domain: 26,
|
|
750
|
+
contracts: {
|
|
751
|
+
v2: {
|
|
752
|
+
type: 'split',
|
|
753
|
+
tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
|
|
754
|
+
messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
|
|
755
|
+
confirmations: 1,
|
|
756
|
+
fastConfirmations: 1
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
forwarderSupported: {
|
|
760
|
+
source: false,
|
|
761
|
+
destination: true
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
cctpx: {
|
|
765
|
+
serviceAddress: CCTPX_SERVICE_ADDRESS_EVM_MAINNET
|
|
766
|
+
},
|
|
767
|
+
kitContracts: {
|
|
768
|
+
bridge: BRIDGE_CONTRACT_EVM_MAINNET,
|
|
769
|
+
adapter: ADAPTER_CONTRACT_EVM_MAINNET
|
|
770
|
+
},
|
|
771
|
+
gateway: {
|
|
772
|
+
domain: 26,
|
|
773
|
+
contracts: {
|
|
774
|
+
v1: {
|
|
775
|
+
wallet: GATEWAY_WALLET_EVM_MAINNET,
|
|
776
|
+
minter: GATEWAY_MINTER_EVM_MAINNET,
|
|
777
|
+
depositForHandler: DEPOSIT_FOR_HANDLER_EVM_MAINNET,
|
|
778
|
+
genericExecutor: GENERIC_EXECUTOR_EVM_MAINNET
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
forwarderSupported: {
|
|
782
|
+
source: true,
|
|
783
|
+
destination: true
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
});
|
|
787
|
+
|
|
690
788
|
/**
|
|
691
789
|
* Arc Testnet chain definition
|
|
692
790
|
* @remarks
|
|
@@ -734,6 +832,9 @@ var EarnChain;
|
|
|
734
832
|
destination: true
|
|
735
833
|
}
|
|
736
834
|
},
|
|
835
|
+
cctpx: {
|
|
836
|
+
serviceAddress: CCTPX_SERVICE_ADDRESS_EVM_TESTNET
|
|
837
|
+
},
|
|
737
838
|
kitContracts: {
|
|
738
839
|
bridge: BRIDGE_CONTRACT_EVM_TESTNET,
|
|
739
840
|
adapter: ADAPTER_CONTRACT_EVM_TESTNET
|
|
@@ -801,6 +902,9 @@ var EarnChain;
|
|
|
801
902
|
destination: true
|
|
802
903
|
}
|
|
803
904
|
},
|
|
905
|
+
cctpx: {
|
|
906
|
+
serviceAddress: CCTPX_SERVICE_ADDRESS_EVM_MAINNET
|
|
907
|
+
},
|
|
804
908
|
kitContracts: {
|
|
805
909
|
bridge: BRIDGE_CONTRACT_EVM_MAINNET,
|
|
806
910
|
adapter: ADAPTER_CONTRACT_EVM_MAINNET
|
|
@@ -866,6 +970,9 @@ var EarnChain;
|
|
|
866
970
|
destination: true
|
|
867
971
|
}
|
|
868
972
|
},
|
|
973
|
+
cctpx: {
|
|
974
|
+
serviceAddress: CCTPX_SERVICE_ADDRESS_EVM_TESTNET
|
|
975
|
+
},
|
|
869
976
|
kitContracts: {
|
|
870
977
|
bridge: BRIDGE_CONTRACT_EVM_TESTNET,
|
|
871
978
|
adapter: ADAPTER_CONTRACT_EVM_TESTNET
|
|
@@ -931,6 +1038,9 @@ var EarnChain;
|
|
|
931
1038
|
destination: true
|
|
932
1039
|
}
|
|
933
1040
|
},
|
|
1041
|
+
cctpx: {
|
|
1042
|
+
serviceAddress: CCTPX_SERVICE_ADDRESS_EVM_MAINNET
|
|
1043
|
+
},
|
|
934
1044
|
kitContracts: {
|
|
935
1045
|
bridge: BRIDGE_CONTRACT_EVM_MAINNET,
|
|
936
1046
|
adapter: ADAPTER_CONTRACT_EVM_MAINNET
|
|
@@ -998,6 +1108,9 @@ var EarnChain;
|
|
|
998
1108
|
rpcEndpoints: [
|
|
999
1109
|
'https://api.avax-test.network/ext/bc/C/rpc'
|
|
1000
1110
|
],
|
|
1111
|
+
cctpx: {
|
|
1112
|
+
serviceAddress: CCTPX_SERVICE_ADDRESS_EVM_TESTNET
|
|
1113
|
+
},
|
|
1001
1114
|
kitContracts: {
|
|
1002
1115
|
bridge: BRIDGE_CONTRACT_EVM_TESTNET
|
|
1003
1116
|
},
|
|
@@ -1065,6 +1178,9 @@ var EarnChain;
|
|
|
1065
1178
|
destination: true
|
|
1066
1179
|
}
|
|
1067
1180
|
},
|
|
1181
|
+
cctpx: {
|
|
1182
|
+
serviceAddress: CCTPX_SERVICE_ADDRESS_EVM_MAINNET
|
|
1183
|
+
},
|
|
1068
1184
|
kitContracts: {
|
|
1069
1185
|
bridge: BRIDGE_CONTRACT_EVM_MAINNET,
|
|
1070
1186
|
adapter: ADAPTER_CONTRACT_EVM_MAINNET
|
|
@@ -1130,6 +1246,9 @@ var EarnChain;
|
|
|
1130
1246
|
destination: true
|
|
1131
1247
|
}
|
|
1132
1248
|
},
|
|
1249
|
+
cctpx: {
|
|
1250
|
+
serviceAddress: CCTPX_SERVICE_ADDRESS_EVM_TESTNET
|
|
1251
|
+
},
|
|
1133
1252
|
kitContracts: {
|
|
1134
1253
|
bridge: BRIDGE_CONTRACT_EVM_TESTNET,
|
|
1135
1254
|
adapter: ADAPTER_CONTRACT_EVM_TESTNET
|
|
@@ -1522,6 +1641,9 @@ var EarnChain;
|
|
|
1522
1641
|
destination: true
|
|
1523
1642
|
}
|
|
1524
1643
|
},
|
|
1644
|
+
cctpx: {
|
|
1645
|
+
serviceAddress: CCTPX_SERVICE_ADDRESS_EVM_MAINNET
|
|
1646
|
+
},
|
|
1525
1647
|
kitContracts: {
|
|
1526
1648
|
bridge: BRIDGE_CONTRACT_EVM_MAINNET,
|
|
1527
1649
|
adapter: ADAPTER_CONTRACT_EVM_MAINNET
|
|
@@ -1587,6 +1709,9 @@ var EarnChain;
|
|
|
1587
1709
|
destination: true
|
|
1588
1710
|
}
|
|
1589
1711
|
},
|
|
1712
|
+
cctpx: {
|
|
1713
|
+
serviceAddress: CCTPX_SERVICE_ADDRESS_EVM_TESTNET
|
|
1714
|
+
},
|
|
1590
1715
|
kitContracts: {
|
|
1591
1716
|
bridge: BRIDGE_CONTRACT_EVM_TESTNET,
|
|
1592
1717
|
adapter: ADAPTER_CONTRACT_EVM_TESTNET
|
|
@@ -2418,6 +2543,9 @@ var EarnChain;
|
|
|
2418
2543
|
destination: true
|
|
2419
2544
|
}
|
|
2420
2545
|
},
|
|
2546
|
+
cctpx: {
|
|
2547
|
+
serviceAddress: CCTPX_SERVICE_ADDRESS_EVM_MAINNET
|
|
2548
|
+
},
|
|
2421
2549
|
kitContracts: {
|
|
2422
2550
|
bridge: BRIDGE_CONTRACT_EVM_MAINNET,
|
|
2423
2551
|
adapter: ADAPTER_CONTRACT_EVM_MAINNET
|
|
@@ -2483,6 +2611,9 @@ var EarnChain;
|
|
|
2483
2611
|
destination: true
|
|
2484
2612
|
}
|
|
2485
2613
|
},
|
|
2614
|
+
cctpx: {
|
|
2615
|
+
serviceAddress: CCTPX_SERVICE_ADDRESS_EVM_TESTNET
|
|
2616
|
+
},
|
|
2486
2617
|
kitContracts: {
|
|
2487
2618
|
bridge: BRIDGE_CONTRACT_EVM_TESTNET
|
|
2488
2619
|
},
|
|
@@ -2878,6 +3009,9 @@ var EarnChain;
|
|
|
2878
3009
|
destination: true
|
|
2879
3010
|
}
|
|
2880
3011
|
},
|
|
3012
|
+
cctpx: {
|
|
3013
|
+
serviceAddress: CCTPX_SERVICE_ADDRESS_EVM_MAINNET
|
|
3014
|
+
},
|
|
2881
3015
|
kitContracts: {
|
|
2882
3016
|
bridge: BRIDGE_CONTRACT_EVM_MAINNET,
|
|
2883
3017
|
adapter: ADAPTER_CONTRACT_EVM_MAINNET
|
|
@@ -2946,6 +3080,9 @@ var EarnChain;
|
|
|
2946
3080
|
destination: true
|
|
2947
3081
|
}
|
|
2948
3082
|
},
|
|
3083
|
+
cctpx: {
|
|
3084
|
+
serviceAddress: CCTPX_SERVICE_ADDRESS_EVM_TESTNET
|
|
3085
|
+
},
|
|
2949
3086
|
kitContracts: {
|
|
2950
3087
|
bridge: BRIDGE_CONTRACT_EVM_TESTNET
|
|
2951
3088
|
},
|
|
@@ -4115,6 +4252,7 @@ var EarnChain;
|
|
|
4115
4252
|
usdcAddress: zod.z.string().nullable(),
|
|
4116
4253
|
usdtAddress: zod.z.string().nullable(),
|
|
4117
4254
|
cctp: zod.z.any().nullable(),
|
|
4255
|
+
cctpx: zod.z.any().optional(),
|
|
4118
4256
|
kitContracts: zod.z.object({
|
|
4119
4257
|
bridge: zod.z.string().optional(),
|
|
4120
4258
|
adapter: zod.z.string().optional()
|
|
@@ -4320,14 +4458,15 @@ const EARN_BRIDGE_DESTINATION_CHAIN_VALUES = EARN_BRIDGE_DESTINATION_BLOCKCHAINS
|
|
|
4320
4458
|
* Zod schema for validating the source chain of a cross-chain Earn deposit.
|
|
4321
4459
|
*
|
|
4322
4460
|
* Accept a supported source Blockchain value, a matching string literal, or a
|
|
4323
|
-
* ChainDefinition for a supported source chain. Source chains are Ethereum
|
|
4324
|
-
*
|
|
4461
|
+
* ChainDefinition for a supported source chain. Source chains are Ethereum,
|
|
4462
|
+
* Arbitrum, and Base (mainnet and testnet).
|
|
4325
4463
|
*
|
|
4326
4464
|
* @example
|
|
4327
4465
|
* ```typescript
|
|
4328
4466
|
* import { earnBridgeSourceChainIdentifierSchema } from '@core/chains'
|
|
4329
4467
|
*
|
|
4330
4468
|
* // Valid
|
|
4469
|
+
* earnBridgeSourceChainIdentifierSchema.parse('Ethereum')
|
|
4331
4470
|
* earnBridgeSourceChainIdentifierSchema.parse('Ethereum_Sepolia')
|
|
4332
4471
|
*
|
|
4333
4472
|
* // Invalid (throws ZodError)
|
|
@@ -4346,14 +4485,15 @@ const EARN_BRIDGE_DESTINATION_CHAIN_VALUES = EARN_BRIDGE_DESTINATION_BLOCKCHAINS
|
|
|
4346
4485
|
* deposit.
|
|
4347
4486
|
*
|
|
4348
4487
|
* Accept a supported destination Blockchain value, a matching string literal,
|
|
4349
|
-
* or a ChainDefinition for a supported destination chain.
|
|
4350
|
-
* Testnet
|
|
4488
|
+
* or a ChainDefinition for a supported destination chain. Arc (mainnet) and
|
|
4489
|
+
* Arc Testnet are supported.
|
|
4351
4490
|
*
|
|
4352
4491
|
* @example
|
|
4353
4492
|
* ```typescript
|
|
4354
4493
|
* import { earnBridgeDestinationChainIdentifierSchema } from '@core/chains'
|
|
4355
4494
|
*
|
|
4356
4495
|
* // Valid
|
|
4496
|
+
* earnBridgeDestinationChainIdentifierSchema.parse('Arc')
|
|
4357
4497
|
* earnBridgeDestinationChainIdentifierSchema.parse('Arc_Testnet')
|
|
4358
4498
|
*
|
|
4359
4499
|
* // Invalid (throws ZodError)
|
|
@@ -4427,6 +4567,7 @@ const swapTokenEnumSchema = zod.z.enum([
|
|
|
4427
4567
|
|
|
4428
4568
|
exports.Arbitrum = Arbitrum;
|
|
4429
4569
|
exports.ArbitrumSepolia = ArbitrumSepolia;
|
|
4570
|
+
exports.Arc = Arc;
|
|
4430
4571
|
exports.ArcTestnet = ArcTestnet;
|
|
4431
4572
|
exports.Avalanche = Avalanche;
|
|
4432
4573
|
exports.AvalancheFuji = AvalancheFuji;
|
package/chains.d.cts
CHANGED
|
@@ -33,9 +33,10 @@ declare enum Blockchain {
|
|
|
33
33
|
Algorand_Testnet = "Algorand_Testnet",
|
|
34
34
|
Aptos = "Aptos",
|
|
35
35
|
Aptos_Testnet = "Aptos_Testnet",
|
|
36
|
-
Arc_Testnet = "Arc_Testnet",
|
|
37
36
|
Arbitrum = "Arbitrum",
|
|
38
37
|
Arbitrum_Sepolia = "Arbitrum_Sepolia",
|
|
38
|
+
Arc = "Arc",
|
|
39
|
+
Arc_Testnet = "Arc_Testnet",
|
|
39
40
|
Avalanche = "Avalanche",
|
|
40
41
|
Avalanche_Fuji = "Avalanche_Fuji",
|
|
41
42
|
Base = "Base",
|
|
@@ -102,6 +103,72 @@ declare enum Blockchain {
|
|
|
102
103
|
ZKSync_Sepolia = "ZKSync_Sepolia"
|
|
103
104
|
}
|
|
104
105
|
|
|
106
|
+
/**
|
|
107
|
+
* Arc Mainnet chain definition
|
|
108
|
+
* @remarks
|
|
109
|
+
* This represents the official production network for the Arc blockchain,
|
|
110
|
+
* Circle's EVM-compatible Layer-1 designed for stablecoin finance
|
|
111
|
+
* and asset tokenization. Arc uses USDC as the native gas token and
|
|
112
|
+
* features the Malachite Byzantine Fault Tolerant (BFT) consensus
|
|
113
|
+
* engine for sub-second finality.
|
|
114
|
+
*/
|
|
115
|
+
declare const Arc: {
|
|
116
|
+
readonly type: "evm";
|
|
117
|
+
readonly chain: Blockchain.Arc;
|
|
118
|
+
readonly name: "Arc";
|
|
119
|
+
readonly title: "Arc Mainnet";
|
|
120
|
+
readonly nativeCurrency: {
|
|
121
|
+
readonly name: "USDC";
|
|
122
|
+
readonly symbol: "USDC";
|
|
123
|
+
readonly decimals: 18;
|
|
124
|
+
};
|
|
125
|
+
readonly chainId: 5042;
|
|
126
|
+
readonly isTestnet: false;
|
|
127
|
+
readonly explorerUrl: "https://explorer.arc.io/tx/{hash}";
|
|
128
|
+
readonly rpcEndpoints: readonly ["https://rpc.mainnet.arc.io/"];
|
|
129
|
+
readonly eurcAddress: "0xbEf5f6d51CB62b58e6A8f77868681825C6fe21c1";
|
|
130
|
+
readonly usdcAddress: "0x3600000000000000000000000000000000000000";
|
|
131
|
+
readonly usdtAddress: null;
|
|
132
|
+
readonly cctp: {
|
|
133
|
+
readonly domain: 26;
|
|
134
|
+
readonly contracts: {
|
|
135
|
+
readonly v2: {
|
|
136
|
+
readonly type: "split";
|
|
137
|
+
readonly tokenMessenger: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d";
|
|
138
|
+
readonly messageTransmitter: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64";
|
|
139
|
+
readonly confirmations: 1;
|
|
140
|
+
readonly fastConfirmations: 1;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
readonly forwarderSupported: {
|
|
144
|
+
readonly source: false;
|
|
145
|
+
readonly destination: true;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
readonly cctpx: {
|
|
149
|
+
readonly serviceAddress: "0x431871229103b780868f8C6BB820cd16ECf942BC";
|
|
150
|
+
};
|
|
151
|
+
readonly kitContracts: {
|
|
152
|
+
readonly bridge: "0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0";
|
|
153
|
+
readonly adapter: "0x7FB8c7260b63934d8da38aF902f87ae6e284a845";
|
|
154
|
+
};
|
|
155
|
+
readonly gateway: {
|
|
156
|
+
readonly domain: 26;
|
|
157
|
+
readonly contracts: {
|
|
158
|
+
readonly v1: {
|
|
159
|
+
readonly wallet: "0x77777777Dcc4d5A8B6E418Fd04D8997ef11000eE";
|
|
160
|
+
readonly minter: "0x2222222d7164433c4C09B0b0D809a9b52C04C205";
|
|
161
|
+
readonly depositForHandler: "0x16529813203f77E036576666336554a1210dce4D";
|
|
162
|
+
readonly genericExecutor: "0xFa7be2f04F3Ad4ca969260729c6d45B5625984A7";
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
readonly forwarderSupported: {
|
|
166
|
+
readonly source: true;
|
|
167
|
+
readonly destination: true;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
|
|
105
172
|
/**
|
|
106
173
|
* Arc Testnet chain definition
|
|
107
174
|
* @remarks
|
|
@@ -145,6 +212,9 @@ declare const ArcTestnet: {
|
|
|
145
212
|
readonly destination: true;
|
|
146
213
|
};
|
|
147
214
|
};
|
|
215
|
+
readonly cctpx: {
|
|
216
|
+
readonly serviceAddress: "0x63753E722bd2C2A5DF6EE19C5106662208B81077";
|
|
217
|
+
};
|
|
148
218
|
readonly kitContracts: {
|
|
149
219
|
readonly bridge: "0xC5567a5E3370d4DBfB0540025078e283e36A363d";
|
|
150
220
|
readonly adapter: "0xBBD70b01a1CAbc96d5b7b129Ae1AAabdf50dd40b";
|
|
@@ -211,6 +281,9 @@ declare const Arbitrum: {
|
|
|
211
281
|
readonly destination: true;
|
|
212
282
|
};
|
|
213
283
|
};
|
|
284
|
+
readonly cctpx: {
|
|
285
|
+
readonly serviceAddress: "0x431871229103b780868f8C6BB820cd16ECf942BC";
|
|
286
|
+
};
|
|
214
287
|
readonly kitContracts: {
|
|
215
288
|
readonly bridge: "0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0";
|
|
216
289
|
readonly adapter: "0x7FB8c7260b63934d8da38aF902f87ae6e284a845";
|
|
@@ -275,6 +348,9 @@ declare const ArbitrumSepolia: {
|
|
|
275
348
|
readonly destination: true;
|
|
276
349
|
};
|
|
277
350
|
};
|
|
351
|
+
readonly cctpx: {
|
|
352
|
+
readonly serviceAddress: "0x63753E722bd2C2A5DF6EE19C5106662208B81077";
|
|
353
|
+
};
|
|
278
354
|
readonly kitContracts: {
|
|
279
355
|
readonly bridge: "0xC5567a5E3370d4DBfB0540025078e283e36A363d";
|
|
280
356
|
readonly adapter: "0xBBD70b01a1CAbc96d5b7b129Ae1AAabdf50dd40b";
|
|
@@ -339,6 +415,9 @@ declare const Avalanche: {
|
|
|
339
415
|
readonly destination: true;
|
|
340
416
|
};
|
|
341
417
|
};
|
|
418
|
+
readonly cctpx: {
|
|
419
|
+
readonly serviceAddress: "0x431871229103b780868f8C6BB820cd16ECf942BC";
|
|
420
|
+
};
|
|
342
421
|
readonly kitContracts: {
|
|
343
422
|
readonly bridge: "0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0";
|
|
344
423
|
readonly adapter: "0x7FB8c7260b63934d8da38aF902f87ae6e284a845";
|
|
@@ -405,6 +484,9 @@ declare const AvalancheFuji: {
|
|
|
405
484
|
};
|
|
406
485
|
};
|
|
407
486
|
readonly rpcEndpoints: readonly ["https://api.avax-test.network/ext/bc/C/rpc"];
|
|
487
|
+
readonly cctpx: {
|
|
488
|
+
readonly serviceAddress: "0x63753E722bd2C2A5DF6EE19C5106662208B81077";
|
|
489
|
+
};
|
|
408
490
|
readonly kitContracts: {
|
|
409
491
|
readonly bridge: "0xC5567a5E3370d4DBfB0540025078e283e36A363d";
|
|
410
492
|
};
|
|
@@ -470,6 +552,9 @@ declare const Base: {
|
|
|
470
552
|
readonly destination: true;
|
|
471
553
|
};
|
|
472
554
|
};
|
|
555
|
+
readonly cctpx: {
|
|
556
|
+
readonly serviceAddress: "0x431871229103b780868f8C6BB820cd16ECf942BC";
|
|
557
|
+
};
|
|
473
558
|
readonly kitContracts: {
|
|
474
559
|
readonly bridge: "0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0";
|
|
475
560
|
readonly adapter: "0x7FB8c7260b63934d8da38aF902f87ae6e284a845";
|
|
@@ -534,6 +619,9 @@ declare const BaseSepolia: {
|
|
|
534
619
|
readonly destination: true;
|
|
535
620
|
};
|
|
536
621
|
};
|
|
622
|
+
readonly cctpx: {
|
|
623
|
+
readonly serviceAddress: "0x63753E722bd2C2A5DF6EE19C5106662208B81077";
|
|
624
|
+
};
|
|
537
625
|
readonly kitContracts: {
|
|
538
626
|
readonly bridge: "0xC5567a5E3370d4DBfB0540025078e283e36A363d";
|
|
539
627
|
readonly adapter: "0xBBD70b01a1CAbc96d5b7b129Ae1AAabdf50dd40b";
|
|
@@ -686,6 +774,9 @@ declare const Ethereum: {
|
|
|
686
774
|
readonly destination: true;
|
|
687
775
|
};
|
|
688
776
|
};
|
|
777
|
+
readonly cctpx: {
|
|
778
|
+
readonly serviceAddress: "0x431871229103b780868f8C6BB820cd16ECf942BC";
|
|
779
|
+
};
|
|
689
780
|
readonly kitContracts: {
|
|
690
781
|
readonly bridge: "0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0";
|
|
691
782
|
readonly adapter: "0x7FB8c7260b63934d8da38aF902f87ae6e284a845";
|
|
@@ -750,6 +841,9 @@ declare const EthereumSepolia: {
|
|
|
750
841
|
readonly destination: true;
|
|
751
842
|
};
|
|
752
843
|
};
|
|
844
|
+
readonly cctpx: {
|
|
845
|
+
readonly serviceAddress: "0x63753E722bd2C2A5DF6EE19C5106662208B81077";
|
|
846
|
+
};
|
|
753
847
|
readonly kitContracts: {
|
|
754
848
|
readonly bridge: "0xC5567a5E3370d4DBfB0540025078e283e36A363d";
|
|
755
849
|
readonly adapter: "0xBBD70b01a1CAbc96d5b7b129Ae1AAabdf50dd40b";
|
|
@@ -1113,6 +1207,9 @@ declare const Optimism: {
|
|
|
1113
1207
|
readonly destination: true;
|
|
1114
1208
|
};
|
|
1115
1209
|
};
|
|
1210
|
+
readonly cctpx: {
|
|
1211
|
+
readonly serviceAddress: "0x431871229103b780868f8C6BB820cd16ECf942BC";
|
|
1212
|
+
};
|
|
1116
1213
|
readonly kitContracts: {
|
|
1117
1214
|
readonly bridge: "0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0";
|
|
1118
1215
|
readonly adapter: "0x7FB8c7260b63934d8da38aF902f87ae6e284a845";
|
|
@@ -1177,6 +1274,9 @@ declare const OptimismSepolia: {
|
|
|
1177
1274
|
readonly destination: true;
|
|
1178
1275
|
};
|
|
1179
1276
|
};
|
|
1277
|
+
readonly cctpx: {
|
|
1278
|
+
readonly serviceAddress: "0x63753E722bd2C2A5DF6EE19C5106662208B81077";
|
|
1279
|
+
};
|
|
1180
1280
|
readonly kitContracts: {
|
|
1181
1281
|
readonly bridge: "0xC5567a5E3370d4DBfB0540025078e283e36A363d";
|
|
1182
1282
|
};
|
|
@@ -1422,6 +1522,9 @@ declare const Polygon: {
|
|
|
1422
1522
|
readonly destination: true;
|
|
1423
1523
|
};
|
|
1424
1524
|
};
|
|
1525
|
+
readonly cctpx: {
|
|
1526
|
+
readonly serviceAddress: "0x431871229103b780868f8C6BB820cd16ECf942BC";
|
|
1527
|
+
};
|
|
1425
1528
|
readonly kitContracts: {
|
|
1426
1529
|
readonly bridge: "0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0";
|
|
1427
1530
|
readonly adapter: "0x7FB8c7260b63934d8da38aF902f87ae6e284a845";
|
|
@@ -1488,6 +1591,9 @@ declare const PolygonAmoy: {
|
|
|
1488
1591
|
readonly destination: true;
|
|
1489
1592
|
};
|
|
1490
1593
|
};
|
|
1594
|
+
readonly cctpx: {
|
|
1595
|
+
readonly serviceAddress: "0x63753E722bd2C2A5DF6EE19C5106662208B81077";
|
|
1596
|
+
};
|
|
1491
1597
|
readonly kitContracts: {
|
|
1492
1598
|
readonly bridge: "0xC5567a5E3370d4DBfB0540025078e283e36A363d";
|
|
1493
1599
|
};
|
|
@@ -2288,4 +2394,4 @@ declare const XLayerTestnet: {
|
|
|
2288
2394
|
};
|
|
2289
2395
|
};
|
|
2290
2396
|
|
|
2291
|
-
export { Arbitrum, ArbitrumSepolia, ArcTestnet, Avalanche, AvalancheFuji, Base, BaseSepolia, Codex, CodexTestnet, Ethereum, EthereumSepolia, HyperEVM, HyperEVMTestnet, Ink, InkTestnet, Linea, LineaSepolia, Optimism, OptimismSepolia, Plasma, PlasmaTestnet, Plume, PlumeTestnet, Polygon, PolygonAmoy, Sei, SeiTestnet, Solana, SolanaDevnet, Sonic, SonicTestnet, Unichain, UnichainSepolia, WorldChain, WorldChainSepolia, XDC, XDCApothem, XLayer, XLayerTestnet };
|
|
2397
|
+
export { Arbitrum, ArbitrumSepolia, Arc, ArcTestnet, Avalanche, AvalancheFuji, Base, BaseSepolia, Codex, CodexTestnet, Ethereum, EthereumSepolia, HyperEVM, HyperEVMTestnet, Ink, InkTestnet, Linea, LineaSepolia, Optimism, OptimismSepolia, Plasma, PlasmaTestnet, Plume, PlumeTestnet, Polygon, PolygonAmoy, Sei, SeiTestnet, Solana, SolanaDevnet, Sonic, SonicTestnet, Unichain, UnichainSepolia, WorldChain, WorldChainSepolia, XDC, XDCApothem, XLayer, XLayerTestnet };
|