@circle-fin/app-kit 1.8.0 → 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 +53 -0
- package/README.md +3 -3
- package/bridge.cjs +469 -231
- package/bridge.d.cts +16 -2
- package/bridge.d.mts +16 -2
- package/bridge.d.ts +16 -2
- package/bridge.mjs +469 -231
- 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 +16 -2
- package/context.d.mts +16 -2
- package/context.d.ts +16 -2
- package/earn.cjs +438 -208
- package/earn.d.cts +33 -13
- package/earn.d.mts +33 -13
- package/earn.d.ts +33 -13
- package/earn.mjs +438 -208
- package/estimateBridge.cjs +469 -231
- package/estimateBridge.d.cts +16 -2
- package/estimateBridge.d.mts +16 -2
- package/estimateBridge.d.ts +16 -2
- package/estimateBridge.mjs +469 -231
- package/estimateSwap.cjs +210 -87
- package/estimateSwap.d.cts +16 -2
- package/estimateSwap.d.mts +16 -2
- package/estimateSwap.d.ts +16 -2
- package/estimateSwap.mjs +210 -87
- package/index.cjs +884 -413
- package/index.d.cts +284 -27
- package/index.d.mts +284 -27
- package/index.d.ts +284 -27
- package/index.mjs +884 -413
- package/package.json +12 -6
- package/swap.cjs +210 -87
- package/swap.d.cts +16 -2
- package/swap.d.mts +16 -2
- package/swap.d.ts +16 -2
- package/swap.mjs +210 -87
- package/unifiedBalance.cjs +119 -5
- package/unifiedBalance.d.cts +2 -0
- package/unifiedBalance.d.mts +2 -0
- package/unifiedBalance.d.ts +2 -0
- package/unifiedBalance.mjs +119 -5
package/bridge.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",
|
|
@@ -6166,8 +6170,8 @@ interface CrossChainDepositParams<TFromAdapterCapabilities extends AdapterCapabi
|
|
|
6166
6170
|
*/
|
|
6167
6171
|
readonly amount: string;
|
|
6168
6172
|
/**
|
|
6169
|
-
* Maximum source-collected bridge fee the caller is willing to
|
|
6170
|
-
* human-readable
|
|
6173
|
+
* Maximum source-collected bridge fee the caller is willing to accept, in
|
|
6174
|
+
* human-readable fee token units from the quote.
|
|
6171
6175
|
*
|
|
6172
6176
|
* Derive this from a recent cross-chain deposit quote by summing
|
|
6173
6177
|
* `quote.fees[].amount`. The prepared bridge bundle must not exceed this cap
|
|
@@ -6560,6 +6564,16 @@ interface AppKitContext {
|
|
|
6560
6564
|
* @defaultValue false
|
|
6561
6565
|
*/
|
|
6562
6566
|
disableErrorReporting?: boolean;
|
|
6567
|
+
/**
|
|
6568
|
+
* Custom HTTP headers forwarded with the underlying CCTP provider's
|
|
6569
|
+
* attestation (Iris) API requests made by bridge operations.
|
|
6570
|
+
*
|
|
6571
|
+
* @remarks
|
|
6572
|
+
* Headers are merged on top of the SDK defaults (such as `Content-Type`)
|
|
6573
|
+
* rather than replacing them. The header is forwarded as-is to Circle's API;
|
|
6574
|
+
* the SDK does not interpret it.
|
|
6575
|
+
*/
|
|
6576
|
+
headers?: Record<string, string>;
|
|
6563
6577
|
}
|
|
6564
6578
|
|
|
6565
6579
|
/**
|
package/bridge.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",
|
|
@@ -6166,8 +6170,8 @@ interface CrossChainDepositParams<TFromAdapterCapabilities extends AdapterCapabi
|
|
|
6166
6170
|
*/
|
|
6167
6171
|
readonly amount: string;
|
|
6168
6172
|
/**
|
|
6169
|
-
* Maximum source-collected bridge fee the caller is willing to
|
|
6170
|
-
* human-readable
|
|
6173
|
+
* Maximum source-collected bridge fee the caller is willing to accept, in
|
|
6174
|
+
* human-readable fee token units from the quote.
|
|
6171
6175
|
*
|
|
6172
6176
|
* Derive this from a recent cross-chain deposit quote by summing
|
|
6173
6177
|
* `quote.fees[].amount`. The prepared bridge bundle must not exceed this cap
|
|
@@ -6560,6 +6564,16 @@ interface AppKitContext {
|
|
|
6560
6564
|
* @defaultValue false
|
|
6561
6565
|
*/
|
|
6562
6566
|
disableErrorReporting?: boolean;
|
|
6567
|
+
/**
|
|
6568
|
+
* Custom HTTP headers forwarded with the underlying CCTP provider's
|
|
6569
|
+
* attestation (Iris) API requests made by bridge operations.
|
|
6570
|
+
*
|
|
6571
|
+
* @remarks
|
|
6572
|
+
* Headers are merged on top of the SDK defaults (such as `Content-Type`)
|
|
6573
|
+
* rather than replacing them. The header is forwarded as-is to Circle's API;
|
|
6574
|
+
* the SDK does not interpret it.
|
|
6575
|
+
*/
|
|
6576
|
+
headers?: Record<string, string>;
|
|
6563
6577
|
}
|
|
6564
6578
|
|
|
6565
6579
|
/**
|
package/bridge.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",
|
|
@@ -6166,8 +6170,8 @@ interface CrossChainDepositParams<TFromAdapterCapabilities extends AdapterCapabi
|
|
|
6166
6170
|
*/
|
|
6167
6171
|
readonly amount: string;
|
|
6168
6172
|
/**
|
|
6169
|
-
* Maximum source-collected bridge fee the caller is willing to
|
|
6170
|
-
* human-readable
|
|
6173
|
+
* Maximum source-collected bridge fee the caller is willing to accept, in
|
|
6174
|
+
* human-readable fee token units from the quote.
|
|
6171
6175
|
*
|
|
6172
6176
|
* Derive this from a recent cross-chain deposit quote by summing
|
|
6173
6177
|
* `quote.fees[].amount`. The prepared bridge bundle must not exceed this cap
|
|
@@ -6560,6 +6564,16 @@ interface AppKitContext {
|
|
|
6560
6564
|
* @defaultValue false
|
|
6561
6565
|
*/
|
|
6562
6566
|
disableErrorReporting?: boolean;
|
|
6567
|
+
/**
|
|
6568
|
+
* Custom HTTP headers forwarded with the underlying CCTP provider's
|
|
6569
|
+
* attestation (Iris) API requests made by bridge operations.
|
|
6570
|
+
*
|
|
6571
|
+
* @remarks
|
|
6572
|
+
* Headers are merged on top of the SDK defaults (such as `Content-Type`)
|
|
6573
|
+
* rather than replacing them. The header is forwarded as-is to Circle's API;
|
|
6574
|
+
* the SDK does not interpret it.
|
|
6575
|
+
*/
|
|
6576
|
+
headers?: Record<string, string>;
|
|
6563
6577
|
}
|
|
6564
6578
|
|
|
6565
6579
|
/**
|