@spicenet-io/spiceflow-ui 4.0.13-next.5 → 4.0.14
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 +0 -3
- package/dist/components/SpiceLock/index.d.ts +0 -1
- package/dist/components/SpiceLock/lib/executors.d.ts +0 -1
- package/dist/components/SpiceSupply/lib/executors.d.ts +1 -1
- package/dist/components/SpiceWithdraw/lib/executors.d.ts +1 -1
- package/dist/components/SpiceWithdraw/lib/feePreview.d.ts +0 -1
- package/dist/components/SpiceWithdraw/lib/helpers.d.ts +0 -2
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/useSupplyAssets.d.ts +2 -8
- package/dist/index.cjs.js +8 -8
- package/dist/index.d.ts +4 -6
- package/dist/index.js +12 -12
- package/dist/themes/default.d.ts +0 -1
- package/dist/types/assets.d.ts +0 -1
- package/dist/types/authorization.d.ts +0 -4
- package/dist/types/deposit.d.ts +2 -19
- package/dist/types/index.d.ts +1 -1
- package/dist/types/lock.d.ts +1 -1
- package/dist/types/ui.d.ts +0 -9
- package/dist/types/wallet.d.ts +0 -28
- package/dist/types/withdraw.d.ts +0 -2
- package/dist/utils/crossChainRouter/liquidityVenues.d.ts +0 -5
- package/dist/utils/logos.d.ts +0 -2
- package/dist/utils/pendingDeposit.d.ts +0 -1
- package/dist/utils/rollupBalances.d.ts +0 -1
- package/package.json +7 -5
- package/dist/components/SpiceDeposit/parts/ModalHeader.d.ts +0 -5
- package/dist/components/SpiceSupply/parts/SupplyEstimate.d.ts +0 -4
- package/dist/components/index.d.ts +0 -5
- package/dist/hooks/useSpiceAction.d.ts +0 -49
- package/dist/types/configs.d.ts +0 -2
- package/dist/utils/crossChainRouter/algebra.d.ts +0 -146
- /package/dist/{privy-D2mpwstS.js → privy-Ds5DCgFX.js} +0 -0
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-Ds5DCgFX.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};
|
|
@@ -7,7 +7,6 @@ export interface CustomSectionItem {
|
|
|
7
7
|
label: string;
|
|
8
8
|
displayValue: string;
|
|
9
9
|
valueColor?: "green" | "red" | "default";
|
|
10
|
-
onClick?: () => void;
|
|
11
10
|
}
|
|
12
11
|
export interface CustomSection {
|
|
13
12
|
title: string;
|
|
@@ -53,6 +52,4 @@ export interface AccountDisplayProps {
|
|
|
53
52
|
onCompleteDeposit?: (deposit: VerifiedPendingDeposit) => void;
|
|
54
53
|
showModeToggle?: boolean;
|
|
55
54
|
defaultMode?: "7702" | "non7702";
|
|
56
|
-
alwaysShowEmbeddedIdle?: boolean;
|
|
57
|
-
showDisconnect?: boolean;
|
|
58
55
|
}
|
|
@@ -18,7 +18,6 @@ export type LockExecutorContext = {
|
|
|
18
18
|
requiresRelayerFeeEstimate: boolean;
|
|
19
19
|
address: Address | undefined;
|
|
20
20
|
embeddedWalletAddress: Address | undefined;
|
|
21
|
-
providerEmbeddedAddress: Address | undefined;
|
|
22
21
|
externalWallet: {
|
|
23
22
|
getEthereumProvider: () => Promise<any>;
|
|
24
23
|
} | null | undefined;
|
|
@@ -64,7 +64,7 @@ export type ExecutorContext = {
|
|
|
64
64
|
spiceDepositSubmittedRef: MutableRefObject<boolean>;
|
|
65
65
|
abortControllerRef: MutableRefObject<AbortController | null>;
|
|
66
66
|
};
|
|
67
|
-
} & Pick<SpiceSupplyProps, "destinationToken" | "buildActionCalls" | "feeExecutionMode" | "buildSpicenetBatch" | "onPayExecute" | "onSuccess"
|
|
67
|
+
} & Pick<SpiceSupplyProps, "destinationToken" | "buildActionCalls" | "feeExecutionMode" | "buildSpicenetBatch" | "onPayExecute" | "onSuccess">;
|
|
68
68
|
export declare function executeSupply(ctx: ExecutorContext): Promise<void>;
|
|
69
69
|
export declare function executeNon7702Supply(ctx: ExecutorContext, signal?: AbortSignal): Promise<void>;
|
|
70
70
|
export declare function executeDirectExternalAction(ctx: ExecutorContext): Promise<`0x${string}` | undefined>;
|
|
@@ -29,6 +29,6 @@ export type WithdrawExecutorContext = {
|
|
|
29
29
|
};
|
|
30
30
|
executionContextRef: MutableRefObject<WithdrawalExecutionContext | null>;
|
|
31
31
|
isMountedRef: MutableRefObject<boolean>;
|
|
32
|
-
} & Pick<SpiceWithdrawProps, "onWithdrawExecute" | "onWithdrawSuccess" | "
|
|
32
|
+
} & Pick<SpiceWithdrawProps, "onWithdrawExecute" | "onWithdrawSuccess" | "buildSpicenetBatch">;
|
|
33
33
|
export declare function executeWithdraw(ctx: WithdrawExecutorContext): Promise<void>;
|
|
34
34
|
export declare function retryWithdraw(ctx: WithdrawExecutorContext): Promise<void>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { FeeEstimateSummary } from "@spicenet-io/spiceflow-core";
|
|
2
1
|
import type { ChainBatch } from "../../../types/authorization";
|
|
3
2
|
export declare function normalizeTokenLabel(value?: string | null): string;
|
|
4
3
|
export declare function formatTokenAmount(rawAmount: bigint, decimals: number): string;
|
|
5
4
|
export declare function scaleAmountBetweenDecimals(amount: bigint, fromDecimals: number, toDecimals: number): bigint;
|
|
6
5
|
export declare function estimateUsd(amount: number, symbol?: string): string;
|
|
7
6
|
export declare function buildWithdrawFeeEstimateKey(batches: ChainBatch[], tokenAddress?: string | null): string | null;
|
|
8
|
-
export declare function getFeeAdjustedWithdrawFunding(feeEstimate: FeeEstimateSummary, fallbackChainId: number): bigint | null;
|
|
@@ -10,4 +10,4 @@ export { SearchInput } from "./SearchInput";
|
|
|
10
10
|
export type { SearchInputProps } from "./SearchInput";
|
|
11
11
|
export { ChevronIcon, CheckIcon } from "./icons";
|
|
12
12
|
export type { IconProps } from "./icons";
|
|
13
|
-
export type { ButtonProps, InputProps,
|
|
13
|
+
export type { ButtonProps, InputProps, SpinnerProps, StatusBannerProps, StatusBannerSize, StatusVariant, CloseIconProps, DetailRowProps, AddFundsLinkProps, } from "../../types/ui";
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -19,5 +19,3 @@ export type { PartnerWhitelistCheckResponse, UseIsUserWhitelistedOptions, } from
|
|
|
19
19
|
export { useSupplyAssets, isSupportedSupplyAsset } from "./useSupplyAssets";
|
|
20
20
|
export { useSupplyQuote, resolveInputSupplySwapQuote } from "./useSupplyQuote";
|
|
21
21
|
export type { UseSupplyQuoteOpts, SupplyQuoteResult } from "./useSupplyQuote";
|
|
22
|
-
export { useSpiceAction } from "./useSpiceAction";
|
|
23
|
-
export type { SpiceActionQuote, SpiceActionSource, UseSpiceActionOptions, UseSpiceActionResult, } from "./useSpiceAction";
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { type Address } from "viem";
|
|
2
2
|
import type { Asset } from "../types/assets";
|
|
3
|
-
|
|
4
|
-
type WalletSourcedAsset = Asset & {
|
|
5
|
-
_fundingWallet: FundingWallet;
|
|
6
|
-
};
|
|
7
|
-
export declare function isSupportedSupplyAsset(asset: Pick<Asset, "address" | "chainTokens"> & Partial<Pick<Asset, "chainId" | "symbol">>, supportedSourceAssets?: string[]): boolean;
|
|
3
|
+
export declare function isSupportedSupplyAsset(asset: Pick<Asset, "address" | "chainTokens">, supportedSourceAssets?: string[]): boolean;
|
|
8
4
|
type DestinationToken = {
|
|
9
5
|
address: Address;
|
|
10
6
|
decimals: number;
|
|
@@ -18,14 +14,12 @@ export declare function useSupplyAssets(opts: {
|
|
|
18
14
|
supportedSourceAssets?: string[];
|
|
19
15
|
sourceChains?: number[];
|
|
20
16
|
enabled: boolean;
|
|
21
|
-
includeAllFundingWallets?: boolean;
|
|
22
17
|
}): {
|
|
23
18
|
displayAssets: (Asset & {
|
|
24
19
|
_source: "wallet" | "spice";
|
|
25
|
-
_fundingWallet?: FundingWallet;
|
|
26
20
|
})[];
|
|
27
21
|
filteredSpiceAssets: Asset[];
|
|
28
|
-
walletAssets:
|
|
22
|
+
walletAssets: Asset[];
|
|
29
23
|
embeddedWalletAddress: `0x${string}` | undefined;
|
|
30
24
|
externalAddress: `0x${string}` | undefined;
|
|
31
25
|
isNon7702: boolean;
|