@vechain/vechain-kit 2.0.0-rc.2 → 2.0.0-rc.3
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/{chunk-PTWGTINW.cjs → chunk-LMX37RCG.cjs} +3 -3
- package/dist/chunk-LMX37RCG.cjs.map +1 -0
- package/dist/{chunk-R722OBPE.js → chunk-SNDIAFF7.js} +3 -3
- package/dist/chunk-SNDIAFF7.js.map +1 -0
- package/dist/index.cjs +392 -290
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -35
- package/dist/index.d.ts +27 -35
- package/dist/index.js +176 -76
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/utils/index.cjs +52 -52
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-PTWGTINW.cjs.map +0 -1
- package/dist/chunk-R722OBPE.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1016,8 +1016,9 @@ type SendTokenSummaryContentProps = {
|
|
|
1016
1016
|
resolvedAddress?: string;
|
|
1017
1017
|
amount: string;
|
|
1018
1018
|
selectedToken: TokenWithValue;
|
|
1019
|
+
formattedTotalAmount: string;
|
|
1019
1020
|
};
|
|
1020
|
-
declare const SendTokenSummaryContent: ({ setCurrentContent, toAddressOrDomain, resolvedDomain, resolvedAddress, amount, selectedToken, }: SendTokenSummaryContentProps) => react_jsx_runtime.JSX.Element;
|
|
1021
|
+
declare const SendTokenSummaryContent: ({ setCurrentContent, toAddressOrDomain, resolvedDomain, resolvedAddress, amount, selectedToken, formattedTotalAmount, }: SendTokenSummaryContentProps) => react_jsx_runtime.JSX.Element;
|
|
1021
1022
|
|
|
1022
1023
|
type Props$l = {
|
|
1023
1024
|
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
@@ -1624,17 +1625,23 @@ type ExtractViewFunction<TAbi extends Abi, TMethod extends ExtractAbiFunctionNam
|
|
|
1624
1625
|
stateMutability: 'pure' | 'view';
|
|
1625
1626
|
name: TMethod;
|
|
1626
1627
|
}>;
|
|
1627
|
-
declare const getCallClauseQueryKey: <TAbi extends Abi
|
|
1628
|
+
declare const getCallClauseQueryKey: <TAbi extends Abi, TMethod extends ExtractAbiFunctionNames<TAbi, "pure" | "view">>({ abi, address, method, }: {
|
|
1629
|
+
abi: TAbi;
|
|
1628
1630
|
address: string;
|
|
1629
|
-
method:
|
|
1630
|
-
|
|
1631
|
-
|
|
1631
|
+
method: TMethod;
|
|
1632
|
+
}) => string[];
|
|
1633
|
+
declare const getCallClauseQueryKeyWithArgs: <TAbi extends Abi, TMethod extends ExtractAbiFunctionNames<TAbi, "pure" | "view">>({ abi, address, method, args, }: {
|
|
1634
|
+
abi: TAbi;
|
|
1635
|
+
address: string;
|
|
1636
|
+
method: TMethod;
|
|
1637
|
+
args?: AbiParametersToPrimitiveTypes<ExtractViewFunction<TAbi, TMethod>["inputs"], "inputs">;
|
|
1638
|
+
}) => (string | unknown[])[];
|
|
1632
1639
|
declare const useCallClause: <TAbi extends Abi, TMethod extends ExtractAbiFunctionNames<TAbi, "pure" | "view">, TData = ViewFunctionResult<TAbi, TMethod>>({ address, abi, method, args, queryOptions, }: {
|
|
1633
1640
|
address: string;
|
|
1634
1641
|
abi: TAbi;
|
|
1635
1642
|
method: TMethod;
|
|
1636
1643
|
args: AbiParametersToPrimitiveTypes<ExtractViewFunction<TAbi, TMethod>["inputs"], "inputs">;
|
|
1637
|
-
queryOptions?: Omit<UseQueryOptions<ViewFunctionResult<TAbi, TMethod>, unknown, TData, ReturnType<typeof
|
|
1644
|
+
queryOptions?: Omit<UseQueryOptions<ViewFunctionResult<TAbi, TMethod>, unknown, TData, ReturnType<typeof getCallClauseQueryKeyWithArgs<TAbi, TMethod>>>, "queryKey" | "queryFn">;
|
|
1638
1645
|
}) => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<TData>, unknown>;
|
|
1639
1646
|
|
|
1640
1647
|
/**
|
|
@@ -1733,7 +1740,7 @@ declare const getAccountAddressQueryKey: (ownerAddress?: string, networkType?: N
|
|
|
1733
1740
|
*/
|
|
1734
1741
|
declare const useGetAccountAddress: (ownerAddress?: string) => _tanstack_react_query.UseQueryResult<string, Error>;
|
|
1735
1742
|
|
|
1736
|
-
declare const getAccountVersionQueryKey: (accountAddress: string, ownerAddress: string, networkType: NETWORK_TYPE) => (string | unknown[]
|
|
1743
|
+
declare const getAccountVersionQueryKey: (accountAddress: string, ownerAddress: string, networkType: NETWORK_TYPE) => (string | unknown[])[];
|
|
1737
1744
|
/**
|
|
1738
1745
|
* Check if a smart account has a v1 smart account
|
|
1739
1746
|
* @param accountAddress - The address of the smart account
|
|
@@ -1959,7 +1966,7 @@ type UserNode = {
|
|
|
1959
1966
|
* @param networkType the network type
|
|
1960
1967
|
* @param user - The address of the user to check (non-optional)
|
|
1961
1968
|
*/
|
|
1962
|
-
declare const getUserNodesQueryKey: (networkType: NETWORK_TYPE, user: string) => (string | unknown[]
|
|
1969
|
+
declare const getUserNodesQueryKey: (networkType: NETWORK_TYPE, user: string) => (string | unknown[])[];
|
|
1963
1970
|
/**
|
|
1964
1971
|
* Hook to get delegation details for all nodes associated with a user
|
|
1965
1972
|
* @param userInput - The address of the user to check
|
|
@@ -1981,7 +1988,7 @@ declare const getTokenUsdPriceQueryKey: (token: SupportedToken) => string[];
|
|
|
1981
1988
|
declare const useGetTokenUsdPrice: (token: SupportedToken) => _tanstack_react_query.UseQueryResult<number, Error>;
|
|
1982
1989
|
|
|
1983
1990
|
declare const getVot3Balance: (thor: ThorClient, network: NETWORK_TYPE, address?: string) => Promise<TokenBalance>;
|
|
1984
|
-
declare const getVot3BalanceQueryKey: (address
|
|
1991
|
+
declare const getVot3BalanceQueryKey: (address: string) => string[];
|
|
1985
1992
|
declare const useGetVot3Balance: (address?: string) => _tanstack_react_query.UseQueryResult<TokenBalance, Error>;
|
|
1986
1993
|
|
|
1987
1994
|
/**
|
|
@@ -1990,7 +1997,7 @@ declare const useGetVot3Balance: (address?: string) => _tanstack_react_query.Use
|
|
|
1990
1997
|
* @param user - The user address.
|
|
1991
1998
|
* @returns The query key for fetching the isPerson status.
|
|
1992
1999
|
*/
|
|
1993
|
-
declare const getIsPersonQueryKey: (networkType: NETWORK_TYPE, user: string) => (string | unknown[]
|
|
2000
|
+
declare const getIsPersonQueryKey: (networkType: NETWORK_TYPE, user: string) => (string | unknown[])[];
|
|
1994
2001
|
/**
|
|
1995
2002
|
* Hook to get the isPerson status from the VeBetterPassport contract.
|
|
1996
2003
|
* @param user - The user address.
|
|
@@ -2012,7 +2019,7 @@ declare const useIsUserPerson: (address?: string) => _tanstack_react_query.UseQu
|
|
|
2012
2019
|
* @param timepoint - The block number (as a string or number).
|
|
2013
2020
|
* @returns The query key for fetching the isPerson status at a given block number.
|
|
2014
2021
|
*/
|
|
2015
|
-
declare const getIsPersonAtTimepointQueryKey: (networkType: NETWORK_TYPE, user: string, timepoint: string) => (string | unknown[]
|
|
2022
|
+
declare const getIsPersonAtTimepointQueryKey: (networkType: NETWORK_TYPE, user: string, timepoint: string) => (string | unknown[])[];
|
|
2016
2023
|
/**
|
|
2017
2024
|
* Hook to get the isPerson status from the VeBetterPassport contract at a specific timepoint.
|
|
2018
2025
|
* @param user - The user address.
|
|
@@ -2028,7 +2035,7 @@ declare const useIsPersonAtTimepoint: (user?: string, timepoint?: string, custom
|
|
|
2028
2035
|
* @param userAddress - The user address.
|
|
2029
2036
|
* @returns The query key for fetching the user bot signals.
|
|
2030
2037
|
*/
|
|
2031
|
-
declare const getUserBotSignalsQueryKey: (networkType: NETWORK_TYPE, userAddress: string) => (string | unknown[]
|
|
2038
|
+
declare const getUserBotSignalsQueryKey: (networkType: NETWORK_TYPE, userAddress: string) => (string | unknown[])[];
|
|
2032
2039
|
/**
|
|
2033
2040
|
* Hook to get the user bot signals (signaledCounter) from the VeBetterPassport contract.
|
|
2034
2041
|
* @param userAddressInput - The user address.
|
|
@@ -2088,6 +2095,7 @@ declare const useRoundReward: (address: string, roundId: string) => _tanstack_re
|
|
|
2088
2095
|
type XAppMetadata = {
|
|
2089
2096
|
name: string;
|
|
2090
2097
|
description: string;
|
|
2098
|
+
distribution_strategy?: string;
|
|
2091
2099
|
external_url: string;
|
|
2092
2100
|
logo: string;
|
|
2093
2101
|
banner: string;
|
|
@@ -2105,6 +2113,7 @@ type XAppMetadata = {
|
|
|
2105
2113
|
ve_world: {
|
|
2106
2114
|
banner: string;
|
|
2107
2115
|
};
|
|
2116
|
+
categories: string[];
|
|
2108
2117
|
};
|
|
2109
2118
|
/**
|
|
2110
2119
|
dapp-kit broke the pre-fetching
|
|
@@ -2460,7 +2469,7 @@ declare const useXAppsShares: (apps: string[], roundId?: string) => _tanstack_re
|
|
|
2460
2469
|
unallocatedShare: number;
|
|
2461
2470
|
}[], Error>;
|
|
2462
2471
|
|
|
2463
|
-
declare const getXAppsMetadataBaseUriQueryKey: (network: NETWORK_TYPE) => (string | unknown[]
|
|
2472
|
+
declare const getXAppsMetadataBaseUriQueryKey: (network: NETWORK_TYPE) => (string | unknown[])[];
|
|
2464
2473
|
/**
|
|
2465
2474
|
* Hook to get the baseUri of the xApps metadata
|
|
2466
2475
|
* @returns the baseUri of the xApps metadata
|
|
@@ -2518,7 +2527,7 @@ declare const RoundState: {
|
|
|
2518
2527
|
readonly 1: "Failed";
|
|
2519
2528
|
readonly 2: "Succeeded";
|
|
2520
2529
|
};
|
|
2521
|
-
declare const getAllocationsRoundStateQueryKey: (roundId: string, network: NETWORK_TYPE) => (string | unknown[]
|
|
2530
|
+
declare const getAllocationsRoundStateQueryKey: (roundId: string, network: NETWORK_TYPE) => (string | unknown[])[];
|
|
2522
2531
|
/**
|
|
2523
2532
|
* Hook to get the state of a given roundId
|
|
2524
2533
|
* @param roundId the roundId to get state for
|
|
@@ -2526,14 +2535,14 @@ declare const getAllocationsRoundStateQueryKey: (roundId: string, network: NETWO
|
|
|
2526
2535
|
*/
|
|
2527
2536
|
declare const useAllocationsRoundState: (roundId?: string) => _tanstack_react_query.UseQueryResult<0 | 1 | 2, unknown>;
|
|
2528
2537
|
|
|
2529
|
-
declare const getCurrentAllocationsRoundIdQueryKey: (network: NETWORK_TYPE) => (string | unknown[]
|
|
2538
|
+
declare const getCurrentAllocationsRoundIdQueryKey: (network: NETWORK_TYPE) => (string | unknown[])[];
|
|
2530
2539
|
/**
|
|
2531
2540
|
* Hook to get the current roundId of allocations voting
|
|
2532
2541
|
* @returns the current roundId of allocations voting
|
|
2533
2542
|
*/
|
|
2534
2543
|
declare const useCurrentAllocationsRoundId: () => _tanstack_react_query.UseQueryResult<string, unknown>;
|
|
2535
2544
|
|
|
2536
|
-
declare const getHasVotedInRoundQueryKey: (roundId: string, address: string, networkType: NETWORK_TYPE) => (string | unknown[]
|
|
2545
|
+
declare const getHasVotedInRoundQueryKey: (roundId: string, address: string, networkType: NETWORK_TYPE) => (string | unknown[])[];
|
|
2537
2546
|
/**
|
|
2538
2547
|
* Hook to get if a user has voted in a given roundId
|
|
2539
2548
|
* @param roundId the roundId the get the votes for
|
|
@@ -3095,7 +3104,7 @@ declare const useAllocationsRound: (roundId?: string) => {
|
|
|
3095
3104
|
* @param roundId the roundId the get the votes for
|
|
3096
3105
|
* @param appId the xApp id (bytes32 hex string)
|
|
3097
3106
|
*/
|
|
3098
|
-
declare const getXAppVotesQueryKey: (networkType: NETWORK_TYPE, roundId: number | string, appId: string) => (string | unknown[]
|
|
3107
|
+
declare const getXAppVotesQueryKey: (networkType: NETWORK_TYPE, roundId: number | string, appId: string) => (string | unknown[])[];
|
|
3099
3108
|
/**
|
|
3100
3109
|
* Hook to get the number of votes for a given app in a roundId
|
|
3101
3110
|
*
|
|
@@ -3285,21 +3294,4 @@ declare const txReceiptQueryKey: (txId: string) => string[];
|
|
|
3285
3294
|
*/
|
|
3286
3295
|
declare const useTxReceipt: (txId: string, blockTimeout?: number) => _tanstack_react_query.UseQueryResult<_vechain_sdk_network.TransactionReceipt, Error>;
|
|
3287
3296
|
|
|
3288
|
-
|
|
3289
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#use_within_json
|
|
3290
|
-
* By default, BigInt values cannot be serialized to JSON and will throw an error:
|
|
3291
|
-
* "TypeError: Do not know how to serialize a BigInt"
|
|
3292
|
-
*
|
|
3293
|
-
* This adds a toJSON method to BigInt prototype to allow serialization while preserving
|
|
3294
|
-
* the original BigInt type for contract call arguments. This enables proper type checking
|
|
3295
|
-
* of contract calls while still allowing BigInt values to be safely serialized.
|
|
3296
|
-
*/
|
|
3297
|
-
declare global {
|
|
3298
|
-
interface BigInt {
|
|
3299
|
-
toJSON(): {
|
|
3300
|
-
$bigint: string;
|
|
3301
|
-
};
|
|
3302
|
-
}
|
|
3303
|
-
}
|
|
3304
|
-
|
|
3305
|
-
export { AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, type AccountCustomizationContentProps, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AllocationRoundWithState, type AllocationVoteCastEvent, 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, type RoundCreated, RoundState, 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, type UnendorsedApp, UpgradeSmartAccountContent, type UpgradeSmartAccountContentProps, UpgradeSmartAccountModal, type UpgradeSmartAccountModalContentsTypes, UpgradeSmartAccountModalProvider, type UpgradeSmartAccountModalStyle, type UploadedImage, type UseSendTransactionReturnValue, type UseWalletReturnType, type UserNode, 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, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppHubAppsQueryKey, getAvatar, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getCallClauseQueryKey, getChainId, getChainIdQueryKey, getConfig, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEventLogs, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getPrivyAppInfoQueryKey, getResolverAddressQueryKey, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getUserBotSignalsQueryKey, getUserNodesQueryKey, getUserVotesInRound, getUserVotesInRoundQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getVotesInRoundQueryKey, getXAppMetadata, getXAppMetadataQueryKey, getXAppRoundEarnings, getXAppRoundEarningsQueryKey, getXAppTotalEarningsQueryKey, getXAppVotesQueryKey, getXApps, getXAppsMetadataBaseUriQueryKey, getXAppsQueryKey, getXAppsSharesQueryKey, imageCompressionOptions, txReceiptQueryKey, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountModal, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppHubApps, useBuildTransaction, useCallClause, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useCustomTokens, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGalaxyMemberTokensInfo, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDomainsOfAddress, useGetErc20Balance, useGetNodeUrl, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetUserNode, useGetUserNodes, useGetVeDelegateBalance, useGetVot3Balance, useHasV1SmartAccount, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsDomainProtected, useIsPWA, useIsPerson, useIsPersonAtTimepoint, useIsSmartAccountDeployed, useIsUserPerson, useLegalDocuments, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNotificationAlerts, useNotifications, useNotificationsModal, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshFactoryQueries, useRefreshMetadata, useRefreshSmartAccountQueries, useRoundReward, useRoundXApps, useScrollToTop, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useTokenBalances, useTokenBalances2, useTokenPrices, useTokenPrices2, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useUserBotSignals, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletMetadata, useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXApps, useXAppsMetadataBaseUri, useXAppsShares };
|
|
3297
|
+
export { AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, type AccountCustomizationContentProps, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AllocationRoundWithState, type AllocationVoteCastEvent, 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, type RoundCreated, RoundState, 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, type UnendorsedApp, UpgradeSmartAccountContent, type UpgradeSmartAccountContentProps, UpgradeSmartAccountModal, type UpgradeSmartAccountModalContentsTypes, UpgradeSmartAccountModalProvider, type UpgradeSmartAccountModalStyle, type UploadedImage, type UseSendTransactionReturnValue, type UseWalletReturnType, type UserNode, 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, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, 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, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getPrivyAppInfoQueryKey, getResolverAddressQueryKey, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getUserBotSignalsQueryKey, getUserNodesQueryKey, getUserVotesInRound, getUserVotesInRoundQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getVotesInRoundQueryKey, getXAppMetadata, getXAppMetadataQueryKey, getXAppRoundEarnings, getXAppRoundEarningsQueryKey, getXAppTotalEarningsQueryKey, getXAppVotesQueryKey, getXApps, getXAppsMetadataBaseUriQueryKey, getXAppsQueryKey, getXAppsSharesQueryKey, imageCompressionOptions, txReceiptQueryKey, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountModal, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppHubApps, useBuildTransaction, useCallClause, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useCustomTokens, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGalaxyMemberTokensInfo, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDomainsOfAddress, useGetErc20Balance, useGetNodeUrl, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetUserNode, useGetUserNodes, useGetVeDelegateBalance, useGetVot3Balance, useHasV1SmartAccount, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsDomainProtected, useIsPWA, useIsPerson, useIsPersonAtTimepoint, useIsSmartAccountDeployed, useIsUserPerson, useLegalDocuments, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNotificationAlerts, useNotifications, useNotificationsModal, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshFactoryQueries, useRefreshMetadata, useRefreshSmartAccountQueries, useRoundReward, useRoundXApps, useScrollToTop, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useTokenBalances, useTokenBalances2, useTokenPrices, useTokenPrices2, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useUserBotSignals, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletMetadata, useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXApps, useXAppsMetadataBaseUri, useXAppsShares };
|
package/dist/index.d.ts
CHANGED
|
@@ -1016,8 +1016,9 @@ type SendTokenSummaryContentProps = {
|
|
|
1016
1016
|
resolvedAddress?: string;
|
|
1017
1017
|
amount: string;
|
|
1018
1018
|
selectedToken: TokenWithValue;
|
|
1019
|
+
formattedTotalAmount: string;
|
|
1019
1020
|
};
|
|
1020
|
-
declare const SendTokenSummaryContent: ({ setCurrentContent, toAddressOrDomain, resolvedDomain, resolvedAddress, amount, selectedToken, }: SendTokenSummaryContentProps) => react_jsx_runtime.JSX.Element;
|
|
1021
|
+
declare const SendTokenSummaryContent: ({ setCurrentContent, toAddressOrDomain, resolvedDomain, resolvedAddress, amount, selectedToken, formattedTotalAmount, }: SendTokenSummaryContentProps) => react_jsx_runtime.JSX.Element;
|
|
1021
1022
|
|
|
1022
1023
|
type Props$l = {
|
|
1023
1024
|
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
@@ -1624,17 +1625,23 @@ type ExtractViewFunction<TAbi extends Abi, TMethod extends ExtractAbiFunctionNam
|
|
|
1624
1625
|
stateMutability: 'pure' | 'view';
|
|
1625
1626
|
name: TMethod;
|
|
1626
1627
|
}>;
|
|
1627
|
-
declare const getCallClauseQueryKey: <TAbi extends Abi
|
|
1628
|
+
declare const getCallClauseQueryKey: <TAbi extends Abi, TMethod extends ExtractAbiFunctionNames<TAbi, "pure" | "view">>({ abi, address, method, }: {
|
|
1629
|
+
abi: TAbi;
|
|
1628
1630
|
address: string;
|
|
1629
|
-
method:
|
|
1630
|
-
|
|
1631
|
-
|
|
1631
|
+
method: TMethod;
|
|
1632
|
+
}) => string[];
|
|
1633
|
+
declare const getCallClauseQueryKeyWithArgs: <TAbi extends Abi, TMethod extends ExtractAbiFunctionNames<TAbi, "pure" | "view">>({ abi, address, method, args, }: {
|
|
1634
|
+
abi: TAbi;
|
|
1635
|
+
address: string;
|
|
1636
|
+
method: TMethod;
|
|
1637
|
+
args?: AbiParametersToPrimitiveTypes<ExtractViewFunction<TAbi, TMethod>["inputs"], "inputs">;
|
|
1638
|
+
}) => (string | unknown[])[];
|
|
1632
1639
|
declare const useCallClause: <TAbi extends Abi, TMethod extends ExtractAbiFunctionNames<TAbi, "pure" | "view">, TData = ViewFunctionResult<TAbi, TMethod>>({ address, abi, method, args, queryOptions, }: {
|
|
1633
1640
|
address: string;
|
|
1634
1641
|
abi: TAbi;
|
|
1635
1642
|
method: TMethod;
|
|
1636
1643
|
args: AbiParametersToPrimitiveTypes<ExtractViewFunction<TAbi, TMethod>["inputs"], "inputs">;
|
|
1637
|
-
queryOptions?: Omit<UseQueryOptions<ViewFunctionResult<TAbi, TMethod>, unknown, TData, ReturnType<typeof
|
|
1644
|
+
queryOptions?: Omit<UseQueryOptions<ViewFunctionResult<TAbi, TMethod>, unknown, TData, ReturnType<typeof getCallClauseQueryKeyWithArgs<TAbi, TMethod>>>, "queryKey" | "queryFn">;
|
|
1638
1645
|
}) => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<TData>, unknown>;
|
|
1639
1646
|
|
|
1640
1647
|
/**
|
|
@@ -1733,7 +1740,7 @@ declare const getAccountAddressQueryKey: (ownerAddress?: string, networkType?: N
|
|
|
1733
1740
|
*/
|
|
1734
1741
|
declare const useGetAccountAddress: (ownerAddress?: string) => _tanstack_react_query.UseQueryResult<string, Error>;
|
|
1735
1742
|
|
|
1736
|
-
declare const getAccountVersionQueryKey: (accountAddress: string, ownerAddress: string, networkType: NETWORK_TYPE) => (string | unknown[]
|
|
1743
|
+
declare const getAccountVersionQueryKey: (accountAddress: string, ownerAddress: string, networkType: NETWORK_TYPE) => (string | unknown[])[];
|
|
1737
1744
|
/**
|
|
1738
1745
|
* Check if a smart account has a v1 smart account
|
|
1739
1746
|
* @param accountAddress - The address of the smart account
|
|
@@ -1959,7 +1966,7 @@ type UserNode = {
|
|
|
1959
1966
|
* @param networkType the network type
|
|
1960
1967
|
* @param user - The address of the user to check (non-optional)
|
|
1961
1968
|
*/
|
|
1962
|
-
declare const getUserNodesQueryKey: (networkType: NETWORK_TYPE, user: string) => (string | unknown[]
|
|
1969
|
+
declare const getUserNodesQueryKey: (networkType: NETWORK_TYPE, user: string) => (string | unknown[])[];
|
|
1963
1970
|
/**
|
|
1964
1971
|
* Hook to get delegation details for all nodes associated with a user
|
|
1965
1972
|
* @param userInput - The address of the user to check
|
|
@@ -1981,7 +1988,7 @@ declare const getTokenUsdPriceQueryKey: (token: SupportedToken) => string[];
|
|
|
1981
1988
|
declare const useGetTokenUsdPrice: (token: SupportedToken) => _tanstack_react_query.UseQueryResult<number, Error>;
|
|
1982
1989
|
|
|
1983
1990
|
declare const getVot3Balance: (thor: ThorClient, network: NETWORK_TYPE, address?: string) => Promise<TokenBalance>;
|
|
1984
|
-
declare const getVot3BalanceQueryKey: (address
|
|
1991
|
+
declare const getVot3BalanceQueryKey: (address: string) => string[];
|
|
1985
1992
|
declare const useGetVot3Balance: (address?: string) => _tanstack_react_query.UseQueryResult<TokenBalance, Error>;
|
|
1986
1993
|
|
|
1987
1994
|
/**
|
|
@@ -1990,7 +1997,7 @@ declare const useGetVot3Balance: (address?: string) => _tanstack_react_query.Use
|
|
|
1990
1997
|
* @param user - The user address.
|
|
1991
1998
|
* @returns The query key for fetching the isPerson status.
|
|
1992
1999
|
*/
|
|
1993
|
-
declare const getIsPersonQueryKey: (networkType: NETWORK_TYPE, user: string) => (string | unknown[]
|
|
2000
|
+
declare const getIsPersonQueryKey: (networkType: NETWORK_TYPE, user: string) => (string | unknown[])[];
|
|
1994
2001
|
/**
|
|
1995
2002
|
* Hook to get the isPerson status from the VeBetterPassport contract.
|
|
1996
2003
|
* @param user - The user address.
|
|
@@ -2012,7 +2019,7 @@ declare const useIsUserPerson: (address?: string) => _tanstack_react_query.UseQu
|
|
|
2012
2019
|
* @param timepoint - The block number (as a string or number).
|
|
2013
2020
|
* @returns The query key for fetching the isPerson status at a given block number.
|
|
2014
2021
|
*/
|
|
2015
|
-
declare const getIsPersonAtTimepointQueryKey: (networkType: NETWORK_TYPE, user: string, timepoint: string) => (string | unknown[]
|
|
2022
|
+
declare const getIsPersonAtTimepointQueryKey: (networkType: NETWORK_TYPE, user: string, timepoint: string) => (string | unknown[])[];
|
|
2016
2023
|
/**
|
|
2017
2024
|
* Hook to get the isPerson status from the VeBetterPassport contract at a specific timepoint.
|
|
2018
2025
|
* @param user - The user address.
|
|
@@ -2028,7 +2035,7 @@ declare const useIsPersonAtTimepoint: (user?: string, timepoint?: string, custom
|
|
|
2028
2035
|
* @param userAddress - The user address.
|
|
2029
2036
|
* @returns The query key for fetching the user bot signals.
|
|
2030
2037
|
*/
|
|
2031
|
-
declare const getUserBotSignalsQueryKey: (networkType: NETWORK_TYPE, userAddress: string) => (string | unknown[]
|
|
2038
|
+
declare const getUserBotSignalsQueryKey: (networkType: NETWORK_TYPE, userAddress: string) => (string | unknown[])[];
|
|
2032
2039
|
/**
|
|
2033
2040
|
* Hook to get the user bot signals (signaledCounter) from the VeBetterPassport contract.
|
|
2034
2041
|
* @param userAddressInput - The user address.
|
|
@@ -2088,6 +2095,7 @@ declare const useRoundReward: (address: string, roundId: string) => _tanstack_re
|
|
|
2088
2095
|
type XAppMetadata = {
|
|
2089
2096
|
name: string;
|
|
2090
2097
|
description: string;
|
|
2098
|
+
distribution_strategy?: string;
|
|
2091
2099
|
external_url: string;
|
|
2092
2100
|
logo: string;
|
|
2093
2101
|
banner: string;
|
|
@@ -2105,6 +2113,7 @@ type XAppMetadata = {
|
|
|
2105
2113
|
ve_world: {
|
|
2106
2114
|
banner: string;
|
|
2107
2115
|
};
|
|
2116
|
+
categories: string[];
|
|
2108
2117
|
};
|
|
2109
2118
|
/**
|
|
2110
2119
|
dapp-kit broke the pre-fetching
|
|
@@ -2460,7 +2469,7 @@ declare const useXAppsShares: (apps: string[], roundId?: string) => _tanstack_re
|
|
|
2460
2469
|
unallocatedShare: number;
|
|
2461
2470
|
}[], Error>;
|
|
2462
2471
|
|
|
2463
|
-
declare const getXAppsMetadataBaseUriQueryKey: (network: NETWORK_TYPE) => (string | unknown[]
|
|
2472
|
+
declare const getXAppsMetadataBaseUriQueryKey: (network: NETWORK_TYPE) => (string | unknown[])[];
|
|
2464
2473
|
/**
|
|
2465
2474
|
* Hook to get the baseUri of the xApps metadata
|
|
2466
2475
|
* @returns the baseUri of the xApps metadata
|
|
@@ -2518,7 +2527,7 @@ declare const RoundState: {
|
|
|
2518
2527
|
readonly 1: "Failed";
|
|
2519
2528
|
readonly 2: "Succeeded";
|
|
2520
2529
|
};
|
|
2521
|
-
declare const getAllocationsRoundStateQueryKey: (roundId: string, network: NETWORK_TYPE) => (string | unknown[]
|
|
2530
|
+
declare const getAllocationsRoundStateQueryKey: (roundId: string, network: NETWORK_TYPE) => (string | unknown[])[];
|
|
2522
2531
|
/**
|
|
2523
2532
|
* Hook to get the state of a given roundId
|
|
2524
2533
|
* @param roundId the roundId to get state for
|
|
@@ -2526,14 +2535,14 @@ declare const getAllocationsRoundStateQueryKey: (roundId: string, network: NETWO
|
|
|
2526
2535
|
*/
|
|
2527
2536
|
declare const useAllocationsRoundState: (roundId?: string) => _tanstack_react_query.UseQueryResult<0 | 1 | 2, unknown>;
|
|
2528
2537
|
|
|
2529
|
-
declare const getCurrentAllocationsRoundIdQueryKey: (network: NETWORK_TYPE) => (string | unknown[]
|
|
2538
|
+
declare const getCurrentAllocationsRoundIdQueryKey: (network: NETWORK_TYPE) => (string | unknown[])[];
|
|
2530
2539
|
/**
|
|
2531
2540
|
* Hook to get the current roundId of allocations voting
|
|
2532
2541
|
* @returns the current roundId of allocations voting
|
|
2533
2542
|
*/
|
|
2534
2543
|
declare const useCurrentAllocationsRoundId: () => _tanstack_react_query.UseQueryResult<string, unknown>;
|
|
2535
2544
|
|
|
2536
|
-
declare const getHasVotedInRoundQueryKey: (roundId: string, address: string, networkType: NETWORK_TYPE) => (string | unknown[]
|
|
2545
|
+
declare const getHasVotedInRoundQueryKey: (roundId: string, address: string, networkType: NETWORK_TYPE) => (string | unknown[])[];
|
|
2537
2546
|
/**
|
|
2538
2547
|
* Hook to get if a user has voted in a given roundId
|
|
2539
2548
|
* @param roundId the roundId the get the votes for
|
|
@@ -3095,7 +3104,7 @@ declare const useAllocationsRound: (roundId?: string) => {
|
|
|
3095
3104
|
* @param roundId the roundId the get the votes for
|
|
3096
3105
|
* @param appId the xApp id (bytes32 hex string)
|
|
3097
3106
|
*/
|
|
3098
|
-
declare const getXAppVotesQueryKey: (networkType: NETWORK_TYPE, roundId: number | string, appId: string) => (string | unknown[]
|
|
3107
|
+
declare const getXAppVotesQueryKey: (networkType: NETWORK_TYPE, roundId: number | string, appId: string) => (string | unknown[])[];
|
|
3099
3108
|
/**
|
|
3100
3109
|
* Hook to get the number of votes for a given app in a roundId
|
|
3101
3110
|
*
|
|
@@ -3285,21 +3294,4 @@ declare const txReceiptQueryKey: (txId: string) => string[];
|
|
|
3285
3294
|
*/
|
|
3286
3295
|
declare const useTxReceipt: (txId: string, blockTimeout?: number) => _tanstack_react_query.UseQueryResult<_vechain_sdk_network.TransactionReceipt, Error>;
|
|
3287
3296
|
|
|
3288
|
-
|
|
3289
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#use_within_json
|
|
3290
|
-
* By default, BigInt values cannot be serialized to JSON and will throw an error:
|
|
3291
|
-
* "TypeError: Do not know how to serialize a BigInt"
|
|
3292
|
-
*
|
|
3293
|
-
* This adds a toJSON method to BigInt prototype to allow serialization while preserving
|
|
3294
|
-
* the original BigInt type for contract call arguments. This enables proper type checking
|
|
3295
|
-
* of contract calls while still allowing BigInt values to be safely serialized.
|
|
3296
|
-
*/
|
|
3297
|
-
declare global {
|
|
3298
|
-
interface BigInt {
|
|
3299
|
-
toJSON(): {
|
|
3300
|
-
$bigint: string;
|
|
3301
|
-
};
|
|
3302
|
-
}
|
|
3303
|
-
}
|
|
3304
|
-
|
|
3305
|
-
export { AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, type AccountCustomizationContentProps, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AllocationRoundWithState, type AllocationVoteCastEvent, 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, type RoundCreated, RoundState, 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, type UnendorsedApp, UpgradeSmartAccountContent, type UpgradeSmartAccountContentProps, UpgradeSmartAccountModal, type UpgradeSmartAccountModalContentsTypes, UpgradeSmartAccountModalProvider, type UpgradeSmartAccountModalStyle, type UploadedImage, type UseSendTransactionReturnValue, type UseWalletReturnType, type UserNode, 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, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppHubAppsQueryKey, getAvatar, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getCallClauseQueryKey, getChainId, getChainIdQueryKey, getConfig, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEventLogs, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getPrivyAppInfoQueryKey, getResolverAddressQueryKey, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getUserBotSignalsQueryKey, getUserNodesQueryKey, getUserVotesInRound, getUserVotesInRoundQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getVotesInRoundQueryKey, getXAppMetadata, getXAppMetadataQueryKey, getXAppRoundEarnings, getXAppRoundEarningsQueryKey, getXAppTotalEarningsQueryKey, getXAppVotesQueryKey, getXApps, getXAppsMetadataBaseUriQueryKey, getXAppsQueryKey, getXAppsSharesQueryKey, imageCompressionOptions, txReceiptQueryKey, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountModal, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppHubApps, useBuildTransaction, useCallClause, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useCustomTokens, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGalaxyMemberTokensInfo, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDomainsOfAddress, useGetErc20Balance, useGetNodeUrl, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetUserNode, useGetUserNodes, useGetVeDelegateBalance, useGetVot3Balance, useHasV1SmartAccount, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsDomainProtected, useIsPWA, useIsPerson, useIsPersonAtTimepoint, useIsSmartAccountDeployed, useIsUserPerson, useLegalDocuments, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNotificationAlerts, useNotifications, useNotificationsModal, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshFactoryQueries, useRefreshMetadata, useRefreshSmartAccountQueries, useRoundReward, useRoundXApps, useScrollToTop, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useTokenBalances, useTokenBalances2, useTokenPrices, useTokenPrices2, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useUserBotSignals, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletMetadata, useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXApps, useXAppsMetadataBaseUri, useXAppsShares };
|
|
3297
|
+
export { AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, type AccountCustomizationContentProps, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AllocationRoundWithState, type AllocationVoteCastEvent, 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, type RoundCreated, RoundState, 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, type UnendorsedApp, UpgradeSmartAccountContent, type UpgradeSmartAccountContentProps, UpgradeSmartAccountModal, type UpgradeSmartAccountModalContentsTypes, UpgradeSmartAccountModalProvider, type UpgradeSmartAccountModalStyle, type UploadedImage, type UseSendTransactionReturnValue, type UseWalletReturnType, type UserNode, 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, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, 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, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getPrivyAppInfoQueryKey, getResolverAddressQueryKey, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getUserBotSignalsQueryKey, getUserNodesQueryKey, getUserVotesInRound, getUserVotesInRoundQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getVotesInRoundQueryKey, getXAppMetadata, getXAppMetadataQueryKey, getXAppRoundEarnings, getXAppRoundEarningsQueryKey, getXAppTotalEarningsQueryKey, getXAppVotesQueryKey, getXApps, getXAppsMetadataBaseUriQueryKey, getXAppsQueryKey, getXAppsSharesQueryKey, imageCompressionOptions, txReceiptQueryKey, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountModal, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppHubApps, useBuildTransaction, useCallClause, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useCustomTokens, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGalaxyMemberTokensInfo, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDomainsOfAddress, useGetErc20Balance, useGetNodeUrl, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetUserNode, useGetUserNodes, useGetVeDelegateBalance, useGetVot3Balance, useHasV1SmartAccount, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsDomainProtected, useIsPWA, useIsPerson, useIsPersonAtTimepoint, useIsSmartAccountDeployed, useIsUserPerson, useLegalDocuments, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNotificationAlerts, useNotifications, useNotificationsModal, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshFactoryQueries, useRefreshMetadata, useRefreshSmartAccountQueries, useRoundReward, useRoundXApps, useScrollToTop, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useSyncableLocalStorage, useTokenBalances, useTokenBalances2, useTokenPrices, useTokenPrices2, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useUserBotSignals, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletMetadata, useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXApps, useXAppsMetadataBaseUri, useXAppsShares };
|