@vechain/vechain-kit 1.5.10 → 1.5.12

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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { IVechainEnergyOracleV1__factory, IB3TR__factory, IVOT3__factory, GalaxyMember__factory, NodeManagement__factory, X2EarnApps__factory, XAllocationVoting__factory, XAllocationVotingGovernor__factory, XAllocationPool__factory, VoterRewards__factory, VeBetterPassport__factory, IERC20__factory, MockENS__factory, SubdomainClaimer__factory, IReverseRegistrar__factory, ERC20__factory, SimpleAccountFactory__factory, SimpleAccount__factory, Emissions__factory, X2EarnRewardsPool__factory } from './chunk-FOSPSOWT.js';
2
- import { getConfig, humanNumber, NodeStrengthLevelToImage, allNodeStrengthLevelToName, notFoundImage, convertUriToUrl, resolveMediaTypeFromMimeType, gmNfts, DEFAULT_PRIVY_ECOSYSTEM_APPS, humanAddress, getPicassoImage, VECHAIN_PRIVY_APP_ID, compareAddresses, isValidAddress, TOKEN_LOGO_COMPONENTS, TOKEN_LOGOS, humanDomain, uploadBlobToIPFS, randomTransactionUser } from './chunk-USAHFGIQ.js';
3
- export { getConfig } from './chunk-USAHFGIQ.js';
2
+ import { getConfig, humanNumber, NodeStrengthLevelToImage, allNodeStrengthLevelToName, notFoundImage, convertUriToUrl, resolveMediaTypeFromMimeType, gmNfts, DEFAULT_PRIVY_ECOSYSTEM_APPS, humanAddress, getPicassoImage, VECHAIN_PRIVY_APP_ID, compareAddresses, isValidAddress, TOKEN_LOGO_COMPONENTS, TOKEN_LOGOS, humanDomain, uploadBlobToIPFS, randomTransactionUser } from './chunk-RSEKQ6PP.js';
3
+ export { getConfig } from './chunk-RSEKQ6PP.js';
4
4
  import { SimpleAccountFactoryABI, VechainLogo, VechainLogoLight, VechainLogoDark, VechainEnergy, PrivyLogo, SimpleAccountABI } from './chunk-3CI2FPCB.js';
5
5
  import './chunk-PZ5AY32C.js';
6
6
  import React10, { createContext, useState, useEffect, useMemo, useCallback, useRef, useContext } from 'react';
@@ -3668,6 +3668,7 @@ var useGetAvatarOfAddress = (address) => {
3668
3668
  };
3669
3669
  var useBalances = ({ address = "" }) => {
3670
3670
  const { network } = useVeChainKitConfig();
3671
+ const config = getConfig(network.type);
3671
3672
  const { data: vetData, isLoading: vetLoading } = useAccountBalance(address);
3672
3673
  const { data: vetUsdPrice, isLoading: vetUsdPriceLoading } = useGetTokenUsdPrice("VET");
3673
3674
  const { data: vthoUsdPrice, isLoading: vthoUsdPriceLoading } = useGetTokenUsdPrice("VTHO");
@@ -3675,19 +3676,21 @@ var useBalances = ({ address = "" }) => {
3675
3676
  const { data: b3trUsdPrice, isLoading: b3trUsdPriceLoading } = useGetTokenUsdPrice("B3TR");
3676
3677
  const { data: vot3Balance, isLoading: vot3Loading } = useGetVot3Balance(address);
3677
3678
  const { data: veDelegateBalance, isLoading: veDelegateLoading } = useGetVeDelegateBalance(address);
3679
+ const { data: gloDollarBalance, isLoading: gloDollarLoading } = useGetErc20Balance(config.gloDollarContractAddress, address);
3678
3680
  const customTokenBalancesQueries = useGetCustomTokenBalances(address);
3679
3681
  const customTokenBalances = customTokenBalancesQueries.map((query) => query.data).filter(Boolean);
3680
3682
  const customTokensLoading = customTokenBalancesQueries.some(
3681
3683
  (query) => query.isLoading
3682
3684
  );
3683
3685
  return useMemo(() => {
3684
- const isLoading = vetLoading || b3trLoading || vot3Loading || vetUsdPriceLoading || b3trUsdPriceLoading || veDelegateLoading || vthoUsdPriceLoading || customTokensLoading;
3686
+ const isLoading = vetLoading || b3trLoading || vot3Loading || vetUsdPriceLoading || b3trUsdPriceLoading || veDelegateLoading || vthoUsdPriceLoading || customTokensLoading || gloDollarLoading;
3685
3687
  const contractAddresses = {
3686
3688
  vet: "0x",
3687
- vtho: getConfig(network.type).vthoContractAddress,
3688
- b3tr: getConfig(network.type).b3trContractAddress,
3689
- vot3: getConfig(network.type).vot3ContractAddress,
3690
- veDelegate: getConfig(network.type).veDelegate
3689
+ vtho: config.vthoContractAddress,
3690
+ b3tr: config.b3trContractAddress,
3691
+ vot3: config.vot3ContractAddress,
3692
+ veDelegate: config.veDelegate,
3693
+ USDGLO: config.gloDollarContractAddress
3691
3694
  };
3692
3695
  const balances = [
3693
3696
  {
@@ -3721,6 +3724,12 @@ var useBalances = ({ address = "" }) => {
3721
3724
  symbol: "veDelegate",
3722
3725
  priceAddress: contractAddresses.b3tr
3723
3726
  // using b3tr price for veDelegate
3727
+ },
3728
+ {
3729
+ address: contractAddresses.USDGLO,
3730
+ value: gloDollarBalance?.scaled ?? "0",
3731
+ symbol: "USDGLO",
3732
+ priceAddress: contractAddresses.USDGLO
3724
3733
  }
3725
3734
  ];
3726
3735
  customTokenBalances.forEach((token) => {
@@ -3736,7 +3745,9 @@ var useBalances = ({ address = "" }) => {
3736
3745
  const prices = [
3737
3746
  { address: contractAddresses.vet, price: vetUsdPrice || 0 },
3738
3747
  { address: contractAddresses.vtho, price: vthoUsdPrice || 0 },
3739
- { address: contractAddresses.b3tr, price: b3trUsdPrice || 0 }
3748
+ { address: contractAddresses.b3tr, price: b3trUsdPrice || 0 },
3749
+ { address: contractAddresses.USDGLO, price: 1 }
3750
+ // gloDollar is pegged to 1 USD
3740
3751
  ];
3741
3752
  const totalBalance = balances.reduce((acc, { priceAddress, value }) => {
3742
3753
  const price = prices.find((p) => p.address === priceAddress)?.price || 0;
@@ -4344,6 +4355,133 @@ var useGetCustomTokenBalances = (address) => {
4344
4355
  }))
4345
4356
  });
4346
4357
  };
4358
+ var parseSignatureToAbi = (signature) => {
4359
+ const match = signature.match(/^([^(]+)\(([^)]*)\)$/);
4360
+ if (!match) return { name: signature, inputs: [] };
4361
+ const [, name, paramsStr] = match;
4362
+ const inputs = paramsStr ? paramsStr.split(",").map((param, index) => ({
4363
+ name: `param${index}`,
4364
+ type: param.trim()
4365
+ })) : [];
4366
+ return {
4367
+ name,
4368
+ inputs
4369
+ };
4370
+ };
4371
+ var fetchFunctionSignature = async (signature) => {
4372
+ const urls = [
4373
+ `https://b32.vecha.in/q/${signature}.json`,
4374
+ `https://sig.api.vechain.energy/${signature}`,
4375
+ `https://api.openchain.xyz/signature-database/v1/lookup?function=${signature}`
4376
+ ];
4377
+ for (const url of urls) {
4378
+ const response = await fetch(url);
4379
+ if (!response.ok) {
4380
+ console.error(
4381
+ `Failed to fetch from ${url}: ${response.statusText}`
4382
+ );
4383
+ continue;
4384
+ }
4385
+ if (url.includes("b32.vecha.in")) {
4386
+ const data = await response.json();
4387
+ if (data?.length > 0) {
4388
+ return data[0];
4389
+ }
4390
+ } else if (url.includes("sig.api.vechain.energy")) {
4391
+ const data = await response.json();
4392
+ if (data?.abi) {
4393
+ return data.abi;
4394
+ }
4395
+ } else if (url.includes("openchain.xyz")) {
4396
+ const data = await response.json();
4397
+ if (data?.ok && data.result?.function?.[signature]?.length > 0) {
4398
+ const funcName = data.result.function[signature][0].name;
4399
+ const parsedAbi = parseSignatureToAbi(funcName);
4400
+ return {
4401
+ ...parsedAbi,
4402
+ name: parsedAbi.name || "unknown",
4403
+ inputs: parsedAbi.inputs || [],
4404
+ outputs: [],
4405
+ type: "function",
4406
+ payable: false,
4407
+ constant: false
4408
+ };
4409
+ }
4410
+ }
4411
+ }
4412
+ return {
4413
+ name: "unknown",
4414
+ inputs: [],
4415
+ outputs: [],
4416
+ type: "function",
4417
+ payable: false,
4418
+ constant: false
4419
+ };
4420
+ };
4421
+ var decodeParams = (calldata, abiDefinition) => {
4422
+ try {
4423
+ if (!abiDefinition || !abiDefinition.inputs || abiDefinition.inputs.length === 0) {
4424
+ return [];
4425
+ }
4426
+ const paramData = calldata.length > 10 ? `0x${calldata.slice(10)}` : "0x";
4427
+ const decoded = abi.decodeParameters(abiDefinition.inputs, paramData);
4428
+ return abiDefinition.inputs.map((param) => ({
4429
+ name: param.name || "unnamed",
4430
+ type: param.type,
4431
+ value: decoded ? decoded[param.name] : "Unknown"
4432
+ }));
4433
+ } catch (e) {
4434
+ console.error("Error decoding call data", e);
4435
+ return abiDefinition.inputs.map((param) => ({
4436
+ name: param.name || "unnamed",
4437
+ type: param.type,
4438
+ value: "Error decoding"
4439
+ }));
4440
+ }
4441
+ };
4442
+ var decodeFunctionSignature = async (input) => {
4443
+ if (!input || input === "0x") {
4444
+ return {
4445
+ definition: {
4446
+ name: "empty",
4447
+ inputs: [],
4448
+ outputs: [],
4449
+ type: "function",
4450
+ payable: false,
4451
+ constant: false
4452
+ },
4453
+ humanName: "empty()",
4454
+ decodedParams: []
4455
+ };
4456
+ }
4457
+ const signature = input.slice(0, 10);
4458
+ const functionDefinition = await fetchFunctionSignature(signature);
4459
+ const abiDefinition = new abi.Function(
4460
+ functionDefinition
4461
+ );
4462
+ const decodedParams = input.length > 10 ? decodeParams(input, abiDefinition.definition) : [];
4463
+ const humanName = decodedParams.length > 0 ? `${functionDefinition.name}(${decodedParams.map((param) => `${param.name}: ${String(param.value)}`).join(", ")})` : `${functionDefinition.name}(${functionDefinition.inputs.map((input2) => `${input2.name || "unnamed"}: ${input2.type}`).join(", ")})`;
4464
+ return {
4465
+ definition: abiDefinition.definition,
4466
+ humanName,
4467
+ decodedParams
4468
+ };
4469
+ };
4470
+ var getDecodeFunctionSignatureQueryKey = (input) => [
4471
+ "decodeFunctionSignature",
4472
+ input
4473
+ ];
4474
+ var useDecodeFunctionSignature = (input) => {
4475
+ return useQuery({
4476
+ queryKey: getDecodeFunctionSignatureQueryKey(input),
4477
+ queryFn: async () => await decodeFunctionSignature(input),
4478
+ enabled: !!input,
4479
+ staleTime: 1e3 * 60 * 5,
4480
+ // Cache results for 5 minutes
4481
+ retry: 2
4482
+ // Retry failed queries twice
4483
+ });
4484
+ };
4347
4485
  var getNFTMetadataUri = async (networkType, thor, tokenID) => {
4348
4486
  if (!tokenID) return Promise.reject(new Error("tokenID not provided"));
4349
4487
  const galaxyMemberContract = getConfig(networkType).galaxyMemberContractAddress;
@@ -4912,6 +5050,31 @@ var useUpgradeSmartAccount = ({
4912
5050
  }
4913
5051
  };
4914
5052
  };
5053
+ var getErc20Balance = async (thor, tokenAddress, address) => {
5054
+ if (!tokenAddress || !address) {
5055
+ throw new Error("Token address and user address are required");
5056
+ }
5057
+ const functionFragment2 = IERC20__factory.createInterface().getFunction("balanceOf").format("json");
5058
+ const res = await thor.account(tokenAddress).method(JSON.parse(functionFragment2)).call(address);
5059
+ if (res.reverted) throw new Error("Reverted");
5060
+ const original = res.decoded[0];
5061
+ const scaled = formatEther$1(original);
5062
+ const formatted = scaled === "0" ? "0" : humanNumber(scaled);
5063
+ return {
5064
+ original,
5065
+ scaled,
5066
+ formatted
5067
+ };
5068
+ };
5069
+ var getErc20BalanceQueryKey = (tokenAddress, address) => ["VECHAIN_KIT_ERC20_BALANCE", tokenAddress, address];
5070
+ var useGetErc20Balance = (tokenAddress, address) => {
5071
+ const { thor } = useConnex();
5072
+ return useQuery({
5073
+ queryKey: getErc20BalanceQueryKey(tokenAddress, address),
5074
+ queryFn: async () => getErc20Balance(thor, tokenAddress, address),
5075
+ enabled: !!thor && !!address && !!tokenAddress
5076
+ });
5077
+ };
4915
5078
  var FadeInView = ({ children }) => {
4916
5079
  return /* @__PURE__ */ jsx(
4917
5080
  motion.div,
@@ -5099,7 +5262,7 @@ var AddressDisplay = ({
5099
5262
  // package.json
5100
5263
  var package_default = {
5101
5264
  name: "@vechain/vechain-kit",
5102
- version: "1.5.10",
5265
+ version: "1.5.12",
5103
5266
  private: false,
5104
5267
  homepage: "https://github.com/vechain/vechain-kit",
5105
5268
  repository: "github:vechain/vechain-kit",
@@ -5190,7 +5353,9 @@ var package_default = {
5190
5353
  },
5191
5354
  resolutions: {
5192
5355
  "@vechain/sdk-core": "^1.0.0-rc.5",
5193
- "@vechain/sdk-network": "^1.0.0-rc.5"
5356
+ "@vechain/sdk-network": "^1.0.0-rc.5",
5357
+ "@vechain/dapp-kit-ui": "1.5.0",
5358
+ "@vechain/dapp-kit": "1.5.0"
5194
5359
  },
5195
5360
  overrides: {
5196
5361
  "@vechain/sdk-core": "^1.0.0-rc.5",
@@ -6502,7 +6667,7 @@ var AssetIcons = ({
6502
6667
  const { tokens } = useBalances({ address });
6503
6668
  const { darkMode } = useVeChainKitConfig();
6504
6669
  const marginLeft = iconsGap < 1 ? `-${iconSize / 2}px` : `${iconsGap}px`;
6505
- const tokensList = Object.values(tokens).filter((token) => token.value > 0).sort((a, b) => b.usdValue - a.usdValue);
6670
+ const tokensList = Object.values(tokens).filter((token) => Number(token.value) > 0).sort((a, b) => Number(b.usdValue) - Number(a.usdValue));
6506
6671
  const tokensToShow = tokensList.slice(0, maxIcons);
6507
6672
  const remainingTokens = tokensList.length - maxIcons;
6508
6673
  if (!address) return null;
@@ -6724,15 +6889,15 @@ var AssetsTabPanel = ({ setCurrentContent }) => {
6724
6889
  value: tokens[token.symbol]?.value ?? 0,
6725
6890
  price: tokens[token.symbol]?.price ?? 0
6726
6891
  }))
6727
- ].sort((a, b) => b.value * b.price - a.value * a.price);
6892
+ ].sort((a, b) => Number(b.value) * b.price - Number(a.value) * a.price);
6728
6893
  return /* @__PURE__ */ jsxs(VStack, { spacing: 2, align: "stretch", mt: 2, children: [
6729
6894
  allTokens.map((token) => /* @__PURE__ */ jsx(
6730
6895
  AssetButton,
6731
6896
  {
6732
6897
  symbol: token.symbol,
6733
- amount: token.value,
6734
- usdValue: token.value * token.price,
6735
- isDisabled: token.value === 0,
6898
+ amount: Number(token.value),
6899
+ usdValue: Number(token.value) * token.price,
6900
+ isDisabled: Number(token.value) === 0,
6736
6901
  onClick: () => handleTokenSelect(token)
6737
6902
  },
6738
6903
  token.address
@@ -15721,22 +15886,17 @@ var ConnectPopover = ({
15721
15886
  };
15722
15887
  var WalletDisplay = ({ variant }) => {
15723
15888
  const { account } = useWallet();
15724
- const [isSmallMobile] = useMediaQuery("(max-width: 480px)");
15725
- const accountDomain = useMemo(() => {
15726
- const isLongDomain = account?.domain && account.domain.length > 18;
15727
- return isSmallMobile && isLongDomain ? humanDomain(account?.domain ?? "", 18, 0) : account?.domain;
15728
- }, [isSmallMobile, account?.domain]);
15729
15889
  if (!account) return /* @__PURE__ */ jsx(Spinner, {});
15730
15890
  if (variant === "icon") {
15731
15891
  return null;
15732
15892
  }
15733
15893
  if (variant === "iconAndDomain") {
15734
- return account.domain ? /* @__PURE__ */ jsx(Text, { fontSize: "sm", children: accountDomain }) : /* @__PURE__ */ jsx(Text, { fontSize: "sm", children: humanAddress(account.address ?? "", 6, 4) });
15894
+ return account.domain ? /* @__PURE__ */ jsx(Text, { fontSize: "sm", children: humanDomain(account?.domain ?? "", 16, 0) }) : /* @__PURE__ */ jsx(Text, { fontSize: "sm", children: humanAddress(account.address ?? "", 6, 4) });
15735
15895
  }
15736
15896
  if (variant === "iconDomainAndAssets") {
15737
15897
  return /* @__PURE__ */ jsxs(HStack, { spacing: 4, children: [
15738
15898
  /* @__PURE__ */ jsxs(VStack, { spacing: 0, alignItems: "flex-start", children: [
15739
- account.domain && /* @__PURE__ */ jsx(Text, { fontSize: "sm", fontWeight: "bold", children: accountDomain }),
15899
+ account.domain && /* @__PURE__ */ jsx(Text, { fontSize: "sm", fontWeight: "bold", children: humanDomain(account?.domain ?? "", 16, 0) }),
15740
15900
  /* @__PURE__ */ jsx(
15741
15901
  Text,
15742
15902
  {
@@ -15750,7 +15910,7 @@ var WalletDisplay = ({ variant }) => {
15750
15910
  ] });
15751
15911
  }
15752
15912
  return /* @__PURE__ */ jsxs(VStack, { spacing: 0, alignItems: "flex-start", children: [
15753
- account.domain && /* @__PURE__ */ jsx(Text, { fontSize: "sm", fontWeight: "bold", children: accountDomain }),
15913
+ account.domain && /* @__PURE__ */ jsx(Text, { fontSize: "sm", fontWeight: "bold", children: humanDomain(account?.domain ?? "", 16, 0) }),
15754
15914
  /* @__PURE__ */ jsx(
15755
15915
  Text,
15756
15916
  {
@@ -18187,7 +18347,7 @@ var VeChainKitProvider = (props) => {
18187
18347
  "--vdk-modal-width": "22rem",
18188
18348
  "--vdk-modal-backdrop-filter": "blur(3px)",
18189
18349
  "--vdk-border-dark-source-card": `1px solid ${"#ffffff0a"}`,
18190
- "--vdk-border-light-source-card": `1px solid ${"#ebebeb"} !important`,
18350
+ "--vdk-border-light-source-card": `1px solid ${"#ebebeb"}`,
18191
18351
  // Dark mode colors
18192
18352
  "--vdk-color-dark-primary": "transparent",
18193
18353
  "--vdk-color-dark-primary-hover": "rgba(255, 255, 255, 0.05)",
@@ -18543,6 +18703,6 @@ var VechainKitThemeProvider = ({
18543
18703
  ] });
18544
18704
  };
18545
18705
 
18546
- export { APP_SECURITY_LEVELS, AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, AssetButton, AssetsContent, AssetsSection, BalanceSection, BaseModal, BridgeContent, ChooseNameContent, ChooseNameModalProvider, ChooseNameSearchContent, ChooseNameSummaryContent, ConnectModal, ConnectModalProvider, ConnectPopover, ConnectionButton, CrossAppConnectionSecurityCard, CustomizationContent, CustomizationSummaryContent, DappKitButton, DomainRequiredAlert, ENS_TEXT_RECORDS, EcosystemButton, EcosystemModal, EmailLoginButton, EmbeddedWalletContent, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, LoginLoadingModal, LoginWithGoogleButton, MAX_IMAGE_SIZE, MainContent, ManageCustomTokenContent, ModalBackButton, ModalFAQButton, NFTMediaType, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyButton, PrivyWalletProvider, ProfileCard, ProfileContent, ProfileModalProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, RoundState, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SettingsContent, ShareButtons, SocialIcons, StickyFooterContainer, StickyHeaderContainer, SwapTokenContent, TransactionButtonAndStatus, TransactionModal, TransactionModalContent, TransactionModalProvider, TransactionToast, TransactionToastProvider, UpgradeSmartAccountContent, UpgradeSmartAccountModal, UpgradeSmartAccountModalProvider, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VePassportUserStatus, VechainKitThemeProvider, VersionFooter, WalletButton, WalletModalProvider, buildClaimRewardsTx, buildClaimRoundReward, compressImages, currentBlockQueryKey, fetchPrivyAppInfo, fetchPrivyStatus, fetchVechainDomain, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersion, getAccountVersionQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAllocationsRoundState, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getAvatar, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDelegateeQueryKey, getDelegatorQueryKey, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getEntitiesLinkedToPassportQueryKey, getEvents, getGMBaseUriQueryKey, getGMLevel, getGMbalanceQueryKey, getGetCumulativeScoreWithDecayQueryKey, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getHasVotedInRound, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsBlacklistedQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsEntityQueryKey, getIsNodeHolder, getIsNodeHolderQueryKey, getIsPassportQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getIsWhitelistedQueryKey, getLevelGradient, getLevelMultiplierQueryKey, getLevelOfTokenQueryKey, getNFTMetadataUri, getNFTMetadataUriQueryKey, getNodeCheckCooldownQueryKey, getNodeManagerQueryKey, getParticipatedInGovernance, getParticipatedInGovernanceQueryKey, getParticipationScoreThresholdQueryKey, getPassportForEntityQueryKey, getPassportToggleQueryKey, getPendingDelegationsQueryKeyDelegateePOV, getPendingDelegationsQueryKeyDelegatorPOV, getPendingLinkingsQueryKey, getPrivyAppInfoQueryKey, getResolverAddress, getResolverAddressQueryKey, getRoundReward, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSecurityMultiplierQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getThresholdParticipationScoreAtTimepointQueryKey, getThresholdParticipationScoreQueryKey, getTokenIdByAccount, getTokenIdByAccountQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getUserBotSignalsQueryKey, getUserNodesQueryKey, getUserRoundScoreQueryKey, getUserVotesInRound, getUserVotesInRoundQueryKey, getUserXNodes, getUserXNodesQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getVotesInRoundQueryKey, getXAppMetadata, getXAppMetadataQueryKey, getXAppRoundEarnings, getXAppRoundEarningsQueryKey, getXAppTotalEarningsClauses, getXAppTotalEarningsQueryKey, getXAppVotes, getXAppVotesQf, getXAppVotesQfQueryKey, getXAppVotesQueryKey, getXApps, getXAppsMetadataBaseUri, getXAppsMetadataBaseUriQueryKey, getXAppsQueryKey, getXAppsSharesQueryKey, imageCompressionOptions, pollForReceipt, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountLinking, useAccountModal, useAllocationAmount, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppAdmin, useAppBalance, useAppExists, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBalances, useCall, useChooseNameModal, useClaimVeWorldSubdomain, useConnectModal, useCrossAppConnectionCache, useCurrentAccountImplementationVersion, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGMBaseUri, useGMbalance, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDelegatee, useGetDelegator, useGetDomainsOfAddress, useGetEntitiesLinkedToPassport, useGetNodeManager, useGetNodeUrl, useGetPassportForEntity, useGetPendingDelegationsDelegateePOV, useGetPendingDelegationsDelegatorPOV, useGetPendingLinkings, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetTokensInfoByOwner, useGetUserEntitiesLinkedToPassport, useGetUserNode, useGetUserNodes, useGetUserPassportForEntity, useGetUserPendingLinkings, useGetVeDelegateBalance, useGetVot3Balance, useHasV1SmartAccount, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsBlacklisted, useIsDomainProtected, useIsEntity, useIsGMclaimable, useIsNodeHolder, useIsPWA, useIsPassport, useIsPassportCheckEnabled, useIsPerson, useIsPersonAtTimepoint, useIsSmartAccountDeployed, useIsUserEntity, useIsUserPassport, useIsUserPerson, useIsWhitelisted, useLevelMultiplier, useLevelOfToken, useLocalStorage, useLoginModalContent, useLoginWithOAuth2 as useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useNotificationsModal, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshMetadata, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTokenModal, useSendTransaction, useSignMessage2 as useSignMessage, useSignTypedData2 as useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenIdByAccount, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useUserBotSignals, useUserDelegation, useUserRoundScore, useUserStatus, useUserTopVotedApps, useUserVotesInAllRounds, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletMetadata, useWalletModal2 as useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXAppVotesQf, useXApps, useXAppsMetadataBaseUri, useXAppsShares, useXNode, useXNodeCheckCooldown, useXNodes };
18706
+ export { APP_SECURITY_LEVELS, AccessAndSecurityContent, AccessAndSecurityModalProvider, AccountAvatar, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, AssetButton, AssetsContent, AssetsSection, BalanceSection, BaseModal, BridgeContent, ChooseNameContent, ChooseNameModalProvider, ChooseNameSearchContent, ChooseNameSummaryContent, ConnectModal, ConnectModalProvider, ConnectPopover, ConnectionButton, CrossAppConnectionSecurityCard, CustomizationContent, CustomizationSummaryContent, DappKitButton, DomainRequiredAlert, ENS_TEXT_RECORDS, EcosystemButton, EcosystemModal, EmailLoginButton, EmbeddedWalletContent, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, LoginLoadingModal, LoginWithGoogleButton, MAX_IMAGE_SIZE, MainContent, ManageCustomTokenContent, ModalBackButton, ModalFAQButton, NFTMediaType, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyButton, PrivyWalletProvider, ProfileCard, ProfileContent, ProfileModalProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, RoundState, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SettingsContent, ShareButtons, SocialIcons, StickyFooterContainer, StickyHeaderContainer, SwapTokenContent, TransactionButtonAndStatus, TransactionModal, TransactionModalContent, TransactionModalProvider, TransactionToast, TransactionToastProvider, UpgradeSmartAccountContent, UpgradeSmartAccountModal, UpgradeSmartAccountModalProvider, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VePassportUserStatus, VechainKitThemeProvider, VersionFooter, WalletButton, WalletModalProvider, buildClaimRewardsTx, buildClaimRoundReward, compressImages, currentBlockQueryKey, decodeFunctionSignature, fetchPrivyAppInfo, fetchPrivyStatus, fetchVechainDomain, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersion, getAccountVersionQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAllocationsRoundState, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getAvatar, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalance, getCustomTokenBalanceQueryKey, getCustomTokenInfo, getDelegateeQueryKey, getDelegatorQueryKey, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getEntitiesLinkedToPassportQueryKey, getErc20Balance, getErc20BalanceQueryKey, getEvents, getGMBaseUriQueryKey, getGMLevel, getGMbalanceQueryKey, getGetCumulativeScoreWithDecayQueryKey, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getHasVotedInRound, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsBlacklistedQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsEntityQueryKey, getIsNodeHolder, getIsNodeHolderQueryKey, getIsPassportQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getIsWhitelistedQueryKey, getLevelGradient, getLevelMultiplierQueryKey, getLevelOfTokenQueryKey, getNFTMetadataUri, getNFTMetadataUriQueryKey, getNodeCheckCooldownQueryKey, getNodeManagerQueryKey, getParticipatedInGovernance, getParticipatedInGovernanceQueryKey, getParticipationScoreThresholdQueryKey, getPassportForEntityQueryKey, getPassportToggleQueryKey, getPendingDelegationsQueryKeyDelegateePOV, getPendingDelegationsQueryKeyDelegatorPOV, getPendingLinkingsQueryKey, getPrivyAppInfoQueryKey, getResolverAddress, getResolverAddressQueryKey, getRoundReward, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSecurityMultiplierQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getThresholdParticipationScoreAtTimepointQueryKey, getThresholdParticipationScoreQueryKey, getTokenIdByAccount, getTokenIdByAccountQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getUserBotSignalsQueryKey, getUserNodesQueryKey, getUserRoundScoreQueryKey, getUserVotesInRound, getUserVotesInRoundQueryKey, getUserXNodes, getUserXNodesQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getVotesInRoundQueryKey, getXAppMetadata, getXAppMetadataQueryKey, getXAppRoundEarnings, getXAppRoundEarningsQueryKey, getXAppTotalEarningsClauses, getXAppTotalEarningsQueryKey, getXAppVotes, getXAppVotesQf, getXAppVotesQfQueryKey, getXAppVotesQueryKey, getXApps, getXAppsMetadataBaseUri, getXAppsMetadataBaseUriQueryKey, getXAppsQueryKey, getXAppsSharesQueryKey, imageCompressionOptions, pollForReceipt, useAccessAndSecurityModal, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountLinking, useAccountModal, useAllocationAmount, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppAdmin, useAppBalance, useAppExists, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBalances, useCall, useChooseNameModal, useClaimVeWorldSubdomain, useConnectModal, useCrossAppConnectionCache, useCurrentAccountImplementationVersion, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useDecodeFunctionSignature, useEcosystemShortcuts, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGMBaseUri, useGMbalance, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDelegatee, useGetDelegator, useGetDomainsOfAddress, useGetEntitiesLinkedToPassport, useGetErc20Balance, useGetNodeManager, useGetNodeUrl, useGetPassportForEntity, useGetPendingDelegationsDelegateePOV, useGetPendingDelegationsDelegatorPOV, useGetPendingLinkings, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetTokensInfoByOwner, useGetUserEntitiesLinkedToPassport, useGetUserNode, useGetUserNodes, useGetUserPassportForEntity, useGetUserPendingLinkings, useGetVeDelegateBalance, useGetVot3Balance, useHasV1SmartAccount, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsBlacklisted, useIsDomainProtected, useIsEntity, useIsGMclaimable, useIsNodeHolder, useIsPWA, useIsPassport, useIsPassportCheckEnabled, useIsPerson, useIsPersonAtTimepoint, useIsSmartAccountDeployed, useIsUserEntity, useIsUserPassport, useIsUserPerson, useIsWhitelisted, useLevelMultiplier, useLevelOfToken, useLocalStorage, useLoginModalContent, useLoginWithOAuth2 as useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useNotificationsModal, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshMetadata, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTokenModal, useSendTransaction, useSignMessage2 as useSignMessage, useSignTypedData2 as useSignTypedData, useSingleImageUpload, useSmartAccount, useSmartAccountVersion, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenIdByAccount, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useUserBotSignals, useUserDelegation, useUserRoundScore, useUserStatus, useUserTopVotedApps, useUserVotesInAllRounds, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletMetadata, useWalletModal2 as useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXAppVotesQf, useXApps, useXAppsMetadataBaseUri, useXAppsShares, useXNode, useXNodeCheckCooldown, useXNodes };
18547
18707
  //# sourceMappingURL=index.js.map
18548
18708
  //# sourceMappingURL=index.js.map