@circle-fin/app-kit 1.8.1 → 1.9.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 +45 -0
- package/README.md +3 -3
- package/bridge.cjs +425 -179
- package/bridge.d.cts +14 -0
- package/bridge.d.mts +14 -0
- package/bridge.d.ts +14 -0
- package/bridge.mjs +425 -179
- package/chains.cjs +94 -0
- package/chains.d.cts +2 -0
- package/chains.d.mts +2 -0
- package/chains.d.ts +2 -0
- package/chains.mjs +94 -0
- package/context.d.cts +14 -0
- package/context.d.mts +14 -0
- package/context.d.ts +14 -0
- package/earn.cjs +211 -30
- package/earn.d.cts +25 -5
- package/earn.d.mts +25 -5
- package/earn.d.ts +25 -5
- package/earn.mjs +211 -30
- package/estimateBridge.cjs +425 -179
- package/estimateBridge.d.cts +14 -0
- package/estimateBridge.d.mts +14 -0
- package/estimateBridge.d.ts +14 -0
- package/estimateBridge.mjs +425 -179
- package/estimateSwap.cjs +108 -7
- package/estimateSwap.d.cts +14 -0
- package/estimateSwap.d.mts +14 -0
- package/estimateSwap.d.ts +14 -0
- package/estimateSwap.mjs +108 -7
- package/index.cjs +586 -224
- package/index.d.cts +274 -17
- package/index.d.mts +274 -17
- package/index.d.ts +274 -17
- package/index.mjs +586 -224
- package/package.json +12 -6
- package/swap.cjs +108 -7
- package/swap.d.cts +14 -0
- package/swap.d.mts +14 -0
- package/swap.d.ts +14 -0
- package/swap.mjs +108 -7
- package/unifiedBalance.cjs +101 -1
- package/unifiedBalance.d.cts +2 -0
- package/unifiedBalance.d.mts +2 -0
- package/unifiedBalance.d.ts +2 -0
- package/unifiedBalance.mjs +101 -1
package/estimateSwap.cjs
CHANGED
|
@@ -2901,6 +2901,8 @@ class KitError extends Error {
|
|
|
2901
2901
|
Blockchain["Celo_Alfajores_Testnet"] = "Celo_Alfajores_Testnet";
|
|
2902
2902
|
Blockchain["Codex"] = "Codex";
|
|
2903
2903
|
Blockchain["Codex_Testnet"] = "Codex_Testnet";
|
|
2904
|
+
Blockchain["Cronos"] = "Cronos";
|
|
2905
|
+
Blockchain["Cronos_Testnet"] = "Cronos_Testnet";
|
|
2904
2906
|
Blockchain["Edge"] = "Edge";
|
|
2905
2907
|
Blockchain["Edge_Testnet"] = "Edge_Testnet";
|
|
2906
2908
|
Blockchain["Ethereum"] = "Ethereum";
|
|
@@ -2983,6 +2985,7 @@ var BridgeChain;
|
|
|
2983
2985
|
BridgeChain["Avalanche"] = "Avalanche";
|
|
2984
2986
|
BridgeChain["Base"] = "Base";
|
|
2985
2987
|
BridgeChain["Codex"] = "Codex";
|
|
2988
|
+
BridgeChain["Cronos"] = "Cronos";
|
|
2986
2989
|
BridgeChain["Edge"] = "Edge";
|
|
2987
2990
|
BridgeChain["Ethereum"] = "Ethereum";
|
|
2988
2991
|
BridgeChain["HyperEVM"] = "HyperEVM";
|
|
@@ -3007,6 +3010,7 @@ var BridgeChain;
|
|
|
3007
3010
|
BridgeChain["Avalanche_Fuji"] = "Avalanche_Fuji";
|
|
3008
3011
|
BridgeChain["Base_Sepolia"] = "Base_Sepolia";
|
|
3009
3012
|
BridgeChain["Codex_Testnet"] = "Codex_Testnet";
|
|
3013
|
+
BridgeChain["Cronos_Testnet"] = "Cronos_Testnet";
|
|
3010
3014
|
BridgeChain["Edge_Testnet"] = "Edge_Testnet";
|
|
3011
3015
|
BridgeChain["Ethereum_Sepolia"] = "Ethereum_Sepolia";
|
|
3012
3016
|
BridgeChain["HyperEVM_Testnet"] = "HyperEVM_Testnet";
|
|
@@ -4063,6 +4067,96 @@ var EarnChain;
|
|
|
4063
4067
|
}
|
|
4064
4068
|
});
|
|
4065
4069
|
|
|
4070
|
+
/**
|
|
4071
|
+
* Cronos Mainnet chain definition
|
|
4072
|
+
* @remarks
|
|
4073
|
+
* This represents the official production network for the Cronos blockchain.
|
|
4074
|
+
* Cronos is an EVM-compatible blockchain.
|
|
4075
|
+
*/ const Cronos = defineChain({
|
|
4076
|
+
type: 'evm',
|
|
4077
|
+
chain: Blockchain.Cronos,
|
|
4078
|
+
name: 'Cronos',
|
|
4079
|
+
title: 'Cronos Mainnet',
|
|
4080
|
+
nativeCurrency: {
|
|
4081
|
+
name: 'Cronos',
|
|
4082
|
+
symbol: 'CRO',
|
|
4083
|
+
decimals: 18
|
|
4084
|
+
},
|
|
4085
|
+
chainId: 25,
|
|
4086
|
+
isTestnet: false,
|
|
4087
|
+
explorerUrl: 'https://cronoscan.com/tx/{hash}',
|
|
4088
|
+
rpcEndpoints: [
|
|
4089
|
+
'https://evm.cronos.org'
|
|
4090
|
+
],
|
|
4091
|
+
eurcAddress: '0xA6dE01a2d62C6B5f3525d768f34d276652C554c8',
|
|
4092
|
+
usdcAddress: '0x3D7F2C478aAfdB65542BCB44bCeeC05849999d2D',
|
|
4093
|
+
usdtAddress: null,
|
|
4094
|
+
cctp: {
|
|
4095
|
+
domain: 32,
|
|
4096
|
+
contracts: {
|
|
4097
|
+
v2: {
|
|
4098
|
+
type: 'split',
|
|
4099
|
+
tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
|
|
4100
|
+
messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
|
|
4101
|
+
confirmations: 1,
|
|
4102
|
+
fastConfirmations: 1
|
|
4103
|
+
}
|
|
4104
|
+
},
|
|
4105
|
+
forwarderSupported: {
|
|
4106
|
+
source: false,
|
|
4107
|
+
destination: false
|
|
4108
|
+
}
|
|
4109
|
+
},
|
|
4110
|
+
kitContracts: {
|
|
4111
|
+
bridge: BRIDGE_CONTRACT_EVM_MAINNET
|
|
4112
|
+
}
|
|
4113
|
+
});
|
|
4114
|
+
|
|
4115
|
+
/**
|
|
4116
|
+
* Cronos Testnet chain definition
|
|
4117
|
+
* @remarks
|
|
4118
|
+
* This represents the official test network for the Cronos blockchain.
|
|
4119
|
+
* Cronos is an EVM-compatible blockchain.
|
|
4120
|
+
*/ const CronosTestnet = defineChain({
|
|
4121
|
+
type: 'evm',
|
|
4122
|
+
chain: Blockchain.Cronos_Testnet,
|
|
4123
|
+
name: 'Cronos Testnet',
|
|
4124
|
+
title: 'Cronos Testnet',
|
|
4125
|
+
nativeCurrency: {
|
|
4126
|
+
name: 'CRO',
|
|
4127
|
+
symbol: 'tCRO',
|
|
4128
|
+
decimals: 18
|
|
4129
|
+
},
|
|
4130
|
+
chainId: 338,
|
|
4131
|
+
isTestnet: true,
|
|
4132
|
+
explorerUrl: 'https://explorer.cronos.org/testnet/tx/{hash}',
|
|
4133
|
+
rpcEndpoints: [
|
|
4134
|
+
'https://evm-t3.cronos.org'
|
|
4135
|
+
],
|
|
4136
|
+
eurcAddress: '0x31f7538adb53cF16350e6B0c89d03D91b7D12c46',
|
|
4137
|
+
usdcAddress: '0xEb33dc5fac03833e132593659e1dE7256aB59794',
|
|
4138
|
+
usdtAddress: null,
|
|
4139
|
+
cctp: {
|
|
4140
|
+
domain: 32,
|
|
4141
|
+
contracts: {
|
|
4142
|
+
v2: {
|
|
4143
|
+
type: 'split',
|
|
4144
|
+
tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
|
|
4145
|
+
messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
|
|
4146
|
+
confirmations: 1,
|
|
4147
|
+
fastConfirmations: 1
|
|
4148
|
+
}
|
|
4149
|
+
},
|
|
4150
|
+
forwarderSupported: {
|
|
4151
|
+
source: false,
|
|
4152
|
+
destination: false
|
|
4153
|
+
}
|
|
4154
|
+
},
|
|
4155
|
+
kitContracts: {
|
|
4156
|
+
bridge: BRIDGE_CONTRACT_EVM_TESTNET
|
|
4157
|
+
}
|
|
4158
|
+
});
|
|
4159
|
+
|
|
4066
4160
|
/**
|
|
4067
4161
|
* Edge Mainnet chain definition
|
|
4068
4162
|
* @remarks
|
|
@@ -6414,6 +6508,8 @@ var Chains = {
|
|
|
6414
6508
|
CeloAlfajoresTestnet: CeloAlfajoresTestnet,
|
|
6415
6509
|
Codex: Codex,
|
|
6416
6510
|
CodexTestnet: CodexTestnet,
|
|
6511
|
+
Cronos: Cronos,
|
|
6512
|
+
CronosTestnet: CronosTestnet,
|
|
6417
6513
|
Edge: Edge,
|
|
6418
6514
|
EdgeTestnet: EdgeTestnet,
|
|
6419
6515
|
Ethereum: Ethereum,
|
|
@@ -8463,6 +8559,7 @@ const swapTokenEnumSchema = zod.z.enum([
|
|
|
8463
8559
|
[Blockchain.Base]: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
|
|
8464
8560
|
[Blockchain.Celo]: '0xcebA9300f2b948710d2653dD7B07f33A8B32118C',
|
|
8465
8561
|
[Blockchain.Codex]: '0xd996633a415985DBd7D6D12f4A4343E31f5037cf',
|
|
8562
|
+
[Blockchain.Cronos]: '0x3D7F2C478aAfdB65542BCB44bCeeC05849999d2D',
|
|
8466
8563
|
[Blockchain.Edge]: '0x98d2919b9A214E6Fa5384AC81E6864bA686Ad74c',
|
|
8467
8564
|
[Blockchain.Ethereum]: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
|
|
8468
8565
|
[Blockchain.Hedera]: '0.0.456858',
|
|
@@ -8496,6 +8593,7 @@ const swapTokenEnumSchema = zod.z.enum([
|
|
|
8496
8593
|
[Blockchain.Avalanche_Fuji]: '0x5425890298aed601595a70AB815c96711a31Bc65',
|
|
8497
8594
|
[Blockchain.Base_Sepolia]: '0x036CbD53842c5426634e7929541eC2318f3dCF7e',
|
|
8498
8595
|
[Blockchain.Codex_Testnet]: '0x6d7f141b6819C2c9CC2f818e6ad549E7Ca090F8f',
|
|
8596
|
+
[Blockchain.Cronos_Testnet]: '0xEb33dc5fac03833e132593659e1dE7256aB59794',
|
|
8499
8597
|
[Blockchain.Edge_Testnet]: '0x2d9F7CAD728051AA35Ecdc472a14cf8cDF5CFD6B',
|
|
8500
8598
|
[Blockchain.Ethereum_Sepolia]: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238',
|
|
8501
8599
|
[Blockchain.Hedera_Testnet]: '0.0.429274',
|
|
@@ -8568,6 +8666,7 @@ const swapTokenEnumSchema = zod.z.enum([
|
|
|
8568
8666
|
// =========================================================================
|
|
8569
8667
|
[Blockchain.Avalanche]: '0xc891EB4cbdEFf6e073e859e987815Ed1505c2ACD',
|
|
8570
8668
|
[Blockchain.Base]: '0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42',
|
|
8669
|
+
[Blockchain.Cronos]: '0xA6dE01a2d62C6B5f3525d768f34d276652C554c8',
|
|
8571
8670
|
[Blockchain.Ethereum]: '0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c',
|
|
8572
8671
|
[Blockchain.Solana]: 'HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr',
|
|
8573
8672
|
[Blockchain.World_Chain]: '0x1C60ba0A0eD1019e8Eb035E6daF4155A5cE2380B',
|
|
@@ -8576,6 +8675,7 @@ const swapTokenEnumSchema = zod.z.enum([
|
|
|
8576
8675
|
// =========================================================================
|
|
8577
8676
|
[Blockchain.Arc_Testnet]: '0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a',
|
|
8578
8677
|
[Blockchain.Base_Sepolia]: '0x808456652fdb597867f38412077A9182bf77359F',
|
|
8678
|
+
[Blockchain.Cronos_Testnet]: '0x31f7538adb53cF16350e6B0c89d03D91b7D12c46',
|
|
8579
8679
|
[Blockchain.Ethereum_Sepolia]: '0x08210F9170F89Ab7658F0B5E3fF39b0E03C594D4'
|
|
8580
8680
|
}
|
|
8581
8681
|
};
|
|
@@ -9762,7 +9862,7 @@ const swapTokenEnumSchema = zod.z.enum([
|
|
|
9762
9862
|
}
|
|
9763
9863
|
|
|
9764
9864
|
var name$2 = "@circle-fin/bridge-kit";
|
|
9765
|
-
var version$2 = "1.
|
|
9865
|
+
var version$2 = "1.12.0";
|
|
9766
9866
|
var pkg$2 = {
|
|
9767
9867
|
name: name$2,
|
|
9768
9868
|
version: version$2};
|
|
@@ -10652,7 +10752,7 @@ var TransferSpeed;
|
|
|
10652
10752
|
registerKit(`${pkg$2.name}/${pkg$2.version}`);
|
|
10653
10753
|
|
|
10654
10754
|
var name$1 = "@circle-fin/swap-kit";
|
|
10655
|
-
var version$1 = "1.3.
|
|
10755
|
+
var version$1 = "1.3.2";
|
|
10656
10756
|
var pkg$1 = {
|
|
10657
10757
|
name: name$1,
|
|
10658
10758
|
version: version$1};
|
|
@@ -20316,7 +20416,7 @@ registerKit(`${pkg$1.name}/${pkg$1.version}`);
|
|
|
20316
20416
|
};
|
|
20317
20417
|
|
|
20318
20418
|
var name = "@circle-fin/earn-kit";
|
|
20319
|
-
var version = "1.2.
|
|
20419
|
+
var version = "1.2.2";
|
|
20320
20420
|
var pkg = {
|
|
20321
20421
|
name: name,
|
|
20322
20422
|
version: version};
|
|
@@ -20841,10 +20941,11 @@ const bridgeDepositPrepareReviewSchema = zod.z.object({
|
|
|
20841
20941
|
* Zod schema for a fee entry in an EarnKit API response.
|
|
20842
20942
|
*
|
|
20843
20943
|
* Shared across deposit and withdrawal responses (and reusable for real
|
|
20844
|
-
* charged fees, not just quote estimates). `type` identifies the fee category
|
|
20845
|
-
*
|
|
20846
|
-
* (e.g. `'FORWARD'`, `'PRE_FINALITY'`).
|
|
20847
|
-
* `'
|
|
20944
|
+
* charged fees, not just quote estimates). `type` identifies the fee category.
|
|
20945
|
+
* For cross-chain deposit quotes this is the kits-proxy fee-quote item type
|
|
20946
|
+
* (e.g. `'FORWARD'`, `'PRE_FINALITY'`). For withdrawal quotes, Circle fees use
|
|
20947
|
+
* `type: 'circle'`. `status` qualifies the fee (e.g. `'estimated'` for a
|
|
20948
|
+
* pre-sign cross-chain fee). Both are omitted on plain fees.
|
|
20848
20949
|
*
|
|
20849
20950
|
* @internal
|
|
20850
20951
|
*/ const feeSchema = zod.z.object({
|
package/estimateSwap.d.cts
CHANGED
|
@@ -659,6 +659,8 @@ declare enum Blockchain {
|
|
|
659
659
|
Celo_Alfajores_Testnet = "Celo_Alfajores_Testnet",
|
|
660
660
|
Codex = "Codex",
|
|
661
661
|
Codex_Testnet = "Codex_Testnet",
|
|
662
|
+
Cronos = "Cronos",
|
|
663
|
+
Cronos_Testnet = "Cronos_Testnet",
|
|
662
664
|
Edge = "Edge",
|
|
663
665
|
Edge_Testnet = "Edge_Testnet",
|
|
664
666
|
Ethereum = "Ethereum",
|
|
@@ -900,6 +902,7 @@ declare enum BridgeChain {
|
|
|
900
902
|
Avalanche = "Avalanche",
|
|
901
903
|
Base = "Base",
|
|
902
904
|
Codex = "Codex",
|
|
905
|
+
Cronos = "Cronos",
|
|
903
906
|
Edge = "Edge",
|
|
904
907
|
Ethereum = "Ethereum",
|
|
905
908
|
HyperEVM = "HyperEVM",
|
|
@@ -923,6 +926,7 @@ declare enum BridgeChain {
|
|
|
923
926
|
Avalanche_Fuji = "Avalanche_Fuji",
|
|
924
927
|
Base_Sepolia = "Base_Sepolia",
|
|
925
928
|
Codex_Testnet = "Codex_Testnet",
|
|
929
|
+
Cronos_Testnet = "Cronos_Testnet",
|
|
926
930
|
Edge_Testnet = "Edge_Testnet",
|
|
927
931
|
Ethereum_Sepolia = "Ethereum_Sepolia",
|
|
928
932
|
HyperEVM_Testnet = "HyperEVM_Testnet",
|
|
@@ -6581,6 +6585,16 @@ interface AppKitContext {
|
|
|
6581
6585
|
* @defaultValue false
|
|
6582
6586
|
*/
|
|
6583
6587
|
disableErrorReporting?: boolean;
|
|
6588
|
+
/**
|
|
6589
|
+
* Custom HTTP headers forwarded with the underlying CCTP provider's
|
|
6590
|
+
* attestation (Iris) API requests made by bridge operations.
|
|
6591
|
+
*
|
|
6592
|
+
* @remarks
|
|
6593
|
+
* Headers are merged on top of the SDK defaults (such as `Content-Type`)
|
|
6594
|
+
* rather than replacing them. The header is forwarded as-is to Circle's API;
|
|
6595
|
+
* the SDK does not interpret it.
|
|
6596
|
+
*/
|
|
6597
|
+
headers?: Record<string, string>;
|
|
6584
6598
|
}
|
|
6585
6599
|
|
|
6586
6600
|
/**
|
package/estimateSwap.d.mts
CHANGED
|
@@ -659,6 +659,8 @@ declare enum Blockchain {
|
|
|
659
659
|
Celo_Alfajores_Testnet = "Celo_Alfajores_Testnet",
|
|
660
660
|
Codex = "Codex",
|
|
661
661
|
Codex_Testnet = "Codex_Testnet",
|
|
662
|
+
Cronos = "Cronos",
|
|
663
|
+
Cronos_Testnet = "Cronos_Testnet",
|
|
662
664
|
Edge = "Edge",
|
|
663
665
|
Edge_Testnet = "Edge_Testnet",
|
|
664
666
|
Ethereum = "Ethereum",
|
|
@@ -900,6 +902,7 @@ declare enum BridgeChain {
|
|
|
900
902
|
Avalanche = "Avalanche",
|
|
901
903
|
Base = "Base",
|
|
902
904
|
Codex = "Codex",
|
|
905
|
+
Cronos = "Cronos",
|
|
903
906
|
Edge = "Edge",
|
|
904
907
|
Ethereum = "Ethereum",
|
|
905
908
|
HyperEVM = "HyperEVM",
|
|
@@ -923,6 +926,7 @@ declare enum BridgeChain {
|
|
|
923
926
|
Avalanche_Fuji = "Avalanche_Fuji",
|
|
924
927
|
Base_Sepolia = "Base_Sepolia",
|
|
925
928
|
Codex_Testnet = "Codex_Testnet",
|
|
929
|
+
Cronos_Testnet = "Cronos_Testnet",
|
|
926
930
|
Edge_Testnet = "Edge_Testnet",
|
|
927
931
|
Ethereum_Sepolia = "Ethereum_Sepolia",
|
|
928
932
|
HyperEVM_Testnet = "HyperEVM_Testnet",
|
|
@@ -6581,6 +6585,16 @@ interface AppKitContext {
|
|
|
6581
6585
|
* @defaultValue false
|
|
6582
6586
|
*/
|
|
6583
6587
|
disableErrorReporting?: boolean;
|
|
6588
|
+
/**
|
|
6589
|
+
* Custom HTTP headers forwarded with the underlying CCTP provider's
|
|
6590
|
+
* attestation (Iris) API requests made by bridge operations.
|
|
6591
|
+
*
|
|
6592
|
+
* @remarks
|
|
6593
|
+
* Headers are merged on top of the SDK defaults (such as `Content-Type`)
|
|
6594
|
+
* rather than replacing them. The header is forwarded as-is to Circle's API;
|
|
6595
|
+
* the SDK does not interpret it.
|
|
6596
|
+
*/
|
|
6597
|
+
headers?: Record<string, string>;
|
|
6584
6598
|
}
|
|
6585
6599
|
|
|
6586
6600
|
/**
|
package/estimateSwap.d.ts
CHANGED
|
@@ -659,6 +659,8 @@ declare enum Blockchain {
|
|
|
659
659
|
Celo_Alfajores_Testnet = "Celo_Alfajores_Testnet",
|
|
660
660
|
Codex = "Codex",
|
|
661
661
|
Codex_Testnet = "Codex_Testnet",
|
|
662
|
+
Cronos = "Cronos",
|
|
663
|
+
Cronos_Testnet = "Cronos_Testnet",
|
|
662
664
|
Edge = "Edge",
|
|
663
665
|
Edge_Testnet = "Edge_Testnet",
|
|
664
666
|
Ethereum = "Ethereum",
|
|
@@ -900,6 +902,7 @@ declare enum BridgeChain {
|
|
|
900
902
|
Avalanche = "Avalanche",
|
|
901
903
|
Base = "Base",
|
|
902
904
|
Codex = "Codex",
|
|
905
|
+
Cronos = "Cronos",
|
|
903
906
|
Edge = "Edge",
|
|
904
907
|
Ethereum = "Ethereum",
|
|
905
908
|
HyperEVM = "HyperEVM",
|
|
@@ -923,6 +926,7 @@ declare enum BridgeChain {
|
|
|
923
926
|
Avalanche_Fuji = "Avalanche_Fuji",
|
|
924
927
|
Base_Sepolia = "Base_Sepolia",
|
|
925
928
|
Codex_Testnet = "Codex_Testnet",
|
|
929
|
+
Cronos_Testnet = "Cronos_Testnet",
|
|
926
930
|
Edge_Testnet = "Edge_Testnet",
|
|
927
931
|
Ethereum_Sepolia = "Ethereum_Sepolia",
|
|
928
932
|
HyperEVM_Testnet = "HyperEVM_Testnet",
|
|
@@ -6581,6 +6585,16 @@ interface AppKitContext {
|
|
|
6581
6585
|
* @defaultValue false
|
|
6582
6586
|
*/
|
|
6583
6587
|
disableErrorReporting?: boolean;
|
|
6588
|
+
/**
|
|
6589
|
+
* Custom HTTP headers forwarded with the underlying CCTP provider's
|
|
6590
|
+
* attestation (Iris) API requests made by bridge operations.
|
|
6591
|
+
*
|
|
6592
|
+
* @remarks
|
|
6593
|
+
* Headers are merged on top of the SDK defaults (such as `Content-Type`)
|
|
6594
|
+
* rather than replacing them. The header is forwarded as-is to Circle's API;
|
|
6595
|
+
* the SDK does not interpret it.
|
|
6596
|
+
*/
|
|
6597
|
+
headers?: Record<string, string>;
|
|
6584
6598
|
}
|
|
6585
6599
|
|
|
6586
6600
|
/**
|
package/estimateSwap.mjs
CHANGED
|
@@ -2895,6 +2895,8 @@ class KitError extends Error {
|
|
|
2895
2895
|
Blockchain["Celo_Alfajores_Testnet"] = "Celo_Alfajores_Testnet";
|
|
2896
2896
|
Blockchain["Codex"] = "Codex";
|
|
2897
2897
|
Blockchain["Codex_Testnet"] = "Codex_Testnet";
|
|
2898
|
+
Blockchain["Cronos"] = "Cronos";
|
|
2899
|
+
Blockchain["Cronos_Testnet"] = "Cronos_Testnet";
|
|
2898
2900
|
Blockchain["Edge"] = "Edge";
|
|
2899
2901
|
Blockchain["Edge_Testnet"] = "Edge_Testnet";
|
|
2900
2902
|
Blockchain["Ethereum"] = "Ethereum";
|
|
@@ -2977,6 +2979,7 @@ var BridgeChain;
|
|
|
2977
2979
|
BridgeChain["Avalanche"] = "Avalanche";
|
|
2978
2980
|
BridgeChain["Base"] = "Base";
|
|
2979
2981
|
BridgeChain["Codex"] = "Codex";
|
|
2982
|
+
BridgeChain["Cronos"] = "Cronos";
|
|
2980
2983
|
BridgeChain["Edge"] = "Edge";
|
|
2981
2984
|
BridgeChain["Ethereum"] = "Ethereum";
|
|
2982
2985
|
BridgeChain["HyperEVM"] = "HyperEVM";
|
|
@@ -3001,6 +3004,7 @@ var BridgeChain;
|
|
|
3001
3004
|
BridgeChain["Avalanche_Fuji"] = "Avalanche_Fuji";
|
|
3002
3005
|
BridgeChain["Base_Sepolia"] = "Base_Sepolia";
|
|
3003
3006
|
BridgeChain["Codex_Testnet"] = "Codex_Testnet";
|
|
3007
|
+
BridgeChain["Cronos_Testnet"] = "Cronos_Testnet";
|
|
3004
3008
|
BridgeChain["Edge_Testnet"] = "Edge_Testnet";
|
|
3005
3009
|
BridgeChain["Ethereum_Sepolia"] = "Ethereum_Sepolia";
|
|
3006
3010
|
BridgeChain["HyperEVM_Testnet"] = "HyperEVM_Testnet";
|
|
@@ -4057,6 +4061,96 @@ var EarnChain;
|
|
|
4057
4061
|
}
|
|
4058
4062
|
});
|
|
4059
4063
|
|
|
4064
|
+
/**
|
|
4065
|
+
* Cronos Mainnet chain definition
|
|
4066
|
+
* @remarks
|
|
4067
|
+
* This represents the official production network for the Cronos blockchain.
|
|
4068
|
+
* Cronos is an EVM-compatible blockchain.
|
|
4069
|
+
*/ const Cronos = defineChain({
|
|
4070
|
+
type: 'evm',
|
|
4071
|
+
chain: Blockchain.Cronos,
|
|
4072
|
+
name: 'Cronos',
|
|
4073
|
+
title: 'Cronos Mainnet',
|
|
4074
|
+
nativeCurrency: {
|
|
4075
|
+
name: 'Cronos',
|
|
4076
|
+
symbol: 'CRO',
|
|
4077
|
+
decimals: 18
|
|
4078
|
+
},
|
|
4079
|
+
chainId: 25,
|
|
4080
|
+
isTestnet: false,
|
|
4081
|
+
explorerUrl: 'https://cronoscan.com/tx/{hash}',
|
|
4082
|
+
rpcEndpoints: [
|
|
4083
|
+
'https://evm.cronos.org'
|
|
4084
|
+
],
|
|
4085
|
+
eurcAddress: '0xA6dE01a2d62C6B5f3525d768f34d276652C554c8',
|
|
4086
|
+
usdcAddress: '0x3D7F2C478aAfdB65542BCB44bCeeC05849999d2D',
|
|
4087
|
+
usdtAddress: null,
|
|
4088
|
+
cctp: {
|
|
4089
|
+
domain: 32,
|
|
4090
|
+
contracts: {
|
|
4091
|
+
v2: {
|
|
4092
|
+
type: 'split',
|
|
4093
|
+
tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
|
|
4094
|
+
messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
|
|
4095
|
+
confirmations: 1,
|
|
4096
|
+
fastConfirmations: 1
|
|
4097
|
+
}
|
|
4098
|
+
},
|
|
4099
|
+
forwarderSupported: {
|
|
4100
|
+
source: false,
|
|
4101
|
+
destination: false
|
|
4102
|
+
}
|
|
4103
|
+
},
|
|
4104
|
+
kitContracts: {
|
|
4105
|
+
bridge: BRIDGE_CONTRACT_EVM_MAINNET
|
|
4106
|
+
}
|
|
4107
|
+
});
|
|
4108
|
+
|
|
4109
|
+
/**
|
|
4110
|
+
* Cronos Testnet chain definition
|
|
4111
|
+
* @remarks
|
|
4112
|
+
* This represents the official test network for the Cronos blockchain.
|
|
4113
|
+
* Cronos is an EVM-compatible blockchain.
|
|
4114
|
+
*/ const CronosTestnet = defineChain({
|
|
4115
|
+
type: 'evm',
|
|
4116
|
+
chain: Blockchain.Cronos_Testnet,
|
|
4117
|
+
name: 'Cronos Testnet',
|
|
4118
|
+
title: 'Cronos Testnet',
|
|
4119
|
+
nativeCurrency: {
|
|
4120
|
+
name: 'CRO',
|
|
4121
|
+
symbol: 'tCRO',
|
|
4122
|
+
decimals: 18
|
|
4123
|
+
},
|
|
4124
|
+
chainId: 338,
|
|
4125
|
+
isTestnet: true,
|
|
4126
|
+
explorerUrl: 'https://explorer.cronos.org/testnet/tx/{hash}',
|
|
4127
|
+
rpcEndpoints: [
|
|
4128
|
+
'https://evm-t3.cronos.org'
|
|
4129
|
+
],
|
|
4130
|
+
eurcAddress: '0x31f7538adb53cF16350e6B0c89d03D91b7D12c46',
|
|
4131
|
+
usdcAddress: '0xEb33dc5fac03833e132593659e1dE7256aB59794',
|
|
4132
|
+
usdtAddress: null,
|
|
4133
|
+
cctp: {
|
|
4134
|
+
domain: 32,
|
|
4135
|
+
contracts: {
|
|
4136
|
+
v2: {
|
|
4137
|
+
type: 'split',
|
|
4138
|
+
tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
|
|
4139
|
+
messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
|
|
4140
|
+
confirmations: 1,
|
|
4141
|
+
fastConfirmations: 1
|
|
4142
|
+
}
|
|
4143
|
+
},
|
|
4144
|
+
forwarderSupported: {
|
|
4145
|
+
source: false,
|
|
4146
|
+
destination: false
|
|
4147
|
+
}
|
|
4148
|
+
},
|
|
4149
|
+
kitContracts: {
|
|
4150
|
+
bridge: BRIDGE_CONTRACT_EVM_TESTNET
|
|
4151
|
+
}
|
|
4152
|
+
});
|
|
4153
|
+
|
|
4060
4154
|
/**
|
|
4061
4155
|
* Edge Mainnet chain definition
|
|
4062
4156
|
* @remarks
|
|
@@ -6408,6 +6502,8 @@ var Chains = /*#__PURE__*/Object.freeze({
|
|
|
6408
6502
|
CeloAlfajoresTestnet: CeloAlfajoresTestnet,
|
|
6409
6503
|
Codex: Codex,
|
|
6410
6504
|
CodexTestnet: CodexTestnet,
|
|
6505
|
+
Cronos: Cronos,
|
|
6506
|
+
CronosTestnet: CronosTestnet,
|
|
6411
6507
|
Edge: Edge,
|
|
6412
6508
|
EdgeTestnet: EdgeTestnet,
|
|
6413
6509
|
Ethereum: Ethereum,
|
|
@@ -8457,6 +8553,7 @@ const swapTokenEnumSchema = z.enum([
|
|
|
8457
8553
|
[Blockchain.Base]: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
|
|
8458
8554
|
[Blockchain.Celo]: '0xcebA9300f2b948710d2653dD7B07f33A8B32118C',
|
|
8459
8555
|
[Blockchain.Codex]: '0xd996633a415985DBd7D6D12f4A4343E31f5037cf',
|
|
8556
|
+
[Blockchain.Cronos]: '0x3D7F2C478aAfdB65542BCB44bCeeC05849999d2D',
|
|
8460
8557
|
[Blockchain.Edge]: '0x98d2919b9A214E6Fa5384AC81E6864bA686Ad74c',
|
|
8461
8558
|
[Blockchain.Ethereum]: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
|
|
8462
8559
|
[Blockchain.Hedera]: '0.0.456858',
|
|
@@ -8490,6 +8587,7 @@ const swapTokenEnumSchema = z.enum([
|
|
|
8490
8587
|
[Blockchain.Avalanche_Fuji]: '0x5425890298aed601595a70AB815c96711a31Bc65',
|
|
8491
8588
|
[Blockchain.Base_Sepolia]: '0x036CbD53842c5426634e7929541eC2318f3dCF7e',
|
|
8492
8589
|
[Blockchain.Codex_Testnet]: '0x6d7f141b6819C2c9CC2f818e6ad549E7Ca090F8f',
|
|
8590
|
+
[Blockchain.Cronos_Testnet]: '0xEb33dc5fac03833e132593659e1dE7256aB59794',
|
|
8493
8591
|
[Blockchain.Edge_Testnet]: '0x2d9F7CAD728051AA35Ecdc472a14cf8cDF5CFD6B',
|
|
8494
8592
|
[Blockchain.Ethereum_Sepolia]: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238',
|
|
8495
8593
|
[Blockchain.Hedera_Testnet]: '0.0.429274',
|
|
@@ -8562,6 +8660,7 @@ const swapTokenEnumSchema = z.enum([
|
|
|
8562
8660
|
// =========================================================================
|
|
8563
8661
|
[Blockchain.Avalanche]: '0xc891EB4cbdEFf6e073e859e987815Ed1505c2ACD',
|
|
8564
8662
|
[Blockchain.Base]: '0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42',
|
|
8663
|
+
[Blockchain.Cronos]: '0xA6dE01a2d62C6B5f3525d768f34d276652C554c8',
|
|
8565
8664
|
[Blockchain.Ethereum]: '0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c',
|
|
8566
8665
|
[Blockchain.Solana]: 'HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr',
|
|
8567
8666
|
[Blockchain.World_Chain]: '0x1C60ba0A0eD1019e8Eb035E6daF4155A5cE2380B',
|
|
@@ -8570,6 +8669,7 @@ const swapTokenEnumSchema = z.enum([
|
|
|
8570
8669
|
// =========================================================================
|
|
8571
8670
|
[Blockchain.Arc_Testnet]: '0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a',
|
|
8572
8671
|
[Blockchain.Base_Sepolia]: '0x808456652fdb597867f38412077A9182bf77359F',
|
|
8672
|
+
[Blockchain.Cronos_Testnet]: '0x31f7538adb53cF16350e6B0c89d03D91b7D12c46',
|
|
8573
8673
|
[Blockchain.Ethereum_Sepolia]: '0x08210F9170F89Ab7658F0B5E3fF39b0E03C594D4'
|
|
8574
8674
|
}
|
|
8575
8675
|
};
|
|
@@ -9756,7 +9856,7 @@ const swapTokenEnumSchema = z.enum([
|
|
|
9756
9856
|
}
|
|
9757
9857
|
|
|
9758
9858
|
var name$2 = "@circle-fin/bridge-kit";
|
|
9759
|
-
var version$2 = "1.
|
|
9859
|
+
var version$2 = "1.12.0";
|
|
9760
9860
|
var pkg$2 = {
|
|
9761
9861
|
name: name$2,
|
|
9762
9862
|
version: version$2};
|
|
@@ -10646,7 +10746,7 @@ var TransferSpeed;
|
|
|
10646
10746
|
registerKit(`${pkg$2.name}/${pkg$2.version}`);
|
|
10647
10747
|
|
|
10648
10748
|
var name$1 = "@circle-fin/swap-kit";
|
|
10649
|
-
var version$1 = "1.3.
|
|
10749
|
+
var version$1 = "1.3.2";
|
|
10650
10750
|
var pkg$1 = {
|
|
10651
10751
|
name: name$1,
|
|
10652
10752
|
version: version$1};
|
|
@@ -20310,7 +20410,7 @@ registerKit(`${pkg$1.name}/${pkg$1.version}`);
|
|
|
20310
20410
|
};
|
|
20311
20411
|
|
|
20312
20412
|
var name = "@circle-fin/earn-kit";
|
|
20313
|
-
var version = "1.2.
|
|
20413
|
+
var version = "1.2.2";
|
|
20314
20414
|
var pkg = {
|
|
20315
20415
|
name: name,
|
|
20316
20416
|
version: version};
|
|
@@ -20835,10 +20935,11 @@ const bridgeDepositPrepareReviewSchema = z.object({
|
|
|
20835
20935
|
* Zod schema for a fee entry in an EarnKit API response.
|
|
20836
20936
|
*
|
|
20837
20937
|
* Shared across deposit and withdrawal responses (and reusable for real
|
|
20838
|
-
* charged fees, not just quote estimates). `type` identifies the fee category
|
|
20839
|
-
*
|
|
20840
|
-
* (e.g. `'FORWARD'`, `'PRE_FINALITY'`).
|
|
20841
|
-
* `'
|
|
20938
|
+
* charged fees, not just quote estimates). `type` identifies the fee category.
|
|
20939
|
+
* For cross-chain deposit quotes this is the kits-proxy fee-quote item type
|
|
20940
|
+
* (e.g. `'FORWARD'`, `'PRE_FINALITY'`). For withdrawal quotes, Circle fees use
|
|
20941
|
+
* `type: 'circle'`. `status` qualifies the fee (e.g. `'estimated'` for a
|
|
20942
|
+
* pre-sign cross-chain fee). Both are omitted on plain fees.
|
|
20842
20943
|
*
|
|
20843
20944
|
* @internal
|
|
20844
20945
|
*/ const feeSchema = z.object({
|