@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/estimateBridge.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",
|
|
@@ -6043,8 +6047,8 @@ interface CrossChainDepositParams<TFromAdapterCapabilities extends AdapterCapabi
|
|
|
6043
6047
|
*/
|
|
6044
6048
|
readonly amount: string;
|
|
6045
6049
|
/**
|
|
6046
|
-
* Maximum source-collected bridge fee the caller is willing to
|
|
6047
|
-
* human-readable
|
|
6050
|
+
* Maximum source-collected bridge fee the caller is willing to accept, in
|
|
6051
|
+
* human-readable fee token units from the quote.
|
|
6048
6052
|
*
|
|
6049
6053
|
* Derive this from a recent cross-chain deposit quote by summing
|
|
6050
6054
|
* `quote.fees[].amount`. The prepared bridge bundle must not exceed this cap
|
|
@@ -6437,6 +6441,16 @@ interface AppKitContext {
|
|
|
6437
6441
|
* @defaultValue false
|
|
6438
6442
|
*/
|
|
6439
6443
|
disableErrorReporting?: boolean;
|
|
6444
|
+
/**
|
|
6445
|
+
* Custom HTTP headers forwarded with the underlying CCTP provider's
|
|
6446
|
+
* attestation (Iris) API requests made by bridge operations.
|
|
6447
|
+
*
|
|
6448
|
+
* @remarks
|
|
6449
|
+
* Headers are merged on top of the SDK defaults (such as `Content-Type`)
|
|
6450
|
+
* rather than replacing them. The header is forwarded as-is to Circle's API;
|
|
6451
|
+
* the SDK does not interpret it.
|
|
6452
|
+
*/
|
|
6453
|
+
headers?: Record<string, string>;
|
|
6440
6454
|
}
|
|
6441
6455
|
|
|
6442
6456
|
/**
|
package/estimateBridge.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",
|
|
@@ -6043,8 +6047,8 @@ interface CrossChainDepositParams<TFromAdapterCapabilities extends AdapterCapabi
|
|
|
6043
6047
|
*/
|
|
6044
6048
|
readonly amount: string;
|
|
6045
6049
|
/**
|
|
6046
|
-
* Maximum source-collected bridge fee the caller is willing to
|
|
6047
|
-
* human-readable
|
|
6050
|
+
* Maximum source-collected bridge fee the caller is willing to accept, in
|
|
6051
|
+
* human-readable fee token units from the quote.
|
|
6048
6052
|
*
|
|
6049
6053
|
* Derive this from a recent cross-chain deposit quote by summing
|
|
6050
6054
|
* `quote.fees[].amount`. The prepared bridge bundle must not exceed this cap
|
|
@@ -6437,6 +6441,16 @@ interface AppKitContext {
|
|
|
6437
6441
|
* @defaultValue false
|
|
6438
6442
|
*/
|
|
6439
6443
|
disableErrorReporting?: boolean;
|
|
6444
|
+
/**
|
|
6445
|
+
* Custom HTTP headers forwarded with the underlying CCTP provider's
|
|
6446
|
+
* attestation (Iris) API requests made by bridge operations.
|
|
6447
|
+
*
|
|
6448
|
+
* @remarks
|
|
6449
|
+
* Headers are merged on top of the SDK defaults (such as `Content-Type`)
|
|
6450
|
+
* rather than replacing them. The header is forwarded as-is to Circle's API;
|
|
6451
|
+
* the SDK does not interpret it.
|
|
6452
|
+
*/
|
|
6453
|
+
headers?: Record<string, string>;
|
|
6440
6454
|
}
|
|
6441
6455
|
|
|
6442
6456
|
/**
|
package/estimateBridge.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",
|
|
@@ -6043,8 +6047,8 @@ interface CrossChainDepositParams<TFromAdapterCapabilities extends AdapterCapabi
|
|
|
6043
6047
|
*/
|
|
6044
6048
|
readonly amount: string;
|
|
6045
6049
|
/**
|
|
6046
|
-
* Maximum source-collected bridge fee the caller is willing to
|
|
6047
|
-
* human-readable
|
|
6050
|
+
* Maximum source-collected bridge fee the caller is willing to accept, in
|
|
6051
|
+
* human-readable fee token units from the quote.
|
|
6048
6052
|
*
|
|
6049
6053
|
* Derive this from a recent cross-chain deposit quote by summing
|
|
6050
6054
|
* `quote.fees[].amount`. The prepared bridge bundle must not exceed this cap
|
|
@@ -6437,6 +6441,16 @@ interface AppKitContext {
|
|
|
6437
6441
|
* @defaultValue false
|
|
6438
6442
|
*/
|
|
6439
6443
|
disableErrorReporting?: boolean;
|
|
6444
|
+
/**
|
|
6445
|
+
* Custom HTTP headers forwarded with the underlying CCTP provider's
|
|
6446
|
+
* attestation (Iris) API requests made by bridge operations.
|
|
6447
|
+
*
|
|
6448
|
+
* @remarks
|
|
6449
|
+
* Headers are merged on top of the SDK defaults (such as `Content-Type`)
|
|
6450
|
+
* rather than replacing them. The header is forwarded as-is to Circle's API;
|
|
6451
|
+
* the SDK does not interpret it.
|
|
6452
|
+
*/
|
|
6453
|
+
headers?: Record<string, string>;
|
|
6440
6454
|
}
|
|
6441
6455
|
|
|
6442
6456
|
/**
|