@vechain/vechain-kit 2.0.0-rc.4 → 2.0.0-rc.6
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/README.md +1 -1
- package/dist/index.cjs +202 -91
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -5
- package/dist/index.d.ts +36 -5
- package/dist/index.js +200 -93
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/{thorUtils-BlZ9nLeD.d.cts → thorUtils-IptLtkeL.d.cts} +1 -1
- package/dist/{thorUtils-BlZ9nLeD.d.ts → thorUtils-IptLtkeL.d.ts} +1 -1
- package/dist/utils/index.d.cts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactNode, ReactElement, ElementType } from 'react';
|
|
4
|
-
import { P as PrivyLoginMethod, N as NETWORK_TYPE, C as CURRENCY, a as Network, b as PrivyAppInfo, T as TokenBalance, W as Wallet, S as SmartAccount, c as ConnectionSource, E as ENSRecords, d as NFTMediaType, e as TransactionStatus, f as TransactionStatusErrorType, V as ViewFunctionResult, g as CrossAppConnectionCache } from './thorUtils-
|
|
5
|
-
export {
|
|
4
|
+
import { P as PrivyLoginMethod, N as NETWORK_TYPE, C as CURRENCY, a as Network, b as PrivyAppInfo, T as TokenBalance, W as Wallet, S as SmartAccount, c as ConnectionSource, E as ENSRecords, d as NFTMediaType, e as TransactionStatus, f as TransactionStatusErrorType, V as ViewFunctionResult, M as MultipleClausesCallParameters, g as MultipleClausesCallReturnType, h as CrossAppConnectionCache } from './thorUtils-IptLtkeL.cjs';
|
|
5
|
+
export { m as CURRENCY_SYMBOLS, k as EnhancedClause, j as ExecuteBatchWithAuthorizationSignData, i as ExecuteWithAuthorizationSignData, l as VePassportUserStatus, p as buildCallClauses, n as executeCallClause, o as executeMultipleClausesCall } from './thorUtils-IptLtkeL.cjs';
|
|
6
6
|
import { WalletListEntry, SignTypedDataParams, User } from '@privy-io/react-auth';
|
|
7
7
|
export { useMfaEnrollment, usePrivy, useSetWalletRecovery } from '@privy-io/react-auth';
|
|
8
8
|
import { WalletSource, LogLevel } from '@vechain/dapp-kit';
|
|
@@ -13,13 +13,13 @@ import { Certificate, CertificateData, TransactionClause } from '@vechain/sdk-co
|
|
|
13
13
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
14
14
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
15
15
|
import * as _vechain_sdk_network from '@vechain/sdk-network';
|
|
16
|
-
import { ThorClient, TransactionReceipt,
|
|
16
|
+
import { ThorClient, TransactionReceipt, EventLogs, FilterEventLogsOptions } from '@vechain/sdk-network';
|
|
17
17
|
export { ThorClient } from '@vechain/sdk-network';
|
|
18
18
|
import { z } from 'zod';
|
|
19
19
|
import { Options } from 'browser-image-compression';
|
|
20
20
|
import { ButtonProps, StackProps, IconButtonProps, PropsOf, VStack, ImageProps, CardProps, CardBodyProps, CardFooterProps, ThemeTypings } from '@chakra-ui/react';
|
|
21
21
|
import { ExtractAbiFunctionNames, AbiParametersToPrimitiveTypes } from 'abitype';
|
|
22
|
-
import { Abi } from 'viem';
|
|
22
|
+
import { Abi, ContractFunctionParameters, decodeEventLog as decodeEventLog$1, ContractEventName } from 'viem';
|
|
23
23
|
import { IconType } from 'react-icons';
|
|
24
24
|
import { UseFormRegister } from 'react-hook-form';
|
|
25
25
|
|
|
@@ -1786,6 +1786,12 @@ declare const useCallClause: <TAbi extends Abi, TMethod extends ExtractAbiFuncti
|
|
|
1786
1786
|
args: AbiParametersToPrimitiveTypes<ExtractViewFunction<TAbi, TMethod>["inputs"], "inputs">;
|
|
1787
1787
|
queryOptions?: Omit<UseQueryOptions<ViewFunctionResult<TAbi, TMethod>, unknown, TData, ReturnType<typeof getCallClauseQueryKeyWithArgs<TAbi, TMethod>>>, "queryKey" | "queryFn">;
|
|
1788
1788
|
}) => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<TData>, unknown>;
|
|
1789
|
+
declare const useMultipleClausesCall: <contracts extends readonly ContractFunctionParameters[], allowFailure extends boolean = false>({ thor, calls, queryKey, enabled, }: {
|
|
1790
|
+
thor: ThorClient;
|
|
1791
|
+
calls: MultipleClausesCallParameters<contracts, allowFailure>;
|
|
1792
|
+
queryKey: string[];
|
|
1793
|
+
enabled?: boolean;
|
|
1794
|
+
}) => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<MultipleClausesCallReturnType<contracts, false>>, Error>;
|
|
1789
1795
|
|
|
1790
1796
|
/**
|
|
1791
1797
|
* Hook for managing currency preferences
|
|
@@ -1807,6 +1813,31 @@ declare const useIsPWA: () => boolean;
|
|
|
1807
1813
|
|
|
1808
1814
|
declare const useScrollToTop: () => void;
|
|
1809
1815
|
|
|
1816
|
+
declare const decodeEventLog: <TAbi extends Abi>(event: EventLogs, abi: TAbi) => {
|
|
1817
|
+
meta: EventLogs["meta"];
|
|
1818
|
+
decodedData: ReturnType<typeof decodeEventLog$1<TAbi>>;
|
|
1819
|
+
};
|
|
1820
|
+
type UseEventsParams<T extends Abi, K extends ContractEventName<T>, R> = {
|
|
1821
|
+
abi: T;
|
|
1822
|
+
contractAddress: string;
|
|
1823
|
+
eventName: K;
|
|
1824
|
+
filterParams?: Record<string, unknown> | unknown[] | undefined;
|
|
1825
|
+
mapResponse: ({ meta, decodedData, }: {
|
|
1826
|
+
meta: EventLogs['meta'];
|
|
1827
|
+
decodedData: ReturnType<typeof decodeEventLog$1<T, K>>;
|
|
1828
|
+
}) => R;
|
|
1829
|
+
nodeUrl: string;
|
|
1830
|
+
};
|
|
1831
|
+
type GetEventsKeyParams = {
|
|
1832
|
+
eventName: string;
|
|
1833
|
+
filterParams?: object;
|
|
1834
|
+
};
|
|
1835
|
+
declare const getEventsKey: ({ eventName, filterParams, }: GetEventsKeyParams) => string[];
|
|
1836
|
+
/**
|
|
1837
|
+
* Custom hook for fetching contract events.
|
|
1838
|
+
*/
|
|
1839
|
+
declare const useEvents: <T extends Abi, K extends ContractEventName<T>, R>({ abi, contractAddress, eventName, filterParams, mapResponse, nodeUrl, }: UseEventsParams<T, K, R>) => _tanstack_react_query.UseQueryResult<R[], Error>;
|
|
1840
|
+
|
|
1810
1841
|
declare enum LocalStorageKey {
|
|
1811
1842
|
CUSTOM_TOKENS = "vechain_kit_custom_tokens",
|
|
1812
1843
|
ECOSYSTEM_SHORTCUTS = "vechain-kit-ecosystem-shortcuts",
|
|
@@ -2184,4 +2215,4 @@ declare const txReceiptQueryKey: (txId: string) => string[];
|
|
|
2184
2215
|
*/
|
|
2185
2216
|
declare const useTxReceipt: (txId: string, blockTimeout?: number) => _tanstack_react_query.UseQueryResult<_vechain_sdk_network.TransactionReceipt, Error>;
|
|
2186
2217
|
|
|
2187
|
-
export { AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, type AccountCustomizationContentProps, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AppConfig, type AppHubApp, AppearanceSettingsContent, AssetButton, AssetsContent, type AssetsContentProps, BalanceSection, BaseModal, BridgeContent, type BuildTransactionProps, CURRENCY, ChangeCurrencyContent, type ChangeCurrencyContentProps, ChooseNameContent, type ChooseNameContentProps, ChooseNameModalProvider, ChooseNameSearchContent, type ChooseNameSearchContentProps, ChooseNameSummaryContent, type ChooseNameSummaryContentProps, ConnectModal, type ConnectModalContentsTypes, ConnectModalProvider, ConnectPopover, ConnectionButton, ConnectionSource, CrossAppConnectionCache, CrossAppConnectionSecurityCard, type CustomTokenInfo, CustomizationContent, CustomizationSummaryContent, type CustomizationSummaryContentProps, DappKitButton, DisconnectConfirmContent, type DisconnectConfirmContentProps, type Domain, DomainRequiredAlert, type DomainsResponse, ENSRecords, ENS_TEXT_RECORDS, EcosystemButton, EcosystemModal, type EcosystemShortcut, EmailLoginButton, EmbeddedWalletContent, type EnrichedLegalDocument, type ExchangeRates, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, GeneralSettingsContent, type GetEventsProps, type IpfsImage, LanguageSettingsContent, type LegalDocument, type LegalDocumentAgreement, LegalDocumentItem, type LegalDocumentOptions, LegalDocumentSource, LegalDocumentType, LegalDocumentsModal, type LegalDocumentsModalContentsTypes, LegalDocumentsProvider, LocalStorageKey, LoginLoadingModal, LoginWithGoogleButton, MAX_IMAGE_SIZE, MainContent, ManageCustomTokenContent, type ManageCustomTokenContentProps, ModalBackButton, ModalFAQButton, ModalNotificationButton, type MostVotedAppsInRoundReturnType, NFTMediaType, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyAppInfo, PrivyButton, PrivyLoginMethod, PrivyWalletProvider, type PrivyWalletProviderContextType, ProfileCard, type ProfileCardProps, ProfileContent, type ProfileContentProps, ProfileModalProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, ScrollToTopWrapper, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SettingsContent, type SettingsContentProps, ShareButtons, SmartAccount, type SmartAccountReturnType, SocialIcons, StickyFooterContainer, StickyHeaderContainer, type SupportedToken, SwapTokenContent, TermsAndPrivacyContent, type TextRecords, TokenBalance, type TokenWithBalance, type TokenWithValue, TransactionButtonAndStatus, type TransactionButtonAndStatusProps, TransactionModal, TransactionModalContent, type TransactionModalProps, TransactionModalProvider, TransactionStatus, TransactionStatusErrorType, TransactionToast, TransactionToastProvider, UpgradeSmartAccountContent, type UpgradeSmartAccountContentProps, UpgradeSmartAccountModal, type UpgradeSmartAccountModalContentsTypes, UpgradeSmartAccountModalProvider, type UpgradeSmartAccountModalStyle, type UploadedImage, type UseSendTransactionReturnValue, type UseWalletReturnType, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, type VechainKitProviderProps, VechainKitThemeProvider, VersionFooter, ViewFunctionResult, Wallet, WalletButton, type WalletButtonProps, type WalletDisplayVariant, WalletModalProvider, type WalletTokenBalance, type XApp, type XAppMetadata, compressImages, currentBlockQueryKey, fetchAppHubApps, fetchPrivyAppInfo, fetchPrivyStatus, fetchVechainDomain, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersionQueryKey, getAllEventLogs, getAppHubAppsQueryKey, getAvatar, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getCallClauseQueryKey, getCallClauseQueryKeyWithArgs, getChainId, getChainIdQueryKey, getConfig, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEventLogs, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsPersonQueryKey, getPrivyAppInfoQueryKey, getResolverAddressQueryKey, getRoundXAppsQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getXAppMetadata, getXAppsSharesQueryKey, imageCompressionOptions, txReceiptQueryKey, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountModal, useAppHubApps, useBuildTransaction, useCallClause, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRoundId, useCurrentBlock, useCustomTokens, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDomainsOfAddress, useGetErc20Balance, useGetNodeUrl, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetVot3Balance, useHasV1SmartAccount, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsDomainProtected, useIsPWA, useIsPerson, useIsSmartAccountDeployed, useLegalDocuments, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useNotificationAlerts, useNotifications, useNotificationsModal, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshFactoryQueries, useRefreshMetadata, useRefreshSmartAccountQueries, useRoundXApps, useScrollToTop, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useTokenBalances, useTokenPrices, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useVeChainKitConfig, useVechainDomain, useWallet, useWalletMetadata, useWalletModal, useXAppMetadata, useXAppsShares };
|
|
2218
|
+
export { AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, type AccountCustomizationContentProps, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AppConfig, type AppHubApp, AppearanceSettingsContent, AssetButton, AssetsContent, type AssetsContentProps, BalanceSection, BaseModal, BridgeContent, type BuildTransactionProps, CURRENCY, ChangeCurrencyContent, type ChangeCurrencyContentProps, ChooseNameContent, type ChooseNameContentProps, ChooseNameModalProvider, ChooseNameSearchContent, type ChooseNameSearchContentProps, ChooseNameSummaryContent, type ChooseNameSummaryContentProps, ConnectModal, type ConnectModalContentsTypes, ConnectModalProvider, ConnectPopover, ConnectionButton, ConnectionSource, CrossAppConnectionCache, CrossAppConnectionSecurityCard, type CustomTokenInfo, CustomizationContent, CustomizationSummaryContent, type CustomizationSummaryContentProps, DappKitButton, DisconnectConfirmContent, type DisconnectConfirmContentProps, type Domain, DomainRequiredAlert, type DomainsResponse, ENSRecords, ENS_TEXT_RECORDS, EcosystemButton, EcosystemModal, type EcosystemShortcut, EmailLoginButton, EmbeddedWalletContent, type EnrichedLegalDocument, type ExchangeRates, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, GeneralSettingsContent, type GetEventsKeyParams, type GetEventsProps, type IpfsImage, LanguageSettingsContent, type LegalDocument, type LegalDocumentAgreement, LegalDocumentItem, type LegalDocumentOptions, LegalDocumentSource, LegalDocumentType, LegalDocumentsModal, type LegalDocumentsModalContentsTypes, LegalDocumentsProvider, LocalStorageKey, LoginLoadingModal, LoginWithGoogleButton, MAX_IMAGE_SIZE, MainContent, ManageCustomTokenContent, type ManageCustomTokenContentProps, ModalBackButton, ModalFAQButton, ModalNotificationButton, type MostVotedAppsInRoundReturnType, MultipleClausesCallParameters, MultipleClausesCallReturnType, NFTMediaType, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyAppInfo, PrivyButton, PrivyLoginMethod, PrivyWalletProvider, type PrivyWalletProviderContextType, ProfileCard, type ProfileCardProps, ProfileContent, type ProfileContentProps, ProfileModalProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, ScrollToTopWrapper, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SettingsContent, type SettingsContentProps, ShareButtons, SmartAccount, type SmartAccountReturnType, SocialIcons, StickyFooterContainer, StickyHeaderContainer, type SupportedToken, SwapTokenContent, TermsAndPrivacyContent, type TextRecords, TokenBalance, type TokenWithBalance, type TokenWithValue, TransactionButtonAndStatus, type TransactionButtonAndStatusProps, TransactionModal, TransactionModalContent, type TransactionModalProps, TransactionModalProvider, TransactionStatus, TransactionStatusErrorType, TransactionToast, TransactionToastProvider, UpgradeSmartAccountContent, type UpgradeSmartAccountContentProps, UpgradeSmartAccountModal, type UpgradeSmartAccountModalContentsTypes, UpgradeSmartAccountModalProvider, type UpgradeSmartAccountModalStyle, type UploadedImage, type UseEventsParams, type UseSendTransactionReturnValue, type UseWalletReturnType, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, type VechainKitProviderProps, VechainKitThemeProvider, VersionFooter, ViewFunctionResult, Wallet, WalletButton, type WalletButtonProps, type WalletDisplayVariant, WalletModalProvider, type WalletTokenBalance, type XApp, type XAppMetadata, compressImages, currentBlockQueryKey, decodeEventLog, fetchAppHubApps, fetchPrivyAppInfo, fetchPrivyStatus, fetchVechainDomain, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersionQueryKey, getAllEventLogs, getAppHubAppsQueryKey, getAvatar, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getCallClauseQueryKey, getCallClauseQueryKeyWithArgs, getChainId, getChainIdQueryKey, getConfig, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEventLogs, getEventsKey, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsPersonQueryKey, getPrivyAppInfoQueryKey, getResolverAddressQueryKey, getRoundXAppsQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getXAppMetadata, getXAppsSharesQueryKey, imageCompressionOptions, txReceiptQueryKey, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountModal, useAppHubApps, useBuildTransaction, useCallClause, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRoundId, useCurrentBlock, useCustomTokens, useEcosystemShortcuts, useEnsRecordExists, useEvents, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDomainsOfAddress, useGetErc20Balance, useGetNodeUrl, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetVot3Balance, useHasV1SmartAccount, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsDomainProtected, useIsPWA, useIsPerson, useIsSmartAccountDeployed, useLegalDocuments, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleClausesCall, useNotificationAlerts, useNotifications, useNotificationsModal, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshFactoryQueries, useRefreshMetadata, useRefreshSmartAccountQueries, useRoundXApps, useScrollToTop, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useTokenBalances, useTokenPrices, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useVeChainKitConfig, useVechainDomain, useWallet, useWalletMetadata, useWalletModal, useXAppMetadata, useXAppsShares };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactNode, ReactElement, ElementType } from 'react';
|
|
4
|
-
import { P as PrivyLoginMethod, N as NETWORK_TYPE, C as CURRENCY, a as Network, b as PrivyAppInfo, T as TokenBalance, W as Wallet, S as SmartAccount, c as ConnectionSource, E as ENSRecords, d as NFTMediaType, e as TransactionStatus, f as TransactionStatusErrorType, V as ViewFunctionResult, g as CrossAppConnectionCache } from './thorUtils-
|
|
5
|
-
export {
|
|
4
|
+
import { P as PrivyLoginMethod, N as NETWORK_TYPE, C as CURRENCY, a as Network, b as PrivyAppInfo, T as TokenBalance, W as Wallet, S as SmartAccount, c as ConnectionSource, E as ENSRecords, d as NFTMediaType, e as TransactionStatus, f as TransactionStatusErrorType, V as ViewFunctionResult, M as MultipleClausesCallParameters, g as MultipleClausesCallReturnType, h as CrossAppConnectionCache } from './thorUtils-IptLtkeL.js';
|
|
5
|
+
export { m as CURRENCY_SYMBOLS, k as EnhancedClause, j as ExecuteBatchWithAuthorizationSignData, i as ExecuteWithAuthorizationSignData, l as VePassportUserStatus, p as buildCallClauses, n as executeCallClause, o as executeMultipleClausesCall } from './thorUtils-IptLtkeL.js';
|
|
6
6
|
import { WalletListEntry, SignTypedDataParams, User } from '@privy-io/react-auth';
|
|
7
7
|
export { useMfaEnrollment, usePrivy, useSetWalletRecovery } from '@privy-io/react-auth';
|
|
8
8
|
import { WalletSource, LogLevel } from '@vechain/dapp-kit';
|
|
@@ -13,13 +13,13 @@ import { Certificate, CertificateData, TransactionClause } from '@vechain/sdk-co
|
|
|
13
13
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
14
14
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
15
15
|
import * as _vechain_sdk_network from '@vechain/sdk-network';
|
|
16
|
-
import { ThorClient, TransactionReceipt,
|
|
16
|
+
import { ThorClient, TransactionReceipt, EventLogs, FilterEventLogsOptions } from '@vechain/sdk-network';
|
|
17
17
|
export { ThorClient } from '@vechain/sdk-network';
|
|
18
18
|
import { z } from 'zod';
|
|
19
19
|
import { Options } from 'browser-image-compression';
|
|
20
20
|
import { ButtonProps, StackProps, IconButtonProps, PropsOf, VStack, ImageProps, CardProps, CardBodyProps, CardFooterProps, ThemeTypings } from '@chakra-ui/react';
|
|
21
21
|
import { ExtractAbiFunctionNames, AbiParametersToPrimitiveTypes } from 'abitype';
|
|
22
|
-
import { Abi } from 'viem';
|
|
22
|
+
import { Abi, ContractFunctionParameters, decodeEventLog as decodeEventLog$1, ContractEventName } from 'viem';
|
|
23
23
|
import { IconType } from 'react-icons';
|
|
24
24
|
import { UseFormRegister } from 'react-hook-form';
|
|
25
25
|
|
|
@@ -1786,6 +1786,12 @@ declare const useCallClause: <TAbi extends Abi, TMethod extends ExtractAbiFuncti
|
|
|
1786
1786
|
args: AbiParametersToPrimitiveTypes<ExtractViewFunction<TAbi, TMethod>["inputs"], "inputs">;
|
|
1787
1787
|
queryOptions?: Omit<UseQueryOptions<ViewFunctionResult<TAbi, TMethod>, unknown, TData, ReturnType<typeof getCallClauseQueryKeyWithArgs<TAbi, TMethod>>>, "queryKey" | "queryFn">;
|
|
1788
1788
|
}) => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<TData>, unknown>;
|
|
1789
|
+
declare const useMultipleClausesCall: <contracts extends readonly ContractFunctionParameters[], allowFailure extends boolean = false>({ thor, calls, queryKey, enabled, }: {
|
|
1790
|
+
thor: ThorClient;
|
|
1791
|
+
calls: MultipleClausesCallParameters<contracts, allowFailure>;
|
|
1792
|
+
queryKey: string[];
|
|
1793
|
+
enabled?: boolean;
|
|
1794
|
+
}) => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<MultipleClausesCallReturnType<contracts, false>>, Error>;
|
|
1789
1795
|
|
|
1790
1796
|
/**
|
|
1791
1797
|
* Hook for managing currency preferences
|
|
@@ -1807,6 +1813,31 @@ declare const useIsPWA: () => boolean;
|
|
|
1807
1813
|
|
|
1808
1814
|
declare const useScrollToTop: () => void;
|
|
1809
1815
|
|
|
1816
|
+
declare const decodeEventLog: <TAbi extends Abi>(event: EventLogs, abi: TAbi) => {
|
|
1817
|
+
meta: EventLogs["meta"];
|
|
1818
|
+
decodedData: ReturnType<typeof decodeEventLog$1<TAbi>>;
|
|
1819
|
+
};
|
|
1820
|
+
type UseEventsParams<T extends Abi, K extends ContractEventName<T>, R> = {
|
|
1821
|
+
abi: T;
|
|
1822
|
+
contractAddress: string;
|
|
1823
|
+
eventName: K;
|
|
1824
|
+
filterParams?: Record<string, unknown> | unknown[] | undefined;
|
|
1825
|
+
mapResponse: ({ meta, decodedData, }: {
|
|
1826
|
+
meta: EventLogs['meta'];
|
|
1827
|
+
decodedData: ReturnType<typeof decodeEventLog$1<T, K>>;
|
|
1828
|
+
}) => R;
|
|
1829
|
+
nodeUrl: string;
|
|
1830
|
+
};
|
|
1831
|
+
type GetEventsKeyParams = {
|
|
1832
|
+
eventName: string;
|
|
1833
|
+
filterParams?: object;
|
|
1834
|
+
};
|
|
1835
|
+
declare const getEventsKey: ({ eventName, filterParams, }: GetEventsKeyParams) => string[];
|
|
1836
|
+
/**
|
|
1837
|
+
* Custom hook for fetching contract events.
|
|
1838
|
+
*/
|
|
1839
|
+
declare const useEvents: <T extends Abi, K extends ContractEventName<T>, R>({ abi, contractAddress, eventName, filterParams, mapResponse, nodeUrl, }: UseEventsParams<T, K, R>) => _tanstack_react_query.UseQueryResult<R[], Error>;
|
|
1840
|
+
|
|
1810
1841
|
declare enum LocalStorageKey {
|
|
1811
1842
|
CUSTOM_TOKENS = "vechain_kit_custom_tokens",
|
|
1812
1843
|
ECOSYSTEM_SHORTCUTS = "vechain-kit-ecosystem-shortcuts",
|
|
@@ -2184,4 +2215,4 @@ declare const txReceiptQueryKey: (txId: string) => string[];
|
|
|
2184
2215
|
*/
|
|
2185
2216
|
declare const useTxReceipt: (txId: string, blockTimeout?: number) => _tanstack_react_query.UseQueryResult<_vechain_sdk_network.TransactionReceipt, Error>;
|
|
2186
2217
|
|
|
2187
|
-
export { AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, type AccountCustomizationContentProps, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AppConfig, type AppHubApp, AppearanceSettingsContent, AssetButton, AssetsContent, type AssetsContentProps, BalanceSection, BaseModal, BridgeContent, type BuildTransactionProps, CURRENCY, ChangeCurrencyContent, type ChangeCurrencyContentProps, ChooseNameContent, type ChooseNameContentProps, ChooseNameModalProvider, ChooseNameSearchContent, type ChooseNameSearchContentProps, ChooseNameSummaryContent, type ChooseNameSummaryContentProps, ConnectModal, type ConnectModalContentsTypes, ConnectModalProvider, ConnectPopover, ConnectionButton, ConnectionSource, CrossAppConnectionCache, CrossAppConnectionSecurityCard, type CustomTokenInfo, CustomizationContent, CustomizationSummaryContent, type CustomizationSummaryContentProps, DappKitButton, DisconnectConfirmContent, type DisconnectConfirmContentProps, type Domain, DomainRequiredAlert, type DomainsResponse, ENSRecords, ENS_TEXT_RECORDS, EcosystemButton, EcosystemModal, type EcosystemShortcut, EmailLoginButton, EmbeddedWalletContent, type EnrichedLegalDocument, type ExchangeRates, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, GeneralSettingsContent, type GetEventsProps, type IpfsImage, LanguageSettingsContent, type LegalDocument, type LegalDocumentAgreement, LegalDocumentItem, type LegalDocumentOptions, LegalDocumentSource, LegalDocumentType, LegalDocumentsModal, type LegalDocumentsModalContentsTypes, LegalDocumentsProvider, LocalStorageKey, LoginLoadingModal, LoginWithGoogleButton, MAX_IMAGE_SIZE, MainContent, ManageCustomTokenContent, type ManageCustomTokenContentProps, ModalBackButton, ModalFAQButton, ModalNotificationButton, type MostVotedAppsInRoundReturnType, NFTMediaType, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyAppInfo, PrivyButton, PrivyLoginMethod, PrivyWalletProvider, type PrivyWalletProviderContextType, ProfileCard, type ProfileCardProps, ProfileContent, type ProfileContentProps, ProfileModalProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, ScrollToTopWrapper, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SettingsContent, type SettingsContentProps, ShareButtons, SmartAccount, type SmartAccountReturnType, SocialIcons, StickyFooterContainer, StickyHeaderContainer, type SupportedToken, SwapTokenContent, TermsAndPrivacyContent, type TextRecords, TokenBalance, type TokenWithBalance, type TokenWithValue, TransactionButtonAndStatus, type TransactionButtonAndStatusProps, TransactionModal, TransactionModalContent, type TransactionModalProps, TransactionModalProvider, TransactionStatus, TransactionStatusErrorType, TransactionToast, TransactionToastProvider, UpgradeSmartAccountContent, type UpgradeSmartAccountContentProps, UpgradeSmartAccountModal, type UpgradeSmartAccountModalContentsTypes, UpgradeSmartAccountModalProvider, type UpgradeSmartAccountModalStyle, type UploadedImage, type UseSendTransactionReturnValue, type UseWalletReturnType, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, type VechainKitProviderProps, VechainKitThemeProvider, VersionFooter, ViewFunctionResult, Wallet, WalletButton, type WalletButtonProps, type WalletDisplayVariant, WalletModalProvider, type WalletTokenBalance, type XApp, type XAppMetadata, compressImages, currentBlockQueryKey, fetchAppHubApps, fetchPrivyAppInfo, fetchPrivyStatus, fetchVechainDomain, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersionQueryKey, getAllEventLogs, getAppHubAppsQueryKey, getAvatar, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getCallClauseQueryKey, getCallClauseQueryKeyWithArgs, getChainId, getChainIdQueryKey, getConfig, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEventLogs, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsPersonQueryKey, getPrivyAppInfoQueryKey, getResolverAddressQueryKey, getRoundXAppsQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getXAppMetadata, getXAppsSharesQueryKey, imageCompressionOptions, txReceiptQueryKey, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountModal, useAppHubApps, useBuildTransaction, useCallClause, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRoundId, useCurrentBlock, useCustomTokens, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDomainsOfAddress, useGetErc20Balance, useGetNodeUrl, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetVot3Balance, useHasV1SmartAccount, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsDomainProtected, useIsPWA, useIsPerson, useIsSmartAccountDeployed, useLegalDocuments, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useNotificationAlerts, useNotifications, useNotificationsModal, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshFactoryQueries, useRefreshMetadata, useRefreshSmartAccountQueries, useRoundXApps, useScrollToTop, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useTokenBalances, useTokenPrices, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useVeChainKitConfig, useVechainDomain, useWallet, useWalletMetadata, useWalletModal, useXAppMetadata, useXAppsShares };
|
|
2218
|
+
export { AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, type AccountCustomizationContentProps, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AppConfig, type AppHubApp, AppearanceSettingsContent, AssetButton, AssetsContent, type AssetsContentProps, BalanceSection, BaseModal, BridgeContent, type BuildTransactionProps, CURRENCY, ChangeCurrencyContent, type ChangeCurrencyContentProps, ChooseNameContent, type ChooseNameContentProps, ChooseNameModalProvider, ChooseNameSearchContent, type ChooseNameSearchContentProps, ChooseNameSummaryContent, type ChooseNameSummaryContentProps, ConnectModal, type ConnectModalContentsTypes, ConnectModalProvider, ConnectPopover, ConnectionButton, ConnectionSource, CrossAppConnectionCache, CrossAppConnectionSecurityCard, type CustomTokenInfo, CustomizationContent, CustomizationSummaryContent, type CustomizationSummaryContentProps, DappKitButton, DisconnectConfirmContent, type DisconnectConfirmContentProps, type Domain, DomainRequiredAlert, type DomainsResponse, ENSRecords, ENS_TEXT_RECORDS, EcosystemButton, EcosystemModal, type EcosystemShortcut, EmailLoginButton, EmbeddedWalletContent, type EnrichedLegalDocument, type ExchangeRates, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, GeneralSettingsContent, type GetEventsKeyParams, type GetEventsProps, type IpfsImage, LanguageSettingsContent, type LegalDocument, type LegalDocumentAgreement, LegalDocumentItem, type LegalDocumentOptions, LegalDocumentSource, LegalDocumentType, LegalDocumentsModal, type LegalDocumentsModalContentsTypes, LegalDocumentsProvider, LocalStorageKey, LoginLoadingModal, LoginWithGoogleButton, MAX_IMAGE_SIZE, MainContent, ManageCustomTokenContent, type ManageCustomTokenContentProps, ModalBackButton, ModalFAQButton, ModalNotificationButton, type MostVotedAppsInRoundReturnType, MultipleClausesCallParameters, MultipleClausesCallReturnType, NFTMediaType, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyAppInfo, PrivyButton, PrivyLoginMethod, PrivyWalletProvider, type PrivyWalletProviderContextType, ProfileCard, type ProfileCardProps, ProfileContent, type ProfileContentProps, ProfileModalProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, ScrollToTopWrapper, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SettingsContent, type SettingsContentProps, ShareButtons, SmartAccount, type SmartAccountReturnType, SocialIcons, StickyFooterContainer, StickyHeaderContainer, type SupportedToken, SwapTokenContent, TermsAndPrivacyContent, type TextRecords, TokenBalance, type TokenWithBalance, type TokenWithValue, TransactionButtonAndStatus, type TransactionButtonAndStatusProps, TransactionModal, TransactionModalContent, type TransactionModalProps, TransactionModalProvider, TransactionStatus, TransactionStatusErrorType, TransactionToast, TransactionToastProvider, UpgradeSmartAccountContent, type UpgradeSmartAccountContentProps, UpgradeSmartAccountModal, type UpgradeSmartAccountModalContentsTypes, UpgradeSmartAccountModalProvider, type UpgradeSmartAccountModalStyle, type UploadedImage, type UseEventsParams, type UseSendTransactionReturnValue, type UseWalletReturnType, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, type VechainKitProviderProps, VechainKitThemeProvider, VersionFooter, ViewFunctionResult, Wallet, WalletButton, type WalletButtonProps, type WalletDisplayVariant, WalletModalProvider, type WalletTokenBalance, type XApp, type XAppMetadata, compressImages, currentBlockQueryKey, decodeEventLog, fetchAppHubApps, fetchPrivyAppInfo, fetchPrivyStatus, fetchVechainDomain, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersionQueryKey, getAllEventLogs, getAppHubAppsQueryKey, getAvatar, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getCallClauseQueryKey, getCallClauseQueryKeyWithArgs, getChainId, getChainIdQueryKey, getConfig, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEventLogs, getEventsKey, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsPersonQueryKey, getPrivyAppInfoQueryKey, getResolverAddressQueryKey, getRoundXAppsQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getXAppMetadata, getXAppsSharesQueryKey, imageCompressionOptions, txReceiptQueryKey, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountModal, useAppHubApps, useBuildTransaction, useCallClause, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRoundId, useCurrentBlock, useCustomTokens, useEcosystemShortcuts, useEnsRecordExists, useEvents, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDomainsOfAddress, useGetErc20Balance, useGetNodeUrl, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetVot3Balance, useHasV1SmartAccount, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsDomainProtected, useIsPWA, useIsPerson, useIsSmartAccountDeployed, useLegalDocuments, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleClausesCall, useNotificationAlerts, useNotifications, useNotificationsModal, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshFactoryQueries, useRefreshMetadata, useRefreshSmartAccountQueries, useRoundXApps, useScrollToTop, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useTokenBalances, useTokenPrices, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useVeChainKitConfig, useVechainDomain, useWallet, useWalletMetadata, useWalletModal, useXAppMetadata, useXAppsShares };
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ import { HiOutlineWallet, HiOutlineShieldCheck } from 'react-icons/hi2';
|
|
|
22
22
|
import VeChainKitMixpanel from 'mixpanel-browser';
|
|
23
23
|
import { Interface, isAddress, ethers, namehash, toUtf8String, zeroPadValue, toBeHex, formatEther, parseEther as parseEther$1 } from 'ethers';
|
|
24
24
|
import { ZERO_ADDRESS, Address, Clause, ABIContract } from '@vechain/sdk-core';
|
|
25
|
-
import { defineChain, namehash as namehash$1, formatEther as formatEther$1, parseEther, keccak256, toBytes, concat, encodeFunctionData } from 'viem';
|
|
25
|
+
import { defineChain, namehash as namehash$1, formatEther as formatEther$1, parseEther, decodeEventLog as decodeEventLog$1, keccak256, toBytes, concat, encodeFunctionData } from 'viem';
|
|
26
26
|
import { z } from 'zod';
|
|
27
27
|
import { BigNumber } from 'bignumber.js';
|
|
28
28
|
import { useAccount, useConnect, useSignTypedData, useSignMessage, useDisconnect, createConfig, http, WagmiProvider } from 'wagmi';
|
|
@@ -4818,7 +4818,7 @@ var AddressDisplay = ({
|
|
|
4818
4818
|
|
|
4819
4819
|
// package.json
|
|
4820
4820
|
var package_default = {
|
|
4821
|
-
version: "2.0.0-rc.
|
|
4821
|
+
version: "2.0.0-rc.6"};
|
|
4822
4822
|
var VersionFooter = ({ ...props }) => {
|
|
4823
4823
|
const { darkMode: isDark } = useVeChainKitConfig();
|
|
4824
4824
|
return /* @__PURE__ */ jsxs(
|
|
@@ -15886,8 +15886,9 @@ var ProfileCard = ({
|
|
|
15886
15886
|
style
|
|
15887
15887
|
}) => {
|
|
15888
15888
|
const { t } = useTranslation();
|
|
15889
|
-
const { account } = useWallet();
|
|
15889
|
+
const { account, disconnect } = useWallet();
|
|
15890
15890
|
const { network } = useVeChainKitConfig();
|
|
15891
|
+
const { openAccountModal, closeAccountModal } = useModal();
|
|
15891
15892
|
const metadata = useWalletMetadata(address, network.type);
|
|
15892
15893
|
const headerImageSvg = getPicassoImage(address);
|
|
15893
15894
|
const isConnectedAccount = address === account?.address;
|
|
@@ -16030,6 +16031,12 @@ var ProfileCard = ({
|
|
|
16030
16031
|
variant: "ghost",
|
|
16031
16032
|
leftIcon: /* @__PURE__ */ jsx(Icon, { as: FaEdit }),
|
|
16032
16033
|
onClick: onEditClick ?? (() => {
|
|
16034
|
+
openAccountModal({
|
|
16035
|
+
type: "account-customization",
|
|
16036
|
+
props: {
|
|
16037
|
+
setCurrentContent: () => closeAccountModal()
|
|
16038
|
+
}
|
|
16039
|
+
});
|
|
16033
16040
|
}),
|
|
16034
16041
|
"data-testid": "customize-button",
|
|
16035
16042
|
children: t("Customize")
|
|
@@ -16044,7 +16051,18 @@ var ProfileCard = ({
|
|
|
16044
16051
|
variant: "ghost",
|
|
16045
16052
|
leftIcon: /* @__PURE__ */ jsx(Icon, { as: RiLogoutBoxLine }),
|
|
16046
16053
|
colorScheme: "red",
|
|
16047
|
-
onClick: onLogout
|
|
16054
|
+
onClick: onLogout ?? (() => {
|
|
16055
|
+
openAccountModal({
|
|
16056
|
+
type: "disconnect-confirm",
|
|
16057
|
+
props: {
|
|
16058
|
+
onDisconnect: () => {
|
|
16059
|
+
disconnect();
|
|
16060
|
+
closeAccountModal();
|
|
16061
|
+
},
|
|
16062
|
+
onBack: () => closeAccountModal()
|
|
16063
|
+
}
|
|
16064
|
+
});
|
|
16065
|
+
}),
|
|
16048
16066
|
"data-testid": "logout-button",
|
|
16049
16067
|
children: t("Logout")
|
|
16050
16068
|
}
|
|
@@ -17174,6 +17192,16 @@ var useCallClause = ({
|
|
|
17174
17192
|
...queryOptions
|
|
17175
17193
|
});
|
|
17176
17194
|
};
|
|
17195
|
+
var useMultipleClausesCall = ({
|
|
17196
|
+
thor,
|
|
17197
|
+
calls,
|
|
17198
|
+
queryKey,
|
|
17199
|
+
enabled = true
|
|
17200
|
+
}) => useQuery({
|
|
17201
|
+
queryKey,
|
|
17202
|
+
queryFn: () => executeMultipleClausesCall({ thor, calls }),
|
|
17203
|
+
enabled
|
|
17204
|
+
});
|
|
17177
17205
|
|
|
17178
17206
|
// src/hooks/utils/useGetNodeUrl.ts
|
|
17179
17207
|
var useGetNodeUrl = () => {
|
|
@@ -17203,89 +17231,6 @@ var useScrollToTop = () => {
|
|
|
17203
17231
|
}
|
|
17204
17232
|
}, []);
|
|
17205
17233
|
};
|
|
17206
|
-
var LocalStorageKey = /* @__PURE__ */ ((LocalStorageKey2) => {
|
|
17207
|
-
LocalStorageKey2["CUSTOM_TOKENS"] = "vechain_kit_custom_tokens";
|
|
17208
|
-
LocalStorageKey2["ECOSYSTEM_SHORTCUTS"] = "vechain-kit-ecosystem-shortcuts";
|
|
17209
|
-
LocalStorageKey2["CURRENCY"] = "vechain_kit_currency";
|
|
17210
|
-
LocalStorageKey2["NODE_URL"] = "vechain_kit_node_url";
|
|
17211
|
-
LocalStorageKey2["NETWORK"] = "vechain_kit_network";
|
|
17212
|
-
return LocalStorageKey2;
|
|
17213
|
-
})(LocalStorageKey || {});
|
|
17214
|
-
var useLocalStorage = (key, initialValue) => {
|
|
17215
|
-
const [storedValue, setStoredValue] = useState(() => {
|
|
17216
|
-
try {
|
|
17217
|
-
const item = window.localStorage.getItem(key);
|
|
17218
|
-
return item ? JSON.parse(item) : initialValue;
|
|
17219
|
-
} catch (error) {
|
|
17220
|
-
console.error(error);
|
|
17221
|
-
return initialValue;
|
|
17222
|
-
}
|
|
17223
|
-
});
|
|
17224
|
-
useEffect(() => {
|
|
17225
|
-
window.localStorage.setItem(key, JSON.stringify(storedValue));
|
|
17226
|
-
}, [key, storedValue]);
|
|
17227
|
-
return [storedValue, setStoredValue];
|
|
17228
|
-
};
|
|
17229
|
-
var useSyncableLocalStorage = (key, defaultValue) => {
|
|
17230
|
-
const [value, setValue] = useState(() => {
|
|
17231
|
-
if (typeof window === "undefined") return defaultValue;
|
|
17232
|
-
try {
|
|
17233
|
-
const stored = window.localStorage.getItem(key);
|
|
17234
|
-
return stored ? JSON.parse(stored) : defaultValue;
|
|
17235
|
-
} catch (err) {
|
|
17236
|
-
console.error("Error loading from localStorage:", err);
|
|
17237
|
-
return defaultValue;
|
|
17238
|
-
}
|
|
17239
|
-
});
|
|
17240
|
-
useEffect(() => {
|
|
17241
|
-
if (typeof window === "undefined") return;
|
|
17242
|
-
try {
|
|
17243
|
-
window.localStorage.setItem(key, JSON.stringify(value));
|
|
17244
|
-
} catch (err) {
|
|
17245
|
-
console.error("Error writing to localStorage:", err);
|
|
17246
|
-
}
|
|
17247
|
-
}, [key, value]);
|
|
17248
|
-
const sync = useCallback(() => {
|
|
17249
|
-
if (typeof window === "undefined") return;
|
|
17250
|
-
try {
|
|
17251
|
-
const stored = window.localStorage.getItem(key);
|
|
17252
|
-
setValue(stored ? JSON.parse(stored) : defaultValue);
|
|
17253
|
-
} catch (err) {
|
|
17254
|
-
console.error("Error syncing localStorage:", err);
|
|
17255
|
-
}
|
|
17256
|
-
}, [key, defaultValue]);
|
|
17257
|
-
const getValue = useCallback(() => {
|
|
17258
|
-
if (typeof window === "undefined") return defaultValue;
|
|
17259
|
-
const stored = window.localStorage.getItem(key);
|
|
17260
|
-
return stored ? JSON.parse(stored) : defaultValue;
|
|
17261
|
-
}, [key, defaultValue]);
|
|
17262
|
-
return [value, setValue, sync, getValue];
|
|
17263
|
-
};
|
|
17264
|
-
|
|
17265
|
-
// src/hooks/cache/useEcosystemShortcuts.ts
|
|
17266
|
-
var useEcosystemShortcuts = () => {
|
|
17267
|
-
const [shortcuts, setShortcuts] = useLocalStorage(
|
|
17268
|
-
"vechain-kit-ecosystem-shortcuts" /* ECOSYSTEM_SHORTCUTS */,
|
|
17269
|
-
[]
|
|
17270
|
-
);
|
|
17271
|
-
const addShortcut = (shortcut) => {
|
|
17272
|
-
if (!shortcuts.some((s) => s.url === shortcut.url)) {
|
|
17273
|
-
setShortcuts([...shortcuts, shortcut]);
|
|
17274
|
-
}
|
|
17275
|
-
};
|
|
17276
|
-
const removeShortcut = (url) => {
|
|
17277
|
-
setShortcuts(shortcuts.filter((s) => s.url !== url));
|
|
17278
|
-
};
|
|
17279
|
-
const isShortcut = (url) => {
|
|
17280
|
-
return shortcuts.some((s) => s.url === url);
|
|
17281
|
-
};
|
|
17282
|
-
return {
|
|
17283
|
-
shortcuts,
|
|
17284
|
-
addShortcut,
|
|
17285
|
-
removeShortcut,
|
|
17286
|
-
isShortcut
|
|
17287
|
-
};
|
|
17288
|
-
};
|
|
17289
17234
|
var getAccountBalance = async (thor, address) => {
|
|
17290
17235
|
if (!address) throw new Error("Address is required");
|
|
17291
17236
|
const account = await thor.accounts.getAccount(Address.of(address));
|
|
@@ -17948,9 +17893,9 @@ var useSendTransaction = ({
|
|
|
17948
17893
|
}
|
|
17949
17894
|
const txBody = await thor.transactions.buildTransactionBody(
|
|
17950
17895
|
_clauses,
|
|
17951
|
-
estimatedGas,
|
|
17896
|
+
suggestedMaxGas ?? estimatedGas,
|
|
17897
|
+
//Provide either the suggested max gas (gas Limit) or the estimated gas
|
|
17952
17898
|
{
|
|
17953
|
-
gasLimit: suggestedMaxGas?.toString(),
|
|
17954
17899
|
// TODO: kit-migration check how to pass the delegator url
|
|
17955
17900
|
isDelegated: feeDelegation?.delegateAllTransactions
|
|
17956
17901
|
}
|
|
@@ -18255,6 +18200,164 @@ var useTxReceipt = (txId, blockTimeout = 5) => {
|
|
|
18255
18200
|
enabled: !!txId
|
|
18256
18201
|
});
|
|
18257
18202
|
};
|
|
18203
|
+
|
|
18204
|
+
// src/hooks/utils/useEvents.ts
|
|
18205
|
+
var decodeEventLog = (event, abi9) => {
|
|
18206
|
+
const decodedData = decodeEventLog$1({
|
|
18207
|
+
abi: abi9,
|
|
18208
|
+
data: event.data.toString(),
|
|
18209
|
+
topics: event.topics.map((topic) => topic.toString())
|
|
18210
|
+
});
|
|
18211
|
+
return {
|
|
18212
|
+
meta: event.meta,
|
|
18213
|
+
decodedData
|
|
18214
|
+
};
|
|
18215
|
+
};
|
|
18216
|
+
var getEventsKey = ({
|
|
18217
|
+
eventName,
|
|
18218
|
+
filterParams
|
|
18219
|
+
}) => {
|
|
18220
|
+
return [eventName, filterParams ? JSON.stringify(filterParams) : "all"];
|
|
18221
|
+
};
|
|
18222
|
+
var useEvents = ({
|
|
18223
|
+
abi: abi9,
|
|
18224
|
+
contractAddress,
|
|
18225
|
+
eventName,
|
|
18226
|
+
filterParams,
|
|
18227
|
+
mapResponse,
|
|
18228
|
+
nodeUrl
|
|
18229
|
+
}) => {
|
|
18230
|
+
const thor = useThor();
|
|
18231
|
+
const queryFn = useCallback(async () => {
|
|
18232
|
+
if (!thor) return [];
|
|
18233
|
+
const eventAbi = thor.contracts.load(contractAddress, abi9).getEventAbi(eventName);
|
|
18234
|
+
const topics = eventAbi.encodeFilterTopicsNoNull(filterParams ?? {});
|
|
18235
|
+
const filterCriteria = [
|
|
18236
|
+
{
|
|
18237
|
+
criteria: {
|
|
18238
|
+
address: contractAddress,
|
|
18239
|
+
topic0: topics[0] ?? void 0,
|
|
18240
|
+
topic1: topics[1] ?? void 0,
|
|
18241
|
+
topic2: topics[2] ?? void 0,
|
|
18242
|
+
topic3: topics[3] ?? void 0,
|
|
18243
|
+
topic4: topics[4] ?? void 0
|
|
18244
|
+
},
|
|
18245
|
+
eventAbi
|
|
18246
|
+
}
|
|
18247
|
+
];
|
|
18248
|
+
const events = (await getAllEventLogs({ thor, nodeUrl, filterCriteria })).map((event) => decodeEventLog(event, abi9));
|
|
18249
|
+
if (events.some(
|
|
18250
|
+
({ decodedData }) => decodedData.eventName !== eventName
|
|
18251
|
+
))
|
|
18252
|
+
throw new Error(`Unknown event`);
|
|
18253
|
+
return events.map(
|
|
18254
|
+
(event) => mapResponse({
|
|
18255
|
+
meta: event.meta,
|
|
18256
|
+
decodedData: event.decodedData
|
|
18257
|
+
})
|
|
18258
|
+
);
|
|
18259
|
+
}, [
|
|
18260
|
+
thor,
|
|
18261
|
+
contractAddress,
|
|
18262
|
+
abi9,
|
|
18263
|
+
eventName,
|
|
18264
|
+
filterParams,
|
|
18265
|
+
mapResponse,
|
|
18266
|
+
nodeUrl
|
|
18267
|
+
]);
|
|
18268
|
+
const queryKey = useMemo(
|
|
18269
|
+
() => getEventsKey({ eventName, filterParams }),
|
|
18270
|
+
[eventName, filterParams]
|
|
18271
|
+
);
|
|
18272
|
+
return useQuery({
|
|
18273
|
+
queryFn,
|
|
18274
|
+
queryKey,
|
|
18275
|
+
enabled: !!thor
|
|
18276
|
+
});
|
|
18277
|
+
};
|
|
18278
|
+
var LocalStorageKey = /* @__PURE__ */ ((LocalStorageKey2) => {
|
|
18279
|
+
LocalStorageKey2["CUSTOM_TOKENS"] = "vechain_kit_custom_tokens";
|
|
18280
|
+
LocalStorageKey2["ECOSYSTEM_SHORTCUTS"] = "vechain-kit-ecosystem-shortcuts";
|
|
18281
|
+
LocalStorageKey2["CURRENCY"] = "vechain_kit_currency";
|
|
18282
|
+
LocalStorageKey2["NODE_URL"] = "vechain_kit_node_url";
|
|
18283
|
+
LocalStorageKey2["NETWORK"] = "vechain_kit_network";
|
|
18284
|
+
return LocalStorageKey2;
|
|
18285
|
+
})(LocalStorageKey || {});
|
|
18286
|
+
var useLocalStorage = (key, initialValue) => {
|
|
18287
|
+
const [storedValue, setStoredValue] = useState(() => {
|
|
18288
|
+
try {
|
|
18289
|
+
const item = window.localStorage.getItem(key);
|
|
18290
|
+
return item ? JSON.parse(item) : initialValue;
|
|
18291
|
+
} catch (error) {
|
|
18292
|
+
console.error(error);
|
|
18293
|
+
return initialValue;
|
|
18294
|
+
}
|
|
18295
|
+
});
|
|
18296
|
+
useEffect(() => {
|
|
18297
|
+
window.localStorage.setItem(key, JSON.stringify(storedValue));
|
|
18298
|
+
}, [key, storedValue]);
|
|
18299
|
+
return [storedValue, setStoredValue];
|
|
18300
|
+
};
|
|
18301
|
+
var useSyncableLocalStorage = (key, defaultValue) => {
|
|
18302
|
+
const [value, setValue] = useState(() => {
|
|
18303
|
+
if (typeof window === "undefined") return defaultValue;
|
|
18304
|
+
try {
|
|
18305
|
+
const stored = window.localStorage.getItem(key);
|
|
18306
|
+
return stored ? JSON.parse(stored) : defaultValue;
|
|
18307
|
+
} catch (err) {
|
|
18308
|
+
console.error("Error loading from localStorage:", err);
|
|
18309
|
+
return defaultValue;
|
|
18310
|
+
}
|
|
18311
|
+
});
|
|
18312
|
+
useEffect(() => {
|
|
18313
|
+
if (typeof window === "undefined") return;
|
|
18314
|
+
try {
|
|
18315
|
+
window.localStorage.setItem(key, JSON.stringify(value));
|
|
18316
|
+
} catch (err) {
|
|
18317
|
+
console.error("Error writing to localStorage:", err);
|
|
18318
|
+
}
|
|
18319
|
+
}, [key, value]);
|
|
18320
|
+
const sync = useCallback(() => {
|
|
18321
|
+
if (typeof window === "undefined") return;
|
|
18322
|
+
try {
|
|
18323
|
+
const stored = window.localStorage.getItem(key);
|
|
18324
|
+
setValue(stored ? JSON.parse(stored) : defaultValue);
|
|
18325
|
+
} catch (err) {
|
|
18326
|
+
console.error("Error syncing localStorage:", err);
|
|
18327
|
+
}
|
|
18328
|
+
}, [key, defaultValue]);
|
|
18329
|
+
const getValue = useCallback(() => {
|
|
18330
|
+
if (typeof window === "undefined") return defaultValue;
|
|
18331
|
+
const stored = window.localStorage.getItem(key);
|
|
18332
|
+
return stored ? JSON.parse(stored) : defaultValue;
|
|
18333
|
+
}, [key, defaultValue]);
|
|
18334
|
+
return [value, setValue, sync, getValue];
|
|
18335
|
+
};
|
|
18336
|
+
|
|
18337
|
+
// src/hooks/cache/useEcosystemShortcuts.ts
|
|
18338
|
+
var useEcosystemShortcuts = () => {
|
|
18339
|
+
const [shortcuts, setShortcuts] = useLocalStorage(
|
|
18340
|
+
"vechain-kit-ecosystem-shortcuts" /* ECOSYSTEM_SHORTCUTS */,
|
|
18341
|
+
[]
|
|
18342
|
+
);
|
|
18343
|
+
const addShortcut = (shortcut) => {
|
|
18344
|
+
if (!shortcuts.some((s) => s.url === shortcut.url)) {
|
|
18345
|
+
setShortcuts([...shortcuts, shortcut]);
|
|
18346
|
+
}
|
|
18347
|
+
};
|
|
18348
|
+
const removeShortcut = (url) => {
|
|
18349
|
+
setShortcuts(shortcuts.filter((s) => s.url !== url));
|
|
18350
|
+
};
|
|
18351
|
+
const isShortcut = (url) => {
|
|
18352
|
+
return shortcuts.some((s) => s.url === url);
|
|
18353
|
+
};
|
|
18354
|
+
return {
|
|
18355
|
+
shortcuts,
|
|
18356
|
+
addShortcut,
|
|
18357
|
+
removeShortcut,
|
|
18358
|
+
isShortcut
|
|
18359
|
+
};
|
|
18360
|
+
};
|
|
18258
18361
|
var AddressDisplayCard = ({
|
|
18259
18362
|
label,
|
|
18260
18363
|
address,
|
|
@@ -18971,9 +19074,13 @@ var LegalDocumentsContext = createContext(void 0);
|
|
|
18971
19074
|
var useLegalDocuments = () => {
|
|
18972
19075
|
const context = useContext(LegalDocumentsContext);
|
|
18973
19076
|
if (!context) {
|
|
18974
|
-
|
|
18975
|
-
|
|
18976
|
-
|
|
19077
|
+
return {
|
|
19078
|
+
hasAgreedToRequiredDocuments: true,
|
|
19079
|
+
agreements: [],
|
|
19080
|
+
walletAddress: void 0,
|
|
19081
|
+
documents: [],
|
|
19082
|
+
documentsNotAgreed: []
|
|
19083
|
+
};
|
|
18977
19084
|
}
|
|
18978
19085
|
return context;
|
|
18979
19086
|
};
|
|
@@ -20171,6 +20278,6 @@ var VechainKitThemeProvider = ({
|
|
|
20171
20278
|
] });
|
|
20172
20279
|
};
|
|
20173
20280
|
|
|
20174
|
-
export { AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, AppearanceSettingsContent, AssetButton, AssetsContent, BalanceSection, BaseModal, BridgeContent, ChangeCurrencyContent, ChooseNameContent, ChooseNameModalProvider, ChooseNameSearchContent, ChooseNameSummaryContent, ConnectModal, ConnectModalProvider, ConnectPopover, ConnectionButton, CrossAppConnectionSecurityCard, CustomizationContent, CustomizationSummaryContent, DappKitButton, DisconnectConfirmContent, DomainRequiredAlert, EcosystemButton, EcosystemModal, EmailLoginButton, EmbeddedWalletContent, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, GeneralSettingsContent, LanguageSettingsContent, LegalDocumentItem, LegalDocumentsModal, LegalDocumentsProvider, LocalStorageKey, LoginLoadingModal, LoginWithGoogleButton, MAX_IMAGE_SIZE, MainContent, ManageCustomTokenContent, ModalBackButton, ModalFAQButton, ModalNotificationButton, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyButton, PrivyWalletProvider, ProfileCard, ProfileContent, ProfileModalProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, ScrollToTopWrapper, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SettingsContent, ShareButtons, SocialIcons, StickyFooterContainer, StickyHeaderContainer, SwapTokenContent, TermsAndPrivacyContent, TransactionButtonAndStatus, TransactionModal, TransactionModalContent, TransactionModalProvider, TransactionToast, TransactionToastProvider, UpgradeSmartAccountContent, UpgradeSmartAccountModal, UpgradeSmartAccountModalProvider, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VechainKitThemeProvider, VersionFooter, WalletButton, WalletModalProvider, compressImages, currentBlockQueryKey, fetchAppHubApps, fetchPrivyAppInfo, fetchPrivyStatus, fetchVechainDomain, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersionQueryKey, getAllEventLogs, getAppHubAppsQueryKey, getAvatar, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getCallClauseQueryKey, getCallClauseQueryKeyWithArgs, getChainId, getChainIdQueryKey, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEventLogs, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsPersonQueryKey, getPrivyAppInfoQueryKey, getResolverAddressQueryKey, getRoundXAppsQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getXAppMetadata, getXAppsSharesQueryKey, imageCompressionOptions, txReceiptQueryKey, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountModal, useAppHubApps, useBuildTransaction, useCallClause, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRoundId, useCurrentBlock, useCustomTokens, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDomainsOfAddress, useGetErc20Balance, useGetNodeUrl, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetVot3Balance, useHasV1SmartAccount, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsDomainProtected, useIsPWA, useIsPerson, useIsSmartAccountDeployed, useLegalDocuments, useLocalStorage, useLoginModalContent, useLoginWithOAuth2 as useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useNotificationAlerts, useNotifications, useNotificationsModal, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshFactoryQueries, useRefreshMetadata, useRefreshSmartAccountQueries, useRoundXApps, useScrollToTop, useSendTokenModal, useSendTransaction, useSignMessage2 as useSignMessage, useSignTypedData2 as useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useTokenBalances, useTokenPrices, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useVeChainKitConfig, useVechainDomain, useWallet, useWalletMetadata, useWalletModal2 as useWalletModal, useXAppMetadata, useXAppsShares };
|
|
20281
|
+
export { AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, AppearanceSettingsContent, AssetButton, AssetsContent, BalanceSection, BaseModal, BridgeContent, ChangeCurrencyContent, ChooseNameContent, ChooseNameModalProvider, ChooseNameSearchContent, ChooseNameSummaryContent, ConnectModal, ConnectModalProvider, ConnectPopover, ConnectionButton, CrossAppConnectionSecurityCard, CustomizationContent, CustomizationSummaryContent, DappKitButton, DisconnectConfirmContent, DomainRequiredAlert, EcosystemButton, EcosystemModal, EmailLoginButton, EmbeddedWalletContent, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, GeneralSettingsContent, LanguageSettingsContent, LegalDocumentItem, LegalDocumentsModal, LegalDocumentsProvider, LocalStorageKey, LoginLoadingModal, LoginWithGoogleButton, MAX_IMAGE_SIZE, MainContent, ManageCustomTokenContent, ModalBackButton, ModalFAQButton, ModalNotificationButton, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyButton, PrivyWalletProvider, ProfileCard, ProfileContent, ProfileModalProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, ScrollToTopWrapper, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SettingsContent, ShareButtons, SocialIcons, StickyFooterContainer, StickyHeaderContainer, SwapTokenContent, TermsAndPrivacyContent, TransactionButtonAndStatus, TransactionModal, TransactionModalContent, TransactionModalProvider, TransactionToast, TransactionToastProvider, UpgradeSmartAccountContent, UpgradeSmartAccountModal, UpgradeSmartAccountModalProvider, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VechainKitThemeProvider, VersionFooter, WalletButton, WalletModalProvider, compressImages, currentBlockQueryKey, decodeEventLog, fetchAppHubApps, fetchPrivyAppInfo, fetchPrivyStatus, fetchVechainDomain, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersionQueryKey, getAllEventLogs, getAppHubAppsQueryKey, getAvatar, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getCallClauseQueryKey, getCallClauseQueryKeyWithArgs, getChainId, getChainIdQueryKey, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEventLogs, getEventsKey, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsPersonQueryKey, getPrivyAppInfoQueryKey, getResolverAddressQueryKey, getRoundXAppsQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getXAppMetadata, getXAppsSharesQueryKey, imageCompressionOptions, txReceiptQueryKey, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountModal, useAppHubApps, useBuildTransaction, useCallClause, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRoundId, useCurrentBlock, useCustomTokens, useEcosystemShortcuts, useEnsRecordExists, useEvents, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDomainsOfAddress, useGetErc20Balance, useGetNodeUrl, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetVot3Balance, useHasV1SmartAccount, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsDomainProtected, useIsPWA, useIsPerson, useIsSmartAccountDeployed, useLegalDocuments, useLocalStorage, useLoginModalContent, useLoginWithOAuth2 as useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleClausesCall, useNotificationAlerts, useNotifications, useNotificationsModal, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshFactoryQueries, useRefreshMetadata, useRefreshSmartAccountQueries, useRoundXApps, useScrollToTop, useSendTokenModal, useSendTransaction, useSignMessage2 as useSignMessage, useSignTypedData2 as useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useTokenBalances, useTokenPrices, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useVeChainKitConfig, useVechainDomain, useWallet, useWalletMetadata, useWalletModal2 as useWalletModal, useXAppMetadata, useXAppsShares };
|
|
20175
20282
|
//# sourceMappingURL=index.js.map
|
|
20176
20283
|
//# sourceMappingURL=index.js.map
|