@spicenet-io/spiceflow-ui 4.9.6-consistency.13 → 4.9.6-consistency.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/dist/components/SpiceSupply/lib/buildBatches.d.ts +1 -1
- package/dist/components/SpiceWithdraw/lib/useEmbeddedWithdraw.d.ts +0 -6
- package/dist/execution/fundedExecution.d.ts +0 -10
- package/dist/hooks/usePendingAction.d.ts +1 -1
- package/dist/hooks/useSpiceLock.d.ts +0 -6
- package/dist/hooks/useSpiceSupply.d.ts +2 -9
- package/dist/hooks/useSupplyQuote.d.ts +0 -1
- package/dist/index.cjs.js +8 -8
- package/dist/index.js +6 -6
- package/dist/utils/crossChainRouter/liquidityVenues.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/SpiceSupply/parts/FundingQuoteReview.d.ts +0 -6
- package/dist/components/SpiceWithdraw/parts/PendingWalletWithdrawal.d.ts +0 -10
|
@@ -29,7 +29,7 @@ export interface BatchBuilderContext {
|
|
|
29
29
|
selectedAsset: SelectedAsset | null;
|
|
30
30
|
needsSwap: boolean;
|
|
31
31
|
resolvedSwap: ResolvedSwap | null;
|
|
32
|
-
resolveInputSwap?: (amountIn: bigint
|
|
32
|
+
resolveInputSwap?: (amountIn: bigint) => Promise<ResolvedSwap>;
|
|
33
33
|
exactOutputSwap: ResolvedExactOutputSwap | null;
|
|
34
34
|
quoteAmountOut: bigint | null;
|
|
35
35
|
resolvedTokenIn: Address | null;
|
|
@@ -14,12 +14,6 @@ export declare function useSpiceEmbeddedWithdraw(params: {
|
|
|
14
14
|
}): {
|
|
15
15
|
supply: {
|
|
16
16
|
selectedAsset: import("../../..").SelectedAsset | null;
|
|
17
|
-
fundingQuoteReview: {
|
|
18
|
-
previousMinimum: bigint;
|
|
19
|
-
minimum: bigint;
|
|
20
|
-
accepting: boolean;
|
|
21
|
-
accept: () => Promise<void>;
|
|
22
|
-
} | null;
|
|
23
17
|
capability: {
|
|
24
18
|
eligible: boolean;
|
|
25
19
|
reason: string | null;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import { type Address } from "viem";
|
|
2
2
|
import type { Asset, SelectedAsset } from "../types/assets";
|
|
3
|
-
import type { SpiceSupplyProps } from "../types/supply";
|
|
4
3
|
import { type PendingDepositRecord } from "../utils/pendingDeposit";
|
|
5
4
|
import type { ExecutionRunner } from "./runner";
|
|
6
5
|
export declare function reconcileFundedAction(record: PendingDepositRecord): Promise<string>;
|
|
7
|
-
export declare function getFundedPlanError(record: PendingDepositRecord | undefined, sourceSpendCap: bigint, minimumDestinationAmount?: bigint): string | null;
|
|
8
|
-
export declare function acceptUpdatedFundedQuote(params: {
|
|
9
|
-
record: PendingDepositRecord;
|
|
10
|
-
sourceSpendCap: bigint;
|
|
11
|
-
minimumDestinationAmount: bigint;
|
|
12
|
-
actionDefinition: string;
|
|
13
|
-
buildActionCalls: SpiceSupplyProps["buildActionCalls"];
|
|
14
|
-
assertCurrent: () => void;
|
|
15
|
-
}): Promise<void>;
|
|
16
6
|
export declare function executeFundedPlan(params: {
|
|
17
7
|
asset?: Asset;
|
|
18
8
|
embedded: Address;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SelectedAsset } from "../types/assets";
|
|
2
2
|
import { type PendingDepositRecord } from "../utils/pendingDeposit";
|
|
3
|
-
export declare function usePendingAction(embedded: string | null | undefined, purpose: string
|
|
3
|
+
export declare function usePendingAction(embedded: string | null | undefined, purpose: string): {
|
|
4
4
|
record: PendingDepositRecord | undefined;
|
|
5
5
|
selection: SelectedAsset | undefined;
|
|
6
6
|
error: string | undefined;
|
|
@@ -44,12 +44,6 @@ export declare function useSpiceLock(params: UseSpiceLockParams): {
|
|
|
44
44
|
metadataError: string | null;
|
|
45
45
|
canExecute: boolean;
|
|
46
46
|
selectedAsset: SelectedAsset | null;
|
|
47
|
-
fundingQuoteReview: {
|
|
48
|
-
previousMinimum: bigint;
|
|
49
|
-
minimum: bigint;
|
|
50
|
-
accepting: boolean;
|
|
51
|
-
accept: () => Promise<void>;
|
|
52
|
-
} | null;
|
|
53
47
|
capability: {
|
|
54
48
|
eligible: boolean;
|
|
55
49
|
reason: string | null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type ResolvedSwap } from "@spicenet-io/spiceflow-core";
|
|
2
1
|
import { type Address } from "viem";
|
|
3
2
|
import { type PaymentResult, type SupplyStep } from "../components/SpiceSupply/lib/executors";
|
|
4
3
|
import type { Asset, SelectedAsset } from "../types/assets";
|
|
@@ -19,12 +18,6 @@ export interface UseSpiceSupplyParams extends Pick<SpiceSupplyProps, "destinatio
|
|
|
19
18
|
}
|
|
20
19
|
export declare function useSpiceSupply(params: UseSpiceSupplyParams): {
|
|
21
20
|
selectedAsset: SelectedAsset | null;
|
|
22
|
-
fundingQuoteReview: {
|
|
23
|
-
previousMinimum: bigint;
|
|
24
|
-
minimum: bigint;
|
|
25
|
-
accepting: boolean;
|
|
26
|
-
accept: () => Promise<void>;
|
|
27
|
-
} | null;
|
|
28
21
|
capability: {
|
|
29
22
|
eligible: boolean;
|
|
30
23
|
reason: string | null;
|
|
@@ -44,7 +37,7 @@ export declare function useSpiceSupply(params: UseSpiceSupplyParams): {
|
|
|
44
37
|
error: string | null;
|
|
45
38
|
};
|
|
46
39
|
quote: {
|
|
47
|
-
resolvedSwap: ResolvedSwap | null;
|
|
40
|
+
resolvedSwap: import("@spicenet-io/spiceflow-core").ResolvedSwap | null;
|
|
48
41
|
inputAmount?: bigint | null;
|
|
49
42
|
estimatedOutput: string | null;
|
|
50
43
|
hasSourceConversion: boolean;
|
|
@@ -67,7 +60,7 @@ export declare function useSpiceSupply(params: UseSpiceSupplyParams): {
|
|
|
67
60
|
isDirect: boolean;
|
|
68
61
|
needsSwap: boolean;
|
|
69
62
|
selectedIsEquivalent: boolean;
|
|
70
|
-
sourceSwap: ResolvedSwap | null;
|
|
63
|
+
sourceSwap: import("@spicenet-io/spiceflow-core").ResolvedSwap | null;
|
|
71
64
|
sourceExactOutputSwap: import("..").ResolvedExactOutputSwap | null;
|
|
72
65
|
pivot: import("../types/supply").PivotRoute | null;
|
|
73
66
|
};
|
|
@@ -49,7 +49,6 @@ export declare function resolveInputSupplySwapQuote(params: {
|
|
|
49
49
|
tokenIn: Address;
|
|
50
50
|
tokenOut: Address;
|
|
51
51
|
amountIn: bigint;
|
|
52
|
-
selectedSwap?: ResolvedSwap;
|
|
53
52
|
maxSlippage?: number;
|
|
54
53
|
liquidityVenues?: LiquidityVenuesConfig;
|
|
55
54
|
resolveInputSwap?: LiquidityVenue["resolve"];
|