@spicenet-io/spiceflow-ui 4.10.0-next.0 → 4.10.0-next.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.
- package/dist/auth-privy.js +1 -1
- package/dist/components/AccountDisplay/types.d.ts +2 -2
- package/dist/components/SpiceSupply/lib/controlledFunding.d.ts +2 -0
- package/dist/components/SpiceSupply/lib/externalAction.d.ts +3 -1
- package/dist/execution/sourceFunding.d.ts +1 -0
- package/dist/hooks/useSourceFundingConversion.d.ts +1 -1
- package/dist/hooks/useSpiceSupply.d.ts +1 -1
- package/dist/hooks/useSupplyAssets.d.ts +2 -0
- package/dist/index.cjs.js +7 -7
- package/dist/index.js +7 -7
- package/dist/{privy-D5qswtTm.js → privy-CPjsWYyb.js} +1 -1
- package/dist/types/assets.d.ts +1 -0
- package/dist/types/supply.d.ts +1 -0
- package/package.json +1 -1
package/dist/auth-privy.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{P as g}from"./privy-
|
|
2
|
+
import{P as g}from"./privy-CPjsWYyb.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};
|
|
@@ -4,14 +4,14 @@ import type React from "react";
|
|
|
4
4
|
export interface CustomSectionItem {
|
|
5
5
|
tokenSymbol: string;
|
|
6
6
|
tokenLogoURI?: string;
|
|
7
|
-
label:
|
|
7
|
+
label: React.ReactNode;
|
|
8
8
|
displayValue: string;
|
|
9
9
|
valueColor?: "green" | "red" | "default";
|
|
10
10
|
}
|
|
11
11
|
export interface CustomSection {
|
|
12
12
|
title: string;
|
|
13
13
|
items: CustomSectionItem[];
|
|
14
|
-
totalValue
|
|
14
|
+
totalValue?: number;
|
|
15
15
|
}
|
|
16
16
|
export interface SpiceAsset {
|
|
17
17
|
tokenAddress: string;
|
|
@@ -43,8 +43,10 @@ export interface FundingRecord {
|
|
|
43
43
|
}
|
|
44
44
|
export declare function controlledFundingProgress(record: FundingRecord, ctx: ExecutorContext): SourceFundingProgress;
|
|
45
45
|
export declare function readControlledFunding(scope: string): FundingRecord | null;
|
|
46
|
+
export declare function reconcileControlledFunding(scope: string): Promise<boolean>;
|
|
46
47
|
export declare function executeWithSourceFunding(params: {
|
|
47
48
|
scope: string;
|
|
49
|
+
recovery?: "resume" | "balance";
|
|
48
50
|
ctx: ExecutorContext;
|
|
49
51
|
run: (ctx: ExecutorContext) => Promise<void>;
|
|
50
52
|
isCurrent: () => boolean;
|
|
@@ -49,13 +49,15 @@ export interface ExternalActionRecord {
|
|
|
49
49
|
export declare function externalActionScope(network: string, chainId: number, external: string, embedded: string, recoveryKey: string): string;
|
|
50
50
|
export declare function readExternalAction(scope: string): ExternalActionRecord | null;
|
|
51
51
|
export declare function externalActionProgress(record: ExternalActionRecord): ExternalActionProgress;
|
|
52
|
+
export declare function reconcileExternalFunding(scope: string): Promise<boolean>;
|
|
52
53
|
export declare function clearCompletedExternalAction(scope: string): void;
|
|
53
54
|
export declare function buildExternalDeliveryCalls(amount: bigint, context: BuildActionCallsContext, recipient: Address): Call[];
|
|
54
55
|
export declare function executeExternalActionSupply(params: {
|
|
55
56
|
scope: string;
|
|
57
|
+
recovery?: "resume" | "balance";
|
|
56
58
|
ctx: ExecutorContext;
|
|
57
59
|
buildActionCalls: SpiceSupplyProps["buildActionCalls"];
|
|
58
|
-
onRecord: (record: ExternalActionRecord) => void;
|
|
60
|
+
onRecord: (record: ExternalActionRecord | null) => void;
|
|
59
61
|
isCurrent?: () => boolean;
|
|
60
62
|
}): Promise<void>;
|
|
61
63
|
export {};
|
|
@@ -15,7 +15,7 @@ export declare function useSourceFundingConversion(params: {
|
|
|
15
15
|
plan: import("../utils/crossChainRouter/sourceFundingQuote").SourceFundingPlan | null;
|
|
16
16
|
key: string;
|
|
17
17
|
virtualSelectedAsset: SelectedAsset | null;
|
|
18
|
-
prepare: (requiredBridgeAmount?: bigint) => Promise<SourceFundingExecutionPlan>;
|
|
18
|
+
prepare: (requiredBridgeAmount?: bigint, refresh?: boolean) => Promise<SourceFundingExecutionPlan>;
|
|
19
19
|
getPrepared: (amount?: bigint) => SourceFundingExecutionPlan | null;
|
|
20
20
|
error: string | null;
|
|
21
21
|
isCurrent: () => boolean;
|
|
@@ -10,7 +10,7 @@ import type { LiquidityVenue } from "../utils/crossChainRouter/liquidityVenues";
|
|
|
10
10
|
import type { SpiceSupplyProps } from "../types/supply";
|
|
11
11
|
import type { Asset, SelectedAsset } from "../types/assets";
|
|
12
12
|
import type { FeePreview } from "../types/ui";
|
|
13
|
-
export interface UseSpiceSupplyParams extends Pick<SpiceSupplyProps, "destinationToken" | "sourceChains" | "supportedSourceAssets" | "includeExternalWalletAssets" | "includeCrossChainEmbeddedAssets" | "sourceFundingRecoveryKey" | "feeOnlyAction" | "buildActionCalls" | "feeExecutionMode" | "buildSpicenetBatch" | "onPayExecute" | "resolveExactOutputSwap" | "amountDirection" | "onSuccess" | "onError"> {
|
|
13
|
+
export interface UseSpiceSupplyParams extends Pick<SpiceSupplyProps, "destinationToken" | "sourceChains" | "supportedSourceAssets" | "includeExternalWalletAssets" | "includeCrossChainEmbeddedAssets" | "sourceFundingRecoveryKey" | "sourceFundingRecovery" | "feeOnlyAction" | "buildActionCalls" | "feeExecutionMode" | "buildSpicenetBatch" | "onPayExecute" | "resolveExactOutputSwap" | "amountDirection" | "onSuccess" | "onError"> {
|
|
14
14
|
enabled: boolean;
|
|
15
15
|
actionExecution?: ExternalActionExecution;
|
|
16
16
|
selectedAsset: SelectedAsset | null;
|
|
@@ -24,6 +24,8 @@ export declare function useSupplyAssets(opts: {
|
|
|
24
24
|
includeCrossChainEmbeddedAssets?: boolean;
|
|
25
25
|
}): {
|
|
26
26
|
displayAssets: Asset[];
|
|
27
|
+
loading: boolean;
|
|
28
|
+
error: string | null;
|
|
27
29
|
filteredSpiceAssets: Asset[];
|
|
28
30
|
walletAssets: Asset[];
|
|
29
31
|
embeddedWalletAddress: `0x${string}` | undefined;
|