@vechain/vechain-kit 1.2.4 → 1.3.1
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 +4 -3
- package/dist/{Constants-Cu1LVhH4.d.cts → Constants-7pfsJgOl.d.cts} +2 -2
- package/dist/{Constants-Cu1LVhH4.d.ts → Constants-7pfsJgOl.d.ts} +2 -2
- package/dist/{chunk-RAUWG27M.js → chunk-CDZXTDVH.js} +63 -30
- package/dist/chunk-CDZXTDVH.js.map +1 -0
- package/dist/{chunk-VUMG5BY2.cjs → chunk-EO3CLT4E.cjs} +63 -29
- package/dist/chunk-EO3CLT4E.cjs.map +1 -0
- package/dist/index.cjs +2295 -668
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +883 -258
- package/dist/index.d.ts +883 -258
- package/dist/index.js +2118 -517
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/utils/index.cjs +32 -28
- package/dist/utils/index.d.cts +12 -4
- package/dist/utils/index.d.ts +12 -4
- package/dist/utils/index.js +1 -1
- package/package.json +10 -3
- package/dist/chunk-RAUWG27M.js.map +0 -1
- package/dist/chunk-VUMG5BY2.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -3,8 +3,8 @@ import * as React$1 from 'react';
|
|
|
3
3
|
import React__default, { ReactElement, ReactNode, ElementType } from 'react';
|
|
4
4
|
import { WalletListEntry, SignTypedDataParams, User } from '@privy-io/react-auth';
|
|
5
5
|
export { usePrivy } from '@privy-io/react-auth';
|
|
6
|
-
import { P as PrivyAppInfo, T as TransactionProgress, a as TransactionStatusErrorType, W as Wallet, b as PrivyLoginMethod, N as NETWORK_TYPE, c as Network, d as
|
|
7
|
-
export { h as ExecuteWithAuthorizationSignData } from './Constants-
|
|
6
|
+
import { P as PrivyAppInfo, T as TransactionProgress, a as TransactionStatusErrorType, W as Wallet, b as PrivyLoginMethod, N as NETWORK_TYPE, c as Network, d as TogglePassportCheck, V as VePassportUserStatus, E as EnhancedClause, S as SmartAccount, C as ConnectionSource, e as NFTMediaType, f as TransactionStatus, g as CrossAppConnectionCache } from './Constants-7pfsJgOl.cjs';
|
|
7
|
+
export { h as ExecuteWithAuthorizationSignData } from './Constants-7pfsJgOl.cjs';
|
|
8
8
|
import { WalletSource, LogLevel } from '@vechain/dapp-kit';
|
|
9
9
|
import { WalletConnectOptions } from '@vechain/dapp-kit-react';
|
|
10
10
|
export { useConnex } from '@vechain/dapp-kit-react';
|
|
@@ -12,25 +12,27 @@ import { CustomizedStyle, SourceInfo, I18n } from '@vechain/dapp-kit-ui';
|
|
|
12
12
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
13
13
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
14
14
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
15
|
+
import { z } from 'zod';
|
|
15
16
|
import { ThorClient } from '@vechain/sdk-network';
|
|
17
|
+
import { Options } from 'browser-image-compression';
|
|
16
18
|
import { Interface } from 'ethers';
|
|
17
19
|
import { IconType } from 'react-icons';
|
|
18
20
|
import { ButtonProps, IconButtonProps, StackProps } from '@chakra-ui/react';
|
|
19
21
|
|
|
20
|
-
type Props$
|
|
22
|
+
type Props$w = {
|
|
21
23
|
isOpen: boolean;
|
|
22
24
|
onClose: () => void;
|
|
23
25
|
};
|
|
24
26
|
type ConnectModalContentsTypes = 'main' | 'email-verification' | 'faq';
|
|
25
|
-
declare const ConnectModal: ({ isOpen, onClose }: Props$
|
|
27
|
+
declare const ConnectModal: ({ isOpen, onClose }: Props$w) => react_jsx_runtime.JSX.Element;
|
|
26
28
|
|
|
27
29
|
type ConnectModalVariant = 'full' | 'vechain-and-wallet' | 'vechain' | 'vechain-wallet-ecosystem';
|
|
28
|
-
type Props$
|
|
30
|
+
type Props$v = {
|
|
29
31
|
setCurrentContent: React__default.Dispatch<React__default.SetStateAction<ConnectModalContentsTypes>>;
|
|
30
32
|
onClose: () => void;
|
|
31
33
|
variant?: ConnectModalVariant;
|
|
32
34
|
};
|
|
33
|
-
declare const MainContent: ({ setCurrentContent, onClose, variant, }: Props$
|
|
35
|
+
declare const MainContent: ({ setCurrentContent, onClose, variant, }: Props$v) => react_jsx_runtime.JSX.Element;
|
|
34
36
|
|
|
35
37
|
interface ConnectionButtonProps {
|
|
36
38
|
isDark: boolean;
|
|
@@ -43,50 +45,50 @@ declare const ConnectionButton: ({ isDark, onClick, text, icon, customIcon, }: C
|
|
|
43
45
|
|
|
44
46
|
declare const EmailLoginButton: () => react_jsx_runtime.JSX.Element;
|
|
45
47
|
|
|
46
|
-
type Props$
|
|
48
|
+
type Props$u = {
|
|
47
49
|
isDark: boolean;
|
|
48
50
|
gridColumn?: number;
|
|
49
51
|
};
|
|
50
|
-
declare const VeChainLoginButton: ({ isDark, gridColumn }: Props$
|
|
52
|
+
declare const VeChainLoginButton: ({ isDark, gridColumn }: Props$u) => react_jsx_runtime.JSX.Element;
|
|
51
53
|
|
|
52
|
-
type Props$
|
|
54
|
+
type Props$t = {
|
|
53
55
|
isDark: boolean;
|
|
54
56
|
privySocialLoginEnabled: boolean;
|
|
55
57
|
appsInfo: PrivyAppInfo[];
|
|
56
58
|
isLoading: boolean;
|
|
57
59
|
};
|
|
58
|
-
declare const EcosystemButton: ({ isDark, privySocialLoginEnabled, appsInfo, isLoading, }: Props$
|
|
60
|
+
declare const EcosystemButton: ({ isDark, privySocialLoginEnabled, appsInfo, isLoading, }: Props$t) => react_jsx_runtime.JSX.Element;
|
|
59
61
|
|
|
60
|
-
type Props$
|
|
62
|
+
type Props$s = {
|
|
61
63
|
isDark: boolean;
|
|
62
64
|
onViewMoreLogin: () => void;
|
|
63
65
|
gridColumn: number;
|
|
64
66
|
};
|
|
65
|
-
declare const PrivyButton: ({ isDark, onViewMoreLogin, gridColumn, }: Props$
|
|
67
|
+
declare const PrivyButton: ({ isDark, onViewMoreLogin, gridColumn, }: Props$s) => react_jsx_runtime.JSX.Element;
|
|
66
68
|
|
|
67
|
-
type Props$
|
|
69
|
+
type Props$r = {
|
|
68
70
|
isDark: boolean;
|
|
69
71
|
loginModalUI: VechainKitProviderProps['loginModalUI'];
|
|
70
72
|
};
|
|
71
|
-
declare const SocialLoginButtons: ({ isDark, loginModalUI }: Props$
|
|
73
|
+
declare const SocialLoginButtons: ({ isDark, loginModalUI }: Props$r) => react_jsx_runtime.JSX.Element;
|
|
72
74
|
|
|
73
|
-
type Props$
|
|
75
|
+
type Props$q = {
|
|
74
76
|
isDark: boolean;
|
|
75
77
|
gridColumn?: number;
|
|
76
78
|
};
|
|
77
|
-
declare const PasskeyLoginButton: ({ isDark, gridColumn }: Props$
|
|
79
|
+
declare const PasskeyLoginButton: ({ isDark, gridColumn }: Props$q) => react_jsx_runtime.JSX.Element;
|
|
78
80
|
|
|
79
|
-
type Props$
|
|
81
|
+
type Props$p = {
|
|
80
82
|
isDark: boolean;
|
|
81
83
|
gridColumn?: number;
|
|
82
84
|
};
|
|
83
|
-
declare const DappKitButton: ({ isDark, gridColumn }: Props$
|
|
85
|
+
declare const DappKitButton: ({ isDark, gridColumn }: Props$p) => react_jsx_runtime.JSX.Element;
|
|
84
86
|
|
|
85
|
-
type Props$
|
|
87
|
+
type Props$o = {
|
|
86
88
|
isDark: boolean;
|
|
87
89
|
gridColumn?: number;
|
|
88
90
|
};
|
|
89
|
-
declare const VeChainWithPrivyLoginButton: ({ isDark, gridColumn }: Props$
|
|
91
|
+
declare const VeChainWithPrivyLoginButton: ({ isDark, gridColumn }: Props$o) => react_jsx_runtime.JSX.Element;
|
|
90
92
|
|
|
91
93
|
type WalletDisplayVariant = 'icon' | 'iconAndDomain' | 'iconDomainAndAddress' | 'iconDomainAndAssets';
|
|
92
94
|
|
|
@@ -127,23 +129,28 @@ type TransactionToastProps = {
|
|
|
127
129
|
};
|
|
128
130
|
declare const TransactionToast: ({ isOpen, onClose, status, txReceipt, error, resetStatus, progress, }: TransactionToastProps) => react_jsx_runtime.JSX.Element | null;
|
|
129
131
|
|
|
130
|
-
type Props$
|
|
132
|
+
type Props$n = {
|
|
131
133
|
setCurrentContent: React__default.Dispatch<React__default.SetStateAction<AccountModalContentTypes>>;
|
|
132
134
|
onClose: () => void;
|
|
133
135
|
wallet: Wallet;
|
|
134
136
|
};
|
|
135
|
-
declare const AccountMainContent: ({ setCurrentContent, wallet, onClose, }: Props$
|
|
137
|
+
declare const AccountMainContent: ({ setCurrentContent, wallet, onClose, }: Props$n) => react_jsx_runtime.JSX.Element;
|
|
136
138
|
|
|
137
|
-
type Props$
|
|
139
|
+
type Props$m = {
|
|
138
140
|
setCurrentContent: React__default.Dispatch<React__default.SetStateAction<AccountModalContentTypes>>;
|
|
139
141
|
};
|
|
140
|
-
declare const EmbeddedWalletContent: ({ setCurrentContent }: Props$
|
|
142
|
+
declare const EmbeddedWalletContent: ({ setCurrentContent }: Props$m) => react_jsx_runtime.JSX.Element;
|
|
141
143
|
|
|
142
|
-
type Props$
|
|
144
|
+
type Props$l = {
|
|
143
145
|
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
144
146
|
onLogoutSuccess: () => void;
|
|
145
147
|
};
|
|
146
|
-
declare const WalletSettingsContent: ({ setCurrentContent, onLogoutSuccess, }: Props$
|
|
148
|
+
declare const WalletSettingsContent: ({ setCurrentContent, onLogoutSuccess, }: Props$l) => react_jsx_runtime.JSX.Element;
|
|
149
|
+
|
|
150
|
+
type Props$k = {
|
|
151
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
152
|
+
};
|
|
153
|
+
declare const AccountCustomizationContent: ({ setCurrentContent }: Props$k) => react_jsx_runtime.JSX.Element;
|
|
147
154
|
|
|
148
155
|
type Token$1 = {
|
|
149
156
|
symbol: string;
|
|
@@ -182,22 +189,22 @@ type Token = {
|
|
|
182
189
|
numericBalance: number;
|
|
183
190
|
price: number;
|
|
184
191
|
};
|
|
185
|
-
type Props$
|
|
192
|
+
type Props$j = {
|
|
186
193
|
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
187
194
|
onSelectToken: (token: Token) => void;
|
|
188
195
|
onBack: () => void;
|
|
189
196
|
};
|
|
190
|
-
declare const SelectTokenContent: ({ onSelectToken, onBack }: Props$
|
|
197
|
+
declare const SelectTokenContent: ({ onSelectToken, onBack }: Props$j) => react_jsx_runtime.JSX.Element;
|
|
191
198
|
|
|
192
|
-
type Props$
|
|
199
|
+
type Props$i = {
|
|
193
200
|
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
194
201
|
};
|
|
195
|
-
declare const ReceiveTokenContent: ({ setCurrentContent }: Props$
|
|
202
|
+
declare const ReceiveTokenContent: ({ setCurrentContent }: Props$i) => react_jsx_runtime.JSX.Element;
|
|
196
203
|
|
|
197
|
-
type Props$
|
|
204
|
+
type Props$h = {
|
|
198
205
|
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
199
206
|
};
|
|
200
|
-
declare const SwapTokenContent: ({ setCurrentContent }: Props$
|
|
207
|
+
declare const SwapTokenContent: ({ setCurrentContent }: Props$h) => react_jsx_runtime.JSX.Element;
|
|
201
208
|
|
|
202
209
|
type ChooseNameContentProps = {
|
|
203
210
|
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
@@ -217,12 +224,12 @@ type ChooseNameSummaryContentProps = {
|
|
|
217
224
|
};
|
|
218
225
|
declare const ChooseNameSummaryContent: ({ setCurrentContent, name, isOwnDomain, }: ChooseNameSummaryContentProps) => react_jsx_runtime.JSX.Element;
|
|
219
226
|
|
|
220
|
-
type Props$
|
|
227
|
+
type Props$g = {
|
|
221
228
|
onGoBack: () => void;
|
|
222
229
|
};
|
|
223
|
-
declare const FAQContent: ({ onGoBack }: Props$
|
|
230
|
+
declare const FAQContent: ({ onGoBack }: Props$g) => react_jsx_runtime.JSX.Element;
|
|
224
231
|
|
|
225
|
-
type AccountModalContentTypes = 'main' | 'faq' | 'settings' | 'embedded-wallet' | 'receive-token' | 'swap-token' | 'connection-details' | 'choose-name' | 'ecosystem' | 'notifications' | 'privy-linked-accounts' | {
|
|
232
|
+
type AccountModalContentTypes = 'main' | 'faq' | 'settings' | 'embedded-wallet' | 'receive-token' | 'swap-token' | 'connection-details' | 'choose-name' | 'ecosystem' | 'notifications' | 'privy-linked-accounts' | 'account-customization' | {
|
|
226
233
|
type: 'app-overview';
|
|
227
234
|
props: {
|
|
228
235
|
name: string;
|
|
@@ -250,12 +257,12 @@ type AccountModalContentTypes = 'main' | 'faq' | 'settings' | 'embedded-wallet'
|
|
|
250
257
|
};
|
|
251
258
|
};
|
|
252
259
|
|
|
253
|
-
type Props$
|
|
260
|
+
type Props$f = {
|
|
254
261
|
isOpen: boolean;
|
|
255
262
|
onClose: () => void;
|
|
256
263
|
initialContent?: AccountModalContentTypes;
|
|
257
264
|
};
|
|
258
|
-
declare const AccountModal: ({ isOpen, onClose, initialContent, }: Props$
|
|
265
|
+
declare const AccountModal: ({ isOpen, onClose, initialContent, }: Props$f) => react_jsx_runtime.JSX.Element;
|
|
259
266
|
|
|
260
267
|
interface AccountDetailsButtonProps {
|
|
261
268
|
title: string;
|
|
@@ -270,12 +277,12 @@ interface AccountDetailsButtonProps {
|
|
|
270
277
|
}
|
|
271
278
|
declare const AccountDetailsButton: ({ leftIcon, rightIcon, title, wallet, onClick, leftImage, isActive, }: AccountDetailsButtonProps) => react_jsx_runtime.JSX.Element;
|
|
272
279
|
|
|
273
|
-
|
|
280
|
+
type ActionButtonProps = {
|
|
274
281
|
title: string;
|
|
275
282
|
description: string;
|
|
276
283
|
onClick: () => void;
|
|
277
|
-
leftIcon?:
|
|
278
|
-
rightIcon?:
|
|
284
|
+
leftIcon?: IconType;
|
|
285
|
+
rightIcon?: IconType;
|
|
279
286
|
leftImage?: string;
|
|
280
287
|
backgroundColor?: string;
|
|
281
288
|
border?: string;
|
|
@@ -284,83 +291,86 @@ interface ActionButtonProps {
|
|
|
284
291
|
showComingSoon?: boolean;
|
|
285
292
|
isDisabled?: boolean;
|
|
286
293
|
stacked?: boolean;
|
|
287
|
-
|
|
288
|
-
|
|
294
|
+
isLoading?: boolean;
|
|
295
|
+
loadingText?: string;
|
|
296
|
+
style?: ButtonProps;
|
|
297
|
+
};
|
|
298
|
+
declare const ActionButton: ({ leftIcon, rightIcon, title, description, onClick, leftImage, hide, showComingSoon, backgroundColor, _hover, isDisabled, stacked, isLoading, loadingText, style, }: ActionButtonProps) => react_jsx_runtime.JSX.Element;
|
|
289
299
|
|
|
290
|
-
type Props$
|
|
300
|
+
type Props$e = {
|
|
291
301
|
wallet: Wallet;
|
|
292
302
|
size?: string;
|
|
293
303
|
onClick?: () => void;
|
|
294
304
|
mt?: number;
|
|
295
305
|
};
|
|
296
|
-
declare const AccountSelector: ({ wallet, size, onClick, mt, }: Props$
|
|
306
|
+
declare const AccountSelector: ({ wallet, size, onClick, mt, }: Props$e) => react_jsx_runtime.JSX.Element;
|
|
297
307
|
|
|
298
308
|
declare const BalanceSection: ({ mb, mt }: {
|
|
299
309
|
mb?: number;
|
|
300
310
|
mt?: number;
|
|
301
311
|
}) => react_jsx_runtime.JSX.Element;
|
|
302
312
|
|
|
303
|
-
type Props$
|
|
313
|
+
type Props$d = {
|
|
304
314
|
mt?: number;
|
|
305
315
|
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
306
316
|
};
|
|
307
|
-
declare const AssetsSection: ({ mt, setCurrentContent }: Props$
|
|
317
|
+
declare const AssetsSection: ({ mt, setCurrentContent }: Props$d) => react_jsx_runtime.JSX.Element;
|
|
308
318
|
|
|
309
|
-
type Props$
|
|
319
|
+
type Props$c = {
|
|
310
320
|
mt?: number;
|
|
311
321
|
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
312
322
|
};
|
|
313
|
-
declare const QuickActionsSection: ({ mt, setCurrentContent }: Props$
|
|
323
|
+
declare const QuickActionsSection: ({ mt, setCurrentContent }: Props$c) => react_jsx_runtime.JSX.Element;
|
|
314
324
|
|
|
315
325
|
type FeatureAnnouncementCardProps = {
|
|
316
326
|
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
317
327
|
};
|
|
318
328
|
declare const FeatureAnnouncementCard: ({ setCurrentContent, }: FeatureAnnouncementCardProps) => react_jsx_runtime.JSX.Element | null;
|
|
319
329
|
|
|
320
|
-
type Props$
|
|
330
|
+
type Props$b = {
|
|
321
331
|
children: ReactNode;
|
|
322
332
|
};
|
|
323
|
-
declare const FadeInView: ({ children }: Props$
|
|
333
|
+
declare const FadeInView: ({ children }: Props$b) => react_jsx_runtime.JSX.Element;
|
|
324
334
|
|
|
325
|
-
type Props$
|
|
335
|
+
type Props$a = {
|
|
326
336
|
children: ReactNode;
|
|
327
337
|
};
|
|
328
|
-
declare const FadeInViewFromBottom: ({ children }: Props$
|
|
338
|
+
declare const FadeInViewFromBottom: ({ children }: Props$a) => react_jsx_runtime.JSX.Element;
|
|
329
339
|
|
|
330
|
-
type Props$
|
|
340
|
+
type Props$9 = {
|
|
331
341
|
children: ReactNode;
|
|
332
342
|
};
|
|
333
|
-
declare const FadeInViewFromLeft: ({ children }: Props$
|
|
343
|
+
declare const FadeInViewFromLeft: ({ children }: Props$9) => react_jsx_runtime.JSX.Element;
|
|
334
344
|
|
|
335
|
-
type Props$
|
|
345
|
+
type Props$8 = {
|
|
336
346
|
children: ReactNode;
|
|
337
347
|
};
|
|
338
|
-
declare const FadeInViewFromRight: ({ children }: Props$
|
|
348
|
+
declare const FadeInViewFromRight: ({ children }: Props$8) => react_jsx_runtime.JSX.Element;
|
|
339
349
|
|
|
340
350
|
type BackButtonProps = {
|
|
341
351
|
onClick: () => void;
|
|
342
352
|
} & Partial<IconButtonProps>;
|
|
343
353
|
declare const ModalBackButton: ({ onClick, ...props }: BackButtonProps) => react_jsx_runtime.JSX.Element;
|
|
344
354
|
|
|
345
|
-
type Props$
|
|
355
|
+
type Props$7 = {
|
|
346
356
|
wallet: Wallet;
|
|
347
357
|
label?: string;
|
|
348
358
|
size?: string;
|
|
349
359
|
};
|
|
350
|
-
declare const AddressDisplay: ({ wallet, label, size }: Props$
|
|
360
|
+
declare const AddressDisplay: ({ wallet, label, size }: Props$7) => react_jsx_runtime.JSX.Element;
|
|
351
361
|
|
|
352
|
-
type Props$
|
|
353
|
-
declare const VersionFooter: ({ ...props }: Props$
|
|
362
|
+
type Props$6 = {} & Omit<StackProps, 'dangerouslySetInnerHTML'>;
|
|
363
|
+
declare const VersionFooter: ({ ...props }: Props$6) => react_jsx_runtime.JSX.Element;
|
|
354
364
|
|
|
355
|
-
type Props$
|
|
365
|
+
type Props$5 = {
|
|
356
366
|
children: React.ReactNode;
|
|
357
367
|
};
|
|
358
|
-
declare const StickyHeaderContainer: ({ children }: Props$
|
|
368
|
+
declare const StickyHeaderContainer: ({ children }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
359
369
|
|
|
360
|
-
type Props$
|
|
370
|
+
type Props$4 = {
|
|
361
371
|
children: React.ReactNode;
|
|
362
372
|
};
|
|
363
|
-
declare const StickyFooterContainer: ({ children }: Props$
|
|
373
|
+
declare const StickyFooterContainer: ({ children }: Props$4) => react_jsx_runtime.JSX.Element;
|
|
364
374
|
|
|
365
375
|
type BaseModalProps = {
|
|
366
376
|
isOpen: boolean;
|
|
@@ -375,8 +385,9 @@ type BaseModalProps = {
|
|
|
375
385
|
autoFocus?: boolean;
|
|
376
386
|
initialFocusRef?: React.RefObject<HTMLElement>;
|
|
377
387
|
allowExternalFocus?: boolean;
|
|
388
|
+
backdropFilter?: string;
|
|
378
389
|
};
|
|
379
|
-
declare const BaseModal: ({ isOpen, onClose, children, size, isCentered, motionPreset, closeOnOverlayClick, blockScrollOnMount, allowExternalFocus, }: BaseModalProps) => react_jsx_runtime.JSX.Element;
|
|
390
|
+
declare const BaseModal: ({ isOpen, onClose, children, size, isCentered, motionPreset, closeOnOverlayClick, blockScrollOnMount, allowExternalFocus, backdropFilter, }: BaseModalProps) => react_jsx_runtime.JSX.Element;
|
|
380
391
|
|
|
381
392
|
type AssetButtonProps = ButtonProps & {
|
|
382
393
|
symbol: string;
|
|
@@ -416,13 +427,13 @@ type LoginLoadingModalProps = {
|
|
|
416
427
|
};
|
|
417
428
|
declare const LoginLoadingModal: ({ isOpen, onClose, error, title, loadingText, onTryAgain, }: LoginLoadingModalProps) => react_jsx_runtime.JSX.Element;
|
|
418
429
|
|
|
419
|
-
type Props$
|
|
430
|
+
type Props$3 = {
|
|
420
431
|
isOpen: boolean;
|
|
421
432
|
onClose: () => void;
|
|
422
433
|
appsInfo: PrivyAppInfo[];
|
|
423
434
|
isLoading: boolean;
|
|
424
435
|
};
|
|
425
|
-
declare const EcosystemModal: ({ isOpen, onClose, appsInfo, isLoading, }: Props$
|
|
436
|
+
declare const EcosystemModal: ({ isOpen, onClose, appsInfo, isLoading, }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
426
437
|
|
|
427
438
|
type VechainKitProviderProps = {
|
|
428
439
|
children: ReactNode;
|
|
@@ -548,14 +559,15 @@ declare const PrivyWalletProvider: ({ children, nodeUrl, delegatorUrl, delegateA
|
|
|
548
559
|
}) => react_jsx_runtime.JSX.Element;
|
|
549
560
|
declare const usePrivyWalletProvider: () => PrivyWalletProviderContextType;
|
|
550
561
|
|
|
551
|
-
type Props = {
|
|
562
|
+
type Props$2 = {
|
|
552
563
|
children: ReactNode;
|
|
553
564
|
darkMode?: boolean;
|
|
554
565
|
};
|
|
555
|
-
declare const VechainKitThemeProvider: ({ children, darkMode, }: Props) => react_jsx_runtime.JSX.Element;
|
|
566
|
+
declare const VechainKitThemeProvider: ({ children, darkMode, }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
556
567
|
|
|
557
568
|
type AppConfig = {
|
|
558
569
|
ipfsFetchingService: string;
|
|
570
|
+
ipfsPinningService: string;
|
|
559
571
|
vthoContractAddress: string;
|
|
560
572
|
b3trContractAddress: string;
|
|
561
573
|
vot3ContractAddress: string;
|
|
@@ -584,8 +596,11 @@ type AppConfig = {
|
|
|
584
596
|
vetDomainsPublicResolverAddress: string;
|
|
585
597
|
vetDomainsReverseRegistrarAddress: string;
|
|
586
598
|
vnsResolverAddress: string;
|
|
599
|
+
vetDomainAvatarUrl: string;
|
|
587
600
|
nodeUrl: string;
|
|
588
|
-
indexerUrl
|
|
601
|
+
indexerUrl: string;
|
|
602
|
+
b3trIndexerUrl: string;
|
|
603
|
+
graphQlIndexerUrl: string;
|
|
589
604
|
network: Network;
|
|
590
605
|
explorerUrl: string;
|
|
591
606
|
};
|
|
@@ -1365,72 +1380,6 @@ declare const getB3trDonatedQueryKey: (tokenId?: string) => any[];
|
|
|
1365
1380
|
*/
|
|
1366
1381
|
declare const useB3trDonated: (tokenId?: string, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
1367
1382
|
|
|
1368
|
-
declare const getNFTMetadataUri: (networkType: NETWORK_TYPE, thor: Connex.Thor, tokenID: null | string) => Promise<string>;
|
|
1369
|
-
declare const getNFTMetadataUriQueryKey: (tokenID: null | string) => (string | null)[];
|
|
1370
|
-
/**
|
|
1371
|
-
* Get the metadata URI for an NFT
|
|
1372
|
-
*
|
|
1373
|
-
* @param tokenID the token ID to get the metadata URI for
|
|
1374
|
-
* @returns the metadata URI for the token
|
|
1375
|
-
*/
|
|
1376
|
-
declare const useNFTMetadataUri: (tokenID: null | string) => _tanstack_react_query.UseQueryResult<string, Error>;
|
|
1377
|
-
|
|
1378
|
-
interface IpfsImage {
|
|
1379
|
-
image: string;
|
|
1380
|
-
mime: string;
|
|
1381
|
-
mediaType: NFTMediaType;
|
|
1382
|
-
}
|
|
1383
|
-
declare const MAX_IMAGE_SIZE: number;
|
|
1384
|
-
/**
|
|
1385
|
-
* Fetches NFT media from IPFS
|
|
1386
|
-
* @param networkType - The network type
|
|
1387
|
-
* @param uri - The IPFS URI of the NFT media
|
|
1388
|
-
* @returns The NFT media
|
|
1389
|
-
*/
|
|
1390
|
-
declare const getIpfsImage: (networkType: NETWORK_TYPE, uri?: string) => Promise<IpfsImage>;
|
|
1391
|
-
/**
|
|
1392
|
-
* @param networkType - The network type
|
|
1393
|
-
* @param imageIpfsUri - The IPFS URI of the NFT media
|
|
1394
|
-
* @returns The NFT media
|
|
1395
|
-
*/
|
|
1396
|
-
declare const getIpfsImageQueryKey: (networkType: NETWORK_TYPE, imageIpfsUri?: null | string) => (string | null | undefined)[];
|
|
1397
|
-
/**
|
|
1398
|
-
* Hook to fetch NFT media from IPFS
|
|
1399
|
-
* @param imageIpfsUri - The IPFS URI of the NFT media
|
|
1400
|
-
* @returns The NFT media
|
|
1401
|
-
*/
|
|
1402
|
-
declare const useIpfsImage: (imageIpfsUri?: null | string) => _tanstack_react_query.UseQueryResult<IpfsImage, Error>;
|
|
1403
|
-
/**
|
|
1404
|
-
* Custom hook to fetch a list of IPFS images.
|
|
1405
|
-
*
|
|
1406
|
-
* @param imageIpfsUriList - An array of IPFS URIs for the images.
|
|
1407
|
-
* @returns An array of queries for each IPFS image URI.
|
|
1408
|
-
*/
|
|
1409
|
-
declare const useIpfsImageList: (imageIpfsUriList: string[]) => _tanstack_react_query.UseQueryResult<IpfsImage, Error>[];
|
|
1410
|
-
|
|
1411
|
-
/**
|
|
1412
|
-
* Fetches NFT image from IPFS
|
|
1413
|
-
* @param fetchNFT - Whether to fetch the NFT
|
|
1414
|
-
* @returns The NFT image
|
|
1415
|
-
*/
|
|
1416
|
-
type NFTMetadata = {
|
|
1417
|
-
name: string;
|
|
1418
|
-
description: string;
|
|
1419
|
-
image: string;
|
|
1420
|
-
attributes: {
|
|
1421
|
-
trait_type: string;
|
|
1422
|
-
value: string;
|
|
1423
|
-
}[];
|
|
1424
|
-
};
|
|
1425
|
-
declare const useNFTImage: (address?: string) => {
|
|
1426
|
-
imageData: IpfsImage | undefined;
|
|
1427
|
-
imageMetadata: NFTMetadata | undefined;
|
|
1428
|
-
tokenID: string | undefined;
|
|
1429
|
-
isLoading: boolean;
|
|
1430
|
-
isError: boolean;
|
|
1431
|
-
error: Error | null;
|
|
1432
|
-
};
|
|
1433
|
-
|
|
1434
1383
|
/**
|
|
1435
1384
|
* Query key for the `baseURI` method on the Galaxy Member contract.
|
|
1436
1385
|
* Using a different name to avoid conflicts with the `baseURI` property on ERC721 contracts.
|
|
@@ -1511,137 +1460,621 @@ declare const getHasVotedInRoundQueryKey: (roundId?: string, address?: string) =
|
|
|
1511
1460
|
*/
|
|
1512
1461
|
declare const useHasVotedInRound: (roundId?: string, address?: string) => _tanstack_react_query.UseQueryResult<boolean, Error>;
|
|
1513
1462
|
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1463
|
+
declare const RoundState: {
|
|
1464
|
+
readonly 0: "Active";
|
|
1465
|
+
readonly 1: "Failed";
|
|
1466
|
+
readonly 2: "Succeeded";
|
|
1517
1467
|
};
|
|
1518
1468
|
/**
|
|
1519
|
-
*
|
|
1520
|
-
*
|
|
1521
|
-
* @param
|
|
1522
|
-
* @param roundId
|
|
1523
|
-
* @
|
|
1524
|
-
* @param networkType the network type
|
|
1525
|
-
* @returns (amount, appId) amount of $B3TR an xApp earned from an allocation round and the xApp id
|
|
1526
|
-
*/
|
|
1527
|
-
declare const getXAppRoundEarnings: (thor: Connex.Thor, roundId: string, xAppId: string, networkType: NETWORK_TYPE) => Promise<UseXAppRoundEarningsQueryResponse>;
|
|
1528
|
-
declare const getXAppRoundEarningsQueryKey: (roundId: string | number, xAppId?: string) => (string | number)[];
|
|
1529
|
-
/**
|
|
1530
|
-
* Get the amount of $B3TR an xApp can claim from an allocation round
|
|
1531
|
-
*
|
|
1532
|
-
* @param roundId the round id
|
|
1533
|
-
* @param xAppId the xApp id
|
|
1534
|
-
* @returns amount of $B3TR an xApp can claim from an allocation round
|
|
1535
|
-
*/
|
|
1536
|
-
declare const useXAppRoundEarnings: (roundId: string, xAppId: string) => _tanstack_react_query.UseQueryResult<UseXAppRoundEarningsQueryResponse | {
|
|
1537
|
-
amount: string;
|
|
1538
|
-
xAppId: string;
|
|
1539
|
-
}, Error>;
|
|
1540
|
-
/**
|
|
1541
|
-
* Get the amount of $B3TR every xApp earned from an allocation round
|
|
1542
|
-
* @param roundId the round id
|
|
1543
|
-
* @param xAppIds the xApp ids
|
|
1544
|
-
* @returns the amount of $B3TR every xApp earned from an allocation round
|
|
1545
|
-
*/
|
|
1546
|
-
declare const useMultipleXAppRoundEarnings: (roundId: string, xAppIds: string[]) => _tanstack_react_query.UseQueryResult<{
|
|
1547
|
-
amount: string;
|
|
1548
|
-
appId: string;
|
|
1549
|
-
}[], Error>;
|
|
1550
|
-
|
|
1551
|
-
declare const getXAppTotalEarningsClauses: (roundIds: number[], app: string, networkType: NETWORK_TYPE) => Connex.VM.Clause[];
|
|
1552
|
-
declare const getXAppTotalEarningsQueryKey: (tillRoundId: string | number, appId: string) => (string | number)[];
|
|
1553
|
-
/**
|
|
1554
|
-
* Total earnings of an xApp in multiple rounds
|
|
1555
|
-
* @param roundIds ids of the rounds
|
|
1556
|
-
* @param appId id of the xApp
|
|
1557
|
-
* @returns the total earnings of the xApp until the last round
|
|
1558
|
-
*/
|
|
1559
|
-
declare const useXAppTotalEarnings: (roundIds: number[], appId: string) => _tanstack_react_query.UseQueryResult<number, Error>;
|
|
1560
|
-
|
|
1561
|
-
/**
|
|
1562
|
-
* Fetch the how much multiple xApps earned in an allocation round
|
|
1563
|
-
* @param appIds the xApps to get the votes for
|
|
1564
|
-
* @param roundId the round id to get the votes for
|
|
1565
|
-
* @returns the earned amount of the xApps in the round and the xApp id
|
|
1566
|
-
*/
|
|
1567
|
-
declare const useRoundEarnings: (roundId: string, appIds: string[]) => _tanstack_react_query.UseQueryResult<{
|
|
1568
|
-
amount: string;
|
|
1569
|
-
appId: string;
|
|
1570
|
-
}, Error>[];
|
|
1571
|
-
|
|
1572
|
-
/**
|
|
1573
|
-
* Get the available balance in the x2Earn rewards pool contract for a specific xApp
|
|
1574
|
-
*
|
|
1575
|
-
* @param thor the connex instance
|
|
1576
|
-
* @param xAppId the xApp id
|
|
1577
|
-
* @param x2EarnRewardsPoolContract the x2Earn rewards pool contract address
|
|
1578
|
-
* @returns the available balance in the x2Earn rewards pool contract for a specific xApp
|
|
1579
|
-
*/
|
|
1580
|
-
declare const getAppBalance: (thor: Connex.Thor, xAppId: string, x2EarnRewardsPoolContract: string) => Promise<TokenBalance>;
|
|
1581
|
-
declare const getAppBalanceQueryKey: (xAppId: string) => string[];
|
|
1582
|
-
/**
|
|
1583
|
-
* Get the balance available in the x2Earn rewards pool contract
|
|
1584
|
-
*
|
|
1585
|
-
* @param thor the connex instance
|
|
1586
|
-
* @param xAppId the xApp id
|
|
1587
|
-
* @returns the balance available in the x2Earn rewards pool contract
|
|
1588
|
-
*/
|
|
1589
|
-
declare const useAppBalance: (xAppId: string) => _tanstack_react_query.UseQueryResult<TokenBalance, Error>;
|
|
1590
|
-
|
|
1591
|
-
/**
|
|
1592
|
-
* Returns the query key for fetching the isPerson status.
|
|
1593
|
-
* @param user - The user address.
|
|
1594
|
-
* @returns The query key for fetching the isPerson status.
|
|
1595
|
-
*/
|
|
1596
|
-
declare const getIsPersonQueryKey: (user: string) => any[];
|
|
1597
|
-
/**
|
|
1598
|
-
* Hook to get the isPerson status from the VeBetterPassport contract.
|
|
1599
|
-
* @param user - The user address.
|
|
1600
|
-
* @returns The isPerson status.
|
|
1601
|
-
*/
|
|
1602
|
-
declare const useIsPerson: (user?: string | null) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
1603
|
-
/**
|
|
1604
|
-
* Hook to get the isPerson status from the VeBetterPassport contract for the current user.
|
|
1605
|
-
* @param address - The address of the account.
|
|
1606
|
-
* @returns The isPerson status.
|
|
1607
|
-
*/
|
|
1608
|
-
declare const useIsUserPerson: (address?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
1609
|
-
|
|
1610
|
-
/**
|
|
1611
|
-
* Returns the query key for fetching the user round score.
|
|
1612
|
-
* @param user - The user address.
|
|
1613
|
-
* @param round - The round number.
|
|
1614
|
-
* @returns The query key for fetching the user round score.
|
|
1469
|
+
* Returns the state of a given roundId
|
|
1470
|
+
* @param thor the thor client
|
|
1471
|
+
* @param networkType the network type
|
|
1472
|
+
* @param roundId the roundId to get state for
|
|
1473
|
+
* @returns the state of a given roundId
|
|
1615
1474
|
*/
|
|
1616
|
-
declare const
|
|
1475
|
+
declare const getAllocationsRoundState: (thor: Connex.Thor, networkType: NETWORK_TYPE, roundId?: string) => Promise<keyof typeof RoundState>;
|
|
1476
|
+
declare const getAllocationsRoundStateQueryKey: (roundId?: string) => (string | undefined)[];
|
|
1617
1477
|
/**
|
|
1618
|
-
* Hook to get the
|
|
1619
|
-
* @param
|
|
1620
|
-
* @
|
|
1621
|
-
* @returns The user round score.
|
|
1478
|
+
* Hook to get the state of a given roundId
|
|
1479
|
+
* @param roundId the roundId to get state for
|
|
1480
|
+
* @returns the state of a given roundId
|
|
1622
1481
|
*/
|
|
1623
|
-
declare const
|
|
1482
|
+
declare const useAllocationsRoundState: (roundId?: string) => _tanstack_react_query.UseQueryResult<0 | 1 | 2, Error>;
|
|
1624
1483
|
|
|
1484
|
+
type RoundCreated = {
|
|
1485
|
+
roundId: string;
|
|
1486
|
+
proposer: string;
|
|
1487
|
+
voteStart: string;
|
|
1488
|
+
voteEnd: string;
|
|
1489
|
+
appsIds: string[];
|
|
1490
|
+
};
|
|
1625
1491
|
/**
|
|
1626
|
-
* Returns
|
|
1627
|
-
* @
|
|
1492
|
+
* Returns all allocation rounds events
|
|
1493
|
+
* @param thor the thor client
|
|
1494
|
+
* @param networkType the network type
|
|
1495
|
+
* @returns the allocation rounds events
|
|
1628
1496
|
*/
|
|
1629
|
-
declare const
|
|
1497
|
+
declare const getAllocationsRoundsEvents: (thor: Connex.Thor, networkType: NETWORK_TYPE) => Promise<{
|
|
1498
|
+
created: RoundCreated[];
|
|
1499
|
+
}>;
|
|
1500
|
+
declare const getAllocationsRoundsEventsQueryKey: () => string[];
|
|
1630
1501
|
/**
|
|
1631
|
-
* Hook to get the
|
|
1632
|
-
* @returns
|
|
1502
|
+
* Hook to get the allocation rounds events from the xAllocationVoting contract
|
|
1503
|
+
* @returns the allocation rounds events
|
|
1633
1504
|
*/
|
|
1634
|
-
declare const
|
|
1505
|
+
declare const useAllocationsRoundsEvents: () => _tanstack_react_query.UseQueryResult<{
|
|
1506
|
+
created: RoundCreated[];
|
|
1507
|
+
}, Error>;
|
|
1635
1508
|
|
|
1636
|
-
|
|
1509
|
+
type AllocationRoundWithState = RoundCreated & {
|
|
1510
|
+
state?: keyof typeof RoundState;
|
|
1511
|
+
voteStartTimestamp?: number;
|
|
1512
|
+
voteEndTimestamp?: number;
|
|
1513
|
+
isCurrent: boolean;
|
|
1514
|
+
};
|
|
1637
1515
|
/**
|
|
1638
|
-
*
|
|
1639
|
-
* @
|
|
1640
|
-
* @returns the status of the check as a boolean
|
|
1516
|
+
* Hook to get and merge info about the given allocation round (state, proposer, voreStart, voteEnd)
|
|
1517
|
+
* @returns the allocation round info see {@link AllocationRoundWithState}
|
|
1641
1518
|
*/
|
|
1642
|
-
declare const
|
|
1643
|
-
|
|
1644
|
-
|
|
1519
|
+
declare const useAllocationsRound: (roundId?: string) => {
|
|
1520
|
+
data: {
|
|
1521
|
+
voteStartTimestamp: number | null;
|
|
1522
|
+
voteEndTimestamp: number | null;
|
|
1523
|
+
isFirstRound: boolean;
|
|
1524
|
+
isLastRound: boolean;
|
|
1525
|
+
roundId?: string | undefined;
|
|
1526
|
+
proposer?: string | undefined;
|
|
1527
|
+
voteStart?: string | undefined;
|
|
1528
|
+
voteEnd?: string | undefined;
|
|
1529
|
+
appsIds?: string[] | undefined;
|
|
1530
|
+
state?: keyof typeof RoundState;
|
|
1531
|
+
isCurrent?: boolean | undefined;
|
|
1532
|
+
};
|
|
1533
|
+
isLoading: boolean;
|
|
1534
|
+
isError: boolean;
|
|
1535
|
+
error: Error | null;
|
|
1536
|
+
isPending: false;
|
|
1537
|
+
isLoadingError: false;
|
|
1538
|
+
isRefetchError: true;
|
|
1539
|
+
isSuccess: false;
|
|
1540
|
+
status: "error";
|
|
1541
|
+
dataUpdatedAt: number;
|
|
1542
|
+
errorUpdatedAt: number;
|
|
1543
|
+
failureCount: number;
|
|
1544
|
+
failureReason: Error | null;
|
|
1545
|
+
errorUpdateCount: number;
|
|
1546
|
+
isFetched: boolean;
|
|
1547
|
+
isFetchedAfterMount: boolean;
|
|
1548
|
+
isFetching: boolean;
|
|
1549
|
+
isInitialLoading: boolean;
|
|
1550
|
+
isPaused: boolean;
|
|
1551
|
+
isPlaceholderData: boolean;
|
|
1552
|
+
isRefetching: boolean;
|
|
1553
|
+
isStale: boolean;
|
|
1554
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
|
|
1555
|
+
created: RoundCreated[];
|
|
1556
|
+
}, Error>>;
|
|
1557
|
+
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1558
|
+
promise: Promise<{
|
|
1559
|
+
created: RoundCreated[];
|
|
1560
|
+
}>;
|
|
1561
|
+
} | {
|
|
1562
|
+
data: {
|
|
1563
|
+
voteStartTimestamp: number | null;
|
|
1564
|
+
voteEndTimestamp: number | null;
|
|
1565
|
+
isFirstRound: boolean;
|
|
1566
|
+
isLastRound: boolean;
|
|
1567
|
+
roundId?: string | undefined;
|
|
1568
|
+
proposer?: string | undefined;
|
|
1569
|
+
voteStart?: string | undefined;
|
|
1570
|
+
voteEnd?: string | undefined;
|
|
1571
|
+
appsIds?: string[] | undefined;
|
|
1572
|
+
state?: keyof typeof RoundState;
|
|
1573
|
+
isCurrent?: boolean | undefined;
|
|
1574
|
+
};
|
|
1575
|
+
isLoading: boolean;
|
|
1576
|
+
isError: boolean;
|
|
1577
|
+
error: Error | null;
|
|
1578
|
+
isPending: false;
|
|
1579
|
+
isLoadingError: false;
|
|
1580
|
+
isRefetchError: false;
|
|
1581
|
+
isSuccess: true;
|
|
1582
|
+
status: "success";
|
|
1583
|
+
dataUpdatedAt: number;
|
|
1584
|
+
errorUpdatedAt: number;
|
|
1585
|
+
failureCount: number;
|
|
1586
|
+
failureReason: Error | null;
|
|
1587
|
+
errorUpdateCount: number;
|
|
1588
|
+
isFetched: boolean;
|
|
1589
|
+
isFetchedAfterMount: boolean;
|
|
1590
|
+
isFetching: boolean;
|
|
1591
|
+
isInitialLoading: boolean;
|
|
1592
|
+
isPaused: boolean;
|
|
1593
|
+
isPlaceholderData: boolean;
|
|
1594
|
+
isRefetching: boolean;
|
|
1595
|
+
isStale: boolean;
|
|
1596
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
|
|
1597
|
+
created: RoundCreated[];
|
|
1598
|
+
}, Error>>;
|
|
1599
|
+
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1600
|
+
promise: Promise<{
|
|
1601
|
+
created: RoundCreated[];
|
|
1602
|
+
}>;
|
|
1603
|
+
} | {
|
|
1604
|
+
data: {
|
|
1605
|
+
voteStartTimestamp: number | null;
|
|
1606
|
+
voteEndTimestamp: number | null;
|
|
1607
|
+
isFirstRound: boolean;
|
|
1608
|
+
isLastRound: boolean;
|
|
1609
|
+
roundId?: string | undefined;
|
|
1610
|
+
proposer?: string | undefined;
|
|
1611
|
+
voteStart?: string | undefined;
|
|
1612
|
+
voteEnd?: string | undefined;
|
|
1613
|
+
appsIds?: string[] | undefined;
|
|
1614
|
+
state?: keyof typeof RoundState;
|
|
1615
|
+
isCurrent?: boolean | undefined;
|
|
1616
|
+
};
|
|
1617
|
+
isLoading: boolean;
|
|
1618
|
+
isError: boolean;
|
|
1619
|
+
error: Error | null;
|
|
1620
|
+
isPending: false;
|
|
1621
|
+
isLoadingError: true;
|
|
1622
|
+
isRefetchError: false;
|
|
1623
|
+
isSuccess: false;
|
|
1624
|
+
status: "error";
|
|
1625
|
+
dataUpdatedAt: number;
|
|
1626
|
+
errorUpdatedAt: number;
|
|
1627
|
+
failureCount: number;
|
|
1628
|
+
failureReason: Error | null;
|
|
1629
|
+
errorUpdateCount: number;
|
|
1630
|
+
isFetched: boolean;
|
|
1631
|
+
isFetchedAfterMount: boolean;
|
|
1632
|
+
isFetching: boolean;
|
|
1633
|
+
isInitialLoading: boolean;
|
|
1634
|
+
isPaused: boolean;
|
|
1635
|
+
isPlaceholderData: boolean;
|
|
1636
|
+
isRefetching: boolean;
|
|
1637
|
+
isStale: boolean;
|
|
1638
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
|
|
1639
|
+
created: RoundCreated[];
|
|
1640
|
+
}, Error>>;
|
|
1641
|
+
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1642
|
+
promise: Promise<{
|
|
1643
|
+
created: RoundCreated[];
|
|
1644
|
+
}>;
|
|
1645
|
+
} | {
|
|
1646
|
+
data: {
|
|
1647
|
+
voteStartTimestamp: number | null;
|
|
1648
|
+
voteEndTimestamp: number | null;
|
|
1649
|
+
isFirstRound: boolean;
|
|
1650
|
+
isLastRound: boolean;
|
|
1651
|
+
roundId?: string | undefined;
|
|
1652
|
+
proposer?: string | undefined;
|
|
1653
|
+
voteStart?: string | undefined;
|
|
1654
|
+
voteEnd?: string | undefined;
|
|
1655
|
+
appsIds?: string[] | undefined;
|
|
1656
|
+
state?: keyof typeof RoundState;
|
|
1657
|
+
isCurrent?: boolean | undefined;
|
|
1658
|
+
};
|
|
1659
|
+
isLoading: boolean;
|
|
1660
|
+
isError: boolean;
|
|
1661
|
+
error: Error | null;
|
|
1662
|
+
isPending: true;
|
|
1663
|
+
isLoadingError: false;
|
|
1664
|
+
isRefetchError: false;
|
|
1665
|
+
isSuccess: false;
|
|
1666
|
+
status: "pending";
|
|
1667
|
+
dataUpdatedAt: number;
|
|
1668
|
+
errorUpdatedAt: number;
|
|
1669
|
+
failureCount: number;
|
|
1670
|
+
failureReason: Error | null;
|
|
1671
|
+
errorUpdateCount: number;
|
|
1672
|
+
isFetched: boolean;
|
|
1673
|
+
isFetchedAfterMount: boolean;
|
|
1674
|
+
isFetching: boolean;
|
|
1675
|
+
isInitialLoading: boolean;
|
|
1676
|
+
isPaused: boolean;
|
|
1677
|
+
isPlaceholderData: boolean;
|
|
1678
|
+
isRefetching: boolean;
|
|
1679
|
+
isStale: boolean;
|
|
1680
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
|
|
1681
|
+
created: RoundCreated[];
|
|
1682
|
+
}, Error>>;
|
|
1683
|
+
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1684
|
+
promise: Promise<{
|
|
1685
|
+
created: RoundCreated[];
|
|
1686
|
+
}>;
|
|
1687
|
+
} | {
|
|
1688
|
+
data: {
|
|
1689
|
+
voteStartTimestamp: number | null;
|
|
1690
|
+
voteEndTimestamp: number | null;
|
|
1691
|
+
isFirstRound: boolean;
|
|
1692
|
+
isLastRound: boolean;
|
|
1693
|
+
roundId?: string | undefined;
|
|
1694
|
+
proposer?: string | undefined;
|
|
1695
|
+
voteStart?: string | undefined;
|
|
1696
|
+
voteEnd?: string | undefined;
|
|
1697
|
+
appsIds?: string[] | undefined;
|
|
1698
|
+
state?: keyof typeof RoundState;
|
|
1699
|
+
isCurrent?: boolean | undefined;
|
|
1700
|
+
};
|
|
1701
|
+
isLoading: boolean;
|
|
1702
|
+
isError: boolean;
|
|
1703
|
+
error: Error | null;
|
|
1704
|
+
isPending: true;
|
|
1705
|
+
isLoadingError: false;
|
|
1706
|
+
isRefetchError: false;
|
|
1707
|
+
isSuccess: false;
|
|
1708
|
+
status: "pending";
|
|
1709
|
+
dataUpdatedAt: number;
|
|
1710
|
+
errorUpdatedAt: number;
|
|
1711
|
+
failureCount: number;
|
|
1712
|
+
failureReason: Error | null;
|
|
1713
|
+
errorUpdateCount: number;
|
|
1714
|
+
isFetched: boolean;
|
|
1715
|
+
isFetchedAfterMount: boolean;
|
|
1716
|
+
isFetching: boolean;
|
|
1717
|
+
isInitialLoading: boolean;
|
|
1718
|
+
isPaused: boolean;
|
|
1719
|
+
isPlaceholderData: boolean;
|
|
1720
|
+
isRefetching: boolean;
|
|
1721
|
+
isStale: boolean;
|
|
1722
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
|
|
1723
|
+
created: RoundCreated[];
|
|
1724
|
+
}, Error>>;
|
|
1725
|
+
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1726
|
+
promise: Promise<{
|
|
1727
|
+
created: RoundCreated[];
|
|
1728
|
+
}>;
|
|
1729
|
+
};
|
|
1730
|
+
|
|
1731
|
+
/**
|
|
1732
|
+
* Hook to get info about the current allocation round
|
|
1733
|
+
* @returns the current allocation round info see {@link AllocationRoundWithState}
|
|
1734
|
+
*/
|
|
1735
|
+
declare const useCurrentAllocationsRound: () => {
|
|
1736
|
+
isLoading: boolean;
|
|
1737
|
+
isError: boolean;
|
|
1738
|
+
error: Error | null;
|
|
1739
|
+
data: {
|
|
1740
|
+
voteStartTimestamp: number | null;
|
|
1741
|
+
voteEndTimestamp: number | null;
|
|
1742
|
+
isFirstRound: boolean;
|
|
1743
|
+
isLastRound: boolean;
|
|
1744
|
+
roundId?: string | undefined;
|
|
1745
|
+
proposer?: string | undefined;
|
|
1746
|
+
voteStart?: string | undefined;
|
|
1747
|
+
voteEnd?: string | undefined;
|
|
1748
|
+
appsIds?: string[] | undefined;
|
|
1749
|
+
state?: keyof typeof RoundState;
|
|
1750
|
+
isCurrent?: boolean | undefined;
|
|
1751
|
+
};
|
|
1752
|
+
isPending: false;
|
|
1753
|
+
isLoadingError: false;
|
|
1754
|
+
isRefetchError: true;
|
|
1755
|
+
isSuccess: false;
|
|
1756
|
+
status: "error";
|
|
1757
|
+
dataUpdatedAt: number;
|
|
1758
|
+
errorUpdatedAt: number;
|
|
1759
|
+
failureCount: number;
|
|
1760
|
+
failureReason: Error | null;
|
|
1761
|
+
errorUpdateCount: number;
|
|
1762
|
+
isFetched: boolean;
|
|
1763
|
+
isFetchedAfterMount: boolean;
|
|
1764
|
+
isFetching: boolean;
|
|
1765
|
+
isInitialLoading: boolean;
|
|
1766
|
+
isPaused: boolean;
|
|
1767
|
+
isPlaceholderData: boolean;
|
|
1768
|
+
isRefetching: boolean;
|
|
1769
|
+
isStale: boolean;
|
|
1770
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
|
|
1771
|
+
created: RoundCreated[];
|
|
1772
|
+
}, Error>>;
|
|
1773
|
+
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1774
|
+
promise: Promise<{
|
|
1775
|
+
created: RoundCreated[];
|
|
1776
|
+
}>;
|
|
1777
|
+
} | {
|
|
1778
|
+
isLoading: boolean;
|
|
1779
|
+
isError: boolean;
|
|
1780
|
+
error: Error | null;
|
|
1781
|
+
data: {
|
|
1782
|
+
voteStartTimestamp: number | null;
|
|
1783
|
+
voteEndTimestamp: number | null;
|
|
1784
|
+
isFirstRound: boolean;
|
|
1785
|
+
isLastRound: boolean;
|
|
1786
|
+
roundId?: string | undefined;
|
|
1787
|
+
proposer?: string | undefined;
|
|
1788
|
+
voteStart?: string | undefined;
|
|
1789
|
+
voteEnd?: string | undefined;
|
|
1790
|
+
appsIds?: string[] | undefined;
|
|
1791
|
+
state?: keyof typeof RoundState;
|
|
1792
|
+
isCurrent?: boolean | undefined;
|
|
1793
|
+
};
|
|
1794
|
+
isPending: false;
|
|
1795
|
+
isLoadingError: false;
|
|
1796
|
+
isRefetchError: false;
|
|
1797
|
+
isSuccess: true;
|
|
1798
|
+
status: "success";
|
|
1799
|
+
dataUpdatedAt: number;
|
|
1800
|
+
errorUpdatedAt: number;
|
|
1801
|
+
failureCount: number;
|
|
1802
|
+
failureReason: Error | null;
|
|
1803
|
+
errorUpdateCount: number;
|
|
1804
|
+
isFetched: boolean;
|
|
1805
|
+
isFetchedAfterMount: boolean;
|
|
1806
|
+
isFetching: boolean;
|
|
1807
|
+
isInitialLoading: boolean;
|
|
1808
|
+
isPaused: boolean;
|
|
1809
|
+
isPlaceholderData: boolean;
|
|
1810
|
+
isRefetching: boolean;
|
|
1811
|
+
isStale: boolean;
|
|
1812
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
|
|
1813
|
+
created: RoundCreated[];
|
|
1814
|
+
}, Error>>;
|
|
1815
|
+
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1816
|
+
promise: Promise<{
|
|
1817
|
+
created: RoundCreated[];
|
|
1818
|
+
}>;
|
|
1819
|
+
} | {
|
|
1820
|
+
isLoading: boolean;
|
|
1821
|
+
isError: boolean;
|
|
1822
|
+
error: Error | null;
|
|
1823
|
+
data: {
|
|
1824
|
+
voteStartTimestamp: number | null;
|
|
1825
|
+
voteEndTimestamp: number | null;
|
|
1826
|
+
isFirstRound: boolean;
|
|
1827
|
+
isLastRound: boolean;
|
|
1828
|
+
roundId?: string | undefined;
|
|
1829
|
+
proposer?: string | undefined;
|
|
1830
|
+
voteStart?: string | undefined;
|
|
1831
|
+
voteEnd?: string | undefined;
|
|
1832
|
+
appsIds?: string[] | undefined;
|
|
1833
|
+
state?: keyof typeof RoundState;
|
|
1834
|
+
isCurrent?: boolean | undefined;
|
|
1835
|
+
};
|
|
1836
|
+
isPending: false;
|
|
1837
|
+
isLoadingError: true;
|
|
1838
|
+
isRefetchError: false;
|
|
1839
|
+
isSuccess: false;
|
|
1840
|
+
status: "error";
|
|
1841
|
+
dataUpdatedAt: number;
|
|
1842
|
+
errorUpdatedAt: number;
|
|
1843
|
+
failureCount: number;
|
|
1844
|
+
failureReason: Error | null;
|
|
1845
|
+
errorUpdateCount: number;
|
|
1846
|
+
isFetched: boolean;
|
|
1847
|
+
isFetchedAfterMount: boolean;
|
|
1848
|
+
isFetching: boolean;
|
|
1849
|
+
isInitialLoading: boolean;
|
|
1850
|
+
isPaused: boolean;
|
|
1851
|
+
isPlaceholderData: boolean;
|
|
1852
|
+
isRefetching: boolean;
|
|
1853
|
+
isStale: boolean;
|
|
1854
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
|
|
1855
|
+
created: RoundCreated[];
|
|
1856
|
+
}, Error>>;
|
|
1857
|
+
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1858
|
+
promise: Promise<{
|
|
1859
|
+
created: RoundCreated[];
|
|
1860
|
+
}>;
|
|
1861
|
+
} | {
|
|
1862
|
+
isLoading: boolean;
|
|
1863
|
+
isError: boolean;
|
|
1864
|
+
error: Error | null;
|
|
1865
|
+
data: {
|
|
1866
|
+
voteStartTimestamp: number | null;
|
|
1867
|
+
voteEndTimestamp: number | null;
|
|
1868
|
+
isFirstRound: boolean;
|
|
1869
|
+
isLastRound: boolean;
|
|
1870
|
+
roundId?: string | undefined;
|
|
1871
|
+
proposer?: string | undefined;
|
|
1872
|
+
voteStart?: string | undefined;
|
|
1873
|
+
voteEnd?: string | undefined;
|
|
1874
|
+
appsIds?: string[] | undefined;
|
|
1875
|
+
state?: keyof typeof RoundState;
|
|
1876
|
+
isCurrent?: boolean | undefined;
|
|
1877
|
+
};
|
|
1878
|
+
isPending: true;
|
|
1879
|
+
isLoadingError: false;
|
|
1880
|
+
isRefetchError: false;
|
|
1881
|
+
isSuccess: false;
|
|
1882
|
+
status: "pending";
|
|
1883
|
+
dataUpdatedAt: number;
|
|
1884
|
+
errorUpdatedAt: number;
|
|
1885
|
+
failureCount: number;
|
|
1886
|
+
failureReason: Error | null;
|
|
1887
|
+
errorUpdateCount: number;
|
|
1888
|
+
isFetched: boolean;
|
|
1889
|
+
isFetchedAfterMount: boolean;
|
|
1890
|
+
isFetching: boolean;
|
|
1891
|
+
isInitialLoading: boolean;
|
|
1892
|
+
isPaused: boolean;
|
|
1893
|
+
isPlaceholderData: boolean;
|
|
1894
|
+
isRefetching: boolean;
|
|
1895
|
+
isStale: boolean;
|
|
1896
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
|
|
1897
|
+
created: RoundCreated[];
|
|
1898
|
+
}, Error>>;
|
|
1899
|
+
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1900
|
+
promise: Promise<{
|
|
1901
|
+
created: RoundCreated[];
|
|
1902
|
+
}>;
|
|
1903
|
+
} | {
|
|
1904
|
+
isLoading: boolean;
|
|
1905
|
+
isError: boolean;
|
|
1906
|
+
error: Error | null;
|
|
1907
|
+
data: {
|
|
1908
|
+
voteStartTimestamp: number | null;
|
|
1909
|
+
voteEndTimestamp: number | null;
|
|
1910
|
+
isFirstRound: boolean;
|
|
1911
|
+
isLastRound: boolean;
|
|
1912
|
+
roundId?: string | undefined;
|
|
1913
|
+
proposer?: string | undefined;
|
|
1914
|
+
voteStart?: string | undefined;
|
|
1915
|
+
voteEnd?: string | undefined;
|
|
1916
|
+
appsIds?: string[] | undefined;
|
|
1917
|
+
state?: keyof typeof RoundState;
|
|
1918
|
+
isCurrent?: boolean | undefined;
|
|
1919
|
+
};
|
|
1920
|
+
isPending: true;
|
|
1921
|
+
isLoadingError: false;
|
|
1922
|
+
isRefetchError: false;
|
|
1923
|
+
isSuccess: false;
|
|
1924
|
+
status: "pending";
|
|
1925
|
+
dataUpdatedAt: number;
|
|
1926
|
+
errorUpdatedAt: number;
|
|
1927
|
+
failureCount: number;
|
|
1928
|
+
failureReason: Error | null;
|
|
1929
|
+
errorUpdateCount: number;
|
|
1930
|
+
isFetched: boolean;
|
|
1931
|
+
isFetchedAfterMount: boolean;
|
|
1932
|
+
isFetching: boolean;
|
|
1933
|
+
isInitialLoading: boolean;
|
|
1934
|
+
isPaused: boolean;
|
|
1935
|
+
isPlaceholderData: boolean;
|
|
1936
|
+
isRefetching: boolean;
|
|
1937
|
+
isStale: boolean;
|
|
1938
|
+
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
|
|
1939
|
+
created: RoundCreated[];
|
|
1940
|
+
}, Error>>;
|
|
1941
|
+
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1942
|
+
promise: Promise<{
|
|
1943
|
+
created: RoundCreated[];
|
|
1944
|
+
}>;
|
|
1945
|
+
};
|
|
1946
|
+
|
|
1947
|
+
type UseXAppRoundEarningsQueryResponse = {
|
|
1948
|
+
amount: string;
|
|
1949
|
+
appId: string;
|
|
1950
|
+
};
|
|
1951
|
+
/**
|
|
1952
|
+
* Get the amount of $B3TR an xApp earned from an allocation round
|
|
1953
|
+
*
|
|
1954
|
+
* @param thor the connex instance
|
|
1955
|
+
* @param roundId the round id
|
|
1956
|
+
* @param xAppId the xApp id
|
|
1957
|
+
* @param networkType the network type
|
|
1958
|
+
* @returns (amount, appId) amount of $B3TR an xApp earned from an allocation round and the xApp id
|
|
1959
|
+
*/
|
|
1960
|
+
declare const getXAppRoundEarnings: (thor: Connex.Thor, roundId: string, xAppId: string, networkType: NETWORK_TYPE) => Promise<UseXAppRoundEarningsQueryResponse>;
|
|
1961
|
+
declare const getXAppRoundEarningsQueryKey: (roundId: string | number, xAppId?: string) => (string | number)[];
|
|
1962
|
+
/**
|
|
1963
|
+
* Get the amount of $B3TR an xApp can claim from an allocation round
|
|
1964
|
+
*
|
|
1965
|
+
* @param roundId the round id
|
|
1966
|
+
* @param xAppId the xApp id
|
|
1967
|
+
* @returns amount of $B3TR an xApp can claim from an allocation round
|
|
1968
|
+
*/
|
|
1969
|
+
declare const useXAppRoundEarnings: (roundId: string, xAppId: string) => _tanstack_react_query.UseQueryResult<UseXAppRoundEarningsQueryResponse | {
|
|
1970
|
+
amount: string;
|
|
1971
|
+
xAppId: string;
|
|
1972
|
+
}, Error>;
|
|
1973
|
+
/**
|
|
1974
|
+
* Get the amount of $B3TR every xApp earned from an allocation round
|
|
1975
|
+
* @param roundId the round id
|
|
1976
|
+
* @param xAppIds the xApp ids
|
|
1977
|
+
* @returns the amount of $B3TR every xApp earned from an allocation round
|
|
1978
|
+
*/
|
|
1979
|
+
declare const useMultipleXAppRoundEarnings: (roundId: string, xAppIds: string[]) => _tanstack_react_query.UseQueryResult<{
|
|
1980
|
+
amount: string;
|
|
1981
|
+
appId: string;
|
|
1982
|
+
}[], Error>;
|
|
1983
|
+
|
|
1984
|
+
declare const getXAppTotalEarningsClauses: (roundIds: number[], app: string, networkType: NETWORK_TYPE) => Connex.VM.Clause[];
|
|
1985
|
+
declare const getXAppTotalEarningsQueryKey: (tillRoundId: string | number, appId: string) => (string | number)[];
|
|
1986
|
+
/**
|
|
1987
|
+
* Total earnings of an xApp in multiple rounds
|
|
1988
|
+
* @param roundIds ids of the rounds
|
|
1989
|
+
* @param appId id of the xApp
|
|
1990
|
+
* @returns the total earnings of the xApp until the last round
|
|
1991
|
+
*/
|
|
1992
|
+
declare const useXAppTotalEarnings: (roundIds: number[], appId: string) => _tanstack_react_query.UseQueryResult<number, Error>;
|
|
1993
|
+
|
|
1994
|
+
/**
|
|
1995
|
+
* Fetch the how much multiple xApps earned in an allocation round
|
|
1996
|
+
* @param appIds the xApps to get the votes for
|
|
1997
|
+
* @param roundId the round id to get the votes for
|
|
1998
|
+
* @returns the earned amount of the xApps in the round and the xApp id
|
|
1999
|
+
*/
|
|
2000
|
+
declare const useRoundEarnings: (roundId: string, appIds: string[]) => _tanstack_react_query.UseQueryResult<{
|
|
2001
|
+
amount: string;
|
|
2002
|
+
appId: string;
|
|
2003
|
+
}, Error>[];
|
|
2004
|
+
|
|
2005
|
+
/**
|
|
2006
|
+
* Get the available balance in the x2Earn rewards pool contract for a specific xApp
|
|
2007
|
+
*
|
|
2008
|
+
* @param thor the connex instance
|
|
2009
|
+
* @param xAppId the xApp id
|
|
2010
|
+
* @param x2EarnRewardsPoolContract the x2Earn rewards pool contract address
|
|
2011
|
+
* @returns the available balance in the x2Earn rewards pool contract for a specific xApp
|
|
2012
|
+
*/
|
|
2013
|
+
declare const getAppBalance: (thor: Connex.Thor, xAppId: string, x2EarnRewardsPoolContract: string) => Promise<TokenBalance>;
|
|
2014
|
+
declare const getAppBalanceQueryKey: (xAppId: string) => string[];
|
|
2015
|
+
/**
|
|
2016
|
+
* Get the balance available in the x2Earn rewards pool contract
|
|
2017
|
+
*
|
|
2018
|
+
* @param thor the connex instance
|
|
2019
|
+
* @param xAppId the xApp id
|
|
2020
|
+
* @returns the balance available in the x2Earn rewards pool contract
|
|
2021
|
+
*/
|
|
2022
|
+
declare const useAppBalance: (xAppId: string) => _tanstack_react_query.UseQueryResult<TokenBalance, Error>;
|
|
2023
|
+
|
|
2024
|
+
/**
|
|
2025
|
+
* Returns the query key for fetching the isPerson status.
|
|
2026
|
+
* @param user - The user address.
|
|
2027
|
+
* @returns The query key for fetching the isPerson status.
|
|
2028
|
+
*/
|
|
2029
|
+
declare const getIsPersonQueryKey: (user: string) => any[];
|
|
2030
|
+
/**
|
|
2031
|
+
* Hook to get the isPerson status from the VeBetterPassport contract.
|
|
2032
|
+
* @param user - The user address.
|
|
2033
|
+
* @returns The isPerson status.
|
|
2034
|
+
*/
|
|
2035
|
+
declare const useIsPerson: (user?: string | null) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
2036
|
+
/**
|
|
2037
|
+
* Hook to get the isPerson status from the VeBetterPassport contract for the current user.
|
|
2038
|
+
* @param address - The address of the account.
|
|
2039
|
+
* @returns The isPerson status.
|
|
2040
|
+
*/
|
|
2041
|
+
declare const useIsUserPerson: (address?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* Returns the query key for fetching the user round score.
|
|
2045
|
+
* @param user - The user address.
|
|
2046
|
+
* @param round - The round number.
|
|
2047
|
+
* @returns The query key for fetching the user round score.
|
|
2048
|
+
*/
|
|
2049
|
+
declare const getUserRoundScoreQueryKey: (user: string, round: number) => any[];
|
|
2050
|
+
/**
|
|
2051
|
+
* Hook to get the user round score from the VeBetterPassport contract.
|
|
2052
|
+
* @param address - The address of the account.
|
|
2053
|
+
* @param round - The round number.
|
|
2054
|
+
* @returns The user round score.
|
|
2055
|
+
*/
|
|
2056
|
+
declare const useUserRoundScore: (address?: string, round?: number) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
2057
|
+
|
|
2058
|
+
/**
|
|
2059
|
+
* Returns the query key for fetching the threshold participation score.
|
|
2060
|
+
* @returns The query key for fetching the threshold participation score.
|
|
2061
|
+
*/
|
|
2062
|
+
declare const getThresholdParticipationScoreQueryKey: () => any[];
|
|
2063
|
+
/**
|
|
2064
|
+
* Hook to get the threshold participation score from the VeBetterPassport contract.
|
|
2065
|
+
* @returns The threshold participation score.
|
|
2066
|
+
*/
|
|
2067
|
+
declare const useThresholdParticipationScore: () => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
2068
|
+
|
|
2069
|
+
declare const getPassportToggleQueryKey: (checkName: TogglePassportCheck) => any[];
|
|
2070
|
+
/**
|
|
2071
|
+
* Hook to get the status of a passport check
|
|
2072
|
+
* @param checkName - the function name of the check
|
|
2073
|
+
* @returns the status of the check as a boolean
|
|
2074
|
+
*/
|
|
2075
|
+
declare const useIsPassportCheckEnabled: (checkName: TogglePassportCheck) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
2076
|
+
|
|
2077
|
+
declare const getParticipationScoreThresholdQueryKey: () => any[];
|
|
1645
2078
|
/**
|
|
1646
2079
|
* Hook to get the participation score threshold from the VeBetterPassport contract
|
|
1647
2080
|
* @returns the participation score threshold as a number
|
|
@@ -2077,6 +2510,77 @@ declare const getIsDomainProtectedQueryKey: (domain?: string) => any[];
|
|
|
2077
2510
|
*/
|
|
2078
2511
|
declare const useIsDomainProtected: (domain?: string, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
2079
2512
|
|
|
2513
|
+
declare const DomainSchema: z.ZodObject<{
|
|
2514
|
+
name: z.ZodString;
|
|
2515
|
+
}, "strip", z.ZodTypeAny, {
|
|
2516
|
+
name: string;
|
|
2517
|
+
}, {
|
|
2518
|
+
name: string;
|
|
2519
|
+
}>;
|
|
2520
|
+
declare const DomainsResponseSchema: z.ZodObject<{
|
|
2521
|
+
domains: z.ZodArray<z.ZodObject<{
|
|
2522
|
+
name: z.ZodString;
|
|
2523
|
+
}, "strip", z.ZodTypeAny, {
|
|
2524
|
+
name: string;
|
|
2525
|
+
}, {
|
|
2526
|
+
name: string;
|
|
2527
|
+
}>, "many">;
|
|
2528
|
+
}, "strip", z.ZodTypeAny, {
|
|
2529
|
+
domains: {
|
|
2530
|
+
name: string;
|
|
2531
|
+
}[];
|
|
2532
|
+
}, {
|
|
2533
|
+
domains: {
|
|
2534
|
+
name: string;
|
|
2535
|
+
}[];
|
|
2536
|
+
}>;
|
|
2537
|
+
type Domain = z.infer<typeof DomainSchema>;
|
|
2538
|
+
type DomainsResponse = z.infer<typeof DomainsResponseSchema>;
|
|
2539
|
+
/**
|
|
2540
|
+
* Fetches all domains owned by an address
|
|
2541
|
+
* @param networkType The network type
|
|
2542
|
+
* @param address The owner's address
|
|
2543
|
+
* @param parentDomain The parent domain (e.g., "veworld.vet")
|
|
2544
|
+
* @returns The domains owned by the address
|
|
2545
|
+
*/
|
|
2546
|
+
declare const getDomainsOfAddress: (networkType: NETWORK_TYPE, address?: string, parentDomain?: string) => Promise<DomainsResponse>;
|
|
2547
|
+
declare const getDomainsOfAddressQueryKey: (address?: string, parentDomain?: string) => (string | undefined)[];
|
|
2548
|
+
/**
|
|
2549
|
+
* Hook to fetch all domains owned by an address
|
|
2550
|
+
* @param address The owner's address
|
|
2551
|
+
* @param parentDomain The parent domain (e.g., "veworld.vet")
|
|
2552
|
+
* @returns The domains owned by the address
|
|
2553
|
+
*/
|
|
2554
|
+
declare const useGetDomainsOfAddress: (address?: string, parentDomain?: string) => _tanstack_react_query.UseQueryResult<{
|
|
2555
|
+
domains: {
|
|
2556
|
+
name: string;
|
|
2557
|
+
}[];
|
|
2558
|
+
}, Error>;
|
|
2559
|
+
|
|
2560
|
+
/**
|
|
2561
|
+
* Fetches the avatar for a given VET domain name
|
|
2562
|
+
* @param networkType - The network type ('main' or 'test')
|
|
2563
|
+
* @param nodeUrl - The node URL
|
|
2564
|
+
* @param name - The VET domain name
|
|
2565
|
+
* @returns The avatar URL from the response
|
|
2566
|
+
*/
|
|
2567
|
+
declare const getAvatar: (networkType: NETWORK_TYPE, nodeUrl: string, name: string) => Promise<string | null>;
|
|
2568
|
+
declare const getAvatarQueryKey: (name: string) => string[];
|
|
2569
|
+
/**
|
|
2570
|
+
* Hook to fetch the avatar URL for a VET domain name
|
|
2571
|
+
* @param name - The VET domain name
|
|
2572
|
+
* @returns The resolved avatar URL
|
|
2573
|
+
*/
|
|
2574
|
+
declare const useGetAvatar: (name?: string) => _tanstack_react_query.UseQueryResult<string | null, Error>;
|
|
2575
|
+
|
|
2576
|
+
type UseUpdateAvatarRecordProps = {
|
|
2577
|
+
onSuccess?: () => void;
|
|
2578
|
+
onError?: () => void;
|
|
2579
|
+
};
|
|
2580
|
+
declare const useUpdateAvatarRecord: ({ onSuccess, onError, }: UseUpdateAvatarRecordProps) => {
|
|
2581
|
+
updateAvatar: (domain: string, ipfsUri: string) => Promise<void>;
|
|
2582
|
+
};
|
|
2583
|
+
|
|
2080
2584
|
interface SmartAccountReturnType {
|
|
2081
2585
|
address: string | undefined;
|
|
2082
2586
|
isDeployed: boolean;
|
|
@@ -2121,9 +2625,6 @@ type UseWalletReturnType = {
|
|
|
2121
2625
|
account: Wallet;
|
|
2122
2626
|
connectedWallet: Wallet;
|
|
2123
2627
|
smartAccount: SmartAccount;
|
|
2124
|
-
dappKitWallet?: Wallet;
|
|
2125
|
-
embeddedWallet?: Wallet;
|
|
2126
|
-
crossAppWallet?: Wallet;
|
|
2127
2628
|
privyUser: User | null;
|
|
2128
2629
|
connection: {
|
|
2129
2630
|
isConnected: boolean;
|
|
@@ -2199,6 +2700,39 @@ declare const getIpfsMetadataQueryKey: (networkType: NETWORK_TYPE, ipfsUri?: str
|
|
|
2199
2700
|
*/
|
|
2200
2701
|
declare const useIpfsMetadata: <T>(ipfsUri?: string, parseJson?: boolean) => _tanstack_react_query.UseQueryResult<T, Error>;
|
|
2201
2702
|
|
|
2703
|
+
interface IpfsImage {
|
|
2704
|
+
image: string;
|
|
2705
|
+
mime: string;
|
|
2706
|
+
mediaType: NFTMediaType;
|
|
2707
|
+
}
|
|
2708
|
+
declare const MAX_IMAGE_SIZE: number;
|
|
2709
|
+
/**
|
|
2710
|
+
* Fetches NFT media from IPFS
|
|
2711
|
+
* @param networkType - The network type
|
|
2712
|
+
* @param uri - The IPFS URI of the NFT media
|
|
2713
|
+
* @returns The NFT media
|
|
2714
|
+
*/
|
|
2715
|
+
declare const getIpfsImage: (networkType: NETWORK_TYPE, uri?: string) => Promise<IpfsImage>;
|
|
2716
|
+
/**
|
|
2717
|
+
* @param networkType - The network type
|
|
2718
|
+
* @param imageIpfsUri - The IPFS URI of the NFT media
|
|
2719
|
+
* @returns The NFT media
|
|
2720
|
+
*/
|
|
2721
|
+
declare const getIpfsImageQueryKey: (networkType: NETWORK_TYPE, imageIpfsUri?: null | string) => (string | null | undefined)[];
|
|
2722
|
+
/**
|
|
2723
|
+
* Hook to fetch NFT media from IPFS
|
|
2724
|
+
* @param imageIpfsUri - The IPFS URI of the NFT media
|
|
2725
|
+
* @returns The NFT media
|
|
2726
|
+
*/
|
|
2727
|
+
declare const useIpfsImage: (imageIpfsUri?: null | string) => _tanstack_react_query.UseQueryResult<IpfsImage, Error>;
|
|
2728
|
+
/**
|
|
2729
|
+
* Custom hook to fetch a list of IPFS images.
|
|
2730
|
+
*
|
|
2731
|
+
* @param imageIpfsUriList - An array of IPFS URIs for the images.
|
|
2732
|
+
* @returns An array of queries for each IPFS image URI.
|
|
2733
|
+
*/
|
|
2734
|
+
declare const useIpfsImageList: (imageIpfsUriList: string[]) => _tanstack_react_query.UseQueryResult<IpfsImage, Error>[];
|
|
2735
|
+
|
|
2202
2736
|
/**
|
|
2203
2737
|
* Fetches metadatas from IPFS for given URIs
|
|
2204
2738
|
* @param ipfsUris - The IPFS URIs
|
|
@@ -2206,6 +2740,46 @@ declare const useIpfsMetadata: <T>(ipfsUri?: string, parseJson?: boolean) => _ta
|
|
|
2206
2740
|
*/
|
|
2207
2741
|
declare const useIpfsMetadatas: <T>(ipfsUris: string[], parseJson?: boolean) => _tanstack_react_query.UseQueryResult<T, Error>[];
|
|
2208
2742
|
|
|
2743
|
+
declare const imageCompressionOptions: Options;
|
|
2744
|
+
declare const compressImages: (images: UploadedImage[]) => Promise<File[]>;
|
|
2745
|
+
type Props$1 = {
|
|
2746
|
+
compressImages?: boolean;
|
|
2747
|
+
defaultImages?: UploadedImage[];
|
|
2748
|
+
};
|
|
2749
|
+
/**
|
|
2750
|
+
* Hook to handle image uploads and compressions in a dropzone
|
|
2751
|
+
* @param param0 compressImages: boolean to indicate if the images should be compressed (default: true)
|
|
2752
|
+
* @returns uploadedImages: array of uploaded images, setUploadedImages: function to set the uploaded images, onDrop: function to handle the drop event
|
|
2753
|
+
*/
|
|
2754
|
+
type UploadedImage = {
|
|
2755
|
+
file: File;
|
|
2756
|
+
image: string;
|
|
2757
|
+
};
|
|
2758
|
+
declare const useUploadImages: ({ compressImages, defaultImages }: Props$1) => {
|
|
2759
|
+
uploadedImages: UploadedImage[];
|
|
2760
|
+
setUploadedImages: React$1.Dispatch<React$1.SetStateAction<UploadedImage[]>>;
|
|
2761
|
+
onUpload: (acceptedFiles: File[], keepCurrent?: boolean) => Promise<void>;
|
|
2762
|
+
onRemove: (index: number) => void;
|
|
2763
|
+
invalidDateError: number[];
|
|
2764
|
+
};
|
|
2765
|
+
|
|
2766
|
+
type Props = {
|
|
2767
|
+
compressImage?: boolean;
|
|
2768
|
+
defaultImage?: UploadedImage;
|
|
2769
|
+
};
|
|
2770
|
+
/**
|
|
2771
|
+
* Hook to handle image uploads and compressions in a dropzone
|
|
2772
|
+
* @param param0 compressImags: boolean to indicate if the image should be compressed (default: true)
|
|
2773
|
+
* @param param1 defaultImage: default image to be displayed
|
|
2774
|
+
* @returns uploaded image, setUploadedImage: function to set the uploaded image, onDrop: function to handle the drop event
|
|
2775
|
+
*/
|
|
2776
|
+
declare const useSingleImageUpload: ({ compressImage, defaultImage, }: Props) => {
|
|
2777
|
+
uploadedImage: UploadedImage | undefined;
|
|
2778
|
+
setUploadedImage: React$1.Dispatch<React$1.SetStateAction<UploadedImage | undefined>>;
|
|
2779
|
+
onUpload: (acceptedFile: File) => Promise<UploadedImage>;
|
|
2780
|
+
onRemove: () => void;
|
|
2781
|
+
};
|
|
2782
|
+
|
|
2209
2783
|
declare const currentBlockQueryKey: () => string[];
|
|
2210
2784
|
/**
|
|
2211
2785
|
* Fetches the current block from the blockchain. The block is refetched every 10 seconds.
|
|
@@ -2274,6 +2848,39 @@ declare const useTxReceipt: (txId?: string, blockTimeout?: number) => {
|
|
|
2274
2848
|
isLoading: boolean;
|
|
2275
2849
|
};
|
|
2276
2850
|
|
|
2851
|
+
/**
|
|
2852
|
+
* Fetches NFT image from IPFS
|
|
2853
|
+
* @param fetchNFT - Whether to fetch the NFT
|
|
2854
|
+
* @returns The NFT image
|
|
2855
|
+
*/
|
|
2856
|
+
type NFTMetadata = {
|
|
2857
|
+
name: string;
|
|
2858
|
+
description: string;
|
|
2859
|
+
image: string;
|
|
2860
|
+
attributes: {
|
|
2861
|
+
trait_type: string;
|
|
2862
|
+
value: string;
|
|
2863
|
+
}[];
|
|
2864
|
+
};
|
|
2865
|
+
declare const useNFTImage: (address?: string) => {
|
|
2866
|
+
imageData: IpfsImage | undefined;
|
|
2867
|
+
imageMetadata: NFTMetadata | undefined;
|
|
2868
|
+
tokenID: string | undefined;
|
|
2869
|
+
isLoading: boolean;
|
|
2870
|
+
isError: boolean;
|
|
2871
|
+
error: Error | null;
|
|
2872
|
+
};
|
|
2873
|
+
|
|
2874
|
+
declare const getNFTMetadataUri: (networkType: NETWORK_TYPE, thor: Connex.Thor, tokenID: null | string) => Promise<string>;
|
|
2875
|
+
declare const getNFTMetadataUriQueryKey: (tokenID: null | string) => (string | null)[];
|
|
2876
|
+
/**
|
|
2877
|
+
* Get the metadata URI for an NFT
|
|
2878
|
+
*
|
|
2879
|
+
* @param tokenID the token ID to get the metadata URI for
|
|
2880
|
+
* @returns the metadata URI for the token
|
|
2881
|
+
*/
|
|
2882
|
+
declare const useNFTMetadataUri: (tokenID: null | string) => _tanstack_react_query.UseQueryResult<string, Error>;
|
|
2883
|
+
|
|
2277
2884
|
declare const useConnectModal: () => {
|
|
2278
2885
|
open: () => void;
|
|
2279
2886
|
close: () => void;
|
|
@@ -2373,6 +2980,24 @@ declare const FAQModalProvider: ({ children }: {
|
|
|
2373
2980
|
children: ReactNode;
|
|
2374
2981
|
}) => react_jsx_runtime.JSX.Element;
|
|
2375
2982
|
|
|
2983
|
+
declare const useAccountCustomizationModal: () => {
|
|
2984
|
+
open: () => void;
|
|
2985
|
+
close: () => void;
|
|
2986
|
+
isOpen: boolean;
|
|
2987
|
+
};
|
|
2988
|
+
declare const AccountCustomizationModalProvider: ({ children, }: {
|
|
2989
|
+
children: ReactNode;
|
|
2990
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2991
|
+
|
|
2992
|
+
declare const useReceiveModal: () => {
|
|
2993
|
+
open: () => void;
|
|
2994
|
+
close: () => void;
|
|
2995
|
+
isOpen: boolean;
|
|
2996
|
+
};
|
|
2997
|
+
declare const ReceiveModalProvider: ({ children }: {
|
|
2998
|
+
children: ReactNode;
|
|
2999
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3000
|
+
|
|
2376
3001
|
/**
|
|
2377
3002
|
* Props for the {@link useSendTransaction} hook
|
|
2378
3003
|
* @param signerAccountAddress the signer account to use
|
|
@@ -2582,4 +3207,4 @@ declare const useCrossAppConnectionCache: () => {
|
|
|
2582
3207
|
clearConnectionCache: () => void;
|
|
2583
3208
|
};
|
|
2584
3209
|
|
|
2585
|
-
export { APP_SECURITY_LEVELS, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AllocationVoteCastEvent, type AppConfig, type AppVotesGiven, AssetButton, AssetsSection, BalanceSection, BaseModal, ChooseNameContent, type ChooseNameContentProps, ChooseNameModalProvider, ChooseNameSearchContent, type ChooseNameSearchContentProps, ChooseNameSummaryContent, type ChooseNameSummaryContentProps, ConnectModal, type ConnectModalContentsTypes, ConnectModalProvider, type ConnectModalVariant, ConnectionButton, ConnectionSource, CrossAppConnectionCache, DappKitButton, EcosystemButton, EcosystemModal, type EcosystemShortcut, EmailLoginButton, EmbeddedWalletContent, EmbeddedWalletSettingsModalProvider, EnhancedClause, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, type GetCallKeyParams, type
|
|
3210
|
+
export { APP_SECURITY_LEVELS, AccountCustomizationContent, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, type AccountModalContentTypes, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, type AllocationRoundWithState, type AllocationVoteCastEvent, type AppConfig, type AppVotesGiven, AssetButton, AssetsSection, BalanceSection, BaseModal, ChooseNameContent, type ChooseNameContentProps, ChooseNameModalProvider, ChooseNameSearchContent, type ChooseNameSearchContentProps, ChooseNameSummaryContent, type ChooseNameSummaryContentProps, ConnectModal, type ConnectModalContentsTypes, ConnectModalProvider, type ConnectModalVariant, ConnectionButton, ConnectionSource, CrossAppConnectionCache, DappKitButton, type Domain, type DomainsResponse, EcosystemButton, EcosystemModal, type EcosystemShortcut, EmailLoginButton, EmbeddedWalletContent, EmbeddedWalletSettingsModalProvider, EnhancedClause, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, type GetCallKeyParams, type IpfsImage, LoginLoadingModal, MAX_IMAGE_SIZE, MainContent, ModalBackButton, ModalFAQButton, type MostVotedAppsInRoundReturnType, NFTMediaType, type NFTMetadata, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyAppInfo, PrivyButton, PrivyLoginMethod, PrivyWalletProvider, type PrivyWalletProviderContextType, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, type RoundCreated, type RoundReward, RoundState, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SmartAccount, type SmartAccountReturnType, SocialLoginButtons, StickyFooterContainer, StickyHeaderContainer, type SupportedToken, SwapTokenContent, type TokenBalance, TransactionModal, type TransactionModalProps, TransactionModalProvider, TransactionProgress, TransactionStatus, TransactionStatusErrorType, TransactionToast, TransactionToastProvider, type UnendorsedApp, type UploadedImage, type UseCallParams, type UseSendTransactionReturnValue, type UseWalletReturnType, type UserNode, type UserXNode, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VePassportUserStatus, type VechainKitProviderProps, VechainKitThemeProvider, VersionFooter, Wallet, WalletButton, type WalletButtonProps, type WalletDisplayVariant, WalletModalProvider, WalletSettingsContent, type XApp, type XAppMetadata, buildClaimRewardsTx, buildClaimRoundReward, compressImages, currentBlockQueryKey, fetchPrivyAppInfo, fetchVechainDomain, getAccountBalance, getAccountBalanceQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAllocationsRoundState, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getAvatar, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getConfig, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getDelegateeQueryKey, getDelegatorQueryKey, getDomainsOfAddress, getDomainsOfAddressQueryKey, 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, imageCompressionOptions, pollForReceipt, useAccountBalance, useAccountCustomizationModal, useAccountLinking, useAccountModal, useAllocationAmount, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppAdmin, useAppBalance, useAppExists, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBalances, useCall, useChooseNameModal, useClaimVeWorldSubdomain, useConnectModal, useContractVersion, useCrossAppConnectionCache, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useEcosystemShortcuts, useEmbeddedWalletSettingsModal, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useGMBaseUri, useGMbalance, useGetAvatar, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetDelegatee, useGetDelegator, useGetDomainsOfAddress, 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, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useNotificationsModal, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useReceiveModal, useRefreshBalances, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTokenModal, useSendTransaction, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenIdByAccount, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUpdateAvatarRecord, useUploadImages, 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 };
|