@circle-fin/app-kit 1.12.1 → 1.14.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.
@@ -559,6 +559,19 @@ interface GatewayV1Contracts {
559
559
  * @example "0xD05E7D2E7d30b92c5F17d7d0fC575fce231F1A48"
560
560
  */
561
561
  depositForHandler?: string;
562
+ /**
563
+ * The address of the `GenericExecutor` contract.
564
+ *
565
+ * @description Optional. The contract that acts as `mintRecipient` and
566
+ * `destinationCaller` for the CCTP v2 prepaid FORWARD path. It receives the
567
+ * CCTP mint and calls {@link GatewayV1Contracts.depositForHandler} to
568
+ * complete the fast deposit into the {@link GatewayV1Contracts.wallet}.
569
+ * Present only on chains that are fast-deposit destinations; other Gateway
570
+ * chains omit it.
571
+ *
572
+ * @example "0xFa7be2f04F3Ad4ca969260729c6d45B5625984A7"
573
+ */
574
+ genericExecutor?: string;
562
575
  }
563
576
  /**
564
577
  * Versioned map of Gateway contract configurations.
@@ -718,6 +731,8 @@ declare enum Blockchain {
718
731
  Optimism_Sepolia = "Optimism_Sepolia",
719
732
  Pharos = "Pharos",
720
733
  Pharos_Testnet = "Pharos_Testnet",
734
+ Plasma = "Plasma",
735
+ Plasma_Testnet = "Plasma_Testnet",
721
736
  Polkadot_Asset_Hub = "Polkadot_Asset_Hub",
722
737
  Polkadot_Westmint = "Polkadot_Westmint",
723
738
  Plume = "Plume",
@@ -946,6 +961,7 @@ declare enum BridgeChain {
946
961
  Morph = "Morph",
947
962
  Optimism = "Optimism",
948
963
  Pharos = "Pharos",
964
+ Plasma = "Plasma",
949
965
  Plume = "Plume",
950
966
  Polygon = "Polygon",
951
967
  Sei = "Sei",
@@ -971,6 +987,7 @@ declare enum BridgeChain {
971
987
  Morph_Testnet = "Morph_Testnet",
972
988
  Optimism_Sepolia = "Optimism_Sepolia",
973
989
  Pharos_Testnet = "Pharos_Testnet",
990
+ Plasma_Testnet = "Plasma_Testnet",
974
991
  Plume_Testnet = "Plume_Testnet",
975
992
  Polygon_Amoy_Testnet = "Polygon_Amoy_Testnet",
976
993
  Sei_Testnet = "Sei_Testnet",
@@ -2652,7 +2669,7 @@ interface ExecuteParams {
2652
2669
  * fromAddress: '0x...',
2653
2670
  * toAddress: '0x...',
2654
2671
  * amount: '1000000',
2655
- * apiKey: 'KIT_KEY:...',
2672
+ * apiKey: 'TEST_API_KEY:...',
2656
2673
  * })
2657
2674
  *
2658
2675
  * // Build token inputs with permit
@@ -2796,7 +2813,7 @@ interface ExecuteSwapEVMParams extends ActionParameters {
2796
2813
  * fromAddress: 'YubQzu18FDqJRyNfG8JqHmsdbxhnoQqcKUHBdUkN6tP',
2797
2814
  * toAddress: 'YubQzu18FDqJRyNfG8JqHmsdbxhnoQqcKUHBdUkN6tP',
2798
2815
  * amount: '1000000',
2799
- * apiKey: 'KIT_KEY:...',
2816
+ * apiKey: 'TEST_API_KEY:...',
2800
2817
  * })
2801
2818
  *
2802
2819
  * // Prepare action parameters
@@ -5459,6 +5476,48 @@ TChainDefinition extends ChainDefinition = ChainDefinition> extends WalletContex
5459
5476
  * Must be a valid address format for the specified blockchain.
5460
5477
  */
5461
5478
  recipientAddress?: string;
5479
+ /**
5480
+ * Optional destination dApp deposit action for a fast cross-chain transfer.
5481
+ *
5482
+ * When set, the burned USDC is minted to Circle's GenericExecutor on the
5483
+ * destination chain, which calls the registered dApp (for example, a Gateway
5484
+ * `depositFor`) in the same relayed flow. Consumed by the CCTP v2 provider's
5485
+ * executor-deposit path; requires `useForwarder: true`.
5486
+ *
5487
+ * @see {@link BridgeDepositAction}
5488
+ */
5489
+ deposit?: BridgeDepositAction;
5490
+ }
5491
+ /**
5492
+ * Destination dApp deposit action for a fast cross-chain transfer.
5493
+ *
5494
+ * When present on a bridge destination, the CCTP v2 provider routes the
5495
+ * transfer through Circle's GenericExecutor: the burned USDC is minted to the
5496
+ * executor on the destination chain, which then calls the registered dApp (for
5497
+ * example, a Gateway `depositFor`) in the same relayed flow. Encoded into
5498
+ * executor hookData via `buildDepositForGenericExecutorPayload`.
5499
+ *
5500
+ * @example
5501
+ * ```typescript
5502
+ * import type { BridgeDepositAction } from '@core/provider'
5503
+ *
5504
+ * const deposit: BridgeDepositAction = {
5505
+ * dappId: 'gateway_deposit',
5506
+ * params: ['0xTokenMessengerWithFees', '0xDepositAccount', 0n],
5507
+ * }
5508
+ * ```
5509
+ */
5510
+ interface BridgeDepositAction {
5511
+ /**
5512
+ * Registered dApp identifier the GenericExecutor invokes on the destination
5513
+ * chain (for example, `'gateway_deposit'`).
5514
+ */
5515
+ dappId: string;
5516
+ /**
5517
+ * Positional arguments for the dApp function, in ABI order. Dynamic amount
5518
+ * slots are filled in by the executor from the minted amount.
5519
+ */
5520
+ params: readonly unknown[];
5462
5521
  }
5463
5522
  /**
5464
5523
  * Parameters for executing a cross-chain bridge operation.
@@ -5950,12 +6009,21 @@ interface ServiceSwapConfig {
5950
6009
  recipientAddress?: string;
5951
6010
  };
5952
6011
  /**
5953
- * Stablecoin Service Kit Key used to authenticate service-backed swap
5954
- * requests.
6012
+ * Circle API key used to authenticate service-backed swap requests.
6013
+ *
6014
+ * Format: `<ENV>_API_KEY:<keyId>:<keySecret>`. A legacy
6015
+ * `KIT_KEY:<keyId>:<keySecret>` value is also accepted.
5955
6016
  *
5956
6017
  * Treat this value as a credential. Do not log it, embed it in client-side
5957
6018
  * source, or expose it in telemetry.
5958
6019
  */
6020
+ apiKey?: string | undefined;
6021
+ /**
6022
+ * Circle API key used to authenticate service-backed swap requests.
6023
+ *
6024
+ * @deprecated Use {@link ServiceSwapConfig.apiKey} instead. Still honored
6025
+ * when `apiKey` is omitted, and `apiKey` takes precedence when both are set.
6026
+ */
5959
6027
  kitKey?: string;
5960
6028
  /**
5961
6029
  * DEX aggregator identifier used to source the swap route.
@@ -6486,12 +6554,21 @@ interface SwapConfig {
6486
6554
  recipientAddress: string;
6487
6555
  };
6488
6556
  /**
6489
- * Stablecoin Service Kit Key used to authenticate service-backed swap
6490
- * requests.
6557
+ * Circle API key used to authenticate service-backed swap requests.
6558
+ *
6559
+ * Format: `<ENV>_API_KEY:<keyId>:<keySecret>`. A legacy
6560
+ * `KIT_KEY:<keyId>:<keySecret>` value is also accepted.
6491
6561
  *
6492
6562
  * Treat this value as a credential. Do not log it, embed it in client-side
6493
6563
  * source, or expose it in telemetry.
6494
6564
  */
6565
+ apiKey?: string | undefined;
6566
+ /**
6567
+ * Circle API key used to authenticate service-backed swap requests.
6568
+ *
6569
+ * @deprecated Use {@link SwapConfig.apiKey} instead. Still honored when
6570
+ * `apiKey` is omitted, and `apiKey` takes precedence when both are set.
6571
+ */
6495
6572
  kitKey?: string;
6496
6573
  }
6497
6574
  /**
@@ -6690,6 +6767,30 @@ interface SwapParams<TFromAdapterCapabilities extends AdapterCapabilities = Adap
6690
6767
  config?: SwapConfig;
6691
6768
  }
6692
6769
 
6770
+ /**
6771
+ * Configure how CCTP and forwarding fees are collected for a bridge.
6772
+ *
6773
+ * @remarks
6774
+ * Use `'source'` with `to.useForwarder: true` to treat `amount` as the exact
6775
+ * destination amount. Bridge Kit obtains a signed fee quote, collects the fee
6776
+ * in source-chain USDC, and leaves the destination mint unreduced. Omit the
6777
+ * option (or use `'destination'`) to preserve the existing max-fee behavior.
6778
+ *
6779
+ * @example
6780
+ * ```typescript
6781
+ * import type { BridgeExecutionConfig } from '@circle-fin/bridge-kit'
6782
+ *
6783
+ * const config: BridgeExecutionConfig = {
6784
+ * transferSpeed: 'FAST',
6785
+ * feePayment: 'source',
6786
+ * }
6787
+ * ```
6788
+ * @since 1.14.0
6789
+ */
6790
+ interface BridgeExecutionConfig extends BridgeConfig {
6791
+ /** Select source-side signed fees or the legacy destination-side fee path. */
6792
+ feePayment?: 'source' | 'destination';
6793
+ }
6693
6794
  type FeeFunction<TFromAdapterCapabilities extends AdapterCapabilities, TToAdapterCapabilities extends AdapterCapabilities> = (params: BridgeParams$1<TFromAdapterCapabilities, TToAdapterCapabilities>) => Promise<string> | string;
6694
6795
  type FeeRecipientFunction<TFromAdapterCapabilities extends AdapterCapabilities, TToAdapterCapabilities extends AdapterCapabilities> = (feePayoutChain: ChainDefinition, params: BridgeParams$1<TFromAdapterCapabilities, TToAdapterCapabilities>) => Promise<string> | string;
6695
6796
  /**
@@ -6850,7 +6951,7 @@ interface BridgeParams<TFromAdapterCapabilities extends AdapterCapabilities = Ad
6850
6951
  * Optional bridge configuration (e.g., transfer speed).
6851
6952
  * If omitted, defaults will be used
6852
6953
  */
6853
- config?: BridgeConfig;
6954
+ config?: BridgeExecutionConfig;
6854
6955
  /**
6855
6956
  * The token to transfer. Defaults to 'USDC'.
6856
6957
  * If omitted, the provider will use 'USDC' by default.
@@ -6877,6 +6978,16 @@ interface BridgeParams<TFromAdapterCapabilities extends AdapterCapabilities = Ad
6877
6978
  * ```
6878
6979
  */
6879
6980
  invocationMeta?: InvocationMeta;
6981
+ /**
6982
+ * Reuse the opaque signed quote returned by a receive-exact estimate.
6983
+ *
6984
+ * @remarks
6985
+ * Bridge Kit validates a supplied quote against the exact transfer and fails
6986
+ * when it is invalid, mismatched, expired, or too close to expiry. Omit this
6987
+ * value to let Bridge Kit fetch a fresh quote automatically. Never log or
6988
+ * decode it.
6989
+ */
6990
+ quote?: string;
6880
6991
  }
6881
6992
 
6882
6993
  /**
@@ -6921,29 +7032,37 @@ type EarnAdapterContext<TAdapterCapabilities extends AdapterCapabilities = Adapt
6921
7032
  * Configuration options for earn operations.
6922
7033
  *
6923
7034
  * EarnKit supports dual-mode authentication: operations work both with
6924
- * and without a Kit Key. When present, the Kit Key enables permissioned
7035
+ * and without an API key. When present, the API key enables permissioned
6925
7036
  * features like integrator attribution tracking.
6926
7037
  *
6927
7038
  * @example
6928
7039
  * ```typescript
6929
- * // Permissionless (no Kit Key)
7040
+ * // Permissionless (no API key)
6930
7041
  * const config: EarnConfig = {}
6931
7042
  *
6932
- * // Permissioned (with Kit Key)
7043
+ * // Permissioned (with API key)
6933
7044
  * const config: EarnConfig = {
6934
- * kitKey: 'KIT_KEY:keyId:keySecret',
7045
+ * apiKey: 'TEST_API_KEY:keyId:keySecret',
6935
7046
  * }
6936
7047
  * ```
6937
7048
  */
6938
7049
  interface EarnConfig {
6939
7050
  /**
6940
- * Optional Kit Key for permissioned access.
7051
+ * Optional Circle API key for permissioned access.
6941
7052
  *
6942
7053
  * When provided, enables integrator attribution tracking and
6943
7054
  * higher rate limits. When omitted, the SDK operates in
6944
7055
  * permissionless mode.
6945
7056
  *
6946
- * Format: `KIT_KEY:<keyId>:<keySecret>`
7057
+ * Format: `<ENV>_API_KEY:<keyId>:<keySecret>`. A legacy
7058
+ * `KIT_KEY:<keyId>:<keySecret>` value is also accepted.
7059
+ */
7060
+ readonly apiKey?: string | undefined;
7061
+ /**
7062
+ * Optional Circle API key for permissioned access.
7063
+ *
7064
+ * @deprecated Use {@link EarnConfig.apiKey} instead. Still honored when
7065
+ * `apiKey` is omitted, and `apiKey` takes precedence when both are set.
6947
7066
  */
6948
7067
  readonly kitKey?: string | undefined;
6949
7068
  /**
@@ -7710,13 +7829,18 @@ interface AppKitContext {
7710
7829
  */
7711
7830
  disableErrorReporting?: boolean;
7712
7831
  /**
7713
- * Custom HTTP headers forwarded with the underlying CCTP provider's
7714
- * attestation (Iris) API requests made by bridge operations.
7832
+ * Custom HTTP headers forwarded with Circle API requests made by the
7833
+ * underlying kits: the CCTP provider's attestation (Iris) requests for
7834
+ * bridge operations, and the Gateway API requests for unified-balance
7835
+ * operations.
7715
7836
  *
7716
7837
  * @remarks
7717
7838
  * Headers are merged on top of the SDK defaults (such as `Content-Type`)
7718
- * rather than replacing them. The header is forwarded as-is to Circle's API;
7719
- * the SDK does not interpret it.
7839
+ * rather than replacing them. Each header is forwarded as-is to Circle's API;
7840
+ * the SDK does not interpret it. The same map is forwarded to every relevant
7841
+ * kit, so a header a given API ignores is simply a no-op there. A
7842
+ * `unifiedBalance.headers` value, if provided, takes precedence for the
7843
+ * unified-balance kit.
7720
7844
  */
7721
7845
  headers?: Record<string, string>;
7722
7846
  }
@@ -559,6 +559,19 @@ interface GatewayV1Contracts {
559
559
  * @example "0xD05E7D2E7d30b92c5F17d7d0fC575fce231F1A48"
560
560
  */
561
561
  depositForHandler?: string;
562
+ /**
563
+ * The address of the `GenericExecutor` contract.
564
+ *
565
+ * @description Optional. The contract that acts as `mintRecipient` and
566
+ * `destinationCaller` for the CCTP v2 prepaid FORWARD path. It receives the
567
+ * CCTP mint and calls {@link GatewayV1Contracts.depositForHandler} to
568
+ * complete the fast deposit into the {@link GatewayV1Contracts.wallet}.
569
+ * Present only on chains that are fast-deposit destinations; other Gateway
570
+ * chains omit it.
571
+ *
572
+ * @example "0xFa7be2f04F3Ad4ca969260729c6d45B5625984A7"
573
+ */
574
+ genericExecutor?: string;
562
575
  }
563
576
  /**
564
577
  * Versioned map of Gateway contract configurations.
@@ -718,6 +731,8 @@ declare enum Blockchain {
718
731
  Optimism_Sepolia = "Optimism_Sepolia",
719
732
  Pharos = "Pharos",
720
733
  Pharos_Testnet = "Pharos_Testnet",
734
+ Plasma = "Plasma",
735
+ Plasma_Testnet = "Plasma_Testnet",
721
736
  Polkadot_Asset_Hub = "Polkadot_Asset_Hub",
722
737
  Polkadot_Westmint = "Polkadot_Westmint",
723
738
  Plume = "Plume",
@@ -946,6 +961,7 @@ declare enum BridgeChain {
946
961
  Morph = "Morph",
947
962
  Optimism = "Optimism",
948
963
  Pharos = "Pharos",
964
+ Plasma = "Plasma",
949
965
  Plume = "Plume",
950
966
  Polygon = "Polygon",
951
967
  Sei = "Sei",
@@ -971,6 +987,7 @@ declare enum BridgeChain {
971
987
  Morph_Testnet = "Morph_Testnet",
972
988
  Optimism_Sepolia = "Optimism_Sepolia",
973
989
  Pharos_Testnet = "Pharos_Testnet",
990
+ Plasma_Testnet = "Plasma_Testnet",
974
991
  Plume_Testnet = "Plume_Testnet",
975
992
  Polygon_Amoy_Testnet = "Polygon_Amoy_Testnet",
976
993
  Sei_Testnet = "Sei_Testnet",
@@ -2652,7 +2669,7 @@ interface ExecuteParams {
2652
2669
  * fromAddress: '0x...',
2653
2670
  * toAddress: '0x...',
2654
2671
  * amount: '1000000',
2655
- * apiKey: 'KIT_KEY:...',
2672
+ * apiKey: 'TEST_API_KEY:...',
2656
2673
  * })
2657
2674
  *
2658
2675
  * // Build token inputs with permit
@@ -2796,7 +2813,7 @@ interface ExecuteSwapEVMParams extends ActionParameters {
2796
2813
  * fromAddress: 'YubQzu18FDqJRyNfG8JqHmsdbxhnoQqcKUHBdUkN6tP',
2797
2814
  * toAddress: 'YubQzu18FDqJRyNfG8JqHmsdbxhnoQqcKUHBdUkN6tP',
2798
2815
  * amount: '1000000',
2799
- * apiKey: 'KIT_KEY:...',
2816
+ * apiKey: 'TEST_API_KEY:...',
2800
2817
  * })
2801
2818
  *
2802
2819
  * // Prepare action parameters
@@ -5459,6 +5476,48 @@ TChainDefinition extends ChainDefinition = ChainDefinition> extends WalletContex
5459
5476
  * Must be a valid address format for the specified blockchain.
5460
5477
  */
5461
5478
  recipientAddress?: string;
5479
+ /**
5480
+ * Optional destination dApp deposit action for a fast cross-chain transfer.
5481
+ *
5482
+ * When set, the burned USDC is minted to Circle's GenericExecutor on the
5483
+ * destination chain, which calls the registered dApp (for example, a Gateway
5484
+ * `depositFor`) in the same relayed flow. Consumed by the CCTP v2 provider's
5485
+ * executor-deposit path; requires `useForwarder: true`.
5486
+ *
5487
+ * @see {@link BridgeDepositAction}
5488
+ */
5489
+ deposit?: BridgeDepositAction;
5490
+ }
5491
+ /**
5492
+ * Destination dApp deposit action for a fast cross-chain transfer.
5493
+ *
5494
+ * When present on a bridge destination, the CCTP v2 provider routes the
5495
+ * transfer through Circle's GenericExecutor: the burned USDC is minted to the
5496
+ * executor on the destination chain, which then calls the registered dApp (for
5497
+ * example, a Gateway `depositFor`) in the same relayed flow. Encoded into
5498
+ * executor hookData via `buildDepositForGenericExecutorPayload`.
5499
+ *
5500
+ * @example
5501
+ * ```typescript
5502
+ * import type { BridgeDepositAction } from '@core/provider'
5503
+ *
5504
+ * const deposit: BridgeDepositAction = {
5505
+ * dappId: 'gateway_deposit',
5506
+ * params: ['0xTokenMessengerWithFees', '0xDepositAccount', 0n],
5507
+ * }
5508
+ * ```
5509
+ */
5510
+ interface BridgeDepositAction {
5511
+ /**
5512
+ * Registered dApp identifier the GenericExecutor invokes on the destination
5513
+ * chain (for example, `'gateway_deposit'`).
5514
+ */
5515
+ dappId: string;
5516
+ /**
5517
+ * Positional arguments for the dApp function, in ABI order. Dynamic amount
5518
+ * slots are filled in by the executor from the minted amount.
5519
+ */
5520
+ params: readonly unknown[];
5462
5521
  }
5463
5522
  /**
5464
5523
  * Parameters for executing a cross-chain bridge operation.
@@ -5950,12 +6009,21 @@ interface ServiceSwapConfig {
5950
6009
  recipientAddress?: string;
5951
6010
  };
5952
6011
  /**
5953
- * Stablecoin Service Kit Key used to authenticate service-backed swap
5954
- * requests.
6012
+ * Circle API key used to authenticate service-backed swap requests.
6013
+ *
6014
+ * Format: `<ENV>_API_KEY:<keyId>:<keySecret>`. A legacy
6015
+ * `KIT_KEY:<keyId>:<keySecret>` value is also accepted.
5955
6016
  *
5956
6017
  * Treat this value as a credential. Do not log it, embed it in client-side
5957
6018
  * source, or expose it in telemetry.
5958
6019
  */
6020
+ apiKey?: string | undefined;
6021
+ /**
6022
+ * Circle API key used to authenticate service-backed swap requests.
6023
+ *
6024
+ * @deprecated Use {@link ServiceSwapConfig.apiKey} instead. Still honored
6025
+ * when `apiKey` is omitted, and `apiKey` takes precedence when both are set.
6026
+ */
5959
6027
  kitKey?: string;
5960
6028
  /**
5961
6029
  * DEX aggregator identifier used to source the swap route.
@@ -6486,12 +6554,21 @@ interface SwapConfig {
6486
6554
  recipientAddress: string;
6487
6555
  };
6488
6556
  /**
6489
- * Stablecoin Service Kit Key used to authenticate service-backed swap
6490
- * requests.
6557
+ * Circle API key used to authenticate service-backed swap requests.
6558
+ *
6559
+ * Format: `<ENV>_API_KEY:<keyId>:<keySecret>`. A legacy
6560
+ * `KIT_KEY:<keyId>:<keySecret>` value is also accepted.
6491
6561
  *
6492
6562
  * Treat this value as a credential. Do not log it, embed it in client-side
6493
6563
  * source, or expose it in telemetry.
6494
6564
  */
6565
+ apiKey?: string | undefined;
6566
+ /**
6567
+ * Circle API key used to authenticate service-backed swap requests.
6568
+ *
6569
+ * @deprecated Use {@link SwapConfig.apiKey} instead. Still honored when
6570
+ * `apiKey` is omitted, and `apiKey` takes precedence when both are set.
6571
+ */
6495
6572
  kitKey?: string;
6496
6573
  }
6497
6574
  /**
@@ -6690,6 +6767,30 @@ interface SwapParams<TFromAdapterCapabilities extends AdapterCapabilities = Adap
6690
6767
  config?: SwapConfig;
6691
6768
  }
6692
6769
 
6770
+ /**
6771
+ * Configure how CCTP and forwarding fees are collected for a bridge.
6772
+ *
6773
+ * @remarks
6774
+ * Use `'source'` with `to.useForwarder: true` to treat `amount` as the exact
6775
+ * destination amount. Bridge Kit obtains a signed fee quote, collects the fee
6776
+ * in source-chain USDC, and leaves the destination mint unreduced. Omit the
6777
+ * option (or use `'destination'`) to preserve the existing max-fee behavior.
6778
+ *
6779
+ * @example
6780
+ * ```typescript
6781
+ * import type { BridgeExecutionConfig } from '@circle-fin/bridge-kit'
6782
+ *
6783
+ * const config: BridgeExecutionConfig = {
6784
+ * transferSpeed: 'FAST',
6785
+ * feePayment: 'source',
6786
+ * }
6787
+ * ```
6788
+ * @since 1.14.0
6789
+ */
6790
+ interface BridgeExecutionConfig extends BridgeConfig {
6791
+ /** Select source-side signed fees or the legacy destination-side fee path. */
6792
+ feePayment?: 'source' | 'destination';
6793
+ }
6693
6794
  type FeeFunction<TFromAdapterCapabilities extends AdapterCapabilities, TToAdapterCapabilities extends AdapterCapabilities> = (params: BridgeParams$1<TFromAdapterCapabilities, TToAdapterCapabilities>) => Promise<string> | string;
6694
6795
  type FeeRecipientFunction<TFromAdapterCapabilities extends AdapterCapabilities, TToAdapterCapabilities extends AdapterCapabilities> = (feePayoutChain: ChainDefinition, params: BridgeParams$1<TFromAdapterCapabilities, TToAdapterCapabilities>) => Promise<string> | string;
6695
6796
  /**
@@ -6850,7 +6951,7 @@ interface BridgeParams<TFromAdapterCapabilities extends AdapterCapabilities = Ad
6850
6951
  * Optional bridge configuration (e.g., transfer speed).
6851
6952
  * If omitted, defaults will be used
6852
6953
  */
6853
- config?: BridgeConfig;
6954
+ config?: BridgeExecutionConfig;
6854
6955
  /**
6855
6956
  * The token to transfer. Defaults to 'USDC'.
6856
6957
  * If omitted, the provider will use 'USDC' by default.
@@ -6877,6 +6978,16 @@ interface BridgeParams<TFromAdapterCapabilities extends AdapterCapabilities = Ad
6877
6978
  * ```
6878
6979
  */
6879
6980
  invocationMeta?: InvocationMeta;
6981
+ /**
6982
+ * Reuse the opaque signed quote returned by a receive-exact estimate.
6983
+ *
6984
+ * @remarks
6985
+ * Bridge Kit validates a supplied quote against the exact transfer and fails
6986
+ * when it is invalid, mismatched, expired, or too close to expiry. Omit this
6987
+ * value to let Bridge Kit fetch a fresh quote automatically. Never log or
6988
+ * decode it.
6989
+ */
6990
+ quote?: string;
6880
6991
  }
6881
6992
 
6882
6993
  /**
@@ -6921,29 +7032,37 @@ type EarnAdapterContext<TAdapterCapabilities extends AdapterCapabilities = Adapt
6921
7032
  * Configuration options for earn operations.
6922
7033
  *
6923
7034
  * EarnKit supports dual-mode authentication: operations work both with
6924
- * and without a Kit Key. When present, the Kit Key enables permissioned
7035
+ * and without an API key. When present, the API key enables permissioned
6925
7036
  * features like integrator attribution tracking.
6926
7037
  *
6927
7038
  * @example
6928
7039
  * ```typescript
6929
- * // Permissionless (no Kit Key)
7040
+ * // Permissionless (no API key)
6930
7041
  * const config: EarnConfig = {}
6931
7042
  *
6932
- * // Permissioned (with Kit Key)
7043
+ * // Permissioned (with API key)
6933
7044
  * const config: EarnConfig = {
6934
- * kitKey: 'KIT_KEY:keyId:keySecret',
7045
+ * apiKey: 'TEST_API_KEY:keyId:keySecret',
6935
7046
  * }
6936
7047
  * ```
6937
7048
  */
6938
7049
  interface EarnConfig {
6939
7050
  /**
6940
- * Optional Kit Key for permissioned access.
7051
+ * Optional Circle API key for permissioned access.
6941
7052
  *
6942
7053
  * When provided, enables integrator attribution tracking and
6943
7054
  * higher rate limits. When omitted, the SDK operates in
6944
7055
  * permissionless mode.
6945
7056
  *
6946
- * Format: `KIT_KEY:<keyId>:<keySecret>`
7057
+ * Format: `<ENV>_API_KEY:<keyId>:<keySecret>`. A legacy
7058
+ * `KIT_KEY:<keyId>:<keySecret>` value is also accepted.
7059
+ */
7060
+ readonly apiKey?: string | undefined;
7061
+ /**
7062
+ * Optional Circle API key for permissioned access.
7063
+ *
7064
+ * @deprecated Use {@link EarnConfig.apiKey} instead. Still honored when
7065
+ * `apiKey` is omitted, and `apiKey` takes precedence when both are set.
6947
7066
  */
6948
7067
  readonly kitKey?: string | undefined;
6949
7068
  /**
@@ -7710,13 +7829,18 @@ interface AppKitContext {
7710
7829
  */
7711
7830
  disableErrorReporting?: boolean;
7712
7831
  /**
7713
- * Custom HTTP headers forwarded with the underlying CCTP provider's
7714
- * attestation (Iris) API requests made by bridge operations.
7832
+ * Custom HTTP headers forwarded with Circle API requests made by the
7833
+ * underlying kits: the CCTP provider's attestation (Iris) requests for
7834
+ * bridge operations, and the Gateway API requests for unified-balance
7835
+ * operations.
7715
7836
  *
7716
7837
  * @remarks
7717
7838
  * Headers are merged on top of the SDK defaults (such as `Content-Type`)
7718
- * rather than replacing them. The header is forwarded as-is to Circle's API;
7719
- * the SDK does not interpret it.
7839
+ * rather than replacing them. Each header is forwarded as-is to Circle's API;
7840
+ * the SDK does not interpret it. The same map is forwarded to every relevant
7841
+ * kit, so a header a given API ignores is simply a no-op there. A
7842
+ * `unifiedBalance.headers` value, if provided, takes precedence for the
7843
+ * unified-balance kit.
7720
7844
  */
7721
7845
  headers?: Record<string, string>;
7722
7846
  }