@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.
@@ -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 activation period.
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
- * Kick off a delayed fund removal from an account.
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 fund removal once the activation period has passed.
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 activation period has not elapsed or the
7411
+ * @throws {KitError} If the withdrawal delay has not elapsed or the
7387
7412
  * on-chain transaction fails.
7388
7413
  *
7389
7414
  * @example
@@ -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 activation period.
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
- * Kick off a delayed fund removal from an account.
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 fund removal once the activation period has passed.
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 activation period has not elapsed or the
7411
+ * @throws {KitError} If the withdrawal delay has not elapsed or the
7387
7412
  * on-chain transaction fails.
7388
7413
  *
7389
7414
  * @example
@@ -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 activation period.
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
- * Kick off a delayed fund removal from an account.
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 fund removal once the activation period has passed.
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 activation period has not elapsed or the
7411
+ * @throws {KitError} If the withdrawal delay has not elapsed or the
7387
7412
  * on-chain transaction fails.
7388
7413
  *
7389
7414
  * @example