@vechain/vechain-kit 1.2.2 → 1.2.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/README.md +199 -113
- package/dist/{Constants-Q8PYUyoh.d.cts → Constants-Cu1LVhH4.d.cts} +1 -0
- package/dist/{Constants-Q8PYUyoh.d.ts → Constants-Cu1LVhH4.d.ts} +1 -0
- package/dist/index.cjs +614 -407
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +115 -59
- package/dist/index.d.ts +115 -59
- package/dist/index.js +604 -409
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/utils/index.d.cts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/package.json +105 -105
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, SimpleAccountFactory__factory, ERC20__factory, Emissions__factory, X2EarnRewardsPool__factory } from './chunk-LSKZXRAS.js';
|
|
2
2
|
import { getConfig, humanNumber, NodeStrengthLevelToImage, allNodeStrengthLevelToName, notFoundImage, convertUriToUrl, resolveMediaTypeFromMimeType, gmNfts, humanAddress, VECHAIN_PRIVY_APP_ID, getPicassoImage, compareAddresses, isValidAddress, TOKEN_LOGOS, humanDomain, randomTransactionUser } from './chunk-RAUWG27M.js';
|
|
3
3
|
export { getConfig } from './chunk-RAUWG27M.js';
|
|
4
|
-
import { SimpleAccountFactoryABI, VechainLogoHorizontal, VechainLogo,
|
|
4
|
+
import { SimpleAccountFactoryABI, VechainLogoHorizontal, VechainLogo, SimpleAccountABI, PrivyLogo } from './chunk-IGUWNKV2.js';
|
|
5
5
|
import './chunk-PZ5AY32C.js';
|
|
6
6
|
import React9, { createContext, useState, useEffect, useMemo, useCallback, useContext, useRef } from 'react';
|
|
7
7
|
import { useLoginWithOAuth, usePrivy, useLoginWithPasskey as useLoginWithPasskey$1, useLoginWithEmail, PrivyProvider } from '@privy-io/react-auth';
|
|
@@ -32,11 +32,11 @@ import { LuMail } from 'react-icons/lu';
|
|
|
32
32
|
import { MdOutlineNavigateNext, MdSwapHoriz, MdManageAccounts, MdOutlineErrorOutline, MdOutlineRefresh, MdEmail } from 'react-icons/md';
|
|
33
33
|
import { BiBell, BiArchive } from 'react-icons/bi';
|
|
34
34
|
import { RiLogoutBoxLine, RiTwitterXFill } from 'react-icons/ri';
|
|
35
|
-
import { PiLineVertical } from 'react-icons/pi';
|
|
36
35
|
import { VscRefresh, VscDebugDisconnect } from 'react-icons/vsc';
|
|
37
36
|
import { FaRegArrowAltCircleDown, FaRegAddressCard, FaExternalLinkAlt, FaTelegramPlane, FaGoogle, FaEnvelope, FaTwitter, FaPhone, FaSpotify, FaApple, FaInstagram, FaTiktok, FaGithub, FaLinkedin, FaTelegram, FaDiscord, FaPlus, FaWallet } from 'react-icons/fa';
|
|
38
37
|
import { FiSend, FiSlash, FiArrowDown } from 'react-icons/fi';
|
|
39
38
|
import { GiHouseKeys, GiConfirmed } from 'react-icons/gi';
|
|
39
|
+
import { PiLineVertical } from 'react-icons/pi';
|
|
40
40
|
import { QRCode } from 'react-qrcode-logo';
|
|
41
41
|
import { GoLinkExternal } from 'react-icons/go';
|
|
42
42
|
import { FaWhatsapp } from 'react-icons/fa6';
|
|
@@ -3021,6 +3021,9 @@ var useWallet = () => {
|
|
|
3021
3021
|
const smartAccountDomain = useVechainDomain(smartAccount?.address ?? "").data?.domain;
|
|
3022
3022
|
const embeddedWalletDomain = useVechainDomain(privyEmbeddedWallet ?? "").data?.domain;
|
|
3023
3023
|
const crossAppAccountDomain = useVechainDomain(crossAppAddress ?? "").data?.domain;
|
|
3024
|
+
const { data: smartAccountVersion } = useContractVersion(
|
|
3025
|
+
smartAccount?.address ?? ""
|
|
3026
|
+
);
|
|
3024
3027
|
const disconnect = useCallback(async () => {
|
|
3025
3028
|
try {
|
|
3026
3029
|
setIsConnected(false);
|
|
@@ -3053,7 +3056,8 @@ var useWallet = () => {
|
|
|
3053
3056
|
domain: smartAccountDomain,
|
|
3054
3057
|
image: getPicassoImage(smartAccount?.address ?? ""),
|
|
3055
3058
|
isDeployed: smartAccount?.isDeployed ?? false,
|
|
3056
|
-
isActive: hasActiveSmartAccount
|
|
3059
|
+
isActive: hasActiveSmartAccount,
|
|
3060
|
+
version: smartAccountVersion ?? null
|
|
3057
3061
|
},
|
|
3058
3062
|
dappKitWallet: isConnectedWithDappKit ? {
|
|
3059
3063
|
address: dappKitAccount,
|
|
@@ -3271,6 +3275,147 @@ var useWalletModal = () => {
|
|
|
3271
3275
|
return { open, close, isOpen };
|
|
3272
3276
|
};
|
|
3273
3277
|
var WalletModalProvider = ({ children }) => /* @__PURE__ */ jsx(Fragment, { children });
|
|
3278
|
+
var useChooseNameModal = () => {
|
|
3279
|
+
const {
|
|
3280
|
+
openAccountModal,
|
|
3281
|
+
closeAccountModal,
|
|
3282
|
+
isAccountModalOpen,
|
|
3283
|
+
setAccountModalContent
|
|
3284
|
+
} = useVeChainKitConfig();
|
|
3285
|
+
const open = () => {
|
|
3286
|
+
setAccountModalContent("choose-name");
|
|
3287
|
+
openAccountModal();
|
|
3288
|
+
};
|
|
3289
|
+
const close = () => {
|
|
3290
|
+
closeAccountModal();
|
|
3291
|
+
};
|
|
3292
|
+
return {
|
|
3293
|
+
open,
|
|
3294
|
+
close,
|
|
3295
|
+
isOpen: isAccountModalOpen
|
|
3296
|
+
};
|
|
3297
|
+
};
|
|
3298
|
+
var ChooseNameModalProvider = ({
|
|
3299
|
+
children
|
|
3300
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children });
|
|
3301
|
+
var useSendTokenModal = () => {
|
|
3302
|
+
const {
|
|
3303
|
+
openAccountModal,
|
|
3304
|
+
closeAccountModal,
|
|
3305
|
+
isAccountModalOpen,
|
|
3306
|
+
setAccountModalContent
|
|
3307
|
+
} = useVeChainKitConfig();
|
|
3308
|
+
const open = () => {
|
|
3309
|
+
setAccountModalContent({
|
|
3310
|
+
type: "send-token",
|
|
3311
|
+
props: {
|
|
3312
|
+
setCurrentContent: setAccountModalContent
|
|
3313
|
+
}
|
|
3314
|
+
});
|
|
3315
|
+
openAccountModal();
|
|
3316
|
+
};
|
|
3317
|
+
const close = () => {
|
|
3318
|
+
closeAccountModal();
|
|
3319
|
+
};
|
|
3320
|
+
return {
|
|
3321
|
+
open,
|
|
3322
|
+
close,
|
|
3323
|
+
isOpen: isAccountModalOpen
|
|
3324
|
+
};
|
|
3325
|
+
};
|
|
3326
|
+
var SendTokenModalProvider = ({
|
|
3327
|
+
children
|
|
3328
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children });
|
|
3329
|
+
var useEmbeddedWalletSettingsModal = () => {
|
|
3330
|
+
const {
|
|
3331
|
+
openAccountModal,
|
|
3332
|
+
closeAccountModal,
|
|
3333
|
+
isAccountModalOpen,
|
|
3334
|
+
setAccountModalContent
|
|
3335
|
+
} = useVeChainKitConfig();
|
|
3336
|
+
const open = () => {
|
|
3337
|
+
setAccountModalContent("embedded-wallet");
|
|
3338
|
+
openAccountModal();
|
|
3339
|
+
};
|
|
3340
|
+
const close = () => {
|
|
3341
|
+
closeAccountModal();
|
|
3342
|
+
};
|
|
3343
|
+
return {
|
|
3344
|
+
open,
|
|
3345
|
+
close,
|
|
3346
|
+
isOpen: isAccountModalOpen
|
|
3347
|
+
};
|
|
3348
|
+
};
|
|
3349
|
+
var EmbeddedWalletSettingsModalProvider = ({
|
|
3350
|
+
children
|
|
3351
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children });
|
|
3352
|
+
var useExploreEcosystemModal = () => {
|
|
3353
|
+
const {
|
|
3354
|
+
openAccountModal,
|
|
3355
|
+
closeAccountModal,
|
|
3356
|
+
isAccountModalOpen,
|
|
3357
|
+
setAccountModalContent
|
|
3358
|
+
} = useVeChainKitConfig();
|
|
3359
|
+
const open = () => {
|
|
3360
|
+
setAccountModalContent("ecosystem");
|
|
3361
|
+
openAccountModal();
|
|
3362
|
+
};
|
|
3363
|
+
const close = () => {
|
|
3364
|
+
closeAccountModal();
|
|
3365
|
+
};
|
|
3366
|
+
return {
|
|
3367
|
+
open,
|
|
3368
|
+
close,
|
|
3369
|
+
isOpen: isAccountModalOpen
|
|
3370
|
+
};
|
|
3371
|
+
};
|
|
3372
|
+
var ExploreEcosystemModalProvider = ({
|
|
3373
|
+
children
|
|
3374
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children });
|
|
3375
|
+
var useNotificationsModal = () => {
|
|
3376
|
+
const {
|
|
3377
|
+
openAccountModal,
|
|
3378
|
+
closeAccountModal,
|
|
3379
|
+
isAccountModalOpen,
|
|
3380
|
+
setAccountModalContent
|
|
3381
|
+
} = useVeChainKitConfig();
|
|
3382
|
+
const open = () => {
|
|
3383
|
+
setAccountModalContent("notifications");
|
|
3384
|
+
openAccountModal();
|
|
3385
|
+
};
|
|
3386
|
+
const close = () => {
|
|
3387
|
+
closeAccountModal();
|
|
3388
|
+
};
|
|
3389
|
+
return {
|
|
3390
|
+
open,
|
|
3391
|
+
close,
|
|
3392
|
+
isOpen: isAccountModalOpen
|
|
3393
|
+
};
|
|
3394
|
+
};
|
|
3395
|
+
var NotificationsModalProvider = ({
|
|
3396
|
+
children
|
|
3397
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children });
|
|
3398
|
+
var useFAQModal = () => {
|
|
3399
|
+
const {
|
|
3400
|
+
openAccountModal,
|
|
3401
|
+
closeAccountModal,
|
|
3402
|
+
isAccountModalOpen,
|
|
3403
|
+
setAccountModalContent
|
|
3404
|
+
} = useVeChainKitConfig();
|
|
3405
|
+
const open = () => {
|
|
3406
|
+
setAccountModalContent("faq");
|
|
3407
|
+
openAccountModal();
|
|
3408
|
+
};
|
|
3409
|
+
const close = () => {
|
|
3410
|
+
closeAccountModal();
|
|
3411
|
+
};
|
|
3412
|
+
return {
|
|
3413
|
+
open,
|
|
3414
|
+
close,
|
|
3415
|
+
isOpen: isAccountModalOpen
|
|
3416
|
+
};
|
|
3417
|
+
};
|
|
3418
|
+
var FAQModalProvider = ({ children }) => /* @__PURE__ */ jsx(Fragment, { children });
|
|
3274
3419
|
var estimateTxGasWithNext = async (clauses, caller, buffer = 1.25, nodeUrl) => {
|
|
3275
3420
|
const response = await fetch(`${nodeUrl}/accounts/*?revision=next`, {
|
|
3276
3421
|
method: "POST",
|
|
@@ -4564,7 +4709,7 @@ var AddressDisplay = ({ wallet, label, size = "lg" }) => {
|
|
|
4564
4709
|
// package.json
|
|
4565
4710
|
var package_default = {
|
|
4566
4711
|
name: "@vechain/vechain-kit",
|
|
4567
|
-
version: "1.2.
|
|
4712
|
+
version: "1.2.4",
|
|
4568
4713
|
private: false,
|
|
4569
4714
|
homepage: "https://github.com/vechain/vechain-kit",
|
|
4570
4715
|
repository: "github:vechain/vechain-kit",
|
|
@@ -5927,7 +6072,7 @@ var AccountSelector = ({
|
|
|
5927
6072
|
rounded: "full"
|
|
5928
6073
|
}
|
|
5929
6074
|
),
|
|
5930
|
-
/* @__PURE__ */ jsx(Text, { fontSize: size, fontWeight: "500", children:
|
|
6075
|
+
/* @__PURE__ */ jsx(Text, { fontSize: size, fontWeight: "500", children: wallet?.domain || humanAddress(wallet?.address ?? "", 6, 4) }),
|
|
5931
6076
|
/* @__PURE__ */ jsx(
|
|
5932
6077
|
Icon,
|
|
5933
6078
|
{
|
|
@@ -6181,180 +6326,415 @@ var QuickActionsSection = ({ mt, setCurrentContent }) => {
|
|
|
6181
6326
|
)
|
|
6182
6327
|
] });
|
|
6183
6328
|
};
|
|
6184
|
-
var
|
|
6329
|
+
var NetworkInfo = () => {
|
|
6185
6330
|
const { t } = useTranslation();
|
|
6186
|
-
const
|
|
6187
|
-
const {
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6331
|
+
const { darkMode: isDark, network } = useVeChainKitConfig();
|
|
6332
|
+
const { connection, smartAccount } = useWallet();
|
|
6333
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6334
|
+
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
6335
|
+
/* @__PURE__ */ jsxs(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: [
|
|
6336
|
+
t("Connection Type"),
|
|
6337
|
+
":"
|
|
6338
|
+
] }),
|
|
6339
|
+
/* @__PURE__ */ jsx(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: connection.source.type })
|
|
6340
|
+
] }),
|
|
6341
|
+
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
6342
|
+
/* @__PURE__ */ jsxs(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: [
|
|
6343
|
+
t("Network"),
|
|
6344
|
+
":"
|
|
6345
|
+
] }),
|
|
6346
|
+
/* @__PURE__ */ jsx(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: network.type })
|
|
6347
|
+
] }),
|
|
6348
|
+
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
6349
|
+
/* @__PURE__ */ jsxs(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: [
|
|
6350
|
+
t("Node URL"),
|
|
6351
|
+
":"
|
|
6352
|
+
] }),
|
|
6353
|
+
/* @__PURE__ */ jsx(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: network.nodeUrl || getConfig(network.type).nodeUrl })
|
|
6354
|
+
] }),
|
|
6355
|
+
connection.isConnectedWithPrivy ? /* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
6356
|
+
/* @__PURE__ */ jsxs(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: [
|
|
6357
|
+
t("Smart Account"),
|
|
6358
|
+
":"
|
|
6359
|
+
] }),
|
|
6360
|
+
/* @__PURE__ */ jsx(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: smartAccount.version ? `v${smartAccount.version}` : "v1" })
|
|
6361
|
+
] }) : smartAccount.isDeployed && /* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
6362
|
+
/* @__PURE__ */ jsxs(
|
|
6363
|
+
Text,
|
|
6198
6364
|
{
|
|
6199
|
-
fontSize: "
|
|
6200
|
-
fontWeight: "500",
|
|
6201
|
-
textAlign: "center",
|
|
6365
|
+
fontSize: "sm",
|
|
6202
6366
|
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
6203
|
-
children:
|
|
6367
|
+
children: [
|
|
6368
|
+
t("Smart Account"),
|
|
6369
|
+
":"
|
|
6370
|
+
]
|
|
6204
6371
|
}
|
|
6205
6372
|
),
|
|
6206
6373
|
/* @__PURE__ */ jsx(
|
|
6207
|
-
|
|
6374
|
+
Text,
|
|
6208
6375
|
{
|
|
6209
|
-
|
|
6376
|
+
fontSize: "sm",
|
|
6377
|
+
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
6378
|
+
children: smartAccount.version ? `v${smartAccount.version}` : "v1"
|
|
6210
6379
|
}
|
|
6211
|
-
)
|
|
6212
|
-
/* @__PURE__ */ jsx(ModalCloseButton, {})
|
|
6380
|
+
)
|
|
6213
6381
|
] }),
|
|
6214
|
-
/* @__PURE__ */
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
}
|
|
6239
|
-
) }),
|
|
6240
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "sm", opacity: 0.5, mt: 5, children: t(
|
|
6241
|
-
"A smart account is being used as a gateway for blockchain interactions."
|
|
6242
|
-
) })
|
|
6243
|
-
] }),
|
|
6244
|
-
connection.isConnectedWithSocialLogin && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6245
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "sm", opacity: 0.5, children: t(
|
|
6246
|
-
"You are using an Embedded Wallet secured by your social login method, ensuring a seamless VeChain experience."
|
|
6247
|
-
) }),
|
|
6248
|
-
showFullText && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6249
|
-
/* @__PURE__ */ jsxs(Text, { fontSize: "sm", opacity: 0.5, children: [
|
|
6250
|
-
t(
|
|
6251
|
-
"We highly recommend exporting your private key to back up your wallet. This ensures you can restore it if needed or transfer it to self-custody using"
|
|
6252
|
-
),
|
|
6253
|
-
/* @__PURE__ */ jsxs(
|
|
6254
|
-
Link,
|
|
6255
|
-
{
|
|
6256
|
-
href: "https://www.veworld.net/",
|
|
6257
|
-
isExternal: true,
|
|
6258
|
-
color: "gray.500",
|
|
6259
|
-
fontSize: "14px",
|
|
6260
|
-
textDecoration: "underline",
|
|
6261
|
-
children: [
|
|
6262
|
-
" ",
|
|
6263
|
-
t("VeWorld Wallet"),
|
|
6264
|
-
/* @__PURE__ */ jsx(Icon, { ml: 1, as: IoOpenOutline })
|
|
6265
|
-
]
|
|
6266
|
-
}
|
|
6267
|
-
),
|
|
6268
|
-
"."
|
|
6269
|
-
] }),
|
|
6270
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "sm", opacity: 0.5, mt: 5, children: t(
|
|
6271
|
-
"A smart account is being used as a gateway for blockchain interactions."
|
|
6272
|
-
) })
|
|
6273
|
-
] }),
|
|
6274
|
-
/* @__PURE__ */ jsx(
|
|
6275
|
-
Button,
|
|
6276
|
-
{
|
|
6277
|
-
mt: 0,
|
|
6278
|
-
variant: "link",
|
|
6279
|
-
size: "sm",
|
|
6280
|
-
onClick: () => setShowFullText(!showFullText),
|
|
6281
|
-
color: "blue.500",
|
|
6282
|
-
textAlign: "left",
|
|
6283
|
-
children: t(showFullText ? "Show Less" : "Read More")
|
|
6284
|
-
}
|
|
6285
|
-
)
|
|
6286
|
-
] }),
|
|
6287
|
-
connection.isConnectedWithSocialLogin && /* @__PURE__ */ jsx(
|
|
6288
|
-
ActionButton,
|
|
6382
|
+
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
6383
|
+
/* @__PURE__ */ jsxs(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: [
|
|
6384
|
+
t("VeChain Kit"),
|
|
6385
|
+
":"
|
|
6386
|
+
] }),
|
|
6387
|
+
/* @__PURE__ */ jsx(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: package_default.version })
|
|
6388
|
+
] })
|
|
6389
|
+
] });
|
|
6390
|
+
};
|
|
6391
|
+
var CrossAppConnectionCard = ({ connectionCache }) => {
|
|
6392
|
+
const { t } = useTranslation();
|
|
6393
|
+
const { darkMode: isDark } = useVeChainKitConfig();
|
|
6394
|
+
return /* @__PURE__ */ jsx(Fragment, { children: connectionCache.ecosystemApp && /* @__PURE__ */ jsxs(
|
|
6395
|
+
VStack,
|
|
6396
|
+
{
|
|
6397
|
+
p: 4,
|
|
6398
|
+
bg: isDark ? "#1a1a1a" : "#f5f5f5",
|
|
6399
|
+
borderRadius: "xl",
|
|
6400
|
+
spacing: 4,
|
|
6401
|
+
w: "full",
|
|
6402
|
+
children: [
|
|
6403
|
+
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
6404
|
+
/* @__PURE__ */ jsxs(
|
|
6405
|
+
Text,
|
|
6289
6406
|
{
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
},
|
|
6297
|
-
leftIcon: GiHouseKeys,
|
|
6298
|
-
rightIcon: MdOutlineNavigateNext
|
|
6407
|
+
fontSize: "sm",
|
|
6408
|
+
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
6409
|
+
children: [
|
|
6410
|
+
t("Logged in with"),
|
|
6411
|
+
":"
|
|
6412
|
+
]
|
|
6299
6413
|
}
|
|
6300
6414
|
),
|
|
6301
|
-
|
|
6302
|
-
|
|
6415
|
+
/* @__PURE__ */ jsx(
|
|
6416
|
+
Text,
|
|
6303
6417
|
{
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6418
|
+
fontSize: "sm",
|
|
6419
|
+
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
6420
|
+
children: connectionCache.ecosystemApp.name
|
|
6421
|
+
}
|
|
6422
|
+
)
|
|
6423
|
+
] }),
|
|
6424
|
+
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
6425
|
+
/* @__PURE__ */ jsxs(
|
|
6426
|
+
Text,
|
|
6427
|
+
{
|
|
6428
|
+
fontSize: "sm",
|
|
6429
|
+
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
6430
|
+
children: [
|
|
6431
|
+
t("Connected at"),
|
|
6432
|
+
":"
|
|
6433
|
+
]
|
|
6434
|
+
}
|
|
6435
|
+
),
|
|
6436
|
+
/* @__PURE__ */ jsx(
|
|
6437
|
+
Text,
|
|
6438
|
+
{
|
|
6439
|
+
fontSize: "sm",
|
|
6440
|
+
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
6441
|
+
children: new Date(
|
|
6442
|
+
connectionCache.timestamp
|
|
6443
|
+
).toLocaleString()
|
|
6444
|
+
}
|
|
6445
|
+
)
|
|
6446
|
+
] }),
|
|
6447
|
+
/* @__PURE__ */ jsx(NetworkInfo, {})
|
|
6448
|
+
]
|
|
6449
|
+
}
|
|
6450
|
+
) });
|
|
6451
|
+
};
|
|
6452
|
+
var DappKitConnectionCard = () => {
|
|
6453
|
+
const { t } = useTranslation();
|
|
6454
|
+
const { source } = useWallet$1();
|
|
6455
|
+
const { darkMode: isDark } = useVeChainKitConfig();
|
|
6456
|
+
return /* @__PURE__ */ jsx(Fragment, { children: source && /* @__PURE__ */ jsxs(
|
|
6457
|
+
VStack,
|
|
6458
|
+
{
|
|
6459
|
+
p: 4,
|
|
6460
|
+
bg: isDark ? "#1a1a1a" : "#f5f5f5",
|
|
6461
|
+
borderRadius: "xl",
|
|
6462
|
+
spacing: 4,
|
|
6463
|
+
w: "full",
|
|
6464
|
+
justifyContent: "space-between",
|
|
6465
|
+
children: [
|
|
6466
|
+
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
6467
|
+
/* @__PURE__ */ jsxs(
|
|
6468
|
+
Text,
|
|
6469
|
+
{
|
|
6470
|
+
fontSize: "sm",
|
|
6471
|
+
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
6472
|
+
children: [
|
|
6473
|
+
t("Logged in with"),
|
|
6474
|
+
":"
|
|
6475
|
+
]
|
|
6476
|
+
}
|
|
6477
|
+
),
|
|
6478
|
+
/* @__PURE__ */ jsx(
|
|
6479
|
+
Text,
|
|
6480
|
+
{
|
|
6481
|
+
fontSize: "sm",
|
|
6482
|
+
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
6483
|
+
children: source
|
|
6484
|
+
}
|
|
6485
|
+
)
|
|
6486
|
+
] }),
|
|
6487
|
+
/* @__PURE__ */ jsx(NetworkInfo, {})
|
|
6488
|
+
]
|
|
6489
|
+
}
|
|
6490
|
+
) });
|
|
6491
|
+
};
|
|
6492
|
+
var PrivyConnectionCard = () => {
|
|
6493
|
+
const { t } = useTranslation();
|
|
6494
|
+
const { privy, darkMode: isDark } = useVeChainKitConfig();
|
|
6495
|
+
const { data: appInfo, isLoading } = useFetchAppInfo(privy?.appId ?? "");
|
|
6496
|
+
if (isLoading)
|
|
6497
|
+
return /* @__PURE__ */ jsx(VStack, { w: "full", h: "full", justify: "center", align: "center", children: /* @__PURE__ */ jsx(Spinner, {}) });
|
|
6498
|
+
return /* @__PURE__ */ jsx(Fragment, { children: appInfo && /* @__PURE__ */ jsxs(
|
|
6499
|
+
VStack,
|
|
6500
|
+
{
|
|
6501
|
+
p: 4,
|
|
6502
|
+
bg: isDark ? "#1a1a1a" : "#f5f5f5",
|
|
6503
|
+
borderRadius: "xl",
|
|
6504
|
+
spacing: 4,
|
|
6505
|
+
w: "full",
|
|
6506
|
+
justifyContent: "space-between",
|
|
6507
|
+
children: [
|
|
6508
|
+
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
6509
|
+
/* @__PURE__ */ jsxs(
|
|
6510
|
+
Text,
|
|
6511
|
+
{
|
|
6512
|
+
fontSize: "sm",
|
|
6513
|
+
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
6514
|
+
children: [
|
|
6515
|
+
t("Logged in with"),
|
|
6516
|
+
":"
|
|
6517
|
+
]
|
|
6518
|
+
}
|
|
6519
|
+
),
|
|
6520
|
+
/* @__PURE__ */ jsx(
|
|
6521
|
+
Text,
|
|
6522
|
+
{
|
|
6523
|
+
fontSize: "sm",
|
|
6524
|
+
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
6525
|
+
children: Object.values(appInfo)[0].name
|
|
6526
|
+
}
|
|
6527
|
+
)
|
|
6528
|
+
] }),
|
|
6529
|
+
/* @__PURE__ */ jsx(NetworkInfo, {})
|
|
6530
|
+
]
|
|
6531
|
+
}
|
|
6532
|
+
) });
|
|
6533
|
+
};
|
|
6534
|
+
var WalletSecuredBy = () => {
|
|
6535
|
+
const { connection } = useWallet();
|
|
6536
|
+
const { t } = useTranslation();
|
|
6537
|
+
const { darkMode: isDark, privy } = useVeChainKitConfig();
|
|
6538
|
+
const { getConnectionCache } = useCrossAppConnectionCache();
|
|
6539
|
+
const connectionCache = getConnectionCache();
|
|
6540
|
+
return /* @__PURE__ */ jsxs(
|
|
6541
|
+
VStack,
|
|
6542
|
+
{
|
|
6543
|
+
w: "full",
|
|
6544
|
+
align: "stretch",
|
|
6545
|
+
textAlign: "center",
|
|
6546
|
+
mt: 5,
|
|
6547
|
+
p: 3,
|
|
6548
|
+
borderRadius: "lg",
|
|
6549
|
+
bg: isDark ? "whiteAlpha.100" : "blackAlpha.50",
|
|
6550
|
+
shadow: "sm",
|
|
6551
|
+
children: [
|
|
6552
|
+
/* @__PURE__ */ jsx(Text, { fontSize: "xs", fontWeight: "800", children: t("Wallet secured by") }),
|
|
6553
|
+
/* @__PURE__ */ jsxs(HStack, { justify: "center", children: [
|
|
6554
|
+
/* @__PURE__ */ jsx(PrivyLogo, { isDark, w: "50px" }),
|
|
6555
|
+
/* @__PURE__ */ jsx(Icon, { as: PiLineVertical, ml: 2 }),
|
|
6556
|
+
connection.isConnectedWithVeChain ? /* @__PURE__ */ jsx(VechainLogoHorizontal, { isDark, w: "69px" }) : connection.isConnectedWithCrossApp && connectionCache && /* @__PURE__ */ jsx(
|
|
6557
|
+
Image,
|
|
6558
|
+
{
|
|
6559
|
+
src: connectionCache.ecosystemApp.logoUrl,
|
|
6560
|
+
alt: connectionCache.ecosystemApp.name,
|
|
6561
|
+
maxW: "40px",
|
|
6562
|
+
borderRadius: "md"
|
|
6563
|
+
}
|
|
6564
|
+
),
|
|
6565
|
+
connection.isConnectedWithSocialLogin && !connection.isConnectedWithVeChain && /* @__PURE__ */ jsx(
|
|
6566
|
+
Image,
|
|
6567
|
+
{
|
|
6568
|
+
src: privy?.appearance.logo,
|
|
6569
|
+
alt: privy?.appearance.logo,
|
|
6570
|
+
maxW: "40px",
|
|
6571
|
+
borderRadius: "md"
|
|
6572
|
+
}
|
|
6573
|
+
)
|
|
6574
|
+
] })
|
|
6575
|
+
]
|
|
6576
|
+
}
|
|
6577
|
+
);
|
|
6578
|
+
};
|
|
6579
|
+
var EmbeddedWalletContent = ({ setCurrentContent }) => {
|
|
6580
|
+
const { t } = useTranslation();
|
|
6581
|
+
const [showFullText, setShowFullText] = useState(false);
|
|
6582
|
+
const { connectedWallet } = useWallet();
|
|
6583
|
+
const { exportWallet } = usePrivy();
|
|
6584
|
+
const walletImage = getPicassoImage(connectedWallet?.address ?? "");
|
|
6585
|
+
const { getConnectionCache } = useCrossAppConnectionCache();
|
|
6586
|
+
const { darkMode: isDark } = useVeChainKitConfig();
|
|
6587
|
+
const { connection } = useWallet();
|
|
6588
|
+
const connectionCache = getConnectionCache();
|
|
6589
|
+
return /* @__PURE__ */ jsxs(ScrollToTopWrapper, { children: [
|
|
6590
|
+
/* @__PURE__ */ jsxs(StickyHeaderContainer, { children: [
|
|
6319
6591
|
/* @__PURE__ */ jsx(
|
|
6320
|
-
|
|
6592
|
+
ModalHeader,
|
|
6321
6593
|
{
|
|
6594
|
+
fontSize: "md",
|
|
6595
|
+
fontWeight: "500",
|
|
6322
6596
|
textAlign: "center",
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
w: "full",
|
|
6326
|
-
children: /* @__PURE__ */ jsx(Text, { fontSize: "xs", fontWeight: "800", children: t("Wallet secured by") })
|
|
6597
|
+
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
6598
|
+
children: t("Embedded Wallet")
|
|
6327
6599
|
}
|
|
6328
6600
|
),
|
|
6329
|
-
/* @__PURE__ */
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6601
|
+
/* @__PURE__ */ jsx(
|
|
6602
|
+
ModalBackButton,
|
|
6603
|
+
{
|
|
6604
|
+
onClick: () => setCurrentContent("settings")
|
|
6605
|
+
}
|
|
6606
|
+
),
|
|
6607
|
+
/* @__PURE__ */ jsx(ModalCloseButton, {})
|
|
6608
|
+
] }),
|
|
6609
|
+
/* @__PURE__ */ jsx(ModalBody, { w: "full", children: /* @__PURE__ */ jsxs(
|
|
6610
|
+
VStack,
|
|
6611
|
+
{
|
|
6612
|
+
justify: "center",
|
|
6613
|
+
spacing: 5,
|
|
6614
|
+
align: "flex-start",
|
|
6615
|
+
w: "full",
|
|
6616
|
+
children: [
|
|
6617
|
+
/* @__PURE__ */ jsxs(VStack, { justify: "center", align: "center", w: "full", children: [
|
|
6618
|
+
/* @__PURE__ */ jsx(
|
|
6619
|
+
Image,
|
|
6620
|
+
{
|
|
6621
|
+
src: walletImage,
|
|
6622
|
+
maxW: "100px",
|
|
6623
|
+
borderRadius: "50%"
|
|
6624
|
+
}
|
|
6625
|
+
),
|
|
6626
|
+
/* @__PURE__ */ jsx(AddressDisplay, { wallet: connectedWallet })
|
|
6627
|
+
] }),
|
|
6628
|
+
connection.isConnectedWithCrossApp && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6629
|
+
/* @__PURE__ */ jsx(Text, { fontSize: "sm", opacity: 0.5, children: t(
|
|
6630
|
+
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your login methods and security settings.",
|
|
6631
|
+
{
|
|
6632
|
+
element: connectionCache?.ecosystemApp?.name
|
|
6633
|
+
}
|
|
6634
|
+
) }),
|
|
6635
|
+
/* @__PURE__ */ jsx(Text, { fontSize: "sm", opacity: 0.5, mt: 5, children: t(
|
|
6636
|
+
"A smart account is being used as a gateway for blockchain interactions."
|
|
6637
|
+
) })
|
|
6638
|
+
] }),
|
|
6639
|
+
connection.isConnectedWithSocialLogin && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6640
|
+
/* @__PURE__ */ jsx(Text, { fontSize: "sm", opacity: 0.5, children: t(
|
|
6641
|
+
"You are using an Embedded Wallet secured by your social login method, ensuring a seamless VeChain experience."
|
|
6642
|
+
) }),
|
|
6643
|
+
showFullText && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6644
|
+
/* @__PURE__ */ jsxs(Text, { fontSize: "sm", opacity: 0.5, children: [
|
|
6645
|
+
t(
|
|
6646
|
+
"We highly recommend exporting your private key to back up your wallet. This ensures you can restore it if needed or transfer it to self-custody using"
|
|
6647
|
+
),
|
|
6648
|
+
/* @__PURE__ */ jsxs(
|
|
6649
|
+
Link,
|
|
6650
|
+
{
|
|
6651
|
+
href: "https://www.veworld.net/",
|
|
6652
|
+
isExternal: true,
|
|
6653
|
+
color: "gray.500",
|
|
6654
|
+
fontSize: "14px",
|
|
6655
|
+
textDecoration: "underline",
|
|
6656
|
+
children: [
|
|
6657
|
+
" ",
|
|
6658
|
+
t("VeWorld Wallet"),
|
|
6659
|
+
/* @__PURE__ */ jsx(Icon, { ml: 1, as: IoOpenOutline })
|
|
6660
|
+
]
|
|
6661
|
+
}
|
|
6662
|
+
),
|
|
6663
|
+
"."
|
|
6664
|
+
] }),
|
|
6665
|
+
/* @__PURE__ */ jsxs(Text, { fontSize: "sm", opacity: 0.5, children: [
|
|
6666
|
+
t("Click"),
|
|
6667
|
+
" ",
|
|
6668
|
+
/* @__PURE__ */ jsx(
|
|
6669
|
+
Link,
|
|
6670
|
+
{
|
|
6671
|
+
href: "https://docs.vechain-kit.vechain.org/vechain-kit/embedded-wallets",
|
|
6672
|
+
isExternal: true,
|
|
6673
|
+
color: "gray.500",
|
|
6674
|
+
fontSize: "14px",
|
|
6675
|
+
textDecoration: "underline",
|
|
6676
|
+
children: t("here")
|
|
6677
|
+
}
|
|
6678
|
+
),
|
|
6679
|
+
" ",
|
|
6680
|
+
t(
|
|
6681
|
+
"to learn more about embedded wallets."
|
|
6682
|
+
)
|
|
6683
|
+
] }),
|
|
6684
|
+
/* @__PURE__ */ jsx(Text, { fontSize: "sm", opacity: 0.5, children: t(
|
|
6685
|
+
"A smart account is being used as a gateway for blockchain interactions."
|
|
6686
|
+
) })
|
|
6687
|
+
] }),
|
|
6688
|
+
/* @__PURE__ */ jsx(
|
|
6689
|
+
Button,
|
|
6690
|
+
{
|
|
6691
|
+
mt: 0,
|
|
6692
|
+
variant: "link",
|
|
6693
|
+
size: "sm",
|
|
6694
|
+
onClick: () => setShowFullText(!showFullText),
|
|
6695
|
+
color: "blue.500",
|
|
6696
|
+
textAlign: "left",
|
|
6697
|
+
children: t(showFullText ? "Show Less" : "Read More")
|
|
6698
|
+
}
|
|
6699
|
+
)
|
|
6700
|
+
] }),
|
|
6701
|
+
/* @__PURE__ */ jsx(
|
|
6702
|
+
ActionButton,
|
|
6703
|
+
{
|
|
6704
|
+
title: t("Backup your wallet"),
|
|
6705
|
+
description: t(
|
|
6706
|
+
connection.isConnectedWithSocialLogin ? "Store your Recovery Phrase or Private Key in a secure location, avoid losing access to your assets." : "Backup can be done only in the app securing your wallet."
|
|
6707
|
+
),
|
|
6708
|
+
onClick: () => {
|
|
6709
|
+
exportWallet();
|
|
6710
|
+
},
|
|
6711
|
+
isDisabled: !connection.isConnectedWithSocialLogin,
|
|
6712
|
+
leftIcon: GiHouseKeys,
|
|
6713
|
+
rightIcon: MdOutlineNavigateNext
|
|
6714
|
+
}
|
|
6715
|
+
),
|
|
6716
|
+
/* @__PURE__ */ jsx(
|
|
6717
|
+
ActionButton,
|
|
6718
|
+
{
|
|
6719
|
+
title: t("Login methods"),
|
|
6720
|
+
description: t(
|
|
6721
|
+
connection.isConnectedWithSocialLogin ? "View and manage the login methods linked to your wallet." : "Login methods can be managed only in the app securing your wallet."
|
|
6722
|
+
),
|
|
6723
|
+
onClick: () => {
|
|
6724
|
+
setCurrentContent("privy-linked-accounts");
|
|
6725
|
+
},
|
|
6726
|
+
isDisabled: !connection.isConnectedWithSocialLogin,
|
|
6727
|
+
leftIcon: MdManageAccounts,
|
|
6728
|
+
rightIcon: MdOutlineNavigateNext
|
|
6729
|
+
}
|
|
6730
|
+
)
|
|
6731
|
+
]
|
|
6732
|
+
}
|
|
6733
|
+
) }),
|
|
6734
|
+
/* @__PURE__ */ jsx(ModalFooter, { w: "full", children: /* @__PURE__ */ jsxs(VStack, { w: "full", children: [
|
|
6735
|
+
/* @__PURE__ */ jsx(Divider, {}),
|
|
6736
|
+
connection.isConnectedWithPrivy && /* @__PURE__ */ jsx(WalletSecuredBy, {})
|
|
6737
|
+
] }) })
|
|
6358
6738
|
] });
|
|
6359
6739
|
};
|
|
6360
6740
|
var WalletSettingsContent = ({
|
|
@@ -6374,7 +6754,7 @@ var WalletSettingsContent = ({
|
|
|
6374
6754
|
contentRef.current.scrollTop = 0;
|
|
6375
6755
|
}
|
|
6376
6756
|
}, []);
|
|
6377
|
-
return /* @__PURE__ */ jsxs(
|
|
6757
|
+
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
6378
6758
|
/* @__PURE__ */ jsxs(StickyHeaderContainer, { children: [
|
|
6379
6759
|
/* @__PURE__ */ jsx(
|
|
6380
6760
|
ModalHeader,
|
|
@@ -6402,6 +6782,20 @@ var WalletSettingsContent = ({
|
|
|
6402
6782
|
/* @__PURE__ */ jsx(AddressDisplay, { wallet: account })
|
|
6403
6783
|
] }),
|
|
6404
6784
|
/* @__PURE__ */ jsxs(VStack, { mt: 10, w: "full", spacing: 3, children: [
|
|
6785
|
+
/* @__PURE__ */ jsx(
|
|
6786
|
+
ActionButton,
|
|
6787
|
+
{
|
|
6788
|
+
title: t("Connection Details"),
|
|
6789
|
+
description: t(
|
|
6790
|
+
"View the details of your connection to this app."
|
|
6791
|
+
),
|
|
6792
|
+
onClick: () => {
|
|
6793
|
+
setCurrentContent("connection-details");
|
|
6794
|
+
},
|
|
6795
|
+
leftIcon: VscDebugDisconnect,
|
|
6796
|
+
rightIcon: MdOutlineNavigateNext
|
|
6797
|
+
}
|
|
6798
|
+
),
|
|
6405
6799
|
/* @__PURE__ */ jsx(
|
|
6406
6800
|
ActionButton,
|
|
6407
6801
|
{
|
|
@@ -6426,29 +6820,12 @@ var WalletSettingsContent = ({
|
|
|
6426
6820
|
rightIcon: MdOutlineNavigateNext
|
|
6427
6821
|
}
|
|
6428
6822
|
),
|
|
6429
|
-
connection.isConnectedWithSocialLogin && /* @__PURE__ */ jsx(
|
|
6430
|
-
ActionButton,
|
|
6431
|
-
{
|
|
6432
|
-
title: t("Login methods"),
|
|
6433
|
-
description: t(
|
|
6434
|
-
"View and manage the login methods linked to your wallet."
|
|
6435
|
-
),
|
|
6436
|
-
onClick: () => {
|
|
6437
|
-
setCurrentContent("privy-linked-accounts");
|
|
6438
|
-
},
|
|
6439
|
-
leftIcon: MdManageAccounts,
|
|
6440
|
-
rightIcon: MdOutlineNavigateNext
|
|
6441
|
-
}
|
|
6442
|
-
),
|
|
6443
6823
|
connection.isConnectedWithPrivy && /* @__PURE__ */ jsx(
|
|
6444
6824
|
ActionButton,
|
|
6445
6825
|
{
|
|
6446
6826
|
title: t("Embedded Wallet"),
|
|
6447
6827
|
description: t(
|
|
6448
|
-
"
|
|
6449
|
-
{
|
|
6450
|
-
appName: connection.isConnectedWithCrossApp ? connectionCache?.ecosystemApp?.name : Object.values(appInfo ?? {})[0]?.name ?? ""
|
|
6451
|
-
}
|
|
6828
|
+
"Manage your embedded wallet security settings or back it up to a new device."
|
|
6452
6829
|
),
|
|
6453
6830
|
onClick: () => {
|
|
6454
6831
|
setCurrentContent("embedded-wallet");
|
|
@@ -6457,20 +6834,6 @@ var WalletSettingsContent = ({
|
|
|
6457
6834
|
rightIcon: MdOutlineNavigateNext
|
|
6458
6835
|
}
|
|
6459
6836
|
),
|
|
6460
|
-
/* @__PURE__ */ jsx(
|
|
6461
|
-
ActionButton,
|
|
6462
|
-
{
|
|
6463
|
-
title: t("Connection Details"),
|
|
6464
|
-
description: t(
|
|
6465
|
-
"View the details of your connection to this app."
|
|
6466
|
-
),
|
|
6467
|
-
onClick: () => {
|
|
6468
|
-
setCurrentContent("connection-details");
|
|
6469
|
-
},
|
|
6470
|
-
leftIcon: VscDebugDisconnect,
|
|
6471
|
-
rightIcon: MdOutlineNavigateNext
|
|
6472
|
-
}
|
|
6473
|
-
),
|
|
6474
6837
|
/* @__PURE__ */ jsx(
|
|
6475
6838
|
ActionButton,
|
|
6476
6839
|
{
|
|
@@ -9919,7 +10282,7 @@ var FAQContent = ({ onGoBack }) => {
|
|
|
9919
10282
|
Button,
|
|
9920
10283
|
{
|
|
9921
10284
|
as: Link,
|
|
9922
|
-
href: "https://vechain-
|
|
10285
|
+
href: "https://docs.vechain-kit.vechain.org/",
|
|
9923
10286
|
isExternal: true,
|
|
9924
10287
|
variant: "outline",
|
|
9925
10288
|
rightIcon: /* @__PURE__ */ jsx(Icon, { as: FaExternalLinkAlt }),
|
|
@@ -9932,184 +10295,6 @@ var FAQContent = ({ onGoBack }) => {
|
|
|
9932
10295
|
] }) })
|
|
9933
10296
|
] });
|
|
9934
10297
|
};
|
|
9935
|
-
var NetworkInfo = () => {
|
|
9936
|
-
const { t } = useTranslation();
|
|
9937
|
-
const { darkMode: isDark, network } = useVeChainKitConfig();
|
|
9938
|
-
const { connection } = useWallet();
|
|
9939
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9940
|
-
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
9941
|
-
/* @__PURE__ */ jsxs(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: [
|
|
9942
|
-
t("Connection Type"),
|
|
9943
|
-
":"
|
|
9944
|
-
] }),
|
|
9945
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: connection.source.type })
|
|
9946
|
-
] }),
|
|
9947
|
-
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
9948
|
-
/* @__PURE__ */ jsxs(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: [
|
|
9949
|
-
t("Network"),
|
|
9950
|
-
":"
|
|
9951
|
-
] }),
|
|
9952
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: network.type })
|
|
9953
|
-
] }),
|
|
9954
|
-
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
9955
|
-
/* @__PURE__ */ jsxs(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: [
|
|
9956
|
-
t("Node"),
|
|
9957
|
-
":"
|
|
9958
|
-
] }),
|
|
9959
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: network.nodeUrl || getConfig(network.type).nodeUrl })
|
|
9960
|
-
] }),
|
|
9961
|
-
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
9962
|
-
/* @__PURE__ */ jsxs(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: [
|
|
9963
|
-
t("Active Smart Account"),
|
|
9964
|
-
":"
|
|
9965
|
-
] }),
|
|
9966
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "sm", color: isDark ? "#dfdfdd" : "#4d4d4d", children: connection.isConnectedWithPrivy ? "Yes" : "No" })
|
|
9967
|
-
] })
|
|
9968
|
-
] });
|
|
9969
|
-
};
|
|
9970
|
-
var CrossAppConnectionCard = ({ connectionCache }) => {
|
|
9971
|
-
const { t } = useTranslation();
|
|
9972
|
-
const { darkMode: isDark } = useVeChainKitConfig();
|
|
9973
|
-
return /* @__PURE__ */ jsx(Fragment, { children: connectionCache.ecosystemApp && /* @__PURE__ */ jsxs(
|
|
9974
|
-
VStack,
|
|
9975
|
-
{
|
|
9976
|
-
p: 4,
|
|
9977
|
-
bg: isDark ? "#1a1a1a" : "#f5f5f5",
|
|
9978
|
-
borderRadius: "xl",
|
|
9979
|
-
spacing: 4,
|
|
9980
|
-
w: "full",
|
|
9981
|
-
children: [
|
|
9982
|
-
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
9983
|
-
/* @__PURE__ */ jsxs(
|
|
9984
|
-
Text,
|
|
9985
|
-
{
|
|
9986
|
-
fontSize: "sm",
|
|
9987
|
-
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
9988
|
-
children: [
|
|
9989
|
-
t("Connected through"),
|
|
9990
|
-
":"
|
|
9991
|
-
]
|
|
9992
|
-
}
|
|
9993
|
-
),
|
|
9994
|
-
/* @__PURE__ */ jsx(
|
|
9995
|
-
Text,
|
|
9996
|
-
{
|
|
9997
|
-
fontSize: "sm",
|
|
9998
|
-
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
9999
|
-
children: connectionCache.ecosystemApp.name
|
|
10000
|
-
}
|
|
10001
|
-
)
|
|
10002
|
-
] }),
|
|
10003
|
-
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
10004
|
-
/* @__PURE__ */ jsxs(
|
|
10005
|
-
Text,
|
|
10006
|
-
{
|
|
10007
|
-
fontSize: "sm",
|
|
10008
|
-
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
10009
|
-
children: [
|
|
10010
|
-
t("Connected at"),
|
|
10011
|
-
":"
|
|
10012
|
-
]
|
|
10013
|
-
}
|
|
10014
|
-
),
|
|
10015
|
-
/* @__PURE__ */ jsx(
|
|
10016
|
-
Text,
|
|
10017
|
-
{
|
|
10018
|
-
fontSize: "sm",
|
|
10019
|
-
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
10020
|
-
children: new Date(
|
|
10021
|
-
connectionCache.timestamp
|
|
10022
|
-
).toLocaleString()
|
|
10023
|
-
}
|
|
10024
|
-
)
|
|
10025
|
-
] }),
|
|
10026
|
-
/* @__PURE__ */ jsx(NetworkInfo, {})
|
|
10027
|
-
]
|
|
10028
|
-
}
|
|
10029
|
-
) });
|
|
10030
|
-
};
|
|
10031
|
-
var DappKitConnectionCard = () => {
|
|
10032
|
-
const { t } = useTranslation();
|
|
10033
|
-
const { source } = useWallet$1();
|
|
10034
|
-
const { darkMode: isDark } = useVeChainKitConfig();
|
|
10035
|
-
return /* @__PURE__ */ jsx(Fragment, { children: source && /* @__PURE__ */ jsxs(
|
|
10036
|
-
VStack,
|
|
10037
|
-
{
|
|
10038
|
-
p: 4,
|
|
10039
|
-
bg: isDark ? "#1a1a1a" : "#f5f5f5",
|
|
10040
|
-
borderRadius: "xl",
|
|
10041
|
-
spacing: 4,
|
|
10042
|
-
w: "full",
|
|
10043
|
-
justifyContent: "space-between",
|
|
10044
|
-
children: [
|
|
10045
|
-
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
10046
|
-
/* @__PURE__ */ jsxs(
|
|
10047
|
-
Text,
|
|
10048
|
-
{
|
|
10049
|
-
fontSize: "sm",
|
|
10050
|
-
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
10051
|
-
children: [
|
|
10052
|
-
t("Connected through"),
|
|
10053
|
-
":"
|
|
10054
|
-
]
|
|
10055
|
-
}
|
|
10056
|
-
),
|
|
10057
|
-
/* @__PURE__ */ jsx(
|
|
10058
|
-
Text,
|
|
10059
|
-
{
|
|
10060
|
-
fontSize: "sm",
|
|
10061
|
-
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
10062
|
-
children: source
|
|
10063
|
-
}
|
|
10064
|
-
)
|
|
10065
|
-
] }),
|
|
10066
|
-
/* @__PURE__ */ jsx(NetworkInfo, {})
|
|
10067
|
-
]
|
|
10068
|
-
}
|
|
10069
|
-
) });
|
|
10070
|
-
};
|
|
10071
|
-
var PrivyConnectionCard = () => {
|
|
10072
|
-
const { t } = useTranslation();
|
|
10073
|
-
const { privy, darkMode: isDark } = useVeChainKitConfig();
|
|
10074
|
-
const { data: appInfo, isLoading } = useFetchAppInfo(privy?.appId ?? "");
|
|
10075
|
-
if (isLoading)
|
|
10076
|
-
return /* @__PURE__ */ jsx(VStack, { w: "full", h: "full", justify: "center", align: "center", children: /* @__PURE__ */ jsx(Spinner, {}) });
|
|
10077
|
-
return /* @__PURE__ */ jsx(Fragment, { children: appInfo && /* @__PURE__ */ jsxs(
|
|
10078
|
-
VStack,
|
|
10079
|
-
{
|
|
10080
|
-
p: 4,
|
|
10081
|
-
bg: isDark ? "#1a1a1a" : "#f5f5f5",
|
|
10082
|
-
borderRadius: "xl",
|
|
10083
|
-
spacing: 4,
|
|
10084
|
-
w: "full",
|
|
10085
|
-
justifyContent: "space-between",
|
|
10086
|
-
children: [
|
|
10087
|
-
/* @__PURE__ */ jsxs(HStack, { w: "full", justifyContent: "space-between", children: [
|
|
10088
|
-
/* @__PURE__ */ jsxs(
|
|
10089
|
-
Text,
|
|
10090
|
-
{
|
|
10091
|
-
fontSize: "sm",
|
|
10092
|
-
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
10093
|
-
children: [
|
|
10094
|
-
t("Connected through"),
|
|
10095
|
-
":"
|
|
10096
|
-
]
|
|
10097
|
-
}
|
|
10098
|
-
),
|
|
10099
|
-
/* @__PURE__ */ jsx(
|
|
10100
|
-
Text,
|
|
10101
|
-
{
|
|
10102
|
-
fontSize: "sm",
|
|
10103
|
-
color: isDark ? "#dfdfdd" : "#4d4d4d",
|
|
10104
|
-
children: Object.values(appInfo)[0].name
|
|
10105
|
-
}
|
|
10106
|
-
)
|
|
10107
|
-
] }),
|
|
10108
|
-
/* @__PURE__ */ jsx(NetworkInfo, {})
|
|
10109
|
-
]
|
|
10110
|
-
}
|
|
10111
|
-
) });
|
|
10112
|
-
};
|
|
10113
10298
|
var ConnectionDetailsContent = ({ onGoBack }) => {
|
|
10114
10299
|
const { t } = useTranslation();
|
|
10115
10300
|
const { getConnectionCache } = useCrossAppConnectionCache();
|
|
@@ -10210,7 +10395,8 @@ var ConnectionDetailsContent = ({ onGoBack }) => {
|
|
|
10210
10395
|
]
|
|
10211
10396
|
}
|
|
10212
10397
|
)
|
|
10213
|
-
] })
|
|
10398
|
+
] }),
|
|
10399
|
+
connection.isConnectedWithPrivy && /* @__PURE__ */ jsx(WalletSecuredBy, {})
|
|
10214
10400
|
] }),
|
|
10215
10401
|
/* @__PURE__ */ jsx(ModalFooter, {})
|
|
10216
10402
|
] });
|
|
@@ -10909,14 +11095,14 @@ var SharedAppCard = ({
|
|
|
10909
11095
|
_hover: { opacity: 0.8 },
|
|
10910
11096
|
cursor: "pointer",
|
|
10911
11097
|
onClick,
|
|
10912
|
-
children: /* @__PURE__ */ jsx(CardBody, { p: size === "sm" ? 2 : 4, alignItems: "center", children: /* @__PURE__ */ jsxs(VStack, { spacing: 3,
|
|
11098
|
+
children: /* @__PURE__ */ jsx(CardBody, { p: size === "sm" ? 2 : 4, alignItems: "center", children: /* @__PURE__ */ jsxs(VStack, { spacing: 3, alignItems: "center", justifyContent: "center", children: [
|
|
10913
11099
|
imageUrl && /* @__PURE__ */ jsx(
|
|
10914
11100
|
Image,
|
|
10915
11101
|
{
|
|
10916
11102
|
src: imageUrl,
|
|
10917
11103
|
fallbackSrc: notFoundImage,
|
|
10918
11104
|
alt: name,
|
|
10919
|
-
height: "
|
|
11105
|
+
height: "90px",
|
|
10920
11106
|
objectFit: "contain",
|
|
10921
11107
|
rounded: "full"
|
|
10922
11108
|
}
|
|
@@ -10924,13 +11110,11 @@ var SharedAppCard = ({
|
|
|
10924
11110
|
name && /* @__PURE__ */ jsx(
|
|
10925
11111
|
Text,
|
|
10926
11112
|
{
|
|
10927
|
-
position: "absolute",
|
|
10928
|
-
bottom: "5px",
|
|
10929
11113
|
fontWeight: "medium",
|
|
10930
11114
|
wordBreak: "break-word",
|
|
10931
11115
|
noOfLines: 1,
|
|
10932
|
-
width: "90%",
|
|
10933
11116
|
textAlign: "center",
|
|
11117
|
+
w: "full",
|
|
10934
11118
|
children: name
|
|
10935
11119
|
}
|
|
10936
11120
|
)
|
|
@@ -10938,30 +11122,12 @@ var SharedAppCard = ({
|
|
|
10938
11122
|
}
|
|
10939
11123
|
);
|
|
10940
11124
|
};
|
|
10941
|
-
var SkeletonAppCard = () => {
|
|
10942
|
-
return /* @__PURE__ */ jsx(Card, { variant: "vechainKitAppCard", children: /* @__PURE__ */ jsx(CardBody, { p: 4, alignItems: "center", children: /* @__PURE__ */ jsxs(
|
|
10943
|
-
VStack,
|
|
10944
|
-
{
|
|
10945
|
-
spacing: 3,
|
|
10946
|
-
align: "center",
|
|
10947
|
-
justify: "center",
|
|
10948
|
-
width: "100%",
|
|
10949
|
-
children: [
|
|
10950
|
-
/* @__PURE__ */ jsx(Skeleton, { height: "100px", width: "100%", rounded: "12px" }),
|
|
10951
|
-
/* @__PURE__ */ jsx(Skeleton, { height: "20px", width: "80%", rounded: "md" })
|
|
10952
|
-
]
|
|
10953
|
-
}
|
|
10954
|
-
) }) });
|
|
10955
|
-
};
|
|
10956
11125
|
var AppComponent = ({ xApp, setCurrentContent }) => {
|
|
10957
11126
|
const { data: appMetadata, isLoading: appMetadataLoading } = useXAppMetadata(xApp.id);
|
|
10958
11127
|
const { data: logo, isLoading: isLogoLoading } = useIpfsImage(
|
|
10959
11128
|
appMetadata?.logo
|
|
10960
11129
|
);
|
|
10961
|
-
|
|
10962
|
-
return /* @__PURE__ */ jsx(SkeletonAppCard, {});
|
|
10963
|
-
}
|
|
10964
|
-
return /* @__PURE__ */ jsx(
|
|
11130
|
+
return /* @__PURE__ */ jsx(Skeleton, { isLoaded: !appMetadataLoading && !isLogoLoading, children: /* @__PURE__ */ jsx(
|
|
10965
11131
|
SharedAppCard,
|
|
10966
11132
|
{
|
|
10967
11133
|
name: appMetadata?.name ?? "",
|
|
@@ -10979,7 +11145,7 @@ var AppComponent = ({ xApp, setCurrentContent }) => {
|
|
|
10979
11145
|
});
|
|
10980
11146
|
}
|
|
10981
11147
|
}
|
|
10982
|
-
);
|
|
11148
|
+
) });
|
|
10983
11149
|
};
|
|
10984
11150
|
var CustomAppComponent = ({
|
|
10985
11151
|
name,
|
|
@@ -11048,7 +11214,7 @@ var DEFAULT_APPS = [
|
|
|
11048
11214
|
}
|
|
11049
11215
|
},
|
|
11050
11216
|
{
|
|
11051
|
-
name: "
|
|
11217
|
+
name: "vet.domains",
|
|
11052
11218
|
description: ".vet.domains provides a unique and unchangeable identity for Vechain users by linking information to their wallet addresses. It becomes easier for people to use the blockchain by replacing complicated wallet addresses with easy-to-remember names.",
|
|
11053
11219
|
external_url: "https://vet.domains",
|
|
11054
11220
|
logo: "https://vet.domains/assets/walletconnect.png",
|
|
@@ -11060,6 +11226,20 @@ var DEFAULT_APPS = [
|
|
|
11060
11226
|
ve_world: {
|
|
11061
11227
|
banner: "https://vet.domains/assets/walletconnect.png"
|
|
11062
11228
|
}
|
|
11229
|
+
},
|
|
11230
|
+
{
|
|
11231
|
+
name: "VeChain Kit",
|
|
11232
|
+
description: "A all-in-one library for building VeChain applications.",
|
|
11233
|
+
external_url: "https://vechain-kit.vechain.org/",
|
|
11234
|
+
logo: "https://i.ibb.co/ncysMF9/vechain-kit-logo-transparent.png",
|
|
11235
|
+
banner: "",
|
|
11236
|
+
screenshots: [],
|
|
11237
|
+
social_urls: [],
|
|
11238
|
+
app_urls: [],
|
|
11239
|
+
tweets: [],
|
|
11240
|
+
ve_world: {
|
|
11241
|
+
banner: ""
|
|
11242
|
+
}
|
|
11063
11243
|
}
|
|
11064
11244
|
];
|
|
11065
11245
|
var ExploreEcosystemContent = ({ setCurrentContent }) => {
|
|
@@ -11285,15 +11465,19 @@ var DisconnectConfirmContent = ({ onDisconnect, onBack }) => {
|
|
|
11285
11465
|
/* @__PURE__ */ jsx(ModalFooter, {})
|
|
11286
11466
|
] });
|
|
11287
11467
|
};
|
|
11288
|
-
var AccountModal = ({
|
|
11468
|
+
var AccountModal = ({
|
|
11469
|
+
isOpen,
|
|
11470
|
+
onClose,
|
|
11471
|
+
initialContent = "main"
|
|
11472
|
+
}) => {
|
|
11289
11473
|
useNotificationAlerts();
|
|
11290
11474
|
const { account } = useWallet();
|
|
11291
|
-
const [currentContent, setCurrentContent] = useState(
|
|
11475
|
+
const [currentContent, setCurrentContent] = useState(initialContent);
|
|
11292
11476
|
useEffect(() => {
|
|
11293
|
-
if (isOpen) {
|
|
11294
|
-
setCurrentContent(
|
|
11477
|
+
if (isOpen && initialContent) {
|
|
11478
|
+
setCurrentContent(initialContent);
|
|
11295
11479
|
}
|
|
11296
|
-
}, [isOpen]);
|
|
11480
|
+
}, [isOpen, initialContent]);
|
|
11297
11481
|
const renderContent = () => {
|
|
11298
11482
|
if (typeof currentContent === "object") {
|
|
11299
11483
|
switch (currentContent.type) {
|
|
@@ -11378,7 +11562,7 @@ var AccountModal = ({ isOpen, onClose }) => {
|
|
|
11378
11562
|
return /* @__PURE__ */ jsx(
|
|
11379
11563
|
PrivyLinkedAccounts,
|
|
11380
11564
|
{
|
|
11381
|
-
onBack: () => setCurrentContent("
|
|
11565
|
+
onBack: () => setCurrentContent("embedded-wallet")
|
|
11382
11566
|
}
|
|
11383
11567
|
);
|
|
11384
11568
|
case "ecosystem":
|
|
@@ -11630,7 +11814,15 @@ var WalletButton = ({
|
|
|
11630
11814
|
onOpen: accountModal.onOpen,
|
|
11631
11815
|
buttonStyle
|
|
11632
11816
|
}
|
|
11633
|
-
) : /* @__PURE__ */ jsx(
|
|
11817
|
+
) : /* @__PURE__ */ jsx(
|
|
11818
|
+
Button,
|
|
11819
|
+
{
|
|
11820
|
+
isLoading: connection.isLoading,
|
|
11821
|
+
onClick: handleConnect,
|
|
11822
|
+
...buttonStyle,
|
|
11823
|
+
children: t("Login")
|
|
11824
|
+
}
|
|
11825
|
+
),
|
|
11634
11826
|
/* @__PURE__ */ jsx(
|
|
11635
11827
|
ConnectModal,
|
|
11636
11828
|
{
|
|
@@ -12193,6 +12385,7 @@ var VeChainKitProvider = ({
|
|
|
12193
12385
|
() => setIsTransactionToastOpen(false),
|
|
12194
12386
|
[]
|
|
12195
12387
|
);
|
|
12388
|
+
const [accountModalContent, setAccountModalContent] = useState("main");
|
|
12196
12389
|
const loginMethods = [
|
|
12197
12390
|
...privy?.loginMethods ?? [],
|
|
12198
12391
|
...(privyEcosystemAppIDS ?? []).map((appID) => `privy:${appID}`)
|
|
@@ -12244,6 +12437,7 @@ var VeChainKitProvider = ({
|
|
|
12244
12437
|
openAccountModal,
|
|
12245
12438
|
closeAccountModal,
|
|
12246
12439
|
isAccountModalOpen,
|
|
12440
|
+
setAccountModalContent,
|
|
12247
12441
|
openTransactionModal,
|
|
12248
12442
|
closeTransactionModal,
|
|
12249
12443
|
isTransactionModalOpen,
|
|
@@ -12323,7 +12517,8 @@ var VeChainKitProvider = ({
|
|
|
12323
12517
|
AccountModal,
|
|
12324
12518
|
{
|
|
12325
12519
|
isOpen: isAccountModalOpen,
|
|
12326
|
-
onClose: closeAccountModal
|
|
12520
|
+
onClose: closeAccountModal,
|
|
12521
|
+
initialContent: accountModalContent
|
|
12327
12522
|
}
|
|
12328
12523
|
)
|
|
12329
12524
|
]
|
|
@@ -12559,6 +12754,6 @@ var VechainKitThemeProvider = ({
|
|
|
12559
12754
|
] });
|
|
12560
12755
|
};
|
|
12561
12756
|
|
|
12562
|
-
export { APP_SECURITY_LEVELS, AccountDetailsButton, AccountMainContent, AccountModal, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, AssetButton, AssetsSection, BalanceSection, BaseModal, ChooseNameContent, ChooseNameSearchContent, ChooseNameSummaryContent, ConnectModal, ConnectModalProvider, ConnectionButton, DappKitButton, EcosystemButton, EcosystemModal, EmailLoginButton, EmbeddedWalletContent, FAQContent, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, LoginLoadingModal, MAX_IMAGE_SIZE, MainContent, ModalBackButton, ModalFAQButton, NFTMediaType, PRICE_FEED_IDS, PasskeyLoginButton, PrivyButton, PrivyWalletProvider, QuickActionsSection, ReceiveTokenContent, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenSummaryContent, SocialLoginButtons, StickyFooterContainer, StickyHeaderContainer, SwapTokenContent, TransactionModal, TransactionModalProvider, TransactionToast, TransactionToastProvider, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VePassportUserStatus, VechainKitThemeProvider, VersionFooter, WalletButton, WalletModalProvider, WalletSettingsContent, buildClaimRewardsTx, buildClaimRoundReward, currentBlockQueryKey, fetchPrivyAppInfo, fetchVechainDomain, getAccountBalance, getAccountBalanceQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getDelegateeQueryKey, getDelegatorQueryKey, getEnsRecordExistsQueryKey, getEntitiesLinkedToPassportQueryKey, getEvents, getGMBaseUriQueryKey, getGMLevel, getGMbalanceQueryKey, getGetCumulativeScoreWithDecayQueryKey, getHasVotedInRound, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsBlacklistedQueryKey, getIsDomainProtectedQueryKey, getIsEntityQueryKey, getIsNodeHolder, getIsNodeHolderQueryKey, getIsPassportQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getIsWhitelistedQueryKey, getLevelGradient, getLevelMultiplierQueryKey, getLevelOfTokenQueryKey, getNFTMetadataUri, getNFTMetadataUriQueryKey, getNodeCheckCooldownQueryKey, getNodeManagerQueryKey, getParticipatedInGovernance, getParticipatedInGovernanceQueryKey, getParticipationScoreThresholdQueryKey, getPassportForEntityQueryKey, getPassportToggleQueryKey, getPendingDelegationsQueryKeyDelegateePOV, getPendingDelegationsQueryKeyDelegatorPOV, getPendingLinkingsQueryKey, getPrivyAppInfoQueryKey, getRoundReward, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSecurityMultiplierQueryKey, getSmartAccount, getSmartAccountQueryKey, getThresholdParticipationScoreAtTimepointQueryKey, getThresholdParticipationScoreQueryKey, getTokenIdByAccount, getTokenIdByAccountQueryKey, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, 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, pollForReceipt, useAccountBalance, useAccountLinking, useAccountModal, useAllocationAmount, useAppAdmin, useAppBalance, useAppExists, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBalances, useCall, useClaimVeWorldSubdomain, useConnectModal, useContractVersion, useCrossAppConnectionCache, useCurrentAllocationsRoundId, useCurrentBlock, useEcosystemShortcuts, useEnsRecordExists, useFeatureAnnouncement, useFetchAppInfo, useGMBaseUri, useGMbalance, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetDelegatee, useGetDelegator, useGetEntitiesLinkedToPassport, useGetNodeManager, useGetNodeUrl, useGetPassportForEntity, useGetPendingDelegationsDelegateePOV, useGetPendingDelegationsDelegatorPOV, useGetPendingLinkings, useGetTokenUsdPrice, useGetTokensInfoByOwner, useGetUserEntitiesLinkedToPassport, useGetUserNode, useGetUserNodes, useGetUserPassportForEntity, useGetUserPendingLinkings, useGetVeDelegateBalance, useGetVot3Balance, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsBlacklisted, useIsDomainProtected, useIsEntity, useIsGMclaimable, useIsNodeHolder, useIsPWA, useIsPassport, useIsPassportCheckEnabled, useIsPerson, useIsPersonAtTimepoint, useIsUserEntity, useIsUserPassport, useIsUserPerson, useIsWhitelisted, useLevelMultiplier, useLevelOfToken, useLocalStorage, useLoginWithOAuth2 as useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useRefreshBalances, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTransaction, useSignMessage2 as useSignMessage, useSignTypedData2 as useSignTypedData, useSmartAccount, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenIdByAccount, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUserBotSignals, useUserDelegation, useUserRoundScore, useUserStatus, useUserTopVotedApps, useUserVotesInAllRounds, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXAppVotesQf, useXApps, useXAppsMetadataBaseUri, useXAppsShares, useXNode, useXNodeCheckCooldown, useXNodes };
|
|
12757
|
+
export { APP_SECURITY_LEVELS, AccountDetailsButton, AccountMainContent, AccountModal, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, AssetButton, AssetsSection, BalanceSection, BaseModal, ChooseNameContent, ChooseNameModalProvider, ChooseNameSearchContent, ChooseNameSummaryContent, ConnectModal, ConnectModalProvider, ConnectionButton, DappKitButton, EcosystemButton, EcosystemModal, EmailLoginButton, EmbeddedWalletContent, EmbeddedWalletSettingsModalProvider, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, LoginLoadingModal, MAX_IMAGE_SIZE, MainContent, ModalBackButton, ModalFAQButton, NFTMediaType, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyButton, PrivyWalletProvider, QuickActionsSection, ReceiveTokenContent, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SocialLoginButtons, StickyFooterContainer, StickyHeaderContainer, SwapTokenContent, TransactionModal, TransactionModalProvider, TransactionToast, TransactionToastProvider, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VePassportUserStatus, VechainKitThemeProvider, VersionFooter, WalletButton, WalletModalProvider, WalletSettingsContent, buildClaimRewardsTx, buildClaimRoundReward, currentBlockQueryKey, fetchPrivyAppInfo, fetchVechainDomain, getAccountBalance, getAccountBalanceQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getDelegateeQueryKey, getDelegatorQueryKey, getEnsRecordExistsQueryKey, getEntitiesLinkedToPassportQueryKey, getEvents, getGMBaseUriQueryKey, getGMLevel, getGMbalanceQueryKey, getGetCumulativeScoreWithDecayQueryKey, getHasVotedInRound, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsBlacklistedQueryKey, getIsDomainProtectedQueryKey, getIsEntityQueryKey, getIsNodeHolder, getIsNodeHolderQueryKey, getIsPassportQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getIsWhitelistedQueryKey, getLevelGradient, getLevelMultiplierQueryKey, getLevelOfTokenQueryKey, getNFTMetadataUri, getNFTMetadataUriQueryKey, getNodeCheckCooldownQueryKey, getNodeManagerQueryKey, getParticipatedInGovernance, getParticipatedInGovernanceQueryKey, getParticipationScoreThresholdQueryKey, getPassportForEntityQueryKey, getPassportToggleQueryKey, getPendingDelegationsQueryKeyDelegateePOV, getPendingDelegationsQueryKeyDelegatorPOV, getPendingLinkingsQueryKey, getPrivyAppInfoQueryKey, getRoundReward, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSecurityMultiplierQueryKey, getSmartAccount, getSmartAccountQueryKey, getThresholdParticipationScoreAtTimepointQueryKey, getThresholdParticipationScoreQueryKey, getTokenIdByAccount, getTokenIdByAccountQueryKey, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, 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, pollForReceipt, useAccountBalance, useAccountLinking, useAccountModal, useAllocationAmount, useAppAdmin, useAppBalance, useAppExists, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBalances, useCall, useChooseNameModal, useClaimVeWorldSubdomain, useConnectModal, useContractVersion, useCrossAppConnectionCache, useCurrentAllocationsRoundId, useCurrentBlock, useEcosystemShortcuts, useEmbeddedWalletSettingsModal, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useGMBaseUri, useGMbalance, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetDelegatee, useGetDelegator, useGetEntitiesLinkedToPassport, useGetNodeManager, useGetNodeUrl, useGetPassportForEntity, useGetPendingDelegationsDelegateePOV, useGetPendingDelegationsDelegatorPOV, useGetPendingLinkings, useGetTokenUsdPrice, useGetTokensInfoByOwner, useGetUserEntitiesLinkedToPassport, useGetUserNode, useGetUserNodes, useGetUserPassportForEntity, useGetUserPendingLinkings, useGetVeDelegateBalance, useGetVot3Balance, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsBlacklisted, useIsDomainProtected, useIsEntity, useIsGMclaimable, useIsNodeHolder, useIsPWA, useIsPassport, useIsPassportCheckEnabled, useIsPerson, useIsPersonAtTimepoint, useIsUserEntity, useIsUserPassport, useIsUserPerson, useIsWhitelisted, useLevelMultiplier, useLevelOfToken, useLocalStorage, useLoginWithOAuth2 as useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useNotificationsModal, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useRefreshBalances, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTokenModal, useSendTransaction, useSignMessage2 as useSignMessage, useSignTypedData2 as useSignTypedData, useSmartAccount, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenIdByAccount, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUserBotSignals, useUserDelegation, useUserRoundScore, useUserStatus, useUserTopVotedApps, useUserVotesInAllRounds, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXAppVotesQf, useXApps, useXAppsMetadataBaseUri, useXAppsShares, useXNode, useXNodeCheckCooldown, useXNodes };
|
|
12563
12758
|
//# sourceMappingURL=index.js.map
|
|
12564
12759
|
//# sourceMappingURL=index.js.map
|