@circle-fin/app-kit 1.13.0 → 1.15.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/CHANGELOG.md +122 -0
- package/README.md +3 -3
- package/bridge.cjs +8388 -515
- package/bridge.d.cts +640 -61
- package/bridge.d.mts +640 -61
- package/bridge.d.ts +640 -61
- package/bridge.mjs +8389 -516
- package/chains.cjs +275 -15
- package/chains.d.cts +117 -2
- package/chains.d.mts +117 -2
- package/chains.d.ts +117 -2
- package/chains.mjs +275 -16
- package/context.d.cts +577 -57
- package/context.d.mts +577 -57
- package/context.d.ts +577 -57
- package/earn.cjs +973 -271
- package/earn.d.cts +577 -57
- package/earn.d.mts +577 -57
- package/earn.d.ts +577 -57
- package/earn.mjs +919 -221
- package/estimateBridge.cjs +8388 -518
- package/estimateBridge.d.cts +704 -82
- package/estimateBridge.d.mts +704 -82
- package/estimateBridge.d.ts +704 -82
- package/estimateBridge.mjs +8390 -520
- package/estimateSwap.cjs +982 -237
- package/estimateSwap.d.cts +577 -57
- package/estimateSwap.d.mts +577 -57
- package/estimateSwap.d.ts +577 -57
- package/estimateSwap.mjs +981 -237
- package/index.cjs +21401 -8522
- package/index.d.cts +6045 -2149
- package/index.d.mts +6045 -2149
- package/index.d.ts +6045 -2149
- package/index.mjs +21401 -8524
- 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 +982 -237
- package/swap.d.cts +577 -57
- package/swap.d.mts +577 -57
- package/swap.d.ts +577 -57
- package/swap.mjs +981 -237
- package/unifiedBalance.cjs +20510 -7599
- package/unifiedBalance.d.cts +807 -201
- package/unifiedBalance.d.mts +807 -201
- package/unifiedBalance.d.ts +807 -201
- package/unifiedBalance.mjs +20513 -7603
package/chains.d.ts
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";
|
|
@@ -156,6 +226,7 @@ declare const ArcTestnet: {
|
|
|
156
226
|
readonly wallet: "0x0077777d7EBA4688BDeF3E311b846F25870A19B9";
|
|
157
227
|
readonly minter: "0x0022222ABE238Cc2C7Bb1f21003F0a260052475B";
|
|
158
228
|
readonly depositForHandler: "0xD05E7D2E7d30b92c5F17d7d0fC575fce231F1A48";
|
|
229
|
+
readonly genericExecutor: "0xEdC81040756AcCfF070c21D37b265b9D0b5Ba45e";
|
|
159
230
|
};
|
|
160
231
|
};
|
|
161
232
|
readonly forwarderSupported: {
|
|
@@ -210,6 +281,9 @@ declare const Arbitrum: {
|
|
|
210
281
|
readonly destination: true;
|
|
211
282
|
};
|
|
212
283
|
};
|
|
284
|
+
readonly cctpx: {
|
|
285
|
+
readonly serviceAddress: "0x431871229103b780868f8C6BB820cd16ECf942BC";
|
|
286
|
+
};
|
|
213
287
|
readonly kitContracts: {
|
|
214
288
|
readonly bridge: "0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0";
|
|
215
289
|
readonly adapter: "0x7FB8c7260b63934d8da38aF902f87ae6e284a845";
|
|
@@ -274,6 +348,9 @@ declare const ArbitrumSepolia: {
|
|
|
274
348
|
readonly destination: true;
|
|
275
349
|
};
|
|
276
350
|
};
|
|
351
|
+
readonly cctpx: {
|
|
352
|
+
readonly serviceAddress: "0x63753E722bd2C2A5DF6EE19C5106662208B81077";
|
|
353
|
+
};
|
|
277
354
|
readonly kitContracts: {
|
|
278
355
|
readonly bridge: "0xC5567a5E3370d4DBfB0540025078e283e36A363d";
|
|
279
356
|
readonly adapter: "0xBBD70b01a1CAbc96d5b7b129Ae1AAabdf50dd40b";
|
|
@@ -338,6 +415,9 @@ declare const Avalanche: {
|
|
|
338
415
|
readonly destination: true;
|
|
339
416
|
};
|
|
340
417
|
};
|
|
418
|
+
readonly cctpx: {
|
|
419
|
+
readonly serviceAddress: "0x431871229103b780868f8C6BB820cd16ECf942BC";
|
|
420
|
+
};
|
|
341
421
|
readonly kitContracts: {
|
|
342
422
|
readonly bridge: "0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0";
|
|
343
423
|
readonly adapter: "0x7FB8c7260b63934d8da38aF902f87ae6e284a845";
|
|
@@ -348,6 +428,8 @@ declare const Avalanche: {
|
|
|
348
428
|
readonly v1: {
|
|
349
429
|
readonly wallet: "0x77777777Dcc4d5A8B6E418Fd04D8997ef11000eE";
|
|
350
430
|
readonly minter: "0x2222222d7164433c4C09B0b0D809a9b52C04C205";
|
|
431
|
+
readonly depositForHandler: "0x16529813203f77E036576666336554a1210dce4D";
|
|
432
|
+
readonly genericExecutor: "0xFa7be2f04F3Ad4ca969260729c6d45B5625984A7";
|
|
351
433
|
};
|
|
352
434
|
};
|
|
353
435
|
readonly forwarderSupported: {
|
|
@@ -402,6 +484,9 @@ declare const AvalancheFuji: {
|
|
|
402
484
|
};
|
|
403
485
|
};
|
|
404
486
|
readonly rpcEndpoints: readonly ["https://api.avax-test.network/ext/bc/C/rpc"];
|
|
487
|
+
readonly cctpx: {
|
|
488
|
+
readonly serviceAddress: "0x63753E722bd2C2A5DF6EE19C5106662208B81077";
|
|
489
|
+
};
|
|
405
490
|
readonly kitContracts: {
|
|
406
491
|
readonly bridge: "0xC5567a5E3370d4DBfB0540025078e283e36A363d";
|
|
407
492
|
};
|
|
@@ -411,6 +496,8 @@ declare const AvalancheFuji: {
|
|
|
411
496
|
readonly v1: {
|
|
412
497
|
readonly wallet: "0x0077777d7EBA4688BDeF3E311b846F25870A19B9";
|
|
413
498
|
readonly minter: "0x0022222ABE238Cc2C7Bb1f21003F0a260052475B";
|
|
499
|
+
readonly depositForHandler: "0xD05E7D2E7d30b92c5F17d7d0fC575fce231F1A48";
|
|
500
|
+
readonly genericExecutor: "0xEdC81040756AcCfF070c21D37b265b9D0b5Ba45e";
|
|
414
501
|
};
|
|
415
502
|
};
|
|
416
503
|
readonly forwarderSupported: {
|
|
@@ -465,6 +552,9 @@ declare const Base: {
|
|
|
465
552
|
readonly destination: true;
|
|
466
553
|
};
|
|
467
554
|
};
|
|
555
|
+
readonly cctpx: {
|
|
556
|
+
readonly serviceAddress: "0x431871229103b780868f8C6BB820cd16ECf942BC";
|
|
557
|
+
};
|
|
468
558
|
readonly kitContracts: {
|
|
469
559
|
readonly bridge: "0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0";
|
|
470
560
|
readonly adapter: "0x7FB8c7260b63934d8da38aF902f87ae6e284a845";
|
|
@@ -529,6 +619,9 @@ declare const BaseSepolia: {
|
|
|
529
619
|
readonly destination: true;
|
|
530
620
|
};
|
|
531
621
|
};
|
|
622
|
+
readonly cctpx: {
|
|
623
|
+
readonly serviceAddress: "0x63753E722bd2C2A5DF6EE19C5106662208B81077";
|
|
624
|
+
};
|
|
532
625
|
readonly kitContracts: {
|
|
533
626
|
readonly bridge: "0xC5567a5E3370d4DBfB0540025078e283e36A363d";
|
|
534
627
|
readonly adapter: "0xBBD70b01a1CAbc96d5b7b129Ae1AAabdf50dd40b";
|
|
@@ -681,6 +774,9 @@ declare const Ethereum: {
|
|
|
681
774
|
readonly destination: true;
|
|
682
775
|
};
|
|
683
776
|
};
|
|
777
|
+
readonly cctpx: {
|
|
778
|
+
readonly serviceAddress: "0x431871229103b780868f8C6BB820cd16ECf942BC";
|
|
779
|
+
};
|
|
684
780
|
readonly kitContracts: {
|
|
685
781
|
readonly bridge: "0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0";
|
|
686
782
|
readonly adapter: "0x7FB8c7260b63934d8da38aF902f87ae6e284a845";
|
|
@@ -745,6 +841,9 @@ declare const EthereumSepolia: {
|
|
|
745
841
|
readonly destination: true;
|
|
746
842
|
};
|
|
747
843
|
};
|
|
844
|
+
readonly cctpx: {
|
|
845
|
+
readonly serviceAddress: "0x63753E722bd2C2A5DF6EE19C5106662208B81077";
|
|
846
|
+
};
|
|
748
847
|
readonly kitContracts: {
|
|
749
848
|
readonly bridge: "0xC5567a5E3370d4DBfB0540025078e283e36A363d";
|
|
750
849
|
readonly adapter: "0xBBD70b01a1CAbc96d5b7b129Ae1AAabdf50dd40b";
|
|
@@ -1108,6 +1207,9 @@ declare const Optimism: {
|
|
|
1108
1207
|
readonly destination: true;
|
|
1109
1208
|
};
|
|
1110
1209
|
};
|
|
1210
|
+
readonly cctpx: {
|
|
1211
|
+
readonly serviceAddress: "0x431871229103b780868f8C6BB820cd16ECf942BC";
|
|
1212
|
+
};
|
|
1111
1213
|
readonly kitContracts: {
|
|
1112
1214
|
readonly bridge: "0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0";
|
|
1113
1215
|
readonly adapter: "0x7FB8c7260b63934d8da38aF902f87ae6e284a845";
|
|
@@ -1172,6 +1274,9 @@ declare const OptimismSepolia: {
|
|
|
1172
1274
|
readonly destination: true;
|
|
1173
1275
|
};
|
|
1174
1276
|
};
|
|
1277
|
+
readonly cctpx: {
|
|
1278
|
+
readonly serviceAddress: "0x63753E722bd2C2A5DF6EE19C5106662208B81077";
|
|
1279
|
+
};
|
|
1175
1280
|
readonly kitContracts: {
|
|
1176
1281
|
readonly bridge: "0xC5567a5E3370d4DBfB0540025078e283e36A363d";
|
|
1177
1282
|
};
|
|
@@ -1417,6 +1522,9 @@ declare const Polygon: {
|
|
|
1417
1522
|
readonly destination: true;
|
|
1418
1523
|
};
|
|
1419
1524
|
};
|
|
1525
|
+
readonly cctpx: {
|
|
1526
|
+
readonly serviceAddress: "0x431871229103b780868f8C6BB820cd16ECf942BC";
|
|
1527
|
+
};
|
|
1420
1528
|
readonly kitContracts: {
|
|
1421
1529
|
readonly bridge: "0xB3FA262d0fB521cc93bE83d87b322b8A23DAf3F0";
|
|
1422
1530
|
readonly adapter: "0x7FB8c7260b63934d8da38aF902f87ae6e284a845";
|
|
@@ -1427,6 +1535,8 @@ declare const Polygon: {
|
|
|
1427
1535
|
readonly v1: {
|
|
1428
1536
|
readonly wallet: "0x77777777Dcc4d5A8B6E418Fd04D8997ef11000eE";
|
|
1429
1537
|
readonly minter: "0x2222222d7164433c4C09B0b0D809a9b52C04C205";
|
|
1538
|
+
readonly depositForHandler: "0x16529813203f77E036576666336554a1210dce4D";
|
|
1539
|
+
readonly genericExecutor: "0xFa7be2f04F3Ad4ca969260729c6d45B5625984A7";
|
|
1430
1540
|
};
|
|
1431
1541
|
};
|
|
1432
1542
|
readonly forwarderSupported: {
|
|
@@ -1481,6 +1591,9 @@ declare const PolygonAmoy: {
|
|
|
1481
1591
|
readonly destination: true;
|
|
1482
1592
|
};
|
|
1483
1593
|
};
|
|
1594
|
+
readonly cctpx: {
|
|
1595
|
+
readonly serviceAddress: "0x63753E722bd2C2A5DF6EE19C5106662208B81077";
|
|
1596
|
+
};
|
|
1484
1597
|
readonly kitContracts: {
|
|
1485
1598
|
readonly bridge: "0xC5567a5E3370d4DBfB0540025078e283e36A363d";
|
|
1486
1599
|
};
|
|
@@ -1490,6 +1603,8 @@ declare const PolygonAmoy: {
|
|
|
1490
1603
|
readonly v1: {
|
|
1491
1604
|
readonly wallet: "0x0077777d7EBA4688BDeF3E311b846F25870A19B9";
|
|
1492
1605
|
readonly minter: "0x0022222ABE238Cc2C7Bb1f21003F0a260052475B";
|
|
1606
|
+
readonly depositForHandler: "0xD05E7D2E7d30b92c5F17d7d0fC575fce231F1A48";
|
|
1607
|
+
readonly genericExecutor: "0xEdC81040756AcCfF070c21D37b265b9D0b5Ba45e";
|
|
1493
1608
|
};
|
|
1494
1609
|
};
|
|
1495
1610
|
readonly forwarderSupported: {
|
|
@@ -2279,4 +2394,4 @@ declare const XLayerTestnet: {
|
|
|
2279
2394
|
};
|
|
2280
2395
|
};
|
|
2281
2396
|
|
|
2282
|
-
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 };
|