@spicenet-io/spiceflow-ui 3.3.5 → 3.3.7

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 (82) hide show
  1. package/dist/Button-CkSwrat1.js +2 -0
  2. package/dist/Button-jx5yrM-s.js +2 -0
  3. package/dist/auth-dynamic.cjs.js +1 -1
  4. package/dist/auth-dynamic.js +1 -1
  5. package/dist/auth-privy.cjs.js +1 -1
  6. package/dist/auth-privy.js +1 -1
  7. package/dist/components/AccountDisplay/AccountCustomSection.d.ts +2 -2
  8. package/dist/components/AccountDisplay/AccountDisplay.d.ts +1 -1
  9. package/dist/components/AccountDisplay/AccountHeader.d.ts +1 -1
  10. package/dist/components/AccountDisplay/AccountIdleBalances.d.ts +2 -2
  11. package/dist/components/AccountDisplay/AccountPanel.d.ts +2 -2
  12. package/dist/components/AccountDisplay/AccountPendingDeposits.d.ts +1 -1
  13. package/dist/components/AccountDisplay/index.d.ts +2 -2
  14. package/dist/{types/account.d.ts → components/AccountDisplay/types.d.ts} +2 -3
  15. package/dist/components/SpiceBalance/SpiceBalance.d.ts +1 -1
  16. package/dist/components/SpiceBalance/index.d.ts +1 -1
  17. package/dist/{types/balance.d.ts → components/SpiceBalance/types.d.ts} +1 -1
  18. package/dist/components/SpiceDeposit/executors.d.ts +64 -0
  19. package/dist/components/SpiceDeposit/feePreview.d.ts +15 -0
  20. package/dist/components/SpiceDeposit/views/AssetChooserList.d.ts +21 -0
  21. package/dist/components/SpiceDeposit/views/DepositSubtitle.d.ts +9 -0
  22. package/dist/components/SpiceLock/LockConfirmationPanel.d.ts +4 -0
  23. package/dist/components/SpiceLock/LockDurationSlider.d.ts +4 -0
  24. package/dist/components/SpiceLock/LockExpiryRow.d.ts +4 -0
  25. package/dist/components/{SpiceLockModal/SpiceLockModal.d.ts → SpiceLock/SpiceLock.d.ts} +1 -1
  26. package/dist/components/SpiceLock/VotingPowerRow.d.ts +4 -0
  27. package/dist/components/SpiceLock/executors.d.ts +54 -0
  28. package/dist/components/SpiceLock/helpers.d.ts +31 -0
  29. package/dist/components/SpiceLock/index.d.ts +2 -0
  30. package/dist/components/SpicePay/SpicePay.d.ts +12 -2
  31. package/dist/components/SpiceSupply/DestinationEstimate.d.ts +1 -1
  32. package/dist/components/SpiceSupply/buildBatches.d.ts +35 -0
  33. package/dist/components/SpiceSupply/executors.d.ts +73 -0
  34. package/dist/components/SpiceSupply/feePreview.d.ts +45 -0
  35. package/dist/components/SpiceWithdraw/executors.d.ts +50 -0
  36. package/dist/components/SpiceWithdraw/helpers.d.ts +6 -0
  37. package/dist/components/SpiceWithdraw/views/BalancePopover.d.ts +15 -0
  38. package/dist/components/SpiceWithdraw/views/WithdrawDetailsPanel.d.ts +39 -0
  39. package/dist/hooks/index.d.ts +4 -4
  40. package/dist/hooks/{useLockDuration/index.d.ts → useLockDuration.d.ts} +1 -1
  41. package/dist/hooks/{useSpiceAssets/index.d.ts → useSpiceAssets.d.ts} +1 -1
  42. package/dist/hooks/useSpiceBrand.d.ts +9 -1
  43. package/dist/hooks/{useGaslessExecution/index.d.ts → useSpiceExecution.d.ts} +2 -2
  44. package/dist/hooks/{useStatus/index.d.ts → useStatus.d.ts} +1 -1
  45. package/dist/hooks/{useAssets/index.d.ts → useWalletBalances.d.ts} +1 -1
  46. package/dist/index.cjs.js +12 -12
  47. package/dist/index.d.ts +13 -11
  48. package/dist/index.js +12 -12
  49. package/dist/{providerWallet-CIbQEcIP.js → providerWallet-6FpyLYqw.js} +1 -1
  50. package/dist/{providerWallet-CVHyIqiI.js → providerWallet-Ds1PM0vC.js} +1 -1
  51. package/dist/providers/SpiceFlowProvider.d.ts +2 -0
  52. package/dist/providers/dynamic.d.ts +3 -0
  53. package/dist/providers/privy.d.ts +3 -0
  54. package/dist/types/deposit.d.ts +0 -3
  55. package/dist/types/index.d.ts +0 -4
  56. package/dist/types/lock.d.ts +0 -2
  57. package/dist/types/theme.d.ts +20 -90
  58. package/dist/types/ui.d.ts +1 -1
  59. package/dist/types/wallet.d.ts +5 -24
  60. package/dist/types/withdraw.d.ts +0 -1
  61. package/dist/utils/addresses.d.ts +1 -0
  62. package/dist/utils/chains/index.d.ts +7 -0
  63. package/dist/utils/crossChainRouter/executeSwapThenAction.d.ts +1 -1
  64. package/dist/utils/errors.d.ts +11 -1
  65. package/dist/utils/fees.d.ts +18 -1
  66. package/dist/utils/relayer/index.d.ts +2 -6
  67. package/package.json +5 -5
  68. package/dist/Button-BXgazUZN.js +0 -2
  69. package/dist/Button-d9wfO_xs.js +0 -2
  70. package/dist/auth-dynamic.d.ts +0 -3
  71. package/dist/auth-privy.d.ts +0 -3
  72. package/dist/components/SpiceLockModal/LockSubComponents.d.ts +0 -7
  73. package/dist/components/SpiceLockModal/index.d.ts +0 -1
  74. package/dist/errors.d.ts +0 -8
  75. package/dist/types/pay.d.ts +0 -30
  76. package/dist/types/rollup.d.ts +0 -50
  77. package/dist/types/unified.d.ts +0 -85
  78. package/dist/utils/abis/spicenet.d.ts +0 -115
  79. package/dist/utils/abis/spicenetWalletManager.d.ts +0 -566
  80. /package/dist/hooks/{useAssetInput/index.d.ts → useAssetInput.d.ts} +0 -0
  81. /package/dist/utils/{loadFonts.d.ts → fonts.d.ts} +0 -0
  82. /package/dist/utils/{resolveTheme.d.ts → theme.d.ts} +0 -0
@@ -0,0 +1,73 @@
1
+ import type { Dispatch, MutableRefObject, SetStateAction } from "react";
2
+ import { type Address } from "viem";
3
+ import { type FeeEstimateSummary } from "@spicenet-io/spiceflow-core";
4
+ import type { ChainBatch } from "../../types/authorization";
5
+ import type { SelectedAsset } from "../../types/assets";
6
+ import type { SpiceSupplyProps } from "../../types/supply";
7
+ import type { ResolvedExactOutputSwap } from "../../utils/swapQuotes";
8
+ import type { GaslessExecutionOptions, GaslessProgress } from "../../hooks/useSpiceExecution";
9
+ export type SupplyStep = "idle" | "signing-delegation" | "signing-intent" | "submitting" | "executing" | "success" | "error";
10
+ export type PaymentResult = {
11
+ status: "processing" | "success" | "failed";
12
+ txHash?: string;
13
+ error?: string;
14
+ };
15
+ type EstimateGaslessFn = (chainBatches: ChainBatch[], tokenAddress: string, tokenTransferAmount: bigint, options?: GaslessExecutionOptions) => Promise<FeeEstimateSummary>;
16
+ type ExecuteGaslessFn = (chainBatches: ChainBatch[], tokenAddress: string, tokenTransferAmount: bigint, onProgress?: (progress: GaslessProgress) => void, signal?: AbortSignal, options?: GaslessExecutionOptions) => Promise<string>;
17
+ type BuildPayBatchesFn = (options?: {
18
+ actionAmountOverride?: bigint;
19
+ fundingAmountOverride?: bigint;
20
+ }) => Promise<ChainBatch[]>;
21
+ type BuildSupplyBatchesFn = (spicenetFundingAmount?: bigint) => Promise<ChainBatch[]>;
22
+ type EstimateRequiredGrossFundingFn = (requiredNetFunding: bigint, buildBatches: (grossFundingAmount: bigint) => ChainBatch[] | Promise<ChainBatch[]>, fundingToken: Address, gaslessOptions?: Pick<GaslessExecutionOptions, "useCustomTransfers" | "userOverride">) => Promise<bigint>;
23
+ export interface ExecutorContext {
24
+ selectedAsset: SelectedAsset | null;
25
+ parsedAmount: number;
26
+ currentPaymentAmount: string;
27
+ isInsufficientBalance: boolean;
28
+ isPayMode: boolean;
29
+ isNon7702: boolean;
30
+ isSourceDestToken: boolean;
31
+ needsSwap: boolean;
32
+ exactOutputSwap: ResolvedExactOutputSwap | null;
33
+ selectedIsEquivalent: boolean;
34
+ resolvedTokenIn: Address | null;
35
+ embeddedWalletAddress: string | null | undefined;
36
+ providerEmbeddedAddress: string | null | undefined;
37
+ externalWallet: {
38
+ getEthereumProvider: () => Promise<any>;
39
+ } | null | undefined;
40
+ externalWalletAddress: string | null | undefined;
41
+ address: string | null | undefined;
42
+ isConnected: boolean;
43
+ ready: boolean;
44
+ authenticated: boolean;
45
+ provider: string | null | undefined;
46
+ resolvedChainId: number;
47
+ executionTokenAddress: Address;
48
+ destinationToken: SpiceSupplyProps["destinationToken"];
49
+ buildActionCalls: SpiceSupplyProps["buildActionCalls"];
50
+ buildSpicenetBatch: SpiceSupplyProps["buildSpicenetBatch"];
51
+ onPayExecute?: SpiceSupplyProps["onPayExecute"];
52
+ onError?: (err: Error) => void;
53
+ buildPayChainBatches: BuildPayBatchesFn;
54
+ buildSupplyChainBatches: BuildSupplyBatchesFn;
55
+ estimateGasless: EstimateGaslessFn;
56
+ executeGasless: ExecuteGaslessFn;
57
+ estimateRequiredGrossFunding: EstimateRequiredGrossFundingFn;
58
+ handleProgressCallback: (progress: GaslessProgress) => void;
59
+ setError: Dispatch<SetStateAction<string | null>>;
60
+ setStep: Dispatch<SetStateAction<SupplyStep>>;
61
+ setStatusMsg: Dispatch<SetStateAction<string>>;
62
+ setTxHash: Dispatch<SetStateAction<string | null>>;
63
+ setIsExecuting: Dispatch<SetStateAction<boolean>>;
64
+ setShowStatusPanel: Dispatch<SetStateAction<boolean>>;
65
+ setPaymentResult: Dispatch<SetStateAction<PaymentResult | null>>;
66
+ spiceDepositSubmittedRef: MutableRefObject<boolean>;
67
+ abortControllerRef: MutableRefObject<AbortController | null>;
68
+ }
69
+ export declare function executeSupply(ctx: ExecutorContext): Promise<void>;
70
+ export declare function executeDirectExternalAction(ctx: ExecutorContext): Promise<`0x${string}` | undefined>;
71
+ export declare function executeNon7702Pay(ctx: ExecutorContext): Promise<string>;
72
+ export declare function executePay(ctx: ExecutorContext): Promise<void>;
73
+ export {};
@@ -0,0 +1,45 @@
1
+ import { type Address } from "viem";
2
+ import { type FeeEstimateSummary } from "@spicenet-io/spiceflow-core";
3
+ import type { FeePreview } from "../../types/ui";
4
+ import type { ChainBatch } from "../../types/authorization";
5
+ import type { SelectedAsset } from "../../types/assets";
6
+ import type { SpiceSupplyProps } from "../../types/supply";
7
+ import type { ResolvedExactOutputSwap } from "../../utils/swapQuotes";
8
+ import type { ResolvedSwap } from "@spicenet-io/spiceflow-core";
9
+ import type { GaslessExecutionOptions } from "../../hooks/useSpiceExecution";
10
+ type EstimateGaslessFn = (chainBatches: ChainBatch[], tokenAddress: string, tokenTransferAmount: bigint, options?: GaslessExecutionOptions) => Promise<FeeEstimateSummary>;
11
+ type BuildPayBatchesFn = (options?: {
12
+ actionAmountOverride?: bigint;
13
+ fundingAmountOverride?: bigint;
14
+ }) => Promise<ChainBatch[]>;
15
+ type BuildSupplyBatchesFn = (spicenetFundingAmount?: bigint) => Promise<ChainBatch[]>;
16
+ type EstimateRequiredGrossFundingFn = (requiredNetFunding: bigint, buildBatches: (grossFundingAmount: bigint) => ChainBatch[] | Promise<ChainBatch[]>, fundingToken: Address, gaslessOptions?: Pick<GaslessExecutionOptions, "useCustomTransfers" | "userOverride">) => Promise<bigint>;
17
+ export interface FeePreviewContext {
18
+ selectedAsset: SelectedAsset | null;
19
+ isPayMode: boolean;
20
+ parsedAmount: number;
21
+ needsSwap: boolean;
22
+ exactOutputSwap: ResolvedExactOutputSwap | null;
23
+ isNon7702: boolean;
24
+ isSourceDestToken: boolean;
25
+ currentPaymentAmount: string;
26
+ destinationToken: SpiceSupplyProps["destinationToken"];
27
+ resolvedTokenIn: Address | null;
28
+ embeddedWalletAddress: string | null | undefined;
29
+ providerEmbeddedAddress: string | null | undefined;
30
+ resolvedChainId: number;
31
+ isConnected: boolean;
32
+ address: string | null | undefined;
33
+ ready: boolean;
34
+ authenticated: boolean;
35
+ isDirect: boolean;
36
+ resolvedSwap: ResolvedSwap | null;
37
+ isQuoting: boolean;
38
+ executionTokenAddress: Address;
39
+ buildPayChainBatches: BuildPayBatchesFn;
40
+ buildSupplyChainBatches: BuildSupplyBatchesFn;
41
+ estimateGasless: EstimateGaslessFn;
42
+ estimateRequiredGrossFunding: EstimateRequiredGrossFundingFn;
43
+ }
44
+ export declare function estimateFeePreview(ctx: FeePreviewContext): Promise<FeePreview | null>;
45
+ export {};
@@ -0,0 +1,50 @@
1
+ import type { Dispatch, MutableRefObject, SetStateAction } from "react";
2
+ import { type FeeEstimateSummary } from "@spicenet-io/spiceflow-core";
3
+ import type { Address } from "viem";
4
+ import type { ChainBatch } from "../../types/authorization";
5
+ import type { DestinationToken } from "../../types/withdraw";
6
+ import type { GaslessExecutionOptions, GaslessProgress } from "../../hooks/useSpiceExecution";
7
+ export type WithdrawalExecutionContext = {
8
+ actionId: string;
9
+ intentId: string;
10
+ intentIndex: number;
11
+ totalSteps: number;
12
+ };
13
+ type EstimateGaslessFn = (chainBatches: ChainBatch[], tokenAddress: string, tokenTransferAmount: bigint, options?: GaslessExecutionOptions) => Promise<FeeEstimateSummary>;
14
+ type ExecuteGaslessFn = (chainBatches: ChainBatch[], tokenAddress: string, tokenTransferAmount: bigint, onProgress?: (progress: GaslessProgress) => void, signal?: AbortSignal, options?: GaslessExecutionOptions) => Promise<string>;
15
+ export interface WithdrawExecutorContext {
16
+ computedWithdrawBatches: ChainBatch[];
17
+ walletAddress: string | null | undefined;
18
+ recipientAddress: string | null | undefined;
19
+ selectedDestToken: DestinationToken | null;
20
+ selectedChainId: number | null;
21
+ amount: string;
22
+ receiveAmountRaw: bigint;
23
+ gasFee: bigint | null;
24
+ isNon7702: boolean;
25
+ onWithdrawExecute?: (amount: string) => Promise<void> | void;
26
+ onWithdrawSuccess?: (info: {
27
+ token: string;
28
+ amount: string;
29
+ chainId: number;
30
+ }) => void;
31
+ onWithdrawError?: (msg: string) => void;
32
+ buildSpicenetBatch?: (params: {
33
+ destinationChainId: number;
34
+ deliveryToken: Address;
35
+ deliveryAmount: bigint;
36
+ deliveryRecipient: Address;
37
+ }) => ChainBatch | null;
38
+ buildWithdrawBatches: (spicenetFundingAmount?: bigint) => ChainBatch[];
39
+ estimateGasless: EstimateGaslessFn;
40
+ executeGasless: ExecuteGaslessFn;
41
+ setIsExecuting: Dispatch<SetStateAction<boolean>>;
42
+ setExecutionError: Dispatch<SetStateAction<string | null>>;
43
+ setExecutionProgress: Dispatch<SetStateAction<GaslessProgress | null>>;
44
+ setLockedGasFee: Dispatch<SetStateAction<bigint | null>>;
45
+ executionContextRef: MutableRefObject<WithdrawalExecutionContext | null>;
46
+ isMountedRef: MutableRefObject<boolean>;
47
+ }
48
+ export declare function executeWithdraw(ctx: WithdrawExecutorContext): Promise<void>;
49
+ export declare function retryWithdraw(ctx: WithdrawExecutorContext): Promise<void>;
50
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { FeeEstimateSummary } from "@spicenet-io/spiceflow-core";
2
+ export declare function normalizeTokenLabel(value?: string | null): string;
3
+ export declare function formatTokenAmount(rawAmount: bigint, decimals: number): string;
4
+ export declare function scaleAmountBetweenDecimals(amount: bigint, fromDecimals: number, toDecimals: number): bigint;
5
+ export declare function estimateUsd(amount: number, symbol?: string): string;
6
+ export declare function getFeeAdjustedWithdrawFunding(feeEstimate: FeeEstimateSummary, fallbackChainId: number): bigint | null;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import type { ResolvedDarkPalette } from "../../../utils/theme";
3
+ interface BalancePopoverProps {
4
+ show: boolean;
5
+ position: {
6
+ top: number;
7
+ left: number;
8
+ } | null;
9
+ popoverRef: React.RefObject<HTMLDivElement>;
10
+ spiceAssets: any[] | null | undefined;
11
+ dark: boolean;
12
+ dk: ResolvedDarkPalette;
13
+ }
14
+ export declare const BalancePopover: React.FC<BalancePopoverProps>;
15
+ export {};
@@ -0,0 +1,39 @@
1
+ import React from "react";
2
+ import type { ResolvedDarkPalette } from "../../../utils/theme";
3
+ import type { Theme, CustomStyles } from "../../../types/theme";
4
+ interface WithdrawDetailsPanelProps {
5
+ show: boolean;
6
+ onToggle: () => void;
7
+ showCustomAddress: boolean;
8
+ setShowCustomAddress: React.Dispatch<React.SetStateAction<boolean>>;
9
+ customRecipient: string;
10
+ setCustomRecipient: (value: string) => void;
11
+ externalAddress: string | null | undefined;
12
+ recipientAddress: string | null | undefined;
13
+ destChainName: string;
14
+ destChainLogo: string | null;
15
+ compatibleDestinationChains: number[];
16
+ txDetailsChainSwitchRef: React.RefObject<HTMLButtonElement>;
17
+ onOpenNetworkPopover: (anchor: HTMLButtonElement | null) => void;
18
+ sourceChainLabel: string;
19
+ sourceDetailsLogo: string | null | undefined;
20
+ sourceTokenLabel: string;
21
+ amount: string;
22
+ totalSourceDebitDisplay: string;
23
+ receiveAmountDisplay: string;
24
+ destTokenSymbol: string;
25
+ shouldQuoteWithdrawGas: boolean;
26
+ estimatingFee: boolean;
27
+ feeError: string | null;
28
+ displayedGasFee: bigint | null;
29
+ selectedDestToken: {
30
+ decimals: number;
31
+ symbol: string;
32
+ } | null;
33
+ theme: Theme;
34
+ styles: CustomStyles | undefined;
35
+ dark: boolean;
36
+ dk: ResolvedDarkPalette;
37
+ }
38
+ export declare const WithdrawDetailsPanel: React.FC<WithdrawDetailsPanelProps>;
39
+ export {};
@@ -1,4 +1,4 @@
1
- export { useWalletBalances, fetchBalances } from "./useAssets";
1
+ export { useWalletBalances, fetchBalances } from "./useWalletBalances";
2
2
  export { useAssetInput } from "./useAssetInput";
3
3
  export type { UseAssetInputReturn } from "./useAssetInput";
4
4
  export { useWallet } from "./useWallet";
@@ -6,9 +6,9 @@ export type { UseWalletReturn, WalletState, WalletActions } from "./useWallet";
6
6
  export { useEmbeddedWalletAddress } from "./useEmbeddedWalletAddress";
7
7
  export { useSpiceAssets } from "./useSpiceAssets";
8
8
  export type { UseSpiceAssetsConfig, UseSpiceAssetsReturn, } from "./useSpiceAssets";
9
- export { useSpiceExecution } from "./useGaslessExecution";
10
- export { useSpiceExecution as useGaslessExecution } from "./useGaslessExecution";
11
- export type { GaslessProgress, GaslessStep, GaslessExecutionOptions, OnProgress, } from "./useGaslessExecution";
9
+ export { useSpiceExecution } from "./useSpiceExecution";
10
+ export { useSpiceExecution as useGaslessExecution } from "./useSpiceExecution";
11
+ export type { GaslessProgress, GaslessStep, GaslessExecutionOptions, OnProgress, } from "./useSpiceExecution";
12
12
  export { useLockDuration } from "./useLockDuration";
13
13
  export type { UseLockDurationReturn } from "./useLockDuration";
14
14
  export type { VerifiedPendingDeposit } from "./usePendingDeposit";
@@ -1,4 +1,4 @@
1
- import { LockDurationOption } from "../../types/lock";
1
+ import { LockDurationOption } from "../types/lock";
2
2
  export interface UseLockDurationReturn {
3
3
  selectedDurationIdx: number;
4
4
  setSelectedDurationIdx: (idx: number) => void;
@@ -1,5 +1,5 @@
1
1
  import { Address } from "viem";
2
- import { Asset } from "../../types/assets";
2
+ import { Asset } from "../types/assets";
3
3
  export interface UseSpiceAssetsConfig {
4
4
  address?: Address | string;
5
5
  supportedChains?: number[];
@@ -1,4 +1,4 @@
1
- import type { ResolvedDarkPalette } from "../utils/resolveTheme";
1
+ import type { ResolvedDarkPalette } from "../utils/theme";
2
2
  import type { Theme, SpiceTheme, CustomStyles } from "../types/theme";
3
3
  export interface UseSpiceBrandResult {
4
4
  brand: SpiceTheme | undefined;
@@ -8,5 +8,13 @@ export interface UseSpiceBrandResult {
8
8
  primaryColor: string;
9
9
  dk: ResolvedDarkPalette;
10
10
  palette: ResolvedDarkPalette;
11
+ fontFamily: string;
12
+ monoFont: string;
13
+ inputDark: boolean;
14
+ cardBg: string;
15
+ cardBorder: string;
16
+ textPrimary: string;
17
+ textSecondary: string;
18
+ subtitleText: string;
11
19
  }
12
20
  export declare function useSpiceBrand(componentStyles?: CustomStyles, componentDark?: boolean): UseSpiceBrandResult;
@@ -1,6 +1,6 @@
1
1
  import { Address } from "viem";
2
- import { ChainBatch, Call } from "../../types/authorization";
3
- import type { FeeEstimateSummary } from "../../types/unified";
2
+ import { ChainBatch, Call } from "../types/authorization";
3
+ import type { FeeEstimateSummary } from "@spicenet-io/spiceflow-core";
4
4
  export type { Call, ChainBatch };
5
5
  export type GaslessStep = "idle" | "building" | "signing-delegation" | "signing-intent" | "submitting" | "executing" | "confirming-rollup" | "success" | "error";
6
6
  export interface GaslessProgress {
@@ -1,4 +1,4 @@
1
- import { IntentStatus, SwapStep } from "../../types/status";
1
+ import { IntentStatus, SwapStep } from "../types/status";
2
2
  export interface UseStatusConfig {
3
3
  checkStepStatus: (intentId: string, stepId: number) => Promise<{
4
4
  success: boolean;
@@ -1,5 +1,5 @@
1
1
  import { Address } from "viem";
2
- import { Asset, MultiChainBalances } from "../../types/assets";
2
+ import { Asset, MultiChainBalances } from "../types/assets";
3
3
  export declare const fetchBalances: (walletAddress: Address, supportedChains?: number[]) => Promise<MultiChainBalances>;
4
4
  export interface UseAssetsConfig {
5
5
  address?: Address;