@circle-fin/app-kit 1.15.2 → 1.15.3

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/index.d.ts CHANGED
@@ -19073,12 +19073,9 @@ interface CollateralInfo {
19073
19073
  * (e.g., 0.6 = 60%).
19074
19074
  *
19075
19075
  * Populated for Morpho V1 vaults; `null` when the underlying product
19076
- * exposes no per-market allocation (e.g. Morpho V2). Optional for now — a
19077
- * backend that predates this field omits it entirely, matching the other
19078
- * optional facets on {@link EarnOpportunityBase}; a future release makes it
19079
- * required once every backend emits it.
19076
+ * exposes no per-market allocation (e.g. Morpho V2).
19080
19077
  */
19081
- readonly allocationPct?: number | null | undefined;
19078
+ readonly allocationPct: number | null;
19082
19079
  }
19083
19080
  /**
19084
19081
  * Vault warning from the underlying earn protocol.
@@ -19248,19 +19245,19 @@ interface EarnOpportunityBase {
19248
19245
  /** Reward tokens distributed by this opportunity. */
19249
19246
  readonly rewards: readonly VaultRewardInfo[];
19250
19247
  /** Primary on-chain address (protocol-neutral; replaces vaultAddress). */
19251
- readonly address?: string | undefined;
19248
+ readonly address: string;
19252
19249
  /** RFC3339 freshness timestamp: provider state ts, else cache sync time. */
19253
- readonly asOf?: string | undefined;
19250
+ readonly asOf: string;
19254
19251
  /** Manager/curator identity; `null` when the product has no manager. */
19255
- readonly manager?: ManagerInfo | null | undefined;
19252
+ readonly manager: ManagerInfo | null;
19256
19253
  /** Yield profile including trailing averages. */
19257
- readonly apyProfile?: ApyProfile | undefined;
19254
+ readonly apyProfile: ApyProfile;
19258
19255
  /** Fee split. */
19259
- readonly fee?: FeeInfo | undefined;
19256
+ readonly fee: FeeInfo;
19260
19257
  /** Liquidity profile. */
19261
- readonly liquidityProfile?: LiquidityProfile | undefined;
19258
+ readonly liquidityProfile: LiquidityProfile;
19262
19259
  /** Risk signals. */
19263
- readonly riskSignals?: RiskSignals | undefined;
19260
+ readonly riskSignals: RiskSignals;
19264
19261
  /** @deprecated use {@link EarnOpportunityBase.address} */
19265
19262
  readonly vaultAddress: string;
19266
19263
  /** @deprecated use {@link ApyProfile.current} via apyProfile */
@@ -19327,13 +19324,9 @@ interface VaultOpportunity extends EarnOpportunityBase {
19327
19324
  /**
19328
19325
  * Universal discriminator identifying the opportunity shape.
19329
19326
  *
19330
- * Optional for now — a backend that predates the field omits it, matching
19331
- * the other optional facets — so this release stays source-compatible for
19332
- * code that constructs the type. A future release makes it required once
19333
- * every backend emits it. Always present on responses from an emitting
19334
- * backend; narrow on it before reading product-specific fields.
19327
+ * Narrow on `productType` before reading product-specific fields.
19335
19328
  */
19336
- readonly productType?: 'vault';
19329
+ readonly productType: 'vault';
19337
19330
  /** Collateral markets backing this vault. */
19338
19331
  readonly collateral: readonly CollateralInfo[];
19339
19332
  }
@@ -20663,6 +20656,14 @@ interface SameChainDepositServiceParams<T extends AdapterCapabilities = AdapterC
20663
20656
  readonly from: AdapterContext<T>;
20664
20657
  /** Optional earn service configuration. */
20665
20658
  readonly config?: EarnServiceConfig | undefined;
20659
+ /**
20660
+ * Gas fee estimates from a prior deposit quote. When provided and the
20661
+ * deposit token matches the chain's native gas currency (e.g. USDC on Arc),
20662
+ * the total estimated gas is added to the required balance check performed
20663
+ * before broadcast to prevent an on-chain revert caused by the adapter
20664
+ * locking gas before `transferFrom`. Omit to use a conservative fallback.
20665
+ */
20666
+ readonly gasFees?: readonly EarnGasFeeEstimate$1[] | undefined;
20666
20667
  }
20667
20668
  /**
20668
20669
  * Destination of a cross-chain Earn bridge deposit.
@@ -21556,6 +21557,12 @@ interface SameChainDepositParams<TFromAdapterCapabilities extends AdapterCapabil
21556
21557
  * @example '100.50' for 100.50 USDC
21557
21558
  */
21558
21559
  readonly amount: string;
21560
+ /**
21561
+ * Gas fee estimates from a prior {@link getDepositQuote} call. When provided,
21562
+ * the pre-broadcast gas reserve check uses the actual estimated cost instead
21563
+ * of the conservative fallback reserve.
21564
+ */
21565
+ readonly gasFees?: readonly EarnGasFeeEstimate[] | undefined;
21559
21566
  /** Optional earn configuration. */
21560
21567
  readonly config?: EarnConfig | undefined;
21561
21568
  }
@@ -21903,14 +21910,8 @@ type EarnVaultInfo = DistributiveOmit<EarnOpportunity, 'totalDeposits' | 'liquid
21903
21910
  readonly totalDeposits: string;
21904
21911
  /** Available liquidity in the vault in human-readable decimal format. */
21905
21912
  readonly liquidity: string;
21906
- /**
21907
- * Liquidity profile with amounts as human-readable decimal strings.
21908
- *
21909
- * Optional during the expand/contract migration window: a backend that
21910
- * predates the nested facets omits it, so it is absent until the response
21911
- * carries it.
21912
- */
21913
- readonly liquidityProfile?: EarnLiquidityProfile;
21913
+ /** Liquidity profile with amounts as human-readable decimal strings. */
21914
+ readonly liquidityProfile: EarnLiquidityProfile;
21914
21915
  };
21915
21916
  /** Result of a batch vault lookup. */
21916
21917
  type EarnGetVaultsResult = Omit<GetVaultsResult, 'vaults'> & {
@@ -23210,8 +23211,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23210
23211
  type: z.ZodLiteral<"evm">;
23211
23212
  chainId: z.ZodNumber;
23212
23213
  }, "strict", z.ZodTypeAny, {
23213
- name: string;
23214
23214
  type: "evm";
23215
+ name: string;
23215
23216
  chain: Blockchain;
23216
23217
  nativeCurrency: {
23217
23218
  symbol: string;
@@ -23248,8 +23249,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23248
23249
  adapter?: string | undefined;
23249
23250
  } | undefined;
23250
23251
  }, {
23251
- name: string;
23252
23252
  type: "evm";
23253
+ name: string;
23253
23254
  chain: Blockchain;
23254
23255
  nativeCurrency: {
23255
23256
  symbol: string;
@@ -23396,8 +23397,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23396
23397
  } & {
23397
23398
  type: z.ZodEnum<["algorand", "avalanche", "solana", "aptos", "near", "stellar", "sui", "hedera", "noble", "polkadot"]>;
23398
23399
  }, "strict", z.ZodTypeAny, {
23399
- name: string;
23400
23400
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
23401
+ name: string;
23401
23402
  chain: Blockchain;
23402
23403
  nativeCurrency: {
23403
23404
  symbol: string;
@@ -23433,8 +23434,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23433
23434
  adapter?: string | undefined;
23434
23435
  } | undefined;
23435
23436
  }, {
23436
- name: string;
23437
23437
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
23438
+ name: string;
23438
23439
  chain: Blockchain;
23439
23440
  nativeCurrency: {
23440
23441
  symbol: string;
@@ -23470,8 +23471,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23470
23471
  adapter?: string | undefined;
23471
23472
  } | undefined;
23472
23473
  }>]>, {
23473
- name: string;
23474
23474
  type: "evm";
23475
+ name: string;
23475
23476
  chain: Blockchain;
23476
23477
  nativeCurrency: {
23477
23478
  symbol: string;
@@ -23508,8 +23509,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23508
23509
  adapter?: string | undefined;
23509
23510
  } | undefined;
23510
23511
  } | {
23511
- name: string;
23512
23512
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
23513
+ name: string;
23513
23514
  chain: Blockchain;
23514
23515
  nativeCurrency: {
23515
23516
  symbol: string;
@@ -23545,8 +23546,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23545
23546
  adapter?: string | undefined;
23546
23547
  } | undefined;
23547
23548
  }, {
23548
- name: string;
23549
23549
  type: "evm";
23550
+ name: string;
23550
23551
  chain: Blockchain;
23551
23552
  nativeCurrency: {
23552
23553
  symbol: string;
@@ -23583,8 +23584,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23583
23584
  adapter?: string | undefined;
23584
23585
  } | undefined;
23585
23586
  } | {
23586
- name: string;
23587
23587
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
23588
+ name: string;
23588
23589
  chain: Blockchain;
23589
23590
  nativeCurrency: {
23590
23591
  symbol: string;
@@ -23623,8 +23624,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23623
23624
  vaultAddress: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, `0x${string}`, string>, `0x${string}`, string>;
23624
23625
  }, "strip", z.ZodTypeAny, {
23625
23626
  chain: string | {
23626
- name: string;
23627
23627
  type: "evm";
23628
+ name: string;
23628
23629
  chain: Blockchain;
23629
23630
  nativeCurrency: {
23630
23631
  symbol: string;
@@ -23661,8 +23662,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23661
23662
  adapter?: string | undefined;
23662
23663
  } | undefined;
23663
23664
  } | {
23664
- name: string;
23665
23665
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
23666
+ name: string;
23666
23667
  chain: Blockchain;
23667
23668
  nativeCurrency: {
23668
23669
  symbol: string;
@@ -23701,8 +23702,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23701
23702
  vaultAddress: `0x${string}`;
23702
23703
  }, {
23703
23704
  chain: string | {
23704
- name: string;
23705
23705
  type: "evm";
23706
+ name: string;
23706
23707
  chain: Blockchain;
23707
23708
  nativeCurrency: {
23708
23709
  symbol: string;
@@ -23739,8 +23740,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23739
23740
  adapter?: string | undefined;
23740
23741
  } | undefined;
23741
23742
  } | {
23742
- name: string;
23743
23743
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
23744
+ name: string;
23744
23745
  chain: Blockchain;
23745
23746
  nativeCurrency: {
23746
23747
  symbol: string;
@@ -23807,8 +23808,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23807
23808
  }, "strip", z.ZodTypeAny, {
23808
23809
  vaults: {
23809
23810
  chain: string | {
23810
- name: string;
23811
23811
  type: "evm";
23812
+ name: string;
23812
23813
  chain: Blockchain;
23813
23814
  nativeCurrency: {
23814
23815
  symbol: string;
@@ -23845,8 +23846,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23845
23846
  adapter?: string | undefined;
23846
23847
  } | undefined;
23847
23848
  } | {
23848
- name: string;
23849
23849
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
23850
+ name: string;
23850
23851
  chain: Blockchain;
23851
23852
  nativeCurrency: {
23852
23853
  symbol: string;
@@ -23893,8 +23894,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23893
23894
  }, {
23894
23895
  vaults: {
23895
23896
  chain: string | {
23896
- name: string;
23897
23897
  type: "evm";
23898
+ name: string;
23898
23899
  chain: Blockchain;
23899
23900
  nativeCurrency: {
23900
23901
  symbol: string;
@@ -23931,8 +23932,8 @@ declare const getVaultsParamsSchema: z.ZodObject<{
23931
23932
  adapter?: string | undefined;
23932
23933
  } | undefined;
23933
23934
  } | {
23934
- name: string;
23935
23935
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
23936
+ name: string;
23936
23937
  chain: Blockchain;
23937
23938
  nativeCurrency: {
23938
23939
  symbol: string;
@@ -24104,8 +24105,8 @@ declare const exploreVaultsParamsSchema: z.ZodObject<{
24104
24105
  type: z.ZodLiteral<"evm">;
24105
24106
  chainId: z.ZodNumber;
24106
24107
  }, "strict", z.ZodTypeAny, {
24107
- name: string;
24108
24108
  type: "evm";
24109
+ name: string;
24109
24110
  chain: Blockchain;
24110
24111
  nativeCurrency: {
24111
24112
  symbol: string;
@@ -24142,8 +24143,8 @@ declare const exploreVaultsParamsSchema: z.ZodObject<{
24142
24143
  adapter?: string | undefined;
24143
24144
  } | undefined;
24144
24145
  }, {
24145
- name: string;
24146
24146
  type: "evm";
24147
+ name: string;
24147
24148
  chain: Blockchain;
24148
24149
  nativeCurrency: {
24149
24150
  symbol: string;
@@ -24290,8 +24291,8 @@ declare const exploreVaultsParamsSchema: z.ZodObject<{
24290
24291
  } & {
24291
24292
  type: z.ZodEnum<["algorand", "avalanche", "solana", "aptos", "near", "stellar", "sui", "hedera", "noble", "polkadot"]>;
24292
24293
  }, "strict", z.ZodTypeAny, {
24293
- name: string;
24294
24294
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
24295
+ name: string;
24295
24296
  chain: Blockchain;
24296
24297
  nativeCurrency: {
24297
24298
  symbol: string;
@@ -24327,8 +24328,8 @@ declare const exploreVaultsParamsSchema: z.ZodObject<{
24327
24328
  adapter?: string | undefined;
24328
24329
  } | undefined;
24329
24330
  }, {
24330
- name: string;
24331
24331
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
24332
+ name: string;
24332
24333
  chain: Blockchain;
24333
24334
  nativeCurrency: {
24334
24335
  symbol: string;
@@ -24364,8 +24365,8 @@ declare const exploreVaultsParamsSchema: z.ZodObject<{
24364
24365
  adapter?: string | undefined;
24365
24366
  } | undefined;
24366
24367
  }>]>, {
24367
- name: string;
24368
24368
  type: "evm";
24369
+ name: string;
24369
24370
  chain: Blockchain;
24370
24371
  nativeCurrency: {
24371
24372
  symbol: string;
@@ -24402,8 +24403,8 @@ declare const exploreVaultsParamsSchema: z.ZodObject<{
24402
24403
  adapter?: string | undefined;
24403
24404
  } | undefined;
24404
24405
  } | {
24405
- name: string;
24406
24406
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
24407
+ name: string;
24407
24408
  chain: Blockchain;
24408
24409
  nativeCurrency: {
24409
24410
  symbol: string;
@@ -24439,8 +24440,8 @@ declare const exploreVaultsParamsSchema: z.ZodObject<{
24439
24440
  adapter?: string | undefined;
24440
24441
  } | undefined;
24441
24442
  }, {
24442
- name: string;
24443
24443
  type: "evm";
24444
+ name: string;
24444
24445
  chain: Blockchain;
24445
24446
  nativeCurrency: {
24446
24447
  symbol: string;
@@ -24477,8 +24478,8 @@ declare const exploreVaultsParamsSchema: z.ZodObject<{
24477
24478
  adapter?: string | undefined;
24478
24479
  } | undefined;
24479
24480
  } | {
24480
- name: string;
24481
24481
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
24482
+ name: string;
24482
24483
  chain: Blockchain;
24483
24484
  nativeCurrency: {
24484
24485
  symbol: string;
@@ -24549,8 +24550,8 @@ declare const exploreVaultsParamsSchema: z.ZodObject<{
24549
24550
  }>>;
24550
24551
  }, "strip", z.ZodTypeAny, {
24551
24552
  chain: string | {
24552
- name: string;
24553
24553
  type: "evm";
24554
+ name: string;
24554
24555
  chain: Blockchain;
24555
24556
  nativeCurrency: {
24556
24557
  symbol: string;
@@ -24587,8 +24588,8 @@ declare const exploreVaultsParamsSchema: z.ZodObject<{
24587
24588
  adapter?: string | undefined;
24588
24589
  } | undefined;
24589
24590
  } | {
24590
- name: string;
24591
24591
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
24592
+ name: string;
24592
24593
  chain: Blockchain;
24593
24594
  nativeCurrency: {
24594
24595
  symbol: string;
@@ -24639,8 +24640,8 @@ declare const exploreVaultsParamsSchema: z.ZodObject<{
24639
24640
  pageSize?: number | undefined;
24640
24641
  }, {
24641
24642
  chain: string | {
24642
- name: string;
24643
24643
  type: "evm";
24644
+ name: string;
24644
24645
  chain: Blockchain;
24645
24646
  nativeCurrency: {
24646
24647
  symbol: string;
@@ -24677,8 +24678,8 @@ declare const exploreVaultsParamsSchema: z.ZodObject<{
24677
24678
  adapter?: string | undefined;
24678
24679
  } | undefined;
24679
24680
  } | {
24680
- name: string;
24681
24681
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
24682
+ name: string;
24682
24683
  chain: Blockchain;
24683
24684
  nativeCurrency: {
24684
24685
  symbol: string;
@@ -24857,8 +24858,8 @@ declare const exploreVaultsIteratorParamsSchema: z.ZodObject<Omit<{
24857
24858
  type: z.ZodLiteral<"evm">;
24858
24859
  chainId: z.ZodNumber;
24859
24860
  }, "strict", z.ZodTypeAny, {
24860
- name: string;
24861
24861
  type: "evm";
24862
+ name: string;
24862
24863
  chain: Blockchain;
24863
24864
  nativeCurrency: {
24864
24865
  symbol: string;
@@ -24895,8 +24896,8 @@ declare const exploreVaultsIteratorParamsSchema: z.ZodObject<Omit<{
24895
24896
  adapter?: string | undefined;
24896
24897
  } | undefined;
24897
24898
  }, {
24898
- name: string;
24899
24899
  type: "evm";
24900
+ name: string;
24900
24901
  chain: Blockchain;
24901
24902
  nativeCurrency: {
24902
24903
  symbol: string;
@@ -25043,8 +25044,8 @@ declare const exploreVaultsIteratorParamsSchema: z.ZodObject<Omit<{
25043
25044
  } & {
25044
25045
  type: z.ZodEnum<["algorand", "avalanche", "solana", "aptos", "near", "stellar", "sui", "hedera", "noble", "polkadot"]>;
25045
25046
  }, "strict", z.ZodTypeAny, {
25046
- name: string;
25047
25047
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
25048
+ name: string;
25048
25049
  chain: Blockchain;
25049
25050
  nativeCurrency: {
25050
25051
  symbol: string;
@@ -25080,8 +25081,8 @@ declare const exploreVaultsIteratorParamsSchema: z.ZodObject<Omit<{
25080
25081
  adapter?: string | undefined;
25081
25082
  } | undefined;
25082
25083
  }, {
25083
- name: string;
25084
25084
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
25085
+ name: string;
25085
25086
  chain: Blockchain;
25086
25087
  nativeCurrency: {
25087
25088
  symbol: string;
@@ -25117,8 +25118,8 @@ declare const exploreVaultsIteratorParamsSchema: z.ZodObject<Omit<{
25117
25118
  adapter?: string | undefined;
25118
25119
  } | undefined;
25119
25120
  }>]>, {
25120
- name: string;
25121
25121
  type: "evm";
25122
+ name: string;
25122
25123
  chain: Blockchain;
25123
25124
  nativeCurrency: {
25124
25125
  symbol: string;
@@ -25155,8 +25156,8 @@ declare const exploreVaultsIteratorParamsSchema: z.ZodObject<Omit<{
25155
25156
  adapter?: string | undefined;
25156
25157
  } | undefined;
25157
25158
  } | {
25158
- name: string;
25159
25159
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
25160
+ name: string;
25160
25161
  chain: Blockchain;
25161
25162
  nativeCurrency: {
25162
25163
  symbol: string;
@@ -25192,8 +25193,8 @@ declare const exploreVaultsIteratorParamsSchema: z.ZodObject<Omit<{
25192
25193
  adapter?: string | undefined;
25193
25194
  } | undefined;
25194
25195
  }, {
25195
- name: string;
25196
25196
  type: "evm";
25197
+ name: string;
25197
25198
  chain: Blockchain;
25198
25199
  nativeCurrency: {
25199
25200
  symbol: string;
@@ -25230,8 +25231,8 @@ declare const exploreVaultsIteratorParamsSchema: z.ZodObject<Omit<{
25230
25231
  adapter?: string | undefined;
25231
25232
  } | undefined;
25232
25233
  } | {
25233
- name: string;
25234
25234
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
25235
+ name: string;
25235
25236
  chain: Blockchain;
25236
25237
  nativeCurrency: {
25237
25238
  symbol: string;
@@ -25302,8 +25303,8 @@ declare const exploreVaultsIteratorParamsSchema: z.ZodObject<Omit<{
25302
25303
  }>>;
25303
25304
  }, "page">, "strip", z.ZodTypeAny, {
25304
25305
  chain: string | {
25305
- name: string;
25306
25306
  type: "evm";
25307
+ name: string;
25307
25308
  chain: Blockchain;
25308
25309
  nativeCurrency: {
25309
25310
  symbol: string;
@@ -25340,8 +25341,8 @@ declare const exploreVaultsIteratorParamsSchema: z.ZodObject<Omit<{
25340
25341
  adapter?: string | undefined;
25341
25342
  } | undefined;
25342
25343
  } | {
25343
- name: string;
25344
25344
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
25345
+ name: string;
25345
25346
  chain: Blockchain;
25346
25347
  nativeCurrency: {
25347
25348
  symbol: string;
@@ -25391,8 +25392,8 @@ declare const exploreVaultsIteratorParamsSchema: z.ZodObject<Omit<{
25391
25392
  pageSize?: number | undefined;
25392
25393
  }, {
25393
25394
  chain: string | {
25394
- name: string;
25395
25395
  type: "evm";
25396
+ name: string;
25396
25397
  chain: Blockchain;
25397
25398
  nativeCurrency: {
25398
25399
  symbol: string;
@@ -25429,8 +25430,8 @@ declare const exploreVaultsIteratorParamsSchema: z.ZodObject<Omit<{
25429
25430
  adapter?: string | undefined;
25430
25431
  } | undefined;
25431
25432
  } | {
25432
- name: string;
25433
25433
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
25434
+ name: string;
25434
25435
  chain: Blockchain;
25435
25436
  nativeCurrency: {
25436
25437
  symbol: string;
@@ -25679,8 +25680,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
25679
25680
  type: z.ZodLiteral<"evm">;
25680
25681
  chainId: z.ZodNumber;
25681
25682
  }, "strict", z.ZodTypeAny, {
25682
- name: string;
25683
25683
  type: "evm";
25684
+ name: string;
25684
25685
  chain: Blockchain;
25685
25686
  nativeCurrency: {
25686
25687
  symbol: string;
@@ -25717,8 +25718,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
25717
25718
  adapter?: string | undefined;
25718
25719
  } | undefined;
25719
25720
  }, {
25720
- name: string;
25721
25721
  type: "evm";
25722
+ name: string;
25722
25723
  chain: Blockchain;
25723
25724
  nativeCurrency: {
25724
25725
  symbol: string;
@@ -25865,8 +25866,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
25865
25866
  } & {
25866
25867
  type: z.ZodEnum<["algorand", "avalanche", "solana", "aptos", "near", "stellar", "sui", "hedera", "noble", "polkadot"]>;
25867
25868
  }, "strict", z.ZodTypeAny, {
25868
- name: string;
25869
25869
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
25870
+ name: string;
25870
25871
  chain: Blockchain;
25871
25872
  nativeCurrency: {
25872
25873
  symbol: string;
@@ -25902,8 +25903,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
25902
25903
  adapter?: string | undefined;
25903
25904
  } | undefined;
25904
25905
  }, {
25905
- name: string;
25906
25906
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
25907
+ name: string;
25907
25908
  chain: Blockchain;
25908
25909
  nativeCurrency: {
25909
25910
  symbol: string;
@@ -25939,8 +25940,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
25939
25940
  adapter?: string | undefined;
25940
25941
  } | undefined;
25941
25942
  }>]>, {
25942
- name: string;
25943
25943
  type: "evm";
25944
+ name: string;
25944
25945
  chain: Blockchain;
25945
25946
  nativeCurrency: {
25946
25947
  symbol: string;
@@ -25977,8 +25978,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
25977
25978
  adapter?: string | undefined;
25978
25979
  } | undefined;
25979
25980
  } | {
25980
- name: string;
25981
25981
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
25982
+ name: string;
25982
25983
  chain: Blockchain;
25983
25984
  nativeCurrency: {
25984
25985
  symbol: string;
@@ -26014,8 +26015,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
26014
26015
  adapter?: string | undefined;
26015
26016
  } | undefined;
26016
26017
  }, {
26017
- name: string;
26018
26018
  type: "evm";
26019
+ name: string;
26019
26020
  chain: Blockchain;
26020
26021
  nativeCurrency: {
26021
26022
  symbol: string;
@@ -26052,8 +26053,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
26052
26053
  adapter?: string | undefined;
26053
26054
  } | undefined;
26054
26055
  } | {
26055
- name: string;
26056
26056
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
26057
+ name: string;
26057
26058
  chain: Blockchain;
26058
26059
  nativeCurrency: {
26059
26060
  symbol: string;
@@ -26092,8 +26093,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
26092
26093
  recipientAddress: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, `0x${string}`, string>, `0x${string}`, string>, `0x${string}`, string>;
26093
26094
  }, "strict", z.ZodTypeAny, {
26094
26095
  chain: string | {
26095
- name: string;
26096
26096
  type: "evm";
26097
+ name: string;
26097
26098
  chain: Blockchain;
26098
26099
  nativeCurrency: {
26099
26100
  symbol: string;
@@ -26130,8 +26131,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
26130
26131
  adapter?: string | undefined;
26131
26132
  } | undefined;
26132
26133
  } | {
26133
- name: string;
26134
26134
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
26135
+ name: string;
26135
26136
  chain: Blockchain;
26136
26137
  nativeCurrency: {
26137
26138
  symbol: string;
@@ -26170,8 +26171,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
26170
26171
  recipientAddress: `0x${string}`;
26171
26172
  }, {
26172
26173
  chain: string | {
26173
- name: string;
26174
26174
  type: "evm";
26175
+ name: string;
26175
26176
  chain: Blockchain;
26176
26177
  nativeCurrency: {
26177
26178
  symbol: string;
@@ -26208,8 +26209,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
26208
26209
  adapter?: string | undefined;
26209
26210
  } | undefined;
26210
26211
  } | {
26211
- name: string;
26212
26212
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
26213
+ name: string;
26213
26214
  chain: Blockchain;
26214
26215
  nativeCurrency: {
26215
26216
  symbol: string;
@@ -26282,8 +26283,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
26282
26283
  amount: string;
26283
26284
  to: {
26284
26285
  chain: string | {
26285
- name: string;
26286
26286
  type: "evm";
26287
+ name: string;
26287
26288
  chain: Blockchain;
26288
26289
  nativeCurrency: {
26289
26290
  symbol: string;
@@ -26320,8 +26321,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
26320
26321
  adapter?: string | undefined;
26321
26322
  } | undefined;
26322
26323
  } | {
26323
- name: string;
26324
26324
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
26325
+ name: string;
26325
26326
  chain: Blockchain;
26326
26327
  nativeCurrency: {
26327
26328
  symbol: string;
@@ -26373,8 +26374,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
26373
26374
  amount: string;
26374
26375
  to: {
26375
26376
  chain: string | {
26376
- name: string;
26377
26377
  type: "evm";
26378
+ name: string;
26378
26379
  chain: Blockchain;
26379
26380
  nativeCurrency: {
26380
26381
  symbol: string;
@@ -26411,8 +26412,8 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
26411
26412
  adapter?: string | undefined;
26412
26413
  } | undefined;
26413
26414
  } | {
26414
- name: string;
26415
26415
  type: "algorand" | "avalanche" | "solana" | "aptos" | "near" | "stellar" | "sui" | "hedera" | "noble" | "polkadot";
26416
+ name: string;
26416
26417
  chain: Blockchain;
26417
26418
  nativeCurrency: {
26418
26419
  symbol: string;
@@ -26464,6 +26465,63 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
26464
26465
  to: z.ZodOptional<z.ZodUndefined>;
26465
26466
  vaultAddress: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, `0x${string}`, string>, `0x${string}`, string>;
26466
26467
  amount: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodType<string, z.ZodTypeDef, string>>, string, string>;
26468
+ gasFees: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
26469
+ name: z.ZodString;
26470
+ token: z.ZodString;
26471
+ blockchain: z.ZodString;
26472
+ fees: z.ZodObject<{
26473
+ gas: z.ZodString;
26474
+ gasPrice: z.ZodString;
26475
+ fee: z.ZodString;
26476
+ }, "strip", z.ZodTypeAny, {
26477
+ gas: string;
26478
+ gasPrice: string;
26479
+ fee: string;
26480
+ }, {
26481
+ gas: string;
26482
+ gasPrice: string;
26483
+ fee: string;
26484
+ }>;
26485
+ error: z.ZodOptional<z.ZodUndefined>;
26486
+ }, "strict", z.ZodTypeAny, {
26487
+ token: string;
26488
+ name: string;
26489
+ blockchain: string;
26490
+ fees: {
26491
+ gas: string;
26492
+ gasPrice: string;
26493
+ fee: string;
26494
+ };
26495
+ error?: undefined;
26496
+ }, {
26497
+ token: string;
26498
+ name: string;
26499
+ blockchain: string;
26500
+ fees: {
26501
+ gas: string;
26502
+ gasPrice: string;
26503
+ fee: string;
26504
+ };
26505
+ error?: undefined;
26506
+ }>, z.ZodObject<{
26507
+ name: z.ZodString;
26508
+ token: z.ZodString;
26509
+ blockchain: z.ZodString;
26510
+ fees: z.ZodNull;
26511
+ error: z.ZodString;
26512
+ }, "strict", z.ZodTypeAny, {
26513
+ token: string;
26514
+ name: string;
26515
+ blockchain: string;
26516
+ fees: null;
26517
+ error: string;
26518
+ }, {
26519
+ token: string;
26520
+ name: string;
26521
+ blockchain: string;
26522
+ fees: null;
26523
+ error: string;
26524
+ }>]>, "many">>;
26467
26525
  config: z.ZodOptional<z.ZodEffects<z.ZodObject<{
26468
26526
  apiKey: z.ZodOptional<z.ZodString>;
26469
26527
  kitKey: z.ZodOptional<z.ZodString>;
@@ -26501,6 +26559,23 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
26501
26559
  baseUrl?: string | undefined;
26502
26560
  batchTransactions?: boolean | undefined;
26503
26561
  } | undefined;
26562
+ gasFees?: ({
26563
+ token: string;
26564
+ name: string;
26565
+ blockchain: string;
26566
+ fees: {
26567
+ gas: string;
26568
+ gasPrice: string;
26569
+ fee: string;
26570
+ };
26571
+ error?: undefined;
26572
+ } | {
26573
+ token: string;
26574
+ name: string;
26575
+ blockchain: string;
26576
+ fees: null;
26577
+ error: string;
26578
+ })[] | undefined;
26504
26579
  }, {
26505
26580
  amount: string;
26506
26581
  vaultAddress: string;
@@ -26512,6 +26587,23 @@ declare const anyDepositParamsSchema: z.ZodUnion<[z.ZodObject<{
26512
26587
  baseUrl?: string | undefined;
26513
26588
  batchTransactions?: boolean | undefined;
26514
26589
  } | undefined;
26590
+ gasFees?: ({
26591
+ token: string;
26592
+ name: string;
26593
+ blockchain: string;
26594
+ fees: {
26595
+ gas: string;
26596
+ gasPrice: string;
26597
+ fee: string;
26598
+ };
26599
+ error?: undefined;
26600
+ } | {
26601
+ token: string;
26602
+ name: string;
26603
+ blockchain: string;
26604
+ fees: null;
26605
+ error: string;
26606
+ })[] | undefined;
26515
26607
  }>]>;
26516
26608
  /**
26517
26609
  * Validation schema for DepositParams.
@@ -27324,17 +27416,17 @@ type OnrampEventEnvelope = OnrampInitializationErrorEnvelope | OnrampInitializat
27324
27416
  * embeds. Never sent back by the client; it is redeemed inside the
27325
27417
  * widget origin only.
27326
27418
  * - `widgetUrl` — fully composed launch URL (origin + path + token +
27327
- * `destinationWallet`). The server kit prefers to compose this itself
27419
+ * asset-scoping params). The server kit prefers to compose this itself
27328
27420
  * so the client kit has no exposure to the widget origin. The client
27329
27421
  * still accepts a bare `sessionToken` and composes a URL locally as a
27330
27422
  * fallback. `getOnrampUrl` is the single place that enforces the
27331
27423
  * https-scheme / origin-pin safety checks before the URL reaches the
27332
27424
  * DOM — that is a security boundary, not response validation.
27333
27425
  * - `destinationWallet` — the wallet that receives funds. The widget
27334
- * requires it as a launch query param, so the server kit echoes the
27335
- * `destinationAddress` it was minted with here (and bakes it into
27336
- * `widgetUrl`). Used by the client fallback path when it has to
27337
- * compose the URL from a bare `sessionToken`.
27426
+ * reads it from the signed session token, not the launch URL, so the
27427
+ * kit never adds it there. The server kit still echoes the
27428
+ * `destinationAddress` it was minted with here for the host's
27429
+ * convenience.
27338
27430
  * - `expiresAt` — RFC 3339 timestamp. The client refuses to launch an
27339
27431
  * expired session and throws an `INPUT` `KitError` so the host can
27340
27432
  * re-mint.
@@ -27358,8 +27450,8 @@ interface OnrampSession {
27358
27450
  */
27359
27451
  readonly sessionToken: string;
27360
27452
  /**
27361
- * Fully composed launch URL (origin + path + token +
27362
- * `destinationWallet`).
27453
+ * Fully composed launch URL (origin + path + token + optional
27454
+ * asset-scoping params).
27363
27455
  *
27364
27456
  * @remarks
27365
27457
  * The server kit prefers to compose this itself; the client falls
@@ -27372,8 +27464,9 @@ interface OnrampSession {
27372
27464
  *
27373
27465
  * @remarks
27374
27466
  * Echoed verbatim from the `destinationAddress` the server kit
27375
- * minted with. Used by the client kit's URL-composition fallback
27376
- * when `widgetUrl` is absent.
27467
+ * minted with, for the host's convenience (e.g. to display it). Never
27468
+ * added to the launch URL: the widget reads the destination wallet
27469
+ * from the signed session token.
27377
27470
  */
27378
27471
  readonly destinationWallet?: string;
27379
27472
  /**