@spicenet-io/spiceflow-ui 5.0.0 → 5.0.1-release.0bd19658.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.
Files changed (38) hide show
  1. package/dist/auth-privy.cjs +1 -1
  2. package/dist/auth-privy.js +1 -1
  3. package/dist/components/SpiceDeposit/lib/executors.d.ts +1 -0
  4. package/dist/components/SpiceDeposit/lib/feePreview.d.ts +12 -0
  5. package/dist/components/SpiceDeposit/lib/normalizedCredit.d.ts +2 -0
  6. package/dist/components/SpiceDeposit/steps/DepositModal.d.ts +3 -1
  7. package/dist/components/SpiceDeposit/steps/NormalizedDepositModal.d.ts +7 -0
  8. package/dist/components/SpiceDeposit/steps/SelectSourceModal.d.ts +3 -1
  9. package/dist/components/SpiceDeposit/steps/SelectTokenModal.d.ts +3 -1
  10. package/dist/components/SpiceSupply/lib/actionProceeds.d.ts +2 -1
  11. package/dist/components/SpiceSupply/lib/buildBatches.d.ts +1 -0
  12. package/dist/components/SpiceSupply/lib/feeConversion.d.ts +1 -1
  13. package/dist/components/SpiceSupply/lib/feePreview.d.ts +2 -0
  14. package/dist/components/SpiceWithdraw/lib/useEmbeddedWithdraw.d.ts +5 -0
  15. package/dist/execution/conditionalBundle.d.ts +32 -0
  16. package/dist/execution/fundEmbeddedWallet.d.ts +1 -0
  17. package/dist/execution/monadSourceSwap.d.ts +46 -0
  18. package/dist/hooks/useSpiceAction.d.ts +4 -0
  19. package/dist/hooks/useSpiceConditionalIntents.d.ts +3 -1
  20. package/dist/hooks/useSpiceExecution.d.ts +1 -0
  21. package/dist/hooks/useSpiceLimitOrders.d.ts +2 -0
  22. package/dist/hooks/useSpiceLock.d.ts +4 -0
  23. package/dist/hooks/useSpiceSupply.d.ts +5 -0
  24. package/dist/hooks/useWalletBalances.d.ts +1 -0
  25. package/dist/index.cjs +9 -9
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +7 -7
  28. package/dist/privy-CKT1xPf1.js +2 -0
  29. package/dist/privy-DvXXQv3w.cjs +1 -0
  30. package/dist/types/conditionalIntents.d.ts +32 -0
  31. package/dist/types/deposit.d.ts +8 -0
  32. package/dist/types/withdraw.d.ts +7 -0
  33. package/dist/utils/chains/index.d.ts +1 -1
  34. package/dist/utils/crossChainRouter/uniV3.d.ts +3628 -2
  35. package/dist/utils/relayer/index.d.ts +37 -1
  36. package/package.json +2 -2
  37. package/dist/privy-BYW5c3wU.cjs +0 -1
  38. package/dist/privy-CQIs-ZGr.js +0 -2
@@ -1,2 +1,2 @@
1
1
  (function(){if(typeof document==="undefined"||document.getElementById("spiceflow-styles"))return;var s=document.createElement("style");s.id="spiceflow-styles";s.textContent="@keyframes spiceflow-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}.spiceflow-focus-ring:focus-visible,[data-spiceflow-focus]:focus-visible{border-radius:4px;outline:2px solid currentColor;outline-offset:2px}@media (forced-colors:active){.spiceflow-focus-ring:focus-visible,[data-spiceflow-focus]:focus-visible{outline:2px solid Highlight}}.ibm-plex-mono-thin{font-weight:100}.ibm-plex-mono-extralight,.ibm-plex-mono-thin{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-extralight{font-weight:200}.ibm-plex-mono-light{font-weight:300}.ibm-plex-mono-light,.ibm-plex-mono-regular{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-regular{font-weight:400}.ibm-plex-mono-medium{font-weight:500}.ibm-plex-mono-medium,.ibm-plex-mono-semibold{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-semibold{font-weight:600}.ibm-plex-mono-bold{font-family:IBM Plex Mono,monospace!important;font-style:normal;font-weight:700}#privy-modal-content button{border-radius:6px;font-family:IBM Plex Mono,monospace!important;font-size:small;letter-spacing:-.5px;text-transform:uppercase}#privy-modal-content input{background:#fff;border-radius:6px;padding-top:5px!important}#privy-dialog-title{display:none!important;font-size:18px;padding-bottom:10px;padding-top:10px}.AppLogoContainer-sc-a206bd44-0{display:none}#privy-modal-content{background:var(--Neutral-0,#fafafa);border:6px solid var(--Neutral-1,#e9e9e9);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15),0 330px 92px transparent,0 211px 84px rgba(0,0,0,.01),0 119px 71px rgba(0,0,0,.05),0 53px 53px rgba(0,0,0,.09),0 13px 29px rgba(0,0,0,.1);height:auto!important;padding-bottom:10px}.Subtitle-sc-ddbf22b4-4{font-size:12px;margin-top:-14px;opacity:.5}.StyledLink-sc-1c6127e5-0{background:none!important}.StyledLink-sc-c8577138-0,.login-method-button{font-family:IBM Plex Mono,monospace!important}.StyledLink-sc-c8577138-0{font-style:uppercase}#protected-by-privy{color:#000!important}";document.head.appendChild(s)})();
2
- "use strict";const r=require("./privy-BYW5c3wU.cjs");require("react/jsx-runtime"),require("react"),require("@spicenet-io/spiceflow-core"),require("@tanstack/react-query"),require("viem"),require("@privy-io/react-auth"),require("wagmi"),require("viem/actions"),exports.PrivyLogin=r.PrivyLogin;
2
+ "use strict";const r=require("./privy-DvXXQv3w.cjs");require("react/jsx-runtime"),require("react"),require("@spicenet-io/spiceflow-core"),require("@tanstack/react-query"),require("viem"),require("@privy-io/react-auth"),require("wagmi"),require("viem/actions"),exports.PrivyLogin=r.PrivyLogin;
@@ -1,3 +1,3 @@
1
1
  "use client";
2
2
  (function(){if(typeof document==="undefined"||document.getElementById("spiceflow-styles"))return;var s=document.createElement("style");s.id="spiceflow-styles";s.textContent="@keyframes spiceflow-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}.spiceflow-focus-ring:focus-visible,[data-spiceflow-focus]:focus-visible{border-radius:4px;outline:2px solid currentColor;outline-offset:2px}@media (forced-colors:active){.spiceflow-focus-ring:focus-visible,[data-spiceflow-focus]:focus-visible{outline:2px solid Highlight}}.ibm-plex-mono-thin{font-weight:100}.ibm-plex-mono-extralight,.ibm-plex-mono-thin{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-extralight{font-weight:200}.ibm-plex-mono-light{font-weight:300}.ibm-plex-mono-light,.ibm-plex-mono-regular{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-regular{font-weight:400}.ibm-plex-mono-medium{font-weight:500}.ibm-plex-mono-medium,.ibm-plex-mono-semibold{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-semibold{font-weight:600}.ibm-plex-mono-bold{font-family:IBM Plex Mono,monospace!important;font-style:normal;font-weight:700}#privy-modal-content button{border-radius:6px;font-family:IBM Plex Mono,monospace!important;font-size:small;letter-spacing:-.5px;text-transform:uppercase}#privy-modal-content input{background:#fff;border-radius:6px;padding-top:5px!important}#privy-dialog-title{display:none!important;font-size:18px;padding-bottom:10px;padding-top:10px}.AppLogoContainer-sc-a206bd44-0{display:none}#privy-modal-content{background:var(--Neutral-0,#fafafa);border:6px solid var(--Neutral-1,#e9e9e9);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15),0 330px 92px transparent,0 211px 84px rgba(0,0,0,.01),0 119px 71px rgba(0,0,0,.05),0 53px 53px rgba(0,0,0,.09),0 13px 29px rgba(0,0,0,.1);height:auto!important;padding-bottom:10px}.Subtitle-sc-ddbf22b4-4{font-size:12px;margin-top:-14px;opacity:.5}.StyledLink-sc-1c6127e5-0{background:none!important}.StyledLink-sc-c8577138-0,.login-method-button{font-family:IBM Plex Mono,monospace!important}.StyledLink-sc-c8577138-0{font-style:uppercase}#protected-by-privy{color:#000!important}";document.head.appendChild(s)})();
3
- import{P as g}from"./privy-CQIs-ZGr.js";import"react/jsx-runtime";import"react";import"@spicenet-io/spiceflow-core";import"@tanstack/react-query";import"viem";import"@privy-io/react-auth";import"wagmi";import"viem/actions";export{g as PrivyLogin};
3
+ import{P as g}from"./privy-CKT1xPf1.js";import"react/jsx-runtime";import"react";import"@spicenet-io/spiceflow-core";import"@tanstack/react-query";import"viem";import"@privy-io/react-auth";import"wagmi";import"viem/actions";export{g as PrivyLogin};
@@ -73,5 +73,6 @@ export interface DepositExecutorContext {
73
73
  getCurrentIntentStatus: () => any;
74
74
  getCurrentPostDepositStatus: () => string;
75
75
  validateCurrentSession?: () => void;
76
+ verifyMonadDeposit?: () => Promise<void>;
76
77
  }
77
78
  export declare function executeDeposit(ctx: DepositExecutorContext): Promise<void>;
@@ -1,4 +1,5 @@
1
1
  import { Address } from "viem";
2
+ import type { ChainBatch } from "../../../types/authorization";
2
3
  import type { Asset } from "../../../types/assets";
3
4
  import type { DepositFee } from "./executors";
4
5
  export interface DepositQuote {
@@ -12,5 +13,16 @@ export interface DepositFeePreviewContext {
12
13
  depositQuote: DepositQuote;
13
14
  signal?: AbortSignal;
14
15
  requireSimulation?: boolean;
16
+ previewWalletCredit?: bigint;
15
17
  }
16
18
  export declare function quoteDepositGas(ctx: DepositFeePreviewContext): Promise<DepositFee>;
19
+ export declare function quoteConvertedDeposit({ owner, token, amount, beforeSwap, signal, }: {
20
+ owner: Address;
21
+ token: Pick<Asset, "address" | "symbol" | "decimals" | "chainId">;
22
+ amount: bigint;
23
+ beforeSwap?: boolean;
24
+ signal?: AbortSignal;
25
+ }): Promise<{
26
+ fee: DepositFee;
27
+ batches: ChainBatch[];
28
+ }>;
@@ -0,0 +1,2 @@
1
+ import { type Address, type TransactionReceipt } from "viem";
2
+ export declare function normalizedDepositAmount(receipt: TransactionReceipt, hash: string, owner: Address, token: Address, escrow: Address): bigint;
@@ -1,3 +1,5 @@
1
1
  import React from "react";
2
2
  import { DepositModalProps } from "../../../types";
3
- export declare const DepositModal: React.FC<DepositModalProps>;
3
+ export declare const DepositModal: React.FC<DepositModalProps & {
4
+ verifyMonadDeposit?: () => Promise<void>;
5
+ }>;
@@ -0,0 +1,7 @@
1
+ import type { Asset } from "../../../types/assets";
2
+ import type { SpiceDepositProps } from "../../../types/deposit";
3
+ export declare function NormalizedDepositModal({ asset, recovery, originalMonadRecovery, isOpen, onClose, styles, closeOnBackdropClick, onDepositAmountChange, onSubmit, onDepositSuccess, onDepositError, isSourceAssetAllowed, }: Pick<SpiceDepositProps, "isOpen" | "onClose" | "styles" | "closeOnBackdropClick" | "onDepositAmountChange" | "onSubmit" | "onDepositSuccess" | "onDepositError" | "isSourceAssetAllowed"> & {
4
+ asset: Asset;
5
+ recovery: boolean;
6
+ originalMonadRecovery?: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,5 @@
1
1
  import React from "react";
2
2
  import type { SelectSourceModalProps } from "../../../types/deposit";
3
- export declare const SelectSourceModal: React.FC<SelectSourceModalProps>;
3
+ export declare const SelectSourceModal: React.FC<SelectSourceModalProps & {
4
+ statusNotice?: React.ReactNode;
5
+ }>;
@@ -1,3 +1,5 @@
1
1
  import React from "react";
2
2
  import type { SelectTokenModalProps } from "../../../types/deposit";
3
- export declare const SelectTokenModal: React.FC<SelectTokenModalProps>;
3
+ export declare const SelectTokenModal: React.FC<SelectTokenModalProps & {
4
+ statusNotice?: React.ReactNode;
5
+ }>;
@@ -8,12 +8,13 @@ export declare class InsufficientFeeFundingBalanceError extends Error {
8
8
  constructor(requiredAmount: bigint, balance: bigint);
9
9
  }
10
10
  export declare function appendProceedsFees(batches: ChainBatch[], owner: Address, token: Address, gas: bigint, platform: bigint): ChainBatch[];
11
- export declare function simulateProceedsBatch(batches: ChainBatch[], owner: Address, token: Address, signal?: AbortSignal, platformFeeMaximum?: bigint): Promise<bigint>;
11
+ export declare function simulateProceedsBatch(batches: ChainBatch[], owner: Address, token: Address, signal?: AbortSignal, platformFeeMaximum?: bigint, prefundedPreview?: boolean): Promise<bigint>;
12
12
  export declare function estimateProceedsFunding(args: {
13
13
  proceeds: ActionProceeds;
14
14
  owner: Address;
15
15
  token: Address;
16
16
  signal?: AbortSignal;
17
+ prefundedPreview?: boolean;
17
18
  baseline: () => Promise<SupplyFeeQuote | null>;
18
19
  buildBatches: (amount: bigint, options?: SupplyBatchBuildOptions) => Promise<ChainBatch[]>;
19
20
  fundShortfall?: boolean;
@@ -14,6 +14,7 @@ export declare function scaleTokenAmount(amount: bigint, fromDecimals: number, t
14
14
  export interface BatchBuilderContext {
15
15
  combinedSourceGroup?: CombinedSourceGroup;
16
16
  currentPaymentAmount: string;
17
+ convertBeforeEscrow?: boolean;
17
18
  isFeeInclusiveInput?: boolean;
18
19
  feeOnlyAction?: boolean;
19
20
  swapInputAmount?: bigint | null;
@@ -12,7 +12,7 @@ export interface FundingConversion {
12
12
  fromProceeds?: boolean;
13
13
  fromInput?: boolean;
14
14
  }
15
- export declare function simulateInPlaceFees(ctx: Pick<FeePreviewContext, "signal">, owner: Address, tokenOut: Address, batches: ChainBatch[]): Promise<{
15
+ export declare function simulateInPlaceFees(ctx: Pick<FeePreviewContext, "signal" | "prefundedPreview">, owner: Address, tokenOut: Address, batches: ChainBatch[]): Promise<{
16
16
  gasFee: bigint;
17
17
  gasQuoteSource: string;
18
18
  simulationVerified?: boolean;
@@ -15,6 +15,7 @@ type EstimateFn = (chainBatches: ChainBatch[], tokenAddress: string, tokenTransf
15
15
  type BuildPayBatchesFn = (options?: SupplyBatchBuildOptions) => Promise<ChainBatch[]>;
16
16
  type BuildSupplyBatchesFn = (options?: SupplyBatchBuildOptions) => Promise<ChainBatch[]>;
17
17
  export type SupplyFeeQuote = {
18
+ monadSourceSwap?: import("../../../execution/monadSourceSwap").MonadSourceSwapQuote;
18
19
  actionOutputCredits?: ActionOutputCredit[];
19
20
  fundingPlan?: import("../../../types/supply").SupplyFundingPlan;
20
21
  sourceAllocation?: import("../../../utils/combinedSourceBalances").CombinedSourceAllocation;
@@ -138,6 +139,7 @@ export interface FeePreviewContext {
138
139
  feeFundingBalances?: Asset[];
139
140
  feeFundingError?: string | null;
140
141
  allowRelayerFeeFallback?: boolean;
142
+ prefundedPreview?: boolean;
141
143
  feeFundingReserve?: {
142
144
  asset: Asset;
143
145
  amount: bigint;
@@ -14,6 +14,7 @@ export declare function useSpiceEmbeddedWithdraw(params: {
14
14
  recipient?: Address;
15
15
  owner?: Address;
16
16
  sourceChains?: number[];
17
+ beforeSubmit?: SpiceWithdrawProps["beforeSubmit"];
17
18
  onSuccess?: SpiceWithdrawProps["onWithdrawSuccess"];
18
19
  onError?: SpiceWithdrawProps["onWithdrawError"];
19
20
  }): {
@@ -108,6 +109,10 @@ export declare function useSpiceEmbeddedWithdraw(params: {
108
109
  refresh: () => void;
109
110
  };
110
111
  pending: boolean;
112
+ monadSourceStatus: "prepared" | "ready" | "settling" | undefined;
113
+ monadSourceHash: `0x${string}` | undefined;
114
+ monadSourceChecked: boolean;
115
+ monadSettlementStopped: boolean;
111
116
  recoveryChecking: boolean;
112
117
  recoveryError: string | null;
113
118
  canResumeExternalAction: boolean;
@@ -0,0 +1,32 @@
1
+ import { type Address } from "viem";
2
+ import type { ConditionalBundleDraft, ConditionalBundleStep } from "../types/conditionalIntents";
3
+ import type { Asset } from "../types/assets";
4
+ import type { ChainBatch } from "../types/authorization";
5
+ import { type FeePreviewContext } from "../components/SpiceSupply/lib/feePreview";
6
+ export declare function bundleFunding(steps: ConditionalBundleStep[]): {
7
+ required: Map<`0x${string}`, bigint>;
8
+ net: Map<`0x${string}`, bigint>;
9
+ consumedBalances: Set<`0x${string}`>;
10
+ };
11
+ export declare function prepareConditionalBundleBatches(input: ConditionalBundleDraft, owner: Address, balances: Asset[], estimate: FeePreviewContext["estimate"], settlementCredit?: {
12
+ token: Address;
13
+ amount: bigint;
14
+ }): Promise<{
15
+ batches: ChainBatch[];
16
+ walletRequirements: Map<`0x${string}`, bigint>;
17
+ validateQuotes: () => Promise<void>;
18
+ actionOutputCredits: {
19
+ chainId: number;
20
+ token: `0x${string}`;
21
+ amount: bigint;
22
+ }[];
23
+ swapAmountIn: bigint | undefined;
24
+ feeFundingSource: import("../types/supply").FeeFundingSource | undefined;
25
+ feeSourceAmount: bigint | undefined;
26
+ fees: {
27
+ token: `0x${string}`;
28
+ symbol: string;
29
+ decimals: number;
30
+ amount: bigint;
31
+ };
32
+ }>;
@@ -11,6 +11,7 @@ export declare function estimateSourceTransferGas(params: {
11
11
  amount: bigint;
12
12
  }): Promise<bigint>;
13
13
  export declare function sendTokenTransferTx(extWc: any, params: {
14
+ account?: Address;
14
15
  recipient: Address;
15
16
  tokenAddr: Address;
16
17
  isNative: boolean;
@@ -0,0 +1,46 @@
1
+ import { type Address, type Hash, type WalletClient } from "viem";
2
+ import type { Call } from "../types/authorization";
3
+ declare const CHAIN_ID = 143;
4
+ type RpcSettings = {
5
+ rpcOverrides?: Record<number, string>;
6
+ signal?: AbortSignal;
7
+ };
8
+ type SourceWallet = Pick<WalletClient, "getAddresses" | "getChainId" | "sendTransaction">;
9
+ export type MonadSourceSwapQuote = Readonly<{
10
+ chainId: typeof CHAIN_ID;
11
+ source: Address;
12
+ owner: Address;
13
+ tokenOut: Address;
14
+ pool: Address;
15
+ call: Readonly<Call>;
16
+ amountOut: bigint;
17
+ minimumAmountOut: bigint;
18
+ nonce: number;
19
+ deadline: bigint;
20
+ gas: bigint;
21
+ maxFeePerGas: bigint;
22
+ maxPriorityFeePerGas: bigint;
23
+ maxGasCost: bigint;
24
+ }>;
25
+ export type MonadSourceSwapSubmission = Readonly<{
26
+ hash: Hash;
27
+ nonce: number;
28
+ }>;
29
+ export declare function getMonadSourceSwapBudget(source: Address, options: RpcSettings): Promise<bigint>;
30
+ export declare function quoteMonadSourceSwap(params: RpcSettings & {
31
+ source: Address;
32
+ owner: Address;
33
+ amountIn: bigint;
34
+ maxSlippage?: number;
35
+ }): Promise<MonadSourceSwapQuote>;
36
+ export declare function submitMonadSourceSwap(params: RpcSettings & {
37
+ quote: MonadSourceSwapQuote;
38
+ walletClient: SourceWallet;
39
+ assertCurrent: () => void | Promise<void>;
40
+ onSending?: () => void;
41
+ }): Promise<MonadSourceSwapSubmission>;
42
+ export declare function confirmMonadSourceSwap(quote: MonadSourceSwapQuote, submission: MonadSourceSwapSubmission, options?: RpcSettings): Promise<{
43
+ hash: Hash;
44
+ amountReceived: bigint;
45
+ }>;
46
+ export {};
@@ -49,6 +49,10 @@ export declare function useSpiceAction({ amount, enabled, ...options }: UseSpice
49
49
  refresh: () => void;
50
50
  };
51
51
  pending: boolean;
52
+ monadSourceStatus: "prepared" | "ready" | "settling" | undefined;
53
+ monadSourceHash: `0x${string}` | undefined;
54
+ monadSourceChecked: boolean;
55
+ monadSettlementStopped: boolean;
52
56
  recoveryChecking: boolean;
53
57
  recoveryError: string | null;
54
58
  canResumeExternalAction: boolean;
@@ -1,8 +1,10 @@
1
1
  import { type ConditionalIntentStatus, type RegisterConditionalIntentResponse } from "@spicenet-io/spiceflow-core";
2
- import type { ConditionalIntentDraft, ConditionalSwapDraft, PreparedConditionalIntent } from "../types/conditionalIntents";
2
+ import type { ConditionalIntentDraft, ConditionalSwapDraft, ConditionalBundleDraft, ConditionalSequenceDraft, PreparedConditionalIntent } from "../types/conditionalIntents";
3
3
  export declare function useSpiceConditionalIntents(): {
4
4
  prepare: (draft: ConditionalIntentDraft) => Promise<PreparedConditionalIntent>;
5
5
  prepareSwap: (draft: ConditionalSwapDraft) => Promise<PreparedConditionalIntent>;
6
+ prepareBundle: (draft: ConditionalBundleDraft) => Promise<PreparedConditionalIntent>;
7
+ prepareSequence: (draft: ConditionalSequenceDraft) => Promise<PreparedConditionalIntent>;
6
8
  sign: (value: PreparedConditionalIntent) => Promise<PreparedConditionalIntent>;
7
9
  register: (value: PreparedConditionalIntent) => Promise<RegisterConditionalIntentResponse>;
8
10
  authorizeRead: (serviceId: string) => Promise<string>;
@@ -26,6 +26,7 @@ export interface ExecutionOptions {
26
26
  afterAdmission?: () => Promise<void>;
27
27
  incomingWalletFunding?: ExecutionOptions["walletFundingRequirements"];
28
28
  externalExecution?: ExternalExecutionPlan;
29
+ monadSourceId?: string;
29
30
  idempotencyKey?: Hex;
30
31
  walletFundingRequirement?: {
31
32
  chainId: number;
@@ -11,6 +11,8 @@ export declare function useSpiceLimitOrders(options?: {
11
11
  register(value: PreparedConditionalIntent): Promise<RegisterConditionalIntentResponse>;
12
12
  prepare: (draft: ConditionalIntentDraft) => Promise<PreparedConditionalIntent>;
13
13
  prepareSwap: (draft: import(".").ConditionalSwapDraft) => Promise<PreparedConditionalIntent>;
14
+ prepareBundle: (draft: import("..").ConditionalBundleDraft) => Promise<PreparedConditionalIntent>;
15
+ prepareSequence: (draft: import("..").ConditionalSequenceDraft) => Promise<PreparedConditionalIntent>;
14
16
  authorizeRead: (serviceId: string) => Promise<string>;
15
17
  get: (id: string, serviceId: string) => Promise<import("@spicenet-io/spiceflow-core").ConditionalIntentStatus>;
16
18
  list: (serviceId: string, options?: {
@@ -105,6 +105,10 @@ export declare function useSpiceLock(params: UseSpiceLockParams): {
105
105
  refresh: () => void;
106
106
  };
107
107
  pending: boolean;
108
+ monadSourceStatus: "prepared" | "ready" | "settling" | undefined;
109
+ monadSourceHash: `0x${string}` | undefined;
110
+ monadSourceChecked: boolean;
111
+ monadSettlementStopped: boolean;
108
112
  recoveryChecking: boolean;
109
113
  recoveryError: string | null;
110
114
  canResumeExternalAction: boolean;
@@ -20,6 +20,7 @@ export interface UseSpiceSupplyParams extends Pick<SpiceSupplyProps, "sourceChai
20
20
  recoveryKey: string;
21
21
  };
22
22
  prependSourceEscrow?: boolean;
23
+ convertBeforeEscrow?: boolean;
23
24
  }
24
25
  export declare function useSpiceSupply(params: UseSpiceSupplyParams): {
25
26
  operationKey: `0x${string}`;
@@ -112,6 +113,10 @@ export declare function useSpiceSupply(params: UseSpiceSupplyParams): {
112
113
  refresh: () => void;
113
114
  };
114
115
  pending: boolean;
116
+ monadSourceStatus: "prepared" | "ready" | "settling" | undefined;
117
+ monadSourceHash: `0x${string}` | undefined;
118
+ monadSourceChecked: boolean;
119
+ monadSettlementStopped: boolean;
115
120
  recoveryChecking: boolean;
116
121
  recoveryError: string | null;
117
122
  canResumeExternalAction: boolean;
@@ -20,6 +20,7 @@ export interface UseAssetsReturn {
20
20
  error: string | null;
21
21
  updatedAt?: number | null;
22
22
  refreshAssets: () => Promise<void>;
23
+ refresh?: () => Promise<void>;
23
24
  getAssetsByChain: (chainId: number) => Asset[];
24
25
  getNativeAssets: () => Asset[];
25
26
  }