@spicenet-io/spiceflow-ui 4.9.6-consistency.3 → 4.9.6-consistency.5
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/parts/FundingQuoteReview.d.ts +6 -0
- package/dist/components/SpiceWithdraw/lib/useEmbeddedWithdraw.d.ts +6 -0
- package/dist/execution/fundedExecution.d.ts +10 -0
- package/dist/hooks/useSpiceLock.d.ts +6 -0
- package/dist/hooks/useSpiceSupply.d.ts +6 -0
- package/dist/index.cjs.js +6 -6
- package/dist/index.js +8 -8
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { UseSpiceSupplyResult } from "../../../hooks/useSpiceSupply";
|
|
2
|
+
import type { Asset } from "../../../types/assets";
|
|
3
|
+
export declare function FundingQuoteReview({ review, destination, }: {
|
|
4
|
+
review: NonNullable<UseSpiceSupplyResult["fundingQuoteReview"]>;
|
|
5
|
+
destination: Pick<Asset, "symbol" | "decimals">;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,6 +14,12 @@ 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;
|
|
17
23
|
capability: {
|
|
18
24
|
eligible: boolean;
|
|
19
25
|
reason: string | null;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { type Address } from "viem";
|
|
2
2
|
import type { Asset, SelectedAsset } from "../types/assets";
|
|
3
|
+
import type { SpiceSupplyProps } from "../types/supply";
|
|
3
4
|
import { type PendingDepositRecord } from "../utils/pendingDeposit";
|
|
4
5
|
import type { ExecutionRunner } from "./runner";
|
|
5
6
|
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>;
|
|
6
16
|
export declare function executeFundedPlan(params: {
|
|
7
17
|
asset?: Asset;
|
|
8
18
|
embedded: Address;
|
|
@@ -44,6 +44,12 @@ 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;
|
|
47
53
|
capability: {
|
|
48
54
|
eligible: boolean;
|
|
49
55
|
reason: string | null;
|
|
@@ -18,6 +18,12 @@ export interface UseSpiceSupplyParams extends Pick<SpiceSupplyProps, "destinatio
|
|
|
18
18
|
}
|
|
19
19
|
export declare function useSpiceSupply(params: UseSpiceSupplyParams): {
|
|
20
20
|
selectedAsset: SelectedAsset | null;
|
|
21
|
+
fundingQuoteReview: {
|
|
22
|
+
previousMinimum: bigint;
|
|
23
|
+
minimum: bigint;
|
|
24
|
+
accepting: boolean;
|
|
25
|
+
accept: () => Promise<void>;
|
|
26
|
+
} | null;
|
|
21
27
|
capability: {
|
|
22
28
|
eligible: boolean;
|
|
23
29
|
reason: string | null;
|