@vechain/vechain-kit 2.0.0-rc.3 → 2.0.0-rc.4

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/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, W as Wallet, S as SmartAccount, c as ConnectionSource, E as ENSRecords, d as NFTMediaType, T as TransactionStatus, e as TransactionStatusErrorType, V as ViewFunctionResult, f as CrossAppConnectionCache, g as TokenBalance } from './thorUtils-BOhp47ZG.js';
5
- export { l as CURRENCY_SYMBOLS, j as EnhancedClause, i as ExecuteBatchWithAuthorizationSignData, h as ExecuteWithAuthorizationSignData, M as MultipleClausesCallParameters, m as MultipleClausesCallReturnType, k as VePassportUserStatus, p as buildCallClauses, n as executeCallClause, o as executeMultipleClausesCall } from './thorUtils-BOhp47ZG.js';
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-BlZ9nLeD.js';
5
+ export { l as CURRENCY_SYMBOLS, j as EnhancedClause, i as ExecuteBatchWithAuthorizationSignData, h as ExecuteWithAuthorizationSignData, M as MultipleClausesCallParameters, m as MultipleClausesCallReturnType, k as VePassportUserStatus, p as buildCallClauses, n as executeCallClause, o as executeMultipleClausesCall } from './thorUtils-BlZ9nLeD.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';
@@ -11,7 +11,7 @@ export { WalletButton as DAppKitWalletButton, useWallet as useDAppKitWallet, use
11
11
  import { CustomizedStyle, SourceInfo, I18n } from '@vechain/dapp-kit-ui';
12
12
  import { Certificate, CertificateData, TransactionClause } from '@vechain/sdk-core';
13
13
  import * as _tanstack_react_query from '@tanstack/react-query';
14
- import { UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
14
+ import { UseQueryOptions } from '@tanstack/react-query';
15
15
  import * as _vechain_sdk_network from '@vechain/sdk-network';
16
16
  import { ThorClient, TransactionReceipt, FilterEventLogsOptions, EventLogs } from '@vechain/sdk-network';
17
17
  export { ThorClient } from '@vechain/sdk-network';
@@ -20,7 +20,6 @@ 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
22
  import { Abi } from 'viem';
23
- import * as _tanstack_query_core from '@tanstack/query-core';
24
23
  import { IconType } from 'react-icons';
25
24
  import { UseFormRegister } from 'react-hook-form';
26
25
 
@@ -466,10 +465,7 @@ type WalletTokenBalance = {
466
465
  symbol: string;
467
466
  balance: string;
468
467
  };
469
- type UseTokenBalancesProps = {
470
- address?: string;
471
- };
472
- declare const useTokenBalances: ({ address }: UseTokenBalancesProps) => {
468
+ declare const useTokenBalances: (address?: string) => {
473
469
  balances: WalletTokenBalance[];
474
470
  isLoading: boolean;
475
471
  };
@@ -533,6 +529,27 @@ declare const useTotalBalance: ({ address }: UseTotalBalanceProps) => {
533
529
  hasAnyBalance: boolean;
534
530
  };
535
531
 
532
+ /**
533
+ * Returns the query key for fetching the current allocations round ID.
534
+ * @returns The query key for fetching the current allocations round ID.
535
+ */
536
+ declare const getCurrentAllocationsRoundIdQueryKey: (address: string) => string[];
537
+ /**
538
+ * Hook to get the current roundId of allocations voting
539
+ * @returns the current roundId of allocations voting
540
+ */
541
+ declare const useCurrentAllocationsRoundId: () => _tanstack_react_query.UseQueryResult<string, unknown>;
542
+
543
+ type CustomTokenInfo = {
544
+ name: string;
545
+ address: string;
546
+ decimals: string;
547
+ symbol: string;
548
+ };
549
+ declare const getTokenInfo: (thor: ThorClient, tokenAddress: string) => Promise<CustomTokenInfo>;
550
+ declare const getCustomTokenInfo: (tokenAddress: string) => string[];
551
+ declare const useGetCustomTokenInfo: (tokenAddress: string) => _tanstack_react_query.UseQueryResult<CustomTokenInfo, Error>;
552
+
536
553
  declare const useCustomTokens: () => {
537
554
  customTokens: CustomTokenInfo[];
538
555
  addToken: (address: CustomTokenInfo["address"]) => Promise<void>;
@@ -541,6 +558,93 @@ declare const useCustomTokens: () => {
541
558
  isDefaultToken: (address: string) => boolean;
542
559
  };
543
560
 
561
+ /**
562
+ * Get the b3tr balance of an address from the contract
563
+ * @param thor The thor instance
564
+ * @param network The network type
565
+ * @param address The address to get the balance of. If not provided, will return an error (for better react-query DX)
566
+ * @returns Balance of the token in the form of {@link TokenBalance} (original, scaled down and formatted)
567
+ */
568
+ declare const getB3trBalance: (thor: ThorClient, network: NETWORK_TYPE, address?: string) => Promise<TokenBalance>;
569
+ declare const getB3trBalanceQueryKey: (address?: string) => (string | undefined)[];
570
+ declare const useGetB3trBalance: (address?: string) => _tanstack_react_query.UseQueryResult<TokenBalance, Error>;
571
+
572
+ type TokenWithBalance = CustomTokenInfo & TokenBalance;
573
+ /**
574
+ * Get the b3tr balance of an address from the contract
575
+ * @param thor The thor instance
576
+ * @param network The network type
577
+ * @param address The address to get the balance of. If not provided, will return an error (for better react-query DX)
578
+ * @returns Balance of the token in the form of {@link TokenBalance} (original, scaled down and formatted)
579
+ */
580
+ declare const getCustomTokenBalance: (thor: ThorClient, token: CustomTokenInfo, address?: string) => Promise<TokenWithBalance>;
581
+ declare const getCustomTokenBalanceQueryKey: (tokenAddress?: string, address?: string) => (string | undefined)[];
582
+ declare const useGetCustomTokenBalances: (address?: string) => _tanstack_react_query.UseQueryResult<TokenWithBalance, Error>[];
583
+
584
+ declare const getErc20Balance: (thor: ThorClient, tokenAddress: string, address?: string) => Promise<{
585
+ original: string;
586
+ scaled: string;
587
+ formatted: string;
588
+ }>;
589
+ declare const getErc20BalanceQueryKey: (tokenAddress: string, address?: string) => (string | undefined)[];
590
+ declare const useGetErc20Balance: (tokenAddress: string, address?: string) => _tanstack_react_query.UseQueryResult<{
591
+ original: string;
592
+ scaled: string;
593
+ formatted: string;
594
+ }, Error>;
595
+
596
+ declare const PRICE_FEED_IDS: {
597
+ readonly B3TR: "0x623374722d757364000000000000000000000000000000000000000000000000";
598
+ readonly VET: "0x7665742d75736400000000000000000000000000000000000000000000000000";
599
+ readonly VTHO: "0x7674686f2d757364000000000000000000000000000000000000000000000000";
600
+ readonly GBP: "0x6762702d75736400000000000000000000000000000000000000000000000000";
601
+ readonly EUR: "0x657572742d757364000000000000000000000000000000000000000000000000";
602
+ };
603
+ type SupportedToken = keyof typeof PRICE_FEED_IDS;
604
+ declare const getTokenUsdPrice: (thor: ThorClient, token: SupportedToken, network: NETWORK_TYPE) => Promise<number>;
605
+ declare const getTokenUsdPriceQueryKey: (token: SupportedToken) => string[];
606
+ declare const useGetTokenUsdPrice: (token: SupportedToken) => _tanstack_react_query.UseQueryResult<number, Error>;
607
+
608
+ declare const getVot3Balance: (thor: ThorClient, network: NETWORK_TYPE, address?: string) => Promise<TokenBalance>;
609
+ declare const getVot3BalanceQueryKey: (address?: string) => (string | undefined)[];
610
+ declare const useGetVot3Balance: (address?: string) => _tanstack_react_query.UseQueryResult<TokenBalance, Error>;
611
+
612
+ /**
613
+ * Returns the query key for fetching the isPerson status.
614
+ * @param user - The user address.
615
+ * @returns The query key for fetching the isPerson status.
616
+ */
617
+ declare const getIsPersonQueryKey: (user: string, network: NETWORK_TYPE) => (string | unknown[])[];
618
+ /**
619
+ * Hook to get the isPerson status from the VeBetterPassport contract.
620
+ * @param user - The user address.
621
+ * @returns The isPerson status.
622
+ */
623
+ declare const useIsPerson: (user?: string | null) => _tanstack_react_query.UseQueryResult<boolean, unknown>;
624
+
625
+ type XApp = {
626
+ id: string;
627
+ teamWalletAddress: string;
628
+ name: string;
629
+ metadataURI: string;
630
+ createdAtTimestamp: string;
631
+ };
632
+ type MostVotedAppsInRoundReturnType = {
633
+ percentage: number;
634
+ id: string;
635
+ app: XApp;
636
+ };
637
+ /**
638
+ * Get the most voted apps in a round
639
+ *
640
+ * @param roundId the id of the round to get the most voted apps
641
+ * @returns a sorted array of the most voted apps in the round
642
+ */
643
+ declare const useMostVotedAppsInRound: (roundId?: string) => {
644
+ data: MostVotedAppsInRoundReturnType[];
645
+ isLoading: boolean;
646
+ };
647
+
544
648
  declare const useRefreshBalances: () => {
545
649
  refresh: () => Promise<void>;
546
650
  };
@@ -549,36 +653,14 @@ declare const useRefreshMetadata: (domain: string, address: string) => {
549
653
  refresh: () => Promise<void>;
550
654
  };
551
655
 
552
- declare const useTokenBalances2: ({ address }: {
553
- address: string;
554
- }) => {
555
- data: (_tanstack_react_query.UseQueryResult<({
556
- address: string;
557
- symbol: string;
558
- balance: string;
559
- } | {
560
- address: string;
561
- symbol: string;
562
- balance: bigint;
563
- })[], Error> | _tanstack_react_query.UseQueryResult<{
564
- address: string;
565
- symbol: string;
566
- balance: string;
567
- }[], Error>)[];
568
- loading: boolean;
569
- error: Error | null;
570
- };
571
-
572
- declare const useTokenPrices2: () => _tanstack_react_query.UseQueryResult<{
573
- prices: {
574
- [x: string]: number;
575
- '0x': number;
576
- };
577
- exchangeRates: {
578
- eurUsdPrice: number;
579
- gbpUsdPrice: number;
580
- };
581
- }, Error>;
656
+ declare const getRoundXAppsQueryKey: (roundId: string, networkType: NETWORK_TYPE) => (string | unknown[])[];
657
+ declare const useRoundXApps: (roundId?: string) => _tanstack_react_query.UseQueryResult<{
658
+ id: string;
659
+ teamWalletAddress: `0x${string}`;
660
+ name: string;
661
+ metadataURI: string;
662
+ createdAtTimestamp: string;
663
+ }[], unknown>;
582
664
 
583
665
  type UseWalletReturnType = {
584
666
  account: Wallet;
@@ -611,6 +693,67 @@ declare const useWalletMetadata: (address: string, networkType: NETWORK_TYPE) =>
611
693
  isLoading: boolean;
612
694
  };
613
695
 
696
+ /**
697
+ * The metadata of an xApp from the xApps metadata base uri
698
+ * @property name - The name of the xApp
699
+ * @property description - The description of the xApp
700
+ * @property distribution_strategy - The B3TR distribution strategy of the xApp
701
+ * @property external_url - The external url of the xApp
702
+ * @property logo - The logo of the xApp (ipfs uri)
703
+ * @property banner - The banner of the xApp (ipfs uri)
704
+ * @property screenshots - The screenshots of the xApp (ipfs uri)
705
+ * @property social_urls - The social urls of the xApp
706
+ * @property app_urls - The app urls of the xApp
707
+ * @property categories - The categories of the xApp
708
+ */
709
+ type XAppMetadata = {
710
+ name: string;
711
+ description: string;
712
+ distribution_strategy?: string;
713
+ external_url: string;
714
+ logo: string;
715
+ banner: string;
716
+ screenshots: string[];
717
+ social_urls: {
718
+ name: string;
719
+ url: string;
720
+ }[];
721
+ app_urls: {
722
+ code: string;
723
+ url: string;
724
+ }[];
725
+ tweets: string[];
726
+ ve_world: {
727
+ banner: string;
728
+ };
729
+ categories: string[];
730
+ };
731
+ /**
732
+ dapp-kit broke the pre-fetching
733
+ * @param uri - The uri of the xApps metadata
734
+ * @returns The metadata of the xApp see {@link XAppMetadata}
735
+ */
736
+ declare const getXAppMetadata: (uri: string, networkType: NETWORK_TYPE) => Promise<XAppMetadata | undefined>;
737
+ declare const useXAppMetadata: (xAppId: string) => _tanstack_react_query.UseQueryResult<XAppMetadata | undefined, Error>;
738
+
739
+ /**
740
+ * Returns the query key for the shares of multiple xApps in an allocation round.
741
+ * @param roundId the roundId the get the shares for
742
+ */
743
+ declare const getXAppsSharesQueryKey: (roundId?: number | string) => (string | number | undefined)[];
744
+ /**
745
+ * Fetch shares of multiple xApps in an allocation round
746
+ * @param apps the xApps to get the shares for
747
+ * @param roundId the round id to get the shares for
748
+ * @returns the shares (% of allocation pool) for the xApps in the round { allocated: number, unallocated: number }
749
+ *
750
+ */
751
+ declare const useXAppsShares: (apps: string[], roundId?: string) => _tanstack_react_query.UseQueryResult<{
752
+ app: string;
753
+ share: number;
754
+ unallocatedShare: number;
755
+ }[], Error>;
756
+
614
757
  /**
615
758
  * Fetches metadata from IPFS for a given URI
616
759
  *
@@ -1861,1259 +2004,6 @@ declare const getChainIdQueryKey: () => string[];
1861
2004
  */
1862
2005
  declare const useGetChainId: () => _tanstack_react_query.UseQueryResult<string, Error>;
1863
2006
 
1864
- /**
1865
- * Get the b3tr balance of an address from the contract
1866
- * @param thor The thor instance
1867
- * @param network The network type
1868
- * @param address The address to get the balance of. If not provided, will return an error (for better react-query DX)
1869
- * @returns Balance of the token in the form of {@link TokenBalance} (original, scaled down and formatted)
1870
- */
1871
- declare const getB3trBalance: (thor: ThorClient, network: NETWORK_TYPE, address?: string) => Promise<TokenBalance>;
1872
- declare const getB3trBalanceQueryKey: (address?: string) => (string | undefined)[];
1873
- declare const useGetB3trBalance: (address?: string) => _tanstack_react_query.UseQueryResult<TokenBalance, Error>;
1874
-
1875
- type TokenWithBalance = CustomTokenInfo & TokenBalance;
1876
- /**
1877
- * Get the b3tr balance of an address from the contract
1878
- * @param thor The thor instance
1879
- * @param network The network type
1880
- * @param address The address to get the balance of. If not provided, will return an error (for better react-query DX)
1881
- * @returns Balance of the token in the form of {@link TokenBalance} (original, scaled down and formatted)
1882
- */
1883
- declare const getCustomTokenBalance: (thor: ThorClient, token: CustomTokenInfo, address?: string) => Promise<TokenWithBalance>;
1884
- declare const getCustomTokenBalanceQueryKey: (tokenAddress?: string, address?: string) => (string | undefined)[];
1885
- declare const useGetCustomTokenBalances: (address?: string) => _tanstack_react_query.UseQueryResult<TokenWithBalance, Error>[];
1886
-
1887
- type CustomTokenInfo = {
1888
- name: string;
1889
- address: string;
1890
- decimals: string;
1891
- symbol: string;
1892
- };
1893
- declare const getTokenInfo: (thor: ThorClient, tokenAddress: string) => Promise<CustomTokenInfo>;
1894
- declare const getCustomTokenInfo: (tokenAddress: string) => string[];
1895
- declare const useGetCustomTokenInfo: (tokenAddress: string) => _tanstack_react_query.UseQueryResult<CustomTokenInfo, Error>;
1896
-
1897
- declare const getErc20Balance: (thor: ThorClient, tokenAddress: string, address?: string) => Promise<{
1898
- original: string;
1899
- scaled: string;
1900
- formatted: string;
1901
- }>;
1902
- declare const getErc20BalanceQueryKey: (tokenAddress: string, address?: string) => (string | undefined)[];
1903
- declare const useGetErc20Balance: (tokenAddress: string, address?: string) => _tanstack_react_query.UseQueryResult<{
1904
- original: string;
1905
- scaled: string;
1906
- formatted: string;
1907
- }, Error>;
1908
-
1909
- declare const getVeDelegateBalance: (thor: ThorClient, network: NETWORK_TYPE, address?: string) => Promise<{
1910
- original: string;
1911
- scaled: string;
1912
- formatted: string;
1913
- }>;
1914
- declare const getVeDelegateBalanceQueryKey: (address?: string) => (string | undefined)[];
1915
- declare const useGetVeDelegateBalance: (address?: string) => _tanstack_react_query.UseQueryResult<{
1916
- original: string;
1917
- scaled: string;
1918
- formatted: string;
1919
- }, Error>;
1920
-
1921
- /**
1922
- * Generates a query key for the getTokensInfoByOwner query.
1923
- * @param owner - The address of the token owner.
1924
- * @param size - The number of tokens to fetch per page.
1925
- * @returns An array representing the query key.
1926
- */
1927
- declare const getTokensInfoByOwnerQueryKey: (owner?: string | null) => (string | null | undefined)[];
1928
- /**
1929
- * Custom hook to fetch token information for a specific owner with infinite scrolling support.
1930
- * @param owner - The address of the token owner.
1931
- * @param size - The number of tokens to fetch per page.
1932
- * @returns An infinite query result containing the token information and pagination controls.
1933
- */
1934
- declare const useGalaxyMemberTokensInfo: (owner: string | null, size?: number) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<{
1935
- data: readonly [boolean] | readonly [string] | readonly [bigint] | readonly [`0x${string}`] | readonly [number] | readonly [{
1936
- tokenId: bigint;
1937
- tokenURI: string;
1938
- tokenLevel: bigint;
1939
- b3trToUpgrade: bigint;
1940
- }] | readonly [{
1941
- tokenId: bigint;
1942
- tokenURI: string;
1943
- tokenLevel: bigint;
1944
- b3trToUpgrade: bigint;
1945
- }] | readonly [readonly {
1946
- tokenId: bigint;
1947
- tokenURI: string;
1948
- tokenLevel: bigint;
1949
- b3trToUpgrade: bigint;
1950
- }[]];
1951
- nextPage: number;
1952
- }, unknown>, Error>;
1953
-
1954
- type UserNode = {
1955
- nodeId: string;
1956
- nodeLevel: number;
1957
- xNodeOwner: string;
1958
- isXNodeHolder: boolean;
1959
- isXNodeDelegated: boolean;
1960
- isXNodeDelegator: boolean;
1961
- isXNodeDelegatee: boolean;
1962
- delegatee: string;
1963
- };
1964
- /**
1965
- * Get the query key for fetching user nodes
1966
- * @param networkType the network type
1967
- * @param user - The address of the user to check (non-optional)
1968
- */
1969
- declare const getUserNodesQueryKey: (networkType: NETWORK_TYPE, user: string) => (string | unknown[])[];
1970
- /**
1971
- * Hook to get delegation details for all nodes associated with a user
1972
- * @param userInput - The address of the user to check
1973
- * @returns An array of objects containing user node details
1974
- */
1975
- declare const useGetUserNodes: (userInput?: string) => UseQueryResult<UserNode[], unknown>;
1976
- declare const useGetUserNode: (userInput?: string) => UseQueryResult<UserNode[], unknown>;
1977
-
1978
- declare const PRICE_FEED_IDS: {
1979
- readonly B3TR: "0x623374722d757364000000000000000000000000000000000000000000000000";
1980
- readonly VET: "0x7665742d75736400000000000000000000000000000000000000000000000000";
1981
- readonly VTHO: "0x7674686f2d757364000000000000000000000000000000000000000000000000";
1982
- readonly GBP: "0x6762702d75736400000000000000000000000000000000000000000000000000";
1983
- readonly EUR: "0x657572742d757364000000000000000000000000000000000000000000000000";
1984
- };
1985
- type SupportedToken = keyof typeof PRICE_FEED_IDS;
1986
- declare const getTokenUsdPrice: (thor: ThorClient, token: SupportedToken, network: NETWORK_TYPE) => Promise<number>;
1987
- declare const getTokenUsdPriceQueryKey: (token: SupportedToken) => string[];
1988
- declare const useGetTokenUsdPrice: (token: SupportedToken) => _tanstack_react_query.UseQueryResult<number, Error>;
1989
-
1990
- declare const getVot3Balance: (thor: ThorClient, network: NETWORK_TYPE, address?: string) => Promise<TokenBalance>;
1991
- declare const getVot3BalanceQueryKey: (address: string) => string[];
1992
- declare const useGetVot3Balance: (address?: string) => _tanstack_react_query.UseQueryResult<TokenBalance, Error>;
1993
-
1994
- /**
1995
- * Returns the query key for fetching the isPerson status.
1996
- * @param networkType - The network type.
1997
- * @param user - The user address.
1998
- * @returns The query key for fetching the isPerson status.
1999
- */
2000
- declare const getIsPersonQueryKey: (networkType: NETWORK_TYPE, user: string) => (string | unknown[])[];
2001
- /**
2002
- * Hook to get the isPerson status from the VeBetterPassport contract.
2003
- * @param user - The user address.
2004
- * @param customEnabled - Flag to enable or disable the hook. Default is true.
2005
- * @returns The isPerson status (boolean).
2006
- */
2007
- declare const useIsPerson: (user?: string, customEnabled?: boolean) => _tanstack_react_query.UseQueryResult<boolean, unknown>;
2008
- /**
2009
- * Hook to get the isPerson status from the VeBetterPassport contract for the current user.
2010
- * @param address - The address of the account.
2011
- * @returns The isPerson status.
2012
- */
2013
- declare const useIsUserPerson: (address?: string) => _tanstack_react_query.UseQueryResult<boolean, unknown>;
2014
-
2015
- /**
2016
- * Returns the query key for fetching the isPerson status at a given block number.
2017
- * @param networkType - The network type.
2018
- * @param user - The user address.
2019
- * @param timepoint - The block number (as a string or number).
2020
- * @returns The query key for fetching the isPerson status at a given block number.
2021
- */
2022
- declare const getIsPersonAtTimepointQueryKey: (networkType: NETWORK_TYPE, user: string, timepoint: string) => (string | unknown[])[];
2023
- /**
2024
- * Hook to get the isPerson status from the VeBetterPassport contract at a specific timepoint.
2025
- * @param user - The user address.
2026
- * @param timepoint - The block number (as a string or number).
2027
- * @param customEnabled - Flag to enable or disable the hook. Default is true.
2028
- * @returns The isPerson status (boolean) at a given block number.
2029
- */
2030
- declare const useIsPersonAtTimepoint: (user?: string, timepoint?: string, customEnabled?: boolean) => _tanstack_react_query.UseQueryResult<boolean, unknown>;
2031
-
2032
- /**
2033
- * Returns the query key for fetching the user bot signals.
2034
- * @param networkType The network type.
2035
- * @param userAddress - The user address.
2036
- * @returns The query key for fetching the user bot signals.
2037
- */
2038
- declare const getUserBotSignalsQueryKey: (networkType: NETWORK_TYPE, userAddress: string) => (string | unknown[])[];
2039
- /**
2040
- * Hook to get the user bot signals (signaledCounter) from the VeBetterPassport contract.
2041
- * @param userAddressInput - The user address.
2042
- * @returns The user bot signals
2043
- */
2044
- declare const useUserBotSignals: (userAddressInput?: string) => _tanstack_react_query.UseQueryResult<number, unknown>;
2045
-
2046
- /**
2047
- * useVotingRewards is a custom hook that fetches the voting rewards for a given round and voter.
2048
- * It uses the mutli-clause reading to fetch the data in parallel for all rounds up to the current one.
2049
- *
2050
- * @param {string} currentRoundId - The id of the current round. If not provided, no queries will be made.
2051
- * @param {string} voter - The address of the voter. If not provided, the rewards for all voters will be fetched.
2052
- * @returns {object} An object containing the status and data of the queries. Refer to the react-query documentation for more details.
2053
- */
2054
- declare const useVotingRewards: (currentRoundId?: string, voter?: string) => _tanstack_react_query.UseQueryResult<{
2055
- total: string;
2056
- totalFormatted: string;
2057
- roundsRewards: {
2058
- roundId: string;
2059
- rewards: bigint;
2060
- formattedRewards: string;
2061
- }[];
2062
- }, Error>;
2063
-
2064
- /**
2065
- * Generates a query key for the getRoundReward query.
2066
- *
2067
- * @param {string} roundId - The id of the round.
2068
- * @param {string} address - The address of the voter.
2069
- * @returns {Array<string>} An array of strings that forms the query key.
2070
- */
2071
- declare const getRoundRewardQueryKey: (roundId?: string, address?: string) => (string | undefined)[];
2072
- /**
2073
- * useRoundReward is a custom hook that fetches the reward for a given round and voter.
2074
- *
2075
- * @param {string} address - The address of the voter.
2076
- * @param {string} roundId - The id of the round.
2077
- * @returns {object} An object containing the status and data of the query. Refer to the react-query documentation for more details.
2078
- */
2079
- declare const useRoundReward: (address: string, roundId: string) => _tanstack_react_query.UseQueryResult<{
2080
- roundId: string;
2081
- rewards: string;
2082
- }, unknown>;
2083
-
2084
- /**
2085
- * The metadata of an xApp from the xApps metadata base uri
2086
- * @property name - The name of the xApp
2087
- * @property description - The description of the xApp
2088
- * @property external_url - The external url of the xApp
2089
- * @property logo - The logo of the xApp (ipfs uri)
2090
- * @property banner - The banner of the xApp (ipfs uri)
2091
- * @property screenshots - The screenshots of the xApp (ipfs uri)
2092
- * @property social_urls - The social urls of the xApp
2093
- * @property app_urls - The app urls of the xApp
2094
- */
2095
- type XAppMetadata = {
2096
- name: string;
2097
- description: string;
2098
- distribution_strategy?: string;
2099
- external_url: string;
2100
- logo: string;
2101
- banner: string;
2102
- logoComponent?: JSX.Element;
2103
- screenshots: string[];
2104
- social_urls: {
2105
- name: string;
2106
- url: string;
2107
- }[];
2108
- app_urls: {
2109
- code: string;
2110
- url: string;
2111
- }[];
2112
- tweets: string[];
2113
- ve_world: {
2114
- banner: string;
2115
- };
2116
- categories: string[];
2117
- };
2118
- /**
2119
- dapp-kit broke the pre-fetching
2120
- * @param uri - The uri of the xApps metadata
2121
- * @returns The metadata of the xApp see {@link XAppMetadata}
2122
- */
2123
- declare const getXAppMetadata: (uri: string, networkType: NETWORK_TYPE) => Promise<XAppMetadata | undefined>;
2124
-
2125
- /**
2126
- * xApp type
2127
- * @property id the xApp id
2128
- * @property teamWalletAddress the xApp address
2129
- * @property name the xApp name
2130
- * @property metadataURI the xApp metadata URI
2131
- * @property createdAtTimestamp timestamp when xApp was added
2132
- */
2133
- type XApp = {
2134
- id: string;
2135
- teamWalletAddress: string;
2136
- name: string;
2137
- metadataURI: string;
2138
- createdAtTimestamp: string;
2139
- };
2140
- type UnendorsedApp = XApp & {
2141
- appAvailableForAllocationVoting: boolean;
2142
- };
2143
- /**
2144
- * This function is here nad not coupled with the hook as we need it with SSR, and dapp-kit broke the pre-fetching
2145
- * Returns all the available xApps in the B3TR ecosystem
2146
- * @param thor the thor client
2147
- * @returns all the available xApps in the ecosystem capped to 256 see {@link XApp}
2148
- */
2149
- type GetAllApps = {
2150
- active: XApp[];
2151
- unendorsed: UnendorsedApp[];
2152
- allApps: (XApp | UnendorsedApp)[];
2153
- endorsed: XApp[];
2154
- };
2155
- declare const getXApps: (thor: ThorClient, networkType: NETWORK_TYPE) => Promise<GetAllApps>;
2156
-
2157
- /**
2158
- * Returns all the available xApps (apps that can be voted on for allocation)
2159
- * @param thor the thor client
2160
- * @param networkType the network type
2161
- * @param roundId the id of the round the get state for
2162
- * @returns all the available xApps (apps that can be voted on for allocation) capped to 256 see {@link XApp}
2163
- */
2164
- declare const getRoundXApps: (thor: ThorClient, networkType: NETWORK_TYPE, roundId?: string) => Promise<XApp[]>;
2165
- declare const getRoundXAppsQueryKey: (roundId?: string) => (string | undefined)[];
2166
- /**
2167
- * Hook to get all the available xApps (apps that can be voted on for allocation)
2168
- *
2169
- * @param roundId the id of the round the get state for
2170
- *
2171
- * @returns all the available xApps (apps that can be voted on for allocation) capped to 256
2172
- */
2173
- declare const useRoundXApps: (roundId?: string) => _tanstack_react_query.UseQueryResult<XApp[], Error>;
2174
-
2175
- type AllocationVoteCastEvent = {
2176
- voter: string;
2177
- roundId: string;
2178
- appsIds: string[];
2179
- voteWeights: string[];
2180
- };
2181
- declare const getUserVotesInRound: (thor: ThorClient, network: NETWORK_TYPE, roundId?: string, address?: string) => Promise<AllocationVoteCastEvent[]>;
2182
- declare const getUserVotesInRoundQueryKey: (roundId?: string, address?: string) => (string | undefined)[];
2183
- /**
2184
- * Hook to get the user votes in a given round from the xAllocationVoting contract
2185
- * @returns the user votes in a given round from the xAllocationVoting contract
2186
- */
2187
- declare const useUserVotesInRound: (roundId?: string, address?: string) => _tanstack_react_query.UseQueryResult<AllocationVoteCastEvent, Error>;
2188
- declare const getVotesInRoundQueryKey: (roundId?: string) => (string | undefined)[];
2189
- /**
2190
- * Hook to get the allocation rounds events from the xAllocationVoting contract (i.e the proposals created)
2191
- * @returns the allocation rounds events (i.e the proposals created)
2192
- */
2193
- declare const useVotesInRound: (roundId?: string, enabled?: boolean) => _tanstack_react_query.UseQueryResult<AllocationVoteCastEvent[], Error>;
2194
-
2195
- /**
2196
- * Hook to get a specific xApp using useXApps
2197
- * @param appId the xApp id
2198
- * @returns the xApp with the given id
2199
- */
2200
- declare const useXApp: (appId: string) => {
2201
- error: Error;
2202
- isError: true;
2203
- isPending: false;
2204
- isLoading: false;
2205
- isLoadingError: false;
2206
- isRefetchError: true;
2207
- isSuccess: false;
2208
- isPlaceholderData: false;
2209
- status: "error";
2210
- dataUpdatedAt: number;
2211
- errorUpdatedAt: number;
2212
- failureCount: number;
2213
- failureReason: Error | null;
2214
- errorUpdateCount: number;
2215
- isFetched: boolean;
2216
- isFetchedAfterMount: boolean;
2217
- isFetching: boolean;
2218
- isInitialLoading: boolean;
2219
- isPaused: boolean;
2220
- isRefetching: boolean;
2221
- isStale: boolean;
2222
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2223
- active: XApp[];
2224
- unendorsed: UnendorsedApp[];
2225
- allApps: (XApp | UnendorsedApp)[];
2226
- endorsed: XApp[];
2227
- }, Error>>;
2228
- fetchStatus: _tanstack_query_core.FetchStatus;
2229
- promise: Promise<{
2230
- active: XApp[];
2231
- unendorsed: UnendorsedApp[];
2232
- allApps: (XApp | UnendorsedApp)[];
2233
- endorsed: XApp[];
2234
- }>;
2235
- data: XApp | undefined;
2236
- } | {
2237
- error: null;
2238
- isError: false;
2239
- isPending: false;
2240
- isLoading: false;
2241
- isLoadingError: false;
2242
- isRefetchError: false;
2243
- isSuccess: true;
2244
- isPlaceholderData: false;
2245
- status: "success";
2246
- dataUpdatedAt: number;
2247
- errorUpdatedAt: number;
2248
- failureCount: number;
2249
- failureReason: Error | null;
2250
- errorUpdateCount: number;
2251
- isFetched: boolean;
2252
- isFetchedAfterMount: boolean;
2253
- isFetching: boolean;
2254
- isInitialLoading: boolean;
2255
- isPaused: boolean;
2256
- isRefetching: boolean;
2257
- isStale: boolean;
2258
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2259
- active: XApp[];
2260
- unendorsed: UnendorsedApp[];
2261
- allApps: (XApp | UnendorsedApp)[];
2262
- endorsed: XApp[];
2263
- }, Error>>;
2264
- fetchStatus: _tanstack_query_core.FetchStatus;
2265
- promise: Promise<{
2266
- active: XApp[];
2267
- unendorsed: UnendorsedApp[];
2268
- allApps: (XApp | UnendorsedApp)[];
2269
- endorsed: XApp[];
2270
- }>;
2271
- data: XApp | undefined;
2272
- } | {
2273
- error: Error;
2274
- isError: true;
2275
- isPending: false;
2276
- isLoading: false;
2277
- isLoadingError: true;
2278
- isRefetchError: false;
2279
- isSuccess: false;
2280
- isPlaceholderData: false;
2281
- status: "error";
2282
- dataUpdatedAt: number;
2283
- errorUpdatedAt: number;
2284
- failureCount: number;
2285
- failureReason: Error | null;
2286
- errorUpdateCount: number;
2287
- isFetched: boolean;
2288
- isFetchedAfterMount: boolean;
2289
- isFetching: boolean;
2290
- isInitialLoading: boolean;
2291
- isPaused: boolean;
2292
- isRefetching: boolean;
2293
- isStale: boolean;
2294
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2295
- active: XApp[];
2296
- unendorsed: UnendorsedApp[];
2297
- allApps: (XApp | UnendorsedApp)[];
2298
- endorsed: XApp[];
2299
- }, Error>>;
2300
- fetchStatus: _tanstack_query_core.FetchStatus;
2301
- promise: Promise<{
2302
- active: XApp[];
2303
- unendorsed: UnendorsedApp[];
2304
- allApps: (XApp | UnendorsedApp)[];
2305
- endorsed: XApp[];
2306
- }>;
2307
- data: XApp | undefined;
2308
- } | {
2309
- error: null;
2310
- isError: false;
2311
- isPending: true;
2312
- isLoading: true;
2313
- isLoadingError: false;
2314
- isRefetchError: false;
2315
- isSuccess: false;
2316
- isPlaceholderData: false;
2317
- status: "pending";
2318
- dataUpdatedAt: number;
2319
- errorUpdatedAt: number;
2320
- failureCount: number;
2321
- failureReason: Error | null;
2322
- errorUpdateCount: number;
2323
- isFetched: boolean;
2324
- isFetchedAfterMount: boolean;
2325
- isFetching: boolean;
2326
- isInitialLoading: boolean;
2327
- isPaused: boolean;
2328
- isRefetching: boolean;
2329
- isStale: boolean;
2330
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2331
- active: XApp[];
2332
- unendorsed: UnendorsedApp[];
2333
- allApps: (XApp | UnendorsedApp)[];
2334
- endorsed: XApp[];
2335
- }, Error>>;
2336
- fetchStatus: _tanstack_query_core.FetchStatus;
2337
- promise: Promise<{
2338
- active: XApp[];
2339
- unendorsed: UnendorsedApp[];
2340
- allApps: (XApp | UnendorsedApp)[];
2341
- endorsed: XApp[];
2342
- }>;
2343
- data: XApp | undefined;
2344
- } | {
2345
- error: null;
2346
- isError: false;
2347
- isPending: true;
2348
- isLoadingError: false;
2349
- isRefetchError: false;
2350
- isSuccess: false;
2351
- isPlaceholderData: false;
2352
- status: "pending";
2353
- dataUpdatedAt: number;
2354
- errorUpdatedAt: number;
2355
- failureCount: number;
2356
- failureReason: Error | null;
2357
- errorUpdateCount: number;
2358
- isFetched: boolean;
2359
- isFetchedAfterMount: boolean;
2360
- isFetching: boolean;
2361
- isLoading: boolean;
2362
- isInitialLoading: boolean;
2363
- isPaused: boolean;
2364
- isRefetching: boolean;
2365
- isStale: boolean;
2366
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2367
- active: XApp[];
2368
- unendorsed: UnendorsedApp[];
2369
- allApps: (XApp | UnendorsedApp)[];
2370
- endorsed: XApp[];
2371
- }, Error>>;
2372
- fetchStatus: _tanstack_query_core.FetchStatus;
2373
- promise: Promise<{
2374
- active: XApp[];
2375
- unendorsed: UnendorsedApp[];
2376
- allApps: (XApp | UnendorsedApp)[];
2377
- endorsed: XApp[];
2378
- }>;
2379
- data: XApp | undefined;
2380
- } | {
2381
- isError: false;
2382
- error: null;
2383
- isPending: false;
2384
- isLoading: false;
2385
- isLoadingError: false;
2386
- isRefetchError: false;
2387
- isSuccess: true;
2388
- isPlaceholderData: true;
2389
- status: "success";
2390
- dataUpdatedAt: number;
2391
- errorUpdatedAt: number;
2392
- failureCount: number;
2393
- failureReason: Error | null;
2394
- errorUpdateCount: number;
2395
- isFetched: boolean;
2396
- isFetchedAfterMount: boolean;
2397
- isFetching: boolean;
2398
- isInitialLoading: boolean;
2399
- isPaused: boolean;
2400
- isRefetching: boolean;
2401
- isStale: boolean;
2402
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2403
- active: XApp[];
2404
- unendorsed: UnendorsedApp[];
2405
- allApps: (XApp | UnendorsedApp)[];
2406
- endorsed: XApp[];
2407
- }, Error>>;
2408
- fetchStatus: _tanstack_query_core.FetchStatus;
2409
- promise: Promise<{
2410
- active: XApp[];
2411
- unendorsed: UnendorsedApp[];
2412
- allApps: (XApp | UnendorsedApp)[];
2413
- endorsed: XApp[];
2414
- }>;
2415
- data: XApp | undefined;
2416
- };
2417
-
2418
- declare const getXAppMetadataQueryKey: (metadataURI?: string) => (string | undefined)[];
2419
- /**
2420
- * Hook to fetch the metadata of an xApp from the xApps metadata base uri
2421
- * @param xAppId - The id of the xApp
2422
- * @returns The metadata of the xApp
2423
- */
2424
- declare const useXAppMetadata: (xAppId?: string) => _tanstack_react_query.UseQueryResult<XAppMetadata | null | undefined, Error>;
2425
-
2426
- declare const getXAppsQueryKey: () => string[];
2427
- /**
2428
- * Hook to get all the available xApps in the B3TR ecosystem
2429
- * @returns all the available xApps in the B3TR ecosystem capped to 256
2430
- */
2431
- declare const useXApps: () => _tanstack_react_query.UseQueryResult<{
2432
- active: XApp[];
2433
- unendorsed: UnendorsedApp[];
2434
- allApps: (XApp | UnendorsedApp)[];
2435
- endorsed: XApp[];
2436
- }, Error>;
2437
-
2438
- type MostVotedAppsInRoundReturnType = {
2439
- percentage: number;
2440
- id: string;
2441
- app: XApp;
2442
- };
2443
- /**
2444
- * Get the most voted apps in a round
2445
- *
2446
- * @param roundId the id of the round to get the most voted apps
2447
- * @returns a sorted array of the most voted apps in the round
2448
- */
2449
- declare const useMostVotedAppsInRound: (roundId?: string) => {
2450
- data: MostVotedAppsInRoundReturnType[];
2451
- isLoading: boolean;
2452
- };
2453
-
2454
- /**
2455
- * Returns the query key for the shares of multiple xApps in an allocation round.
2456
- * @param roundId the roundId the get the shares for
2457
- */
2458
- declare const getXAppsSharesQueryKey: (roundId?: number | string) => (string | number | undefined)[];
2459
- /**
2460
- * Fetch shares of multiple xApps in an allocation round
2461
- * @param apps the xApps to get the shares for
2462
- * @param roundId the round id to get the shares for
2463
- * @returns the shares (% of allocation pool) for the xApps in the round { allocated: number, unallocated: number }
2464
- *
2465
- */
2466
- declare const useXAppsShares: (apps: string[], roundId?: string) => _tanstack_react_query.UseQueryResult<{
2467
- app: string;
2468
- share: number;
2469
- unallocatedShare: number;
2470
- }[], Error>;
2471
-
2472
- declare const getXAppsMetadataBaseUriQueryKey: (network: NETWORK_TYPE) => (string | unknown[])[];
2473
- /**
2474
- * Hook to get the baseUri of the xApps metadata
2475
- * @returns the baseUri of the xApps metadata
2476
- */
2477
- declare const useXAppsMetadataBaseUri: () => _tanstack_react_query.UseQueryResult<readonly [string], unknown>;
2478
-
2479
- type UseXAppRoundEarningsQueryResponse = {
2480
- amount: string;
2481
- appId: string;
2482
- };
2483
- /**
2484
- * Get the amount of $B3TR an xApp earned from an allocation round
2485
- *
2486
- * @param thor the thor instance
2487
- * @param roundId the round id
2488
- * @param xAppId the xApp id
2489
- * @param networkType the network type
2490
- * @returns (amount, appId) amount of $B3TR an xApp earned from an allocation round and the xApp id
2491
- */
2492
- declare const getXAppRoundEarnings: (thor: ThorClient, roundId: string, xAppId: string, networkType: NETWORK_TYPE) => Promise<UseXAppRoundEarningsQueryResponse>;
2493
- declare const getXAppRoundEarningsQueryKey: (roundId: string | number, xAppId?: string) => (string | number)[];
2494
- /**
2495
- * Get the amount of $B3TR an xApp can claim from an allocation round
2496
- *
2497
- * @param roundId the round id
2498
- * @param xAppId the xApp id
2499
- * @returns amount of $B3TR an xApp can claim from an allocation round
2500
- */
2501
- declare const useXAppRoundEarnings: (roundId: string, xAppId: string) => _tanstack_react_query.UseQueryResult<UseXAppRoundEarningsQueryResponse | {
2502
- amount: string;
2503
- xAppId: string;
2504
- }, Error>;
2505
- /**
2506
- * Get the amount of $B3TR every xApp earned from an allocation round
2507
- * @param roundId the round id
2508
- * @param xAppIds the xApp ids
2509
- * @returns the amount of $B3TR every xApp earned from an allocation round
2510
- */
2511
- declare const useMultipleXAppRoundEarnings: (roundId: string, xAppIds: string[]) => _tanstack_react_query.UseQueryResult<{
2512
- amount: string;
2513
- appId: string;
2514
- }[], Error>;
2515
-
2516
- declare const getXAppTotalEarningsQueryKey: (tillRoundId: string | number, appId: string) => (string | number)[];
2517
- /**
2518
- * Total earnings of an xApp in multiple rounds
2519
- * @param roundIds ids of the rounds
2520
- * @param appId id of the xApp
2521
- * @returns the total earnings of the xApp until the last round
2522
- */
2523
- declare const useXAppTotalEarnings: (roundIds: number[], appId: string) => _tanstack_react_query.UseQueryResult<number, Error>;
2524
-
2525
- declare const RoundState: {
2526
- readonly 0: "Active";
2527
- readonly 1: "Failed";
2528
- readonly 2: "Succeeded";
2529
- };
2530
- declare const getAllocationsRoundStateQueryKey: (roundId: string, network: NETWORK_TYPE) => (string | unknown[])[];
2531
- /**
2532
- * Hook to get the state of a given roundId
2533
- * @param roundId the roundId to get state for
2534
- * @returns the state of a given roundId
2535
- */
2536
- declare const useAllocationsRoundState: (roundId?: string) => _tanstack_react_query.UseQueryResult<0 | 1 | 2, unknown>;
2537
-
2538
- declare const getCurrentAllocationsRoundIdQueryKey: (network: NETWORK_TYPE) => (string | unknown[])[];
2539
- /**
2540
- * Hook to get the current roundId of allocations voting
2541
- * @returns the current roundId of allocations voting
2542
- */
2543
- declare const useCurrentAllocationsRoundId: () => _tanstack_react_query.UseQueryResult<string, unknown>;
2544
-
2545
- declare const getHasVotedInRoundQueryKey: (roundId: string, address: string, networkType: NETWORK_TYPE) => (string | unknown[])[];
2546
- /**
2547
- * Hook to get if a user has voted in a given roundId
2548
- * @param roundId the roundId the get the votes for
2549
- * @param address the address to check if they have voted
2550
- * @returns if a user has voted in a given roundId
2551
- */
2552
- declare const useHasVotedInRound: (roundId?: string, address?: string) => _tanstack_react_query.UseQueryResult<boolean, unknown>;
2553
-
2554
- type RoundCreated = {
2555
- roundId: string;
2556
- proposer: string;
2557
- voteStart: string;
2558
- voteEnd: string;
2559
- appsIds: string[];
2560
- };
2561
- /**
2562
- * Returns all allocation rounds events
2563
- * @param thor the thor client
2564
- * @param networkType the network type
2565
- * @returns the allocation rounds events
2566
- */
2567
- declare const getAllocationsRoundsEvents: (thor: ThorClient, networkType: NETWORK_TYPE) => Promise<{
2568
- created: RoundCreated[];
2569
- }>;
2570
- declare const getAllocationsRoundsEventsQueryKey: () => string[];
2571
- /**
2572
- * Hook to get the allocation rounds events from the xAllocationVoting contract
2573
- * @returns the allocation rounds events
2574
- */
2575
- declare const useAllocationsRoundsEvents: () => _tanstack_react_query.UseQueryResult<{
2576
- created: RoundCreated[];
2577
- }, Error>;
2578
-
2579
- /**
2580
- * Hook to get info about the current allocation round
2581
- * @returns the current allocation round info see {@link AllocationRoundWithState}
2582
- */
2583
- declare const useCurrentAllocationsRound: () => {
2584
- isLoading: boolean;
2585
- isError: boolean;
2586
- error: unknown;
2587
- data: {
2588
- voteStartTimestamp: number | null;
2589
- voteEndTimestamp: number | null;
2590
- isFirstRound: boolean;
2591
- isLastRound: boolean;
2592
- roundId?: string | undefined;
2593
- proposer?: string | undefined;
2594
- voteStart?: string | undefined;
2595
- voteEnd?: string | undefined;
2596
- appsIds?: string[] | undefined;
2597
- state?: keyof typeof RoundState;
2598
- isCurrent?: boolean | undefined;
2599
- };
2600
- isPending: false;
2601
- isLoadingError: false;
2602
- isRefetchError: true;
2603
- isSuccess: false;
2604
- isPlaceholderData: false;
2605
- status: "error";
2606
- dataUpdatedAt: number;
2607
- errorUpdatedAt: number;
2608
- failureCount: number;
2609
- failureReason: Error | null;
2610
- errorUpdateCount: number;
2611
- isFetched: boolean;
2612
- isFetchedAfterMount: boolean;
2613
- isFetching: boolean;
2614
- isInitialLoading: boolean;
2615
- isPaused: boolean;
2616
- isRefetching: boolean;
2617
- isStale: boolean;
2618
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2619
- created: RoundCreated[];
2620
- }, Error>>;
2621
- fetchStatus: _tanstack_query_core.FetchStatus;
2622
- promise: Promise<{
2623
- created: RoundCreated[];
2624
- }>;
2625
- } | {
2626
- isLoading: boolean;
2627
- isError: boolean;
2628
- error: unknown;
2629
- data: {
2630
- voteStartTimestamp: number | null;
2631
- voteEndTimestamp: number | null;
2632
- isFirstRound: boolean;
2633
- isLastRound: boolean;
2634
- roundId?: string | undefined;
2635
- proposer?: string | undefined;
2636
- voteStart?: string | undefined;
2637
- voteEnd?: string | undefined;
2638
- appsIds?: string[] | undefined;
2639
- state?: keyof typeof RoundState;
2640
- isCurrent?: boolean | undefined;
2641
- };
2642
- isPending: false;
2643
- isLoadingError: false;
2644
- isRefetchError: false;
2645
- isSuccess: true;
2646
- isPlaceholderData: false;
2647
- status: "success";
2648
- dataUpdatedAt: number;
2649
- errorUpdatedAt: number;
2650
- failureCount: number;
2651
- failureReason: Error | null;
2652
- errorUpdateCount: number;
2653
- isFetched: boolean;
2654
- isFetchedAfterMount: boolean;
2655
- isFetching: boolean;
2656
- isInitialLoading: boolean;
2657
- isPaused: boolean;
2658
- isRefetching: boolean;
2659
- isStale: boolean;
2660
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2661
- created: RoundCreated[];
2662
- }, Error>>;
2663
- fetchStatus: _tanstack_query_core.FetchStatus;
2664
- promise: Promise<{
2665
- created: RoundCreated[];
2666
- }>;
2667
- } | {
2668
- isLoading: boolean;
2669
- isError: boolean;
2670
- error: unknown;
2671
- data: {
2672
- voteStartTimestamp: number | null;
2673
- voteEndTimestamp: number | null;
2674
- isFirstRound: boolean;
2675
- isLastRound: boolean;
2676
- roundId?: string | undefined;
2677
- proposer?: string | undefined;
2678
- voteStart?: string | undefined;
2679
- voteEnd?: string | undefined;
2680
- appsIds?: string[] | undefined;
2681
- state?: keyof typeof RoundState;
2682
- isCurrent?: boolean | undefined;
2683
- };
2684
- isPending: false;
2685
- isLoadingError: true;
2686
- isRefetchError: false;
2687
- isSuccess: false;
2688
- isPlaceholderData: false;
2689
- status: "error";
2690
- dataUpdatedAt: number;
2691
- errorUpdatedAt: number;
2692
- failureCount: number;
2693
- failureReason: Error | null;
2694
- errorUpdateCount: number;
2695
- isFetched: boolean;
2696
- isFetchedAfterMount: boolean;
2697
- isFetching: boolean;
2698
- isInitialLoading: boolean;
2699
- isPaused: boolean;
2700
- isRefetching: boolean;
2701
- isStale: boolean;
2702
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2703
- created: RoundCreated[];
2704
- }, Error>>;
2705
- fetchStatus: _tanstack_query_core.FetchStatus;
2706
- promise: Promise<{
2707
- created: RoundCreated[];
2708
- }>;
2709
- } | {
2710
- isLoading: boolean;
2711
- isError: boolean;
2712
- error: unknown;
2713
- data: {
2714
- voteStartTimestamp: number | null;
2715
- voteEndTimestamp: number | null;
2716
- isFirstRound: boolean;
2717
- isLastRound: boolean;
2718
- roundId?: string | undefined;
2719
- proposer?: string | undefined;
2720
- voteStart?: string | undefined;
2721
- voteEnd?: string | undefined;
2722
- appsIds?: string[] | undefined;
2723
- state?: keyof typeof RoundState;
2724
- isCurrent?: boolean | undefined;
2725
- };
2726
- isPending: true;
2727
- isLoadingError: false;
2728
- isRefetchError: false;
2729
- isSuccess: false;
2730
- isPlaceholderData: false;
2731
- status: "pending";
2732
- dataUpdatedAt: number;
2733
- errorUpdatedAt: number;
2734
- failureCount: number;
2735
- failureReason: Error | null;
2736
- errorUpdateCount: number;
2737
- isFetched: boolean;
2738
- isFetchedAfterMount: boolean;
2739
- isFetching: boolean;
2740
- isInitialLoading: boolean;
2741
- isPaused: boolean;
2742
- isRefetching: boolean;
2743
- isStale: boolean;
2744
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2745
- created: RoundCreated[];
2746
- }, Error>>;
2747
- fetchStatus: _tanstack_query_core.FetchStatus;
2748
- promise: Promise<{
2749
- created: RoundCreated[];
2750
- }>;
2751
- } | {
2752
- isLoading: boolean;
2753
- isError: boolean;
2754
- error: unknown;
2755
- data: {
2756
- voteStartTimestamp: number | null;
2757
- voteEndTimestamp: number | null;
2758
- isFirstRound: boolean;
2759
- isLastRound: boolean;
2760
- roundId?: string | undefined;
2761
- proposer?: string | undefined;
2762
- voteStart?: string | undefined;
2763
- voteEnd?: string | undefined;
2764
- appsIds?: string[] | undefined;
2765
- state?: keyof typeof RoundState;
2766
- isCurrent?: boolean | undefined;
2767
- };
2768
- isPending: true;
2769
- isLoadingError: false;
2770
- isRefetchError: false;
2771
- isSuccess: false;
2772
- isPlaceholderData: false;
2773
- status: "pending";
2774
- dataUpdatedAt: number;
2775
- errorUpdatedAt: number;
2776
- failureCount: number;
2777
- failureReason: Error | null;
2778
- errorUpdateCount: number;
2779
- isFetched: boolean;
2780
- isFetchedAfterMount: boolean;
2781
- isFetching: boolean;
2782
- isInitialLoading: boolean;
2783
- isPaused: boolean;
2784
- isRefetching: boolean;
2785
- isStale: boolean;
2786
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2787
- created: RoundCreated[];
2788
- }, Error>>;
2789
- fetchStatus: _tanstack_query_core.FetchStatus;
2790
- promise: Promise<{
2791
- created: RoundCreated[];
2792
- }>;
2793
- } | {
2794
- isLoading: boolean;
2795
- isError: boolean;
2796
- error: unknown;
2797
- data: {
2798
- voteStartTimestamp: number | null;
2799
- voteEndTimestamp: number | null;
2800
- isFirstRound: boolean;
2801
- isLastRound: boolean;
2802
- roundId?: string | undefined;
2803
- proposer?: string | undefined;
2804
- voteStart?: string | undefined;
2805
- voteEnd?: string | undefined;
2806
- appsIds?: string[] | undefined;
2807
- state?: keyof typeof RoundState;
2808
- isCurrent?: boolean | undefined;
2809
- };
2810
- isPending: false;
2811
- isLoadingError: false;
2812
- isRefetchError: false;
2813
- isSuccess: true;
2814
- isPlaceholderData: true;
2815
- status: "success";
2816
- dataUpdatedAt: number;
2817
- errorUpdatedAt: number;
2818
- failureCount: number;
2819
- failureReason: Error | null;
2820
- errorUpdateCount: number;
2821
- isFetched: boolean;
2822
- isFetchedAfterMount: boolean;
2823
- isFetching: boolean;
2824
- isInitialLoading: boolean;
2825
- isPaused: boolean;
2826
- isRefetching: boolean;
2827
- isStale: boolean;
2828
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2829
- created: RoundCreated[];
2830
- }, Error>>;
2831
- fetchStatus: _tanstack_query_core.FetchStatus;
2832
- promise: Promise<{
2833
- created: RoundCreated[];
2834
- }>;
2835
- };
2836
-
2837
- type AllocationRoundWithState = RoundCreated & {
2838
- state?: keyof typeof RoundState;
2839
- voteStartTimestamp?: number;
2840
- voteEndTimestamp?: number;
2841
- isCurrent: boolean;
2842
- };
2843
- /**
2844
- * Hook to get and merge info about the given allocation round (state, proposer, voreStart, voteEnd)
2845
- * @returns the allocation round info see {@link AllocationRoundWithState}
2846
- */
2847
- declare const useAllocationsRound: (roundId?: string) => {
2848
- data: {
2849
- voteStartTimestamp: number | null;
2850
- voteEndTimestamp: number | null;
2851
- isFirstRound: boolean;
2852
- isLastRound: boolean;
2853
- roundId?: string | undefined;
2854
- proposer?: string | undefined;
2855
- voteStart?: string | undefined;
2856
- voteEnd?: string | undefined;
2857
- appsIds?: string[] | undefined;
2858
- state?: keyof typeof RoundState;
2859
- isCurrent?: boolean | undefined;
2860
- };
2861
- isLoading: boolean;
2862
- isError: boolean;
2863
- error: unknown;
2864
- isPending: false;
2865
- isLoadingError: false;
2866
- isRefetchError: true;
2867
- isSuccess: false;
2868
- isPlaceholderData: false;
2869
- status: "error";
2870
- dataUpdatedAt: number;
2871
- errorUpdatedAt: number;
2872
- failureCount: number;
2873
- failureReason: Error | null;
2874
- errorUpdateCount: number;
2875
- isFetched: boolean;
2876
- isFetchedAfterMount: boolean;
2877
- isFetching: boolean;
2878
- isInitialLoading: boolean;
2879
- isPaused: boolean;
2880
- isRefetching: boolean;
2881
- isStale: boolean;
2882
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2883
- created: RoundCreated[];
2884
- }, Error>>;
2885
- fetchStatus: _tanstack_query_core.FetchStatus;
2886
- promise: Promise<{
2887
- created: RoundCreated[];
2888
- }>;
2889
- } | {
2890
- data: {
2891
- voteStartTimestamp: number | null;
2892
- voteEndTimestamp: number | null;
2893
- isFirstRound: boolean;
2894
- isLastRound: boolean;
2895
- roundId?: string | undefined;
2896
- proposer?: string | undefined;
2897
- voteStart?: string | undefined;
2898
- voteEnd?: string | undefined;
2899
- appsIds?: string[] | undefined;
2900
- state?: keyof typeof RoundState;
2901
- isCurrent?: boolean | undefined;
2902
- };
2903
- isLoading: boolean;
2904
- isError: boolean;
2905
- error: unknown;
2906
- isPending: false;
2907
- isLoadingError: false;
2908
- isRefetchError: false;
2909
- isSuccess: true;
2910
- isPlaceholderData: false;
2911
- status: "success";
2912
- dataUpdatedAt: number;
2913
- errorUpdatedAt: number;
2914
- failureCount: number;
2915
- failureReason: Error | null;
2916
- errorUpdateCount: number;
2917
- isFetched: boolean;
2918
- isFetchedAfterMount: boolean;
2919
- isFetching: boolean;
2920
- isInitialLoading: boolean;
2921
- isPaused: boolean;
2922
- isRefetching: boolean;
2923
- isStale: boolean;
2924
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2925
- created: RoundCreated[];
2926
- }, Error>>;
2927
- fetchStatus: _tanstack_query_core.FetchStatus;
2928
- promise: Promise<{
2929
- created: RoundCreated[];
2930
- }>;
2931
- } | {
2932
- data: {
2933
- voteStartTimestamp: number | null;
2934
- voteEndTimestamp: number | null;
2935
- isFirstRound: boolean;
2936
- isLastRound: boolean;
2937
- roundId?: string | undefined;
2938
- proposer?: string | undefined;
2939
- voteStart?: string | undefined;
2940
- voteEnd?: string | undefined;
2941
- appsIds?: string[] | undefined;
2942
- state?: keyof typeof RoundState;
2943
- isCurrent?: boolean | undefined;
2944
- };
2945
- isLoading: boolean;
2946
- isError: boolean;
2947
- error: unknown;
2948
- isPending: false;
2949
- isLoadingError: true;
2950
- isRefetchError: false;
2951
- isSuccess: false;
2952
- isPlaceholderData: false;
2953
- status: "error";
2954
- dataUpdatedAt: number;
2955
- errorUpdatedAt: number;
2956
- failureCount: number;
2957
- failureReason: Error | null;
2958
- errorUpdateCount: number;
2959
- isFetched: boolean;
2960
- isFetchedAfterMount: boolean;
2961
- isFetching: boolean;
2962
- isInitialLoading: boolean;
2963
- isPaused: boolean;
2964
- isRefetching: boolean;
2965
- isStale: boolean;
2966
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2967
- created: RoundCreated[];
2968
- }, Error>>;
2969
- fetchStatus: _tanstack_query_core.FetchStatus;
2970
- promise: Promise<{
2971
- created: RoundCreated[];
2972
- }>;
2973
- } | {
2974
- data: {
2975
- voteStartTimestamp: number | null;
2976
- voteEndTimestamp: number | null;
2977
- isFirstRound: boolean;
2978
- isLastRound: boolean;
2979
- roundId?: string | undefined;
2980
- proposer?: string | undefined;
2981
- voteStart?: string | undefined;
2982
- voteEnd?: string | undefined;
2983
- appsIds?: string[] | undefined;
2984
- state?: keyof typeof RoundState;
2985
- isCurrent?: boolean | undefined;
2986
- };
2987
- isLoading: boolean;
2988
- isError: boolean;
2989
- error: unknown;
2990
- isPending: true;
2991
- isLoadingError: false;
2992
- isRefetchError: false;
2993
- isSuccess: false;
2994
- isPlaceholderData: false;
2995
- status: "pending";
2996
- dataUpdatedAt: number;
2997
- errorUpdatedAt: number;
2998
- failureCount: number;
2999
- failureReason: Error | null;
3000
- errorUpdateCount: number;
3001
- isFetched: boolean;
3002
- isFetchedAfterMount: boolean;
3003
- isFetching: boolean;
3004
- isInitialLoading: boolean;
3005
- isPaused: boolean;
3006
- isRefetching: boolean;
3007
- isStale: boolean;
3008
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
3009
- created: RoundCreated[];
3010
- }, Error>>;
3011
- fetchStatus: _tanstack_query_core.FetchStatus;
3012
- promise: Promise<{
3013
- created: RoundCreated[];
3014
- }>;
3015
- } | {
3016
- data: {
3017
- voteStartTimestamp: number | null;
3018
- voteEndTimestamp: number | null;
3019
- isFirstRound: boolean;
3020
- isLastRound: boolean;
3021
- roundId?: string | undefined;
3022
- proposer?: string | undefined;
3023
- voteStart?: string | undefined;
3024
- voteEnd?: string | undefined;
3025
- appsIds?: string[] | undefined;
3026
- state?: keyof typeof RoundState;
3027
- isCurrent?: boolean | undefined;
3028
- };
3029
- isLoading: boolean;
3030
- isError: boolean;
3031
- error: unknown;
3032
- isPending: true;
3033
- isLoadingError: false;
3034
- isRefetchError: false;
3035
- isSuccess: false;
3036
- isPlaceholderData: false;
3037
- status: "pending";
3038
- dataUpdatedAt: number;
3039
- errorUpdatedAt: number;
3040
- failureCount: number;
3041
- failureReason: Error | null;
3042
- errorUpdateCount: number;
3043
- isFetched: boolean;
3044
- isFetchedAfterMount: boolean;
3045
- isFetching: boolean;
3046
- isInitialLoading: boolean;
3047
- isPaused: boolean;
3048
- isRefetching: boolean;
3049
- isStale: boolean;
3050
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
3051
- created: RoundCreated[];
3052
- }, Error>>;
3053
- fetchStatus: _tanstack_query_core.FetchStatus;
3054
- promise: Promise<{
3055
- created: RoundCreated[];
3056
- }>;
3057
- } | {
3058
- data: {
3059
- voteStartTimestamp: number | null;
3060
- voteEndTimestamp: number | null;
3061
- isFirstRound: boolean;
3062
- isLastRound: boolean;
3063
- roundId?: string | undefined;
3064
- proposer?: string | undefined;
3065
- voteStart?: string | undefined;
3066
- voteEnd?: string | undefined;
3067
- appsIds?: string[] | undefined;
3068
- state?: keyof typeof RoundState;
3069
- isCurrent?: boolean | undefined;
3070
- };
3071
- isLoading: boolean;
3072
- isError: boolean;
3073
- error: unknown;
3074
- isPending: false;
3075
- isLoadingError: false;
3076
- isRefetchError: false;
3077
- isSuccess: true;
3078
- isPlaceholderData: true;
3079
- status: "success";
3080
- dataUpdatedAt: number;
3081
- errorUpdatedAt: number;
3082
- failureCount: number;
3083
- failureReason: Error | null;
3084
- errorUpdateCount: number;
3085
- isFetched: boolean;
3086
- isFetchedAfterMount: boolean;
3087
- isFetching: boolean;
3088
- isInitialLoading: boolean;
3089
- isPaused: boolean;
3090
- isRefetching: boolean;
3091
- isStale: boolean;
3092
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
3093
- created: RoundCreated[];
3094
- }, Error>>;
3095
- fetchStatus: _tanstack_query_core.FetchStatus;
3096
- promise: Promise<{
3097
- created: RoundCreated[];
3098
- }>;
3099
- };
3100
-
3101
- /**
3102
- * Returns the query key for fetching the number of votes for a given app in a roundId.
3103
- * @param networkType the network type
3104
- * @param roundId the roundId the get the votes for
3105
- * @param appId the xApp id (bytes32 hex string)
3106
- */
3107
- declare const getXAppVotesQueryKey: (networkType: NETWORK_TYPE, roundId: number | string, appId: string) => (string | unknown[])[];
3108
- /**
3109
- * Hook to get the number of votes for a given app in a roundId
3110
- *
3111
- * @param roundId the roundId the get the votes for (number or string)
3112
- * @param appId the xApp id (bytes32 hex string)
3113
- * @returns the number of votes for a given roundId
3114
- */
3115
- declare const useXAppVotes: (roundId?: number | string, appId?: string) => _tanstack_react_query.UseQueryResult<string, unknown>;
3116
-
3117
2007
  /**
3118
2008
  * Params for getEvents function
3119
2009
  * @param nodeUrl the node url
@@ -3294,4 +2184,4 @@ declare const txReceiptQueryKey: (txId: string) => string[];
3294
2184
  */
3295
2185
  declare const useTxReceipt: (txId: string, blockTimeout?: number) => _tanstack_react_query.UseQueryResult<_vechain_sdk_network.TransactionReceipt, Error>;
3296
2186
 
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 };
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 };