@spicenet-io/spiceflow-ui 4.9.1 → 4.9.3-extmode.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.
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{P as g}from"./privy-C_1pWb8P.js";import"react/jsx-runtime";import"react";import"@spicenet-io/spiceflow-core";import"viem";import"viem/actions";import"@privy-io/react-auth";import"wagmi";import"@tanstack/react-query";export{g as PrivyLogin};
2
+ import{P as g}from"./privy-Baz1RPs-.js";import"react/jsx-runtime";import"react";import"@spicenet-io/spiceflow-core";import"viem";import"viem/actions";import"@privy-io/react-auth";import"wagmi";import"@tanstack/react-query";export{g as PrivyLogin};
@@ -26,6 +26,7 @@ export interface BatchBuilderContext {
26
26
  selectedAsset: SelectedAsset | null;
27
27
  needsSwap: boolean;
28
28
  resolvedSwap: ResolvedSwap | null;
29
+ resolveInputSwap?: (amountIn: bigint) => Promise<ResolvedSwap>;
29
30
  exactOutputSwap: ResolvedExactOutputSwap | null;
30
31
  quoteAmountOut: bigint | null;
31
32
  resolvedTokenIn: Address | null;
@@ -18,6 +18,7 @@ export type ExecutorContext = {
18
18
  currentPaymentAmount: string;
19
19
  isInsufficientBalance: boolean;
20
20
  isPayMode: boolean;
21
+ isFeeInclusiveInput?: boolean;
21
22
  isNon7702: boolean;
22
23
  isSourceDestToken: boolean;
23
24
  needsSwap: boolean;
@@ -49,6 +49,7 @@ export interface FeePreviewContext {
49
49
  signal?: AbortSignal;
50
50
  selectedAsset: SelectedAsset | null;
51
51
  isPayMode: boolean;
52
+ isFeeInclusiveInput?: boolean;
52
53
  parsedAmount: number;
53
54
  needsSwap: boolean;
54
55
  exactOutputSwap: ResolvedExactOutputSwap | null;
@@ -4,6 +4,9 @@ export declare function isSupportedSupplyAsset(asset: Pick<Asset, "address" | "c
4
4
  export declare function isSpendableSupplyAsset(asset: Pick<Asset, "address" | "chainTokens" | "chainId"> & {
5
5
  _source?: string;
6
6
  }, destinationChainId: number, supportedSourceAssets?: string[]): boolean;
7
+ export declare function isSpendableExternalAsset(asset: Pick<Asset, "address" | "chainTokens" | "chainId"> & {
8
+ _source?: string;
9
+ }, destinationToken: Pick<DestinationToken, "address" | "chainId">, isPayMode: boolean, supportedSourceAssets?: string[]): boolean;
7
10
  type DestinationToken = {
8
11
  address: Address;
9
12
  decimals: number;