@circle-fin/app-kit 1.10.0 → 1.12.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 +73 -0
- package/README.md +56 -25
- package/bridge.cjs +297 -48
- package/bridge.d.cts +891 -2
- package/bridge.d.mts +891 -2
- package/bridge.d.ts +891 -2
- package/bridge.mjs +297 -48
- package/chains.cjs +117 -1
- package/chains.d.cts +96 -2
- package/chains.d.mts +96 -2
- package/chains.d.ts +96 -2
- package/chains.mjs +116 -2
- package/context.cjs +11 -0
- package/context.d.cts +891 -2
- package/context.d.mts +891 -2
- package/context.d.ts +891 -2
- package/context.mjs +11 -0
- package/earn.cjs +2343 -175
- package/earn.d.cts +891 -2
- package/earn.d.mts +891 -2
- package/earn.d.ts +891 -2
- package/earn.mjs +2343 -175
- package/estimateBridge.cjs +297 -48
- package/estimateBridge.d.cts +891 -2
- package/estimateBridge.d.mts +891 -2
- package/estimateBridge.d.ts +891 -2
- package/estimateBridge.mjs +297 -48
- package/estimateSwap.cjs +391 -39
- package/estimateSwap.d.cts +890 -2
- package/estimateSwap.d.mts +890 -2
- package/estimateSwap.d.ts +890 -2
- package/estimateSwap.mjs +391 -39
- package/index.cjs +2591 -315
- package/index.d.cts +2382 -1632
- package/index.d.mts +2382 -1632
- package/index.d.ts +2382 -1632
- package/index.mjs +2590 -316
- package/package.json +7 -6
- package/swap.cjs +391 -39
- package/swap.d.cts +890 -2
- package/swap.d.mts +890 -2
- package/swap.d.ts +890 -2
- package/swap.mjs +391 -39
- package/unifiedBalance.cjs +411 -132
- package/unifiedBalance.d.cts +30 -5
- package/unifiedBalance.d.mts +30 -5
- package/unifiedBalance.d.ts +30 -5
- package/unifiedBalance.mjs +411 -132
package/unifiedBalance.d.cts
CHANGED
|
@@ -739,6 +739,8 @@ declare enum Blockchain {
|
|
|
739
739
|
World_Chain_Sepolia = "World_Chain_Sepolia",
|
|
740
740
|
XDC = "XDC",
|
|
741
741
|
XDC_Apothem = "XDC_Apothem",
|
|
742
|
+
X_Layer = "X_Layer",
|
|
743
|
+
X_Layer_Testnet = "X_Layer_Testnet",
|
|
742
744
|
ZKSync_Era = "ZKSync_Era",
|
|
743
745
|
ZKSync_Sepolia = "ZKSync_Sepolia"
|
|
744
746
|
}
|
|
@@ -6977,10 +6979,13 @@ interface GetDelegateStatusParams<TAdapterCapabilities extends AdapterCapabiliti
|
|
|
6977
6979
|
}
|
|
6978
6980
|
|
|
6979
6981
|
/**
|
|
6980
|
-
* Parameters for initiating a delayed fund removal from a Gateway
|
|
6982
|
+
* Parameters for initiating a delayed recovery fund removal from a Gateway
|
|
6981
6983
|
* account.
|
|
6982
6984
|
*
|
|
6983
6985
|
* @remarks
|
|
6986
|
+
* Use fund removal only as a trustless fallback when the normal spend flow is
|
|
6987
|
+
* unavailable. For day-to-day movement out of a Unified Balance, use `spend`.
|
|
6988
|
+
*
|
|
6984
6989
|
* Fund removals have a mandatory 7-day delay before they can be
|
|
6985
6990
|
* completed. Only one removal may be pending per chain at a
|
|
6986
6991
|
* time. Initiating a second removal on the same chain adds the
|
|
@@ -7063,7 +7068,12 @@ interface InitiateRemoveFundResult {
|
|
|
7063
7068
|
explorerUrl?: string;
|
|
7064
7069
|
}
|
|
7065
7070
|
/**
|
|
7066
|
-
* Parameters for completing a fund removal after the
|
|
7071
|
+
* Parameters for completing a recovery fund removal after the withdrawal
|
|
7072
|
+
* delay.
|
|
7073
|
+
*
|
|
7074
|
+
* @remarks
|
|
7075
|
+
* Use fund removal only as a trustless fallback when the normal spend flow is
|
|
7076
|
+
* unavailable. For day-to-day movement out of a Unified Balance, use `spend`.
|
|
7067
7077
|
*
|
|
7068
7078
|
* @typeParam TAdapterCapabilities - Adapter capability constraints.
|
|
7069
7079
|
* @typeParam TChainIdentifier - Accepted chain identifier type.
|
|
@@ -7160,6 +7170,11 @@ interface GetSupportedChainsOptions {
|
|
|
7160
7170
|
* Internally holds a persistent {@link UnifiedBalanceKit} instance so that
|
|
7161
7171
|
* event dispatchers and custom fee policies are preserved across calls.
|
|
7162
7172
|
*
|
|
7173
|
+
* Use {@link AppKitUnifiedBalance.spend} for normal movement out of a Unified
|
|
7174
|
+
* Balance. {@link AppKitUnifiedBalance.removeFund} is a trustless recovery path
|
|
7175
|
+
* for situations where the normal spend flow is unavailable, and it requires a
|
|
7176
|
+
* 7-day withdrawal delay after {@link AppKitUnifiedBalance.initiateRemoveFund}.
|
|
7177
|
+
*
|
|
7163
7178
|
* @example
|
|
7164
7179
|
* ```typescript
|
|
7165
7180
|
* import { AppKit } from '@circle-fin/app-kit'
|
|
@@ -7361,7 +7376,12 @@ declare class AppKitUnifiedBalance {
|
|
|
7361
7376
|
*/
|
|
7362
7377
|
removeDelegate(params: UpdateDelegateParams): Promise<UpdateDelegateResult>;
|
|
7363
7378
|
/**
|
|
7364
|
-
*
|
|
7379
|
+
* Initiate a trustless recovery removal from an account.
|
|
7380
|
+
*
|
|
7381
|
+
* Use `spend` for normal movement out of a Unified Balance. `removeFund` is a
|
|
7382
|
+
* recovery path for situations where the normal spend flow is unavailable.
|
|
7383
|
+
* Calling this method starts the 7-day withdrawal delay before the removal can
|
|
7384
|
+
* be completed.
|
|
7365
7385
|
*
|
|
7366
7386
|
* @param params - The account owner's adapter context, amount, and token.
|
|
7367
7387
|
* @returns Promise resolving to the initiation details.
|
|
@@ -7379,11 +7399,16 @@ declare class AppKitUnifiedBalance {
|
|
|
7379
7399
|
*/
|
|
7380
7400
|
initiateRemoveFund(params: InitiateRemoveFundParams): Promise<InitiateRemoveFundResult>;
|
|
7381
7401
|
/**
|
|
7382
|
-
* Complete a
|
|
7402
|
+
* Complete a trustless recovery removal after the withdrawal delay.
|
|
7403
|
+
*
|
|
7404
|
+
* Use `spend` for normal movement out of a Unified Balance. `removeFund` is a
|
|
7405
|
+
* recovery path for situations where the normal spend flow is unavailable.
|
|
7406
|
+
* Both EVM and Solana removals require a 7-day withdrawal delay after
|
|
7407
|
+
* `initiateRemoveFund` before funds can be removed.
|
|
7383
7408
|
*
|
|
7384
7409
|
* @param params - The account owner context matching the original initiation.
|
|
7385
7410
|
* @returns Promise resolving to the fund removal details.
|
|
7386
|
-
* @throws {KitError} If the
|
|
7411
|
+
* @throws {KitError} If the withdrawal delay has not elapsed or the
|
|
7387
7412
|
* on-chain transaction fails.
|
|
7388
7413
|
*
|
|
7389
7414
|
* @example
|
package/unifiedBalance.d.mts
CHANGED
|
@@ -739,6 +739,8 @@ declare enum Blockchain {
|
|
|
739
739
|
World_Chain_Sepolia = "World_Chain_Sepolia",
|
|
740
740
|
XDC = "XDC",
|
|
741
741
|
XDC_Apothem = "XDC_Apothem",
|
|
742
|
+
X_Layer = "X_Layer",
|
|
743
|
+
X_Layer_Testnet = "X_Layer_Testnet",
|
|
742
744
|
ZKSync_Era = "ZKSync_Era",
|
|
743
745
|
ZKSync_Sepolia = "ZKSync_Sepolia"
|
|
744
746
|
}
|
|
@@ -6977,10 +6979,13 @@ interface GetDelegateStatusParams<TAdapterCapabilities extends AdapterCapabiliti
|
|
|
6977
6979
|
}
|
|
6978
6980
|
|
|
6979
6981
|
/**
|
|
6980
|
-
* Parameters for initiating a delayed fund removal from a Gateway
|
|
6982
|
+
* Parameters for initiating a delayed recovery fund removal from a Gateway
|
|
6981
6983
|
* account.
|
|
6982
6984
|
*
|
|
6983
6985
|
* @remarks
|
|
6986
|
+
* Use fund removal only as a trustless fallback when the normal spend flow is
|
|
6987
|
+
* unavailable. For day-to-day movement out of a Unified Balance, use `spend`.
|
|
6988
|
+
*
|
|
6984
6989
|
* Fund removals have a mandatory 7-day delay before they can be
|
|
6985
6990
|
* completed. Only one removal may be pending per chain at a
|
|
6986
6991
|
* time. Initiating a second removal on the same chain adds the
|
|
@@ -7063,7 +7068,12 @@ interface InitiateRemoveFundResult {
|
|
|
7063
7068
|
explorerUrl?: string;
|
|
7064
7069
|
}
|
|
7065
7070
|
/**
|
|
7066
|
-
* Parameters for completing a fund removal after the
|
|
7071
|
+
* Parameters for completing a recovery fund removal after the withdrawal
|
|
7072
|
+
* delay.
|
|
7073
|
+
*
|
|
7074
|
+
* @remarks
|
|
7075
|
+
* Use fund removal only as a trustless fallback when the normal spend flow is
|
|
7076
|
+
* unavailable. For day-to-day movement out of a Unified Balance, use `spend`.
|
|
7067
7077
|
*
|
|
7068
7078
|
* @typeParam TAdapterCapabilities - Adapter capability constraints.
|
|
7069
7079
|
* @typeParam TChainIdentifier - Accepted chain identifier type.
|
|
@@ -7160,6 +7170,11 @@ interface GetSupportedChainsOptions {
|
|
|
7160
7170
|
* Internally holds a persistent {@link UnifiedBalanceKit} instance so that
|
|
7161
7171
|
* event dispatchers and custom fee policies are preserved across calls.
|
|
7162
7172
|
*
|
|
7173
|
+
* Use {@link AppKitUnifiedBalance.spend} for normal movement out of a Unified
|
|
7174
|
+
* Balance. {@link AppKitUnifiedBalance.removeFund} is a trustless recovery path
|
|
7175
|
+
* for situations where the normal spend flow is unavailable, and it requires a
|
|
7176
|
+
* 7-day withdrawal delay after {@link AppKitUnifiedBalance.initiateRemoveFund}.
|
|
7177
|
+
*
|
|
7163
7178
|
* @example
|
|
7164
7179
|
* ```typescript
|
|
7165
7180
|
* import { AppKit } from '@circle-fin/app-kit'
|
|
@@ -7361,7 +7376,12 @@ declare class AppKitUnifiedBalance {
|
|
|
7361
7376
|
*/
|
|
7362
7377
|
removeDelegate(params: UpdateDelegateParams): Promise<UpdateDelegateResult>;
|
|
7363
7378
|
/**
|
|
7364
|
-
*
|
|
7379
|
+
* Initiate a trustless recovery removal from an account.
|
|
7380
|
+
*
|
|
7381
|
+
* Use `spend` for normal movement out of a Unified Balance. `removeFund` is a
|
|
7382
|
+
* recovery path for situations where the normal spend flow is unavailable.
|
|
7383
|
+
* Calling this method starts the 7-day withdrawal delay before the removal can
|
|
7384
|
+
* be completed.
|
|
7365
7385
|
*
|
|
7366
7386
|
* @param params - The account owner's adapter context, amount, and token.
|
|
7367
7387
|
* @returns Promise resolving to the initiation details.
|
|
@@ -7379,11 +7399,16 @@ declare class AppKitUnifiedBalance {
|
|
|
7379
7399
|
*/
|
|
7380
7400
|
initiateRemoveFund(params: InitiateRemoveFundParams): Promise<InitiateRemoveFundResult>;
|
|
7381
7401
|
/**
|
|
7382
|
-
* Complete a
|
|
7402
|
+
* Complete a trustless recovery removal after the withdrawal delay.
|
|
7403
|
+
*
|
|
7404
|
+
* Use `spend` for normal movement out of a Unified Balance. `removeFund` is a
|
|
7405
|
+
* recovery path for situations where the normal spend flow is unavailable.
|
|
7406
|
+
* Both EVM and Solana removals require a 7-day withdrawal delay after
|
|
7407
|
+
* `initiateRemoveFund` before funds can be removed.
|
|
7383
7408
|
*
|
|
7384
7409
|
* @param params - The account owner context matching the original initiation.
|
|
7385
7410
|
* @returns Promise resolving to the fund removal details.
|
|
7386
|
-
* @throws {KitError} If the
|
|
7411
|
+
* @throws {KitError} If the withdrawal delay has not elapsed or the
|
|
7387
7412
|
* on-chain transaction fails.
|
|
7388
7413
|
*
|
|
7389
7414
|
* @example
|
package/unifiedBalance.d.ts
CHANGED
|
@@ -739,6 +739,8 @@ declare enum Blockchain {
|
|
|
739
739
|
World_Chain_Sepolia = "World_Chain_Sepolia",
|
|
740
740
|
XDC = "XDC",
|
|
741
741
|
XDC_Apothem = "XDC_Apothem",
|
|
742
|
+
X_Layer = "X_Layer",
|
|
743
|
+
X_Layer_Testnet = "X_Layer_Testnet",
|
|
742
744
|
ZKSync_Era = "ZKSync_Era",
|
|
743
745
|
ZKSync_Sepolia = "ZKSync_Sepolia"
|
|
744
746
|
}
|
|
@@ -6977,10 +6979,13 @@ interface GetDelegateStatusParams<TAdapterCapabilities extends AdapterCapabiliti
|
|
|
6977
6979
|
}
|
|
6978
6980
|
|
|
6979
6981
|
/**
|
|
6980
|
-
* Parameters for initiating a delayed fund removal from a Gateway
|
|
6982
|
+
* Parameters for initiating a delayed recovery fund removal from a Gateway
|
|
6981
6983
|
* account.
|
|
6982
6984
|
*
|
|
6983
6985
|
* @remarks
|
|
6986
|
+
* Use fund removal only as a trustless fallback when the normal spend flow is
|
|
6987
|
+
* unavailable. For day-to-day movement out of a Unified Balance, use `spend`.
|
|
6988
|
+
*
|
|
6984
6989
|
* Fund removals have a mandatory 7-day delay before they can be
|
|
6985
6990
|
* completed. Only one removal may be pending per chain at a
|
|
6986
6991
|
* time. Initiating a second removal on the same chain adds the
|
|
@@ -7063,7 +7068,12 @@ interface InitiateRemoveFundResult {
|
|
|
7063
7068
|
explorerUrl?: string;
|
|
7064
7069
|
}
|
|
7065
7070
|
/**
|
|
7066
|
-
* Parameters for completing a fund removal after the
|
|
7071
|
+
* Parameters for completing a recovery fund removal after the withdrawal
|
|
7072
|
+
* delay.
|
|
7073
|
+
*
|
|
7074
|
+
* @remarks
|
|
7075
|
+
* Use fund removal only as a trustless fallback when the normal spend flow is
|
|
7076
|
+
* unavailable. For day-to-day movement out of a Unified Balance, use `spend`.
|
|
7067
7077
|
*
|
|
7068
7078
|
* @typeParam TAdapterCapabilities - Adapter capability constraints.
|
|
7069
7079
|
* @typeParam TChainIdentifier - Accepted chain identifier type.
|
|
@@ -7160,6 +7170,11 @@ interface GetSupportedChainsOptions {
|
|
|
7160
7170
|
* Internally holds a persistent {@link UnifiedBalanceKit} instance so that
|
|
7161
7171
|
* event dispatchers and custom fee policies are preserved across calls.
|
|
7162
7172
|
*
|
|
7173
|
+
* Use {@link AppKitUnifiedBalance.spend} for normal movement out of a Unified
|
|
7174
|
+
* Balance. {@link AppKitUnifiedBalance.removeFund} is a trustless recovery path
|
|
7175
|
+
* for situations where the normal spend flow is unavailable, and it requires a
|
|
7176
|
+
* 7-day withdrawal delay after {@link AppKitUnifiedBalance.initiateRemoveFund}.
|
|
7177
|
+
*
|
|
7163
7178
|
* @example
|
|
7164
7179
|
* ```typescript
|
|
7165
7180
|
* import { AppKit } from '@circle-fin/app-kit'
|
|
@@ -7361,7 +7376,12 @@ declare class AppKitUnifiedBalance {
|
|
|
7361
7376
|
*/
|
|
7362
7377
|
removeDelegate(params: UpdateDelegateParams): Promise<UpdateDelegateResult>;
|
|
7363
7378
|
/**
|
|
7364
|
-
*
|
|
7379
|
+
* Initiate a trustless recovery removal from an account.
|
|
7380
|
+
*
|
|
7381
|
+
* Use `spend` for normal movement out of a Unified Balance. `removeFund` is a
|
|
7382
|
+
* recovery path for situations where the normal spend flow is unavailable.
|
|
7383
|
+
* Calling this method starts the 7-day withdrawal delay before the removal can
|
|
7384
|
+
* be completed.
|
|
7365
7385
|
*
|
|
7366
7386
|
* @param params - The account owner's adapter context, amount, and token.
|
|
7367
7387
|
* @returns Promise resolving to the initiation details.
|
|
@@ -7379,11 +7399,16 @@ declare class AppKitUnifiedBalance {
|
|
|
7379
7399
|
*/
|
|
7380
7400
|
initiateRemoveFund(params: InitiateRemoveFundParams): Promise<InitiateRemoveFundResult>;
|
|
7381
7401
|
/**
|
|
7382
|
-
* Complete a
|
|
7402
|
+
* Complete a trustless recovery removal after the withdrawal delay.
|
|
7403
|
+
*
|
|
7404
|
+
* Use `spend` for normal movement out of a Unified Balance. `removeFund` is a
|
|
7405
|
+
* recovery path for situations where the normal spend flow is unavailable.
|
|
7406
|
+
* Both EVM and Solana removals require a 7-day withdrawal delay after
|
|
7407
|
+
* `initiateRemoveFund` before funds can be removed.
|
|
7383
7408
|
*
|
|
7384
7409
|
* @param params - The account owner context matching the original initiation.
|
|
7385
7410
|
* @returns Promise resolving to the fund removal details.
|
|
7386
|
-
* @throws {KitError} If the
|
|
7411
|
+
* @throws {KitError} If the withdrawal delay has not elapsed or the
|
|
7387
7412
|
* on-chain transaction fails.
|
|
7388
7413
|
*
|
|
7389
7414
|
* @example
|