@spicenet-io/spiceflow-ui 4.10.0-dev.20260909.1 → 4.10.0-dev.20260909.2

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-BV1FYtxg.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-DU0RhhVS.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};
@@ -41,7 +41,6 @@ export interface FundingRecord {
41
41
  spicenetSteps: boolean[];
42
42
  };
43
43
  }
44
- export declare function controlledFundingProgress(record: FundingRecord, ctx: ExecutorContext): SourceFundingProgress;
45
44
  export declare function readControlledFunding(scope: string): FundingRecord | null;
46
45
  export declare function reconcileControlledFunding(scope: string): Promise<boolean>;
47
46
  export declare function executeWithSourceFunding(params: {
@@ -6,6 +6,7 @@ export interface SourceConversionExecution {
6
6
  virtualSelectedAsset: SelectedAsset;
7
7
  acceptedSourceAmountInMax: bigint;
8
8
  getPlan: (batches: ChainBatch[]) => SourceFundingExecutionPlan | undefined;
9
+ refreshPlan: (accepted: SourceFundingExecutionPlan) => Promise<SourceFundingExecutionPlan>;
9
10
  isCurrent: () => boolean;
10
11
  }
11
12
  export declare function sourceBatchKey(batch: ChainBatch): string;
@@ -1,4 +1,5 @@
1
1
  import type { ChainBatch } from "../../../types/authorization";
2
+ export declare function formatWithdrawError(message: string): string;
2
3
  export declare function normalizeTokenLabel(value?: string | null): string;
3
4
  export declare function formatTokenAmount(rawAmount: bigint, decimals: number): string;
4
5
  export declare function scaleAmountBetweenDecimals(amount: bigint, fromDecimals: number, toDecimals: number): bigint;
@@ -0,0 +1,45 @@
1
+ import { type Address } from "viem";
2
+ import type { Asset } from "../../../types/assets";
3
+ import type { SpiceWithdrawProps } from "../../../types/withdraw";
4
+ export declare function useSpiceEmbeddedWithdraw(params: {
5
+ enabled: boolean;
6
+ asset: Asset | null;
7
+ amount: bigint;
8
+ recipient?: Address;
9
+ owner?: Address;
10
+ sourceChains?: number[];
11
+ onSuccess?: SpiceWithdrawProps["onWithdrawSuccess"];
12
+ onError?: SpiceWithdrawProps["onWithdrawError"];
13
+ }): {
14
+ supply: import("../../..").UseSpiceSupplyResult;
15
+ candidates: {
16
+ balance: bigint;
17
+ balanceFormatted: number;
18
+ address: Address;
19
+ symbol: string;
20
+ name: string;
21
+ decimals: number;
22
+ chainId: number;
23
+ balanceUsd: number;
24
+ balanceStatus?: "stale";
25
+ isNative: boolean;
26
+ logoURI?: string;
27
+ displaySymbol?: string;
28
+ displayName?: string;
29
+ displayChainName?: string;
30
+ receiptTokenId?: string;
31
+ receiptTokenName?: string;
32
+ receiptTokenDecimals?: number;
33
+ _source?: "wallet" | "spice";
34
+ _fundingWallet?: "embedded" | "external";
35
+ chainTokens?: Record<string, {
36
+ name?: string;
37
+ decimals?: number;
38
+ }>;
39
+ isUniversal?: boolean;
40
+ }[];
41
+ source: Asset | null;
42
+ setSource: import("react").Dispatch<import("react").SetStateAction<Asset | null>>;
43
+ feeToken: import("@spicenet-io/spiceflow-core").Token | undefined;
44
+ sourceKey: (asset: Asset) => string;
45
+ };
@@ -34,6 +34,7 @@ export interface ExecutionOptions {
34
34
  validateBeforeSubmit?: (chainBatches: ChainBatch[]) => void | Promise<void>;
35
35
  requireDestinationReceipt?: boolean;
36
36
  prepareForSigning?: (chainBatches: ChainBatch[]) => Promise<ChainBatch[]>;
37
+ prepareAfterAuthorization?: (chainBatches: ChainBatch[]) => Promise<ChainBatch[]>;
37
38
  resolveActionOutputCredits?: () => Promise<ActionOutputCredit[]>;
38
39
  skipUserFundingPreflight?: boolean;
39
40
  signal?: AbortSignal;