@vechain/vechain-kit 2.4.2 → 3.0.0-rc.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/dist/AccountModal-CK-qcPlQ.js +1 -0
- package/dist/AccountModal-ChuVFqPc.js +20 -0
- package/dist/AccountModal-ChuVFqPc.js.map +1 -0
- package/dist/AccountModal-DNK0IbiE.cjs +1 -0
- package/dist/AccountModal-DjAS4w6z.cjs +20 -0
- package/dist/AccountModal-DjAS4w6z.cjs.map +1 -0
- package/dist/BaseModal-CWAI9-Bi.js +2 -0
- package/dist/BaseModal-CWAI9-Bi.js.map +1 -0
- package/dist/BaseModal-yevRjczw.cjs +2 -0
- package/dist/BaseModal-yevRjczw.cjs.map +1 -0
- package/dist/ConnectModal-BXbiUwnz.js +1 -0
- package/dist/ConnectModal-C50EF9gE.js +2 -0
- package/dist/ConnectModal-C50EF9gE.js.map +1 -0
- package/dist/ConnectModal-CvkkVALe.cjs +1 -0
- package/dist/ConnectModal-DmIkWb1i.cjs +2 -0
- package/dist/ConnectModal-DmIkWb1i.cjs.map +1 -0
- package/dist/DisconnectConfirmContent-B4qahKqQ.cjs +2 -0
- package/dist/DisconnectConfirmContent-B4qahKqQ.cjs.map +1 -0
- package/dist/DisconnectConfirmContent-C9qLnI-m.js +2 -0
- package/dist/DisconnectConfirmContent-C9qLnI-m.js.map +1 -0
- package/dist/LegalDocumentsModal-5sNOrJI9.js +1 -0
- package/dist/LegalDocumentsModal-aWgfKwIL.js +2 -0
- package/dist/LegalDocumentsModal-aWgfKwIL.js.map +1 -0
- package/dist/LegalDocumentsModal-fnhM40y6.cjs +2 -0
- package/dist/LegalDocumentsModal-fnhM40y6.cjs.map +1 -0
- package/dist/LegalDocumentsModal-g54lP0U7.cjs +1 -0
- package/dist/PrivyCrossAppProvider-B6oIXeWL.js +2 -0
- package/dist/PrivyCrossAppProvider-B6oIXeWL.js.map +1 -0
- package/dist/PrivyCrossAppProvider-C6aL4Qor.cjs +1 -0
- package/dist/PrivyCrossAppProvider-Ccu2yH99.js +1 -0
- package/dist/PrivyCrossAppProvider-DSuzrbqs.cjs +2 -0
- package/dist/PrivyCrossAppProvider-DSuzrbqs.cjs.map +1 -0
- package/dist/PrivyWalletProvider-BkqWSj75.cjs +2 -0
- package/dist/PrivyWalletProvider-BkqWSj75.cjs.map +1 -0
- package/dist/PrivyWalletProvider-DToo_u0W.js +2 -0
- package/dist/PrivyWalletProvider-DToo_u0W.js.map +1 -0
- package/dist/ShareButtons-B92JZp47.js +2 -0
- package/dist/ShareButtons-B92JZp47.js.map +1 -0
- package/dist/ShareButtons-CRMNerbz.cjs +2 -0
- package/dist/ShareButtons-CRMNerbz.cjs.map +1 -0
- package/dist/UpgradeSmartAccountModal-BAzmVxeJ.js +2 -0
- package/dist/UpgradeSmartAccountModal-BAzmVxeJ.js.map +1 -0
- package/dist/UpgradeSmartAccountModal-BGjTzYAm.cjs +1 -0
- package/dist/UpgradeSmartAccountModal-CpZo27Uk.js +1 -0
- package/dist/UpgradeSmartAccountModal-IMcihO0d.cjs +2 -0
- package/dist/UpgradeSmartAccountModal-IMcihO0d.cjs.map +1 -0
- package/dist/VechainKitThemeProvider-BM5258oA.cjs +75 -0
- package/dist/VechainKitThemeProvider-BM5258oA.cjs.map +1 -0
- package/dist/VechainKitThemeProvider-Di9a04Es.js +75 -0
- package/dist/VechainKitThemeProvider-Di9a04Es.js.map +1 -0
- package/dist/assets/index.cjs +1 -1
- package/dist/assets/index.d.cts +1 -1
- package/dist/assets/{index.d.mts → index.d.ts} +1 -1
- package/dist/assets/index.js +1 -0
- package/dist/{assets-BL24r-Yp.mjs → assets-CXk1qRDd.js} +5 -5
- package/dist/assets-CXk1qRDd.js.map +1 -0
- package/dist/{assets-DNJsQD7_.cjs → assets-YPd7adzM.cjs} +7 -7
- package/dist/assets-YPd7adzM.cjs.map +1 -0
- package/dist/chunk-DjWAcSYV.cjs +1 -0
- package/dist/components/index.cjs +1 -0
- package/dist/components/index.d.cts +6 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +1 -0
- package/dist/components-QKLypcU1.cjs +2 -0
- package/dist/components-QKLypcU1.cjs.map +1 -0
- package/dist/components-k36uDisW.js +2 -0
- package/dist/components-k36uDisW.js.map +1 -0
- package/dist/hooks/index.cjs +1 -0
- package/dist/hooks/index.d.cts +6 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks-C8eXQYIN.cjs +8 -0
- package/dist/hooks-C8eXQYIN.cjs.map +1 -0
- package/dist/hooks-DuTew9oP.js +8 -0
- package/dist/hooks-DuTew9oP.js.map +1 -0
- package/dist/{index-CpRbZET6.d.mts → index-BGQS0a81.d.ts} +564 -1581
- package/dist/index-BGQS0a81.d.ts.map +1 -0
- package/dist/index-Bqw0Cz5n.d.cts +587 -0
- package/dist/index-Bqw0Cz5n.d.cts.map +1 -0
- package/dist/index-BugHmddr.d.ts +587 -0
- package/dist/index-BugHmddr.d.ts.map +1 -0
- package/dist/{index-D4rz985m.d.cts → index-C8wbz8af.d.cts} +561 -1578
- package/dist/index-C8wbz8af.d.cts.map +1 -0
- package/dist/{index-CWViOs1U.d.mts → index-COoeacay.d.ts} +5 -5
- package/dist/index-COoeacay.d.ts.map +1 -0
- package/dist/{index-u3CPquCV.d.cts → index-CmGg4iaS.d.cts} +4 -4
- package/dist/{index-CWViOs1U.d.mts.map → index-CmGg4iaS.d.cts.map} +1 -1
- package/dist/index-DI_IPiLX.d.ts +324 -0
- package/dist/index-DI_IPiLX.d.ts.map +1 -0
- package/dist/index-DVxlUr9t.d.cts +324 -0
- package/dist/index-DVxlUr9t.d.cts.map +1 -0
- package/dist/index.cjs +1 -221
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/dist/network-Cs9YqDJ1.d.cts +536 -0
- package/dist/network-Cs9YqDJ1.d.cts.map +1 -0
- package/dist/network-yA5VWcPq.d.ts +536 -0
- package/dist/network-yA5VWcPq.d.ts.map +1 -0
- package/dist/providers/index.cjs +1 -0
- package/dist/providers/index.d.cts +3 -0
- package/dist/providers/index.d.ts +3 -0
- package/dist/providers/index.js +1 -0
- package/dist/providers-DImdr6Kk.cjs +124 -0
- package/dist/providers-DImdr6Kk.cjs.map +1 -0
- package/dist/providers-kA0lotaM.js +124 -0
- package/dist/providers-kA0lotaM.js.map +1 -0
- package/dist/ssrUtils-C_5ZY26i.cjs +2 -0
- package/dist/ssrUtils-C_5ZY26i.cjs.map +1 -0
- package/dist/ssrUtils-DSwxhTtm.js +2 -0
- package/dist/ssrUtils-DSwxhTtm.js.map +1 -0
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.cts +2 -2
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils-B2Eg9TD3.js +2 -0
- package/dist/utils-B2Eg9TD3.js.map +1 -0
- package/dist/utils-jW13BhAb.cjs +2 -0
- package/dist/utils-jW13BhAb.cjs.map +1 -0
- package/package.json +46 -9
- package/dist/assets/index.mjs +0 -1
- package/dist/assets-BL24r-Yp.mjs.map +0 -1
- package/dist/assets-DNJsQD7_.cjs.map +0 -1
- package/dist/index-CpRbZET6.d.mts.map +0 -1
- package/dist/index-D4rz985m.d.cts.map +0 -1
- package/dist/index-u3CPquCV.d.cts.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.mts +0 -3
- package/dist/index.mjs +0 -221
- package/dist/index.mjs.map +0 -1
- package/dist/utils/index.d.mts +0 -3
- package/dist/utils/index.mjs +0 -1
- package/dist/utils-BQ9mZctf.cjs +0 -2
- package/dist/utils-BQ9mZctf.cjs.map +0 -1
- package/dist/utils-BxZj2QIg.mjs +0 -2
- package/dist/utils-BxZj2QIg.mjs.map +0 -1
|
@@ -1,718 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { C as TextRecords, D as ConnectModalContentsTypes, F as CrossAppConnectionCache, G as SmartAccount, H as NFTMediaType, I as ENSRecords, J as TransactionStatusErrorType, K as TokenBalance, L as EnhancedClause, M as CURRENCY, P as ConnectionSource, R as ExecuteBatchWithAuthorizationSignData, T as AllowedCategories, U as PrivyAppInfo, X as Wallet, _ as GasTokenInfo, b as GasTokenType, c as DepositAccount, j as UpgradeSmartAccountModalStyle, n as Network, q as TransactionStatus, r as EnrichedLegalDocument, t as NETWORK_TYPE, u as EstimationResponse, v as GasTokenPreferences, w as AccountModalContentTypes$1, x as TransactionSpeed, z as ExecuteWithAuthorizationSignData } from "./network-yA5VWcPq.js";
|
|
2
|
+
import { T as VeChainKitConfig, a as AccountModalOptions } from "./index-BugHmddr.js";
|
|
3
|
+
import { f as MultipleClausesCallParameters, m as ViewFunctionResult, p as MultipleClausesCallReturnType } from "./index-DI_IPiLX.js";
|
|
4
|
+
import * as react8 from "react";
|
|
3
5
|
import React$1, { ElementType, ReactElement, ReactNode } from "react";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
+
import { ButtonProps, IconButtonProps, ImageProps, PropsOf, StackProps, VStack } from "@chakra-ui/react";
|
|
7
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
6
8
|
import * as _vechain_sdk_core0 from "@vechain/sdk-core";
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import { WalletButton as DAppKitWalletButton, WalletConnectOptions, useThor as useThor$1, useWallet as useDAppKitWallet, useWalletModal as useDAppKitWalletModal } from "@vechain/dapp-kit-react";
|
|
10
|
-
import * as _tanstack_react_query21 from "@tanstack/react-query";
|
|
9
|
+
import { CertificateData, Clause, Revision, Transaction, TransactionClause } from "@vechain/sdk-core";
|
|
10
|
+
import * as _tanstack_react_query7 from "@tanstack/react-query";
|
|
11
11
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
12
|
+
import * as wagmi_query0 from "wagmi/query";
|
|
13
|
+
import { OAuthProviderType, SignTypedDataParams, User, useMfaEnrollment as useMfaEnrollment$1, usePrivy as usePrivy$1, useSetWalletRecovery } from "@privy-io/react-auth";
|
|
14
|
+
import * as _vechain_sdk_network0 from "@vechain/sdk-network";
|
|
15
|
+
import { EventLogs, FilterEventLogsOptions, ThorClient, ThorClient as ThorClient$1, TransactionReceipt } from "@vechain/sdk-network";
|
|
16
|
+
import { WalletButton as DAppKitWalletButton, useThor as useThor$1, useWallet as useDAppKitWallet, useWalletModal as useDAppKitWalletModal } from "@vechain/dapp-kit-react";
|
|
17
|
+
import * as wagmi0 from "wagmi";
|
|
18
|
+
import { useAccount } from "wagmi";
|
|
19
|
+
import { Abi, ContractEventName, ContractFunctionParameters, decodeEventLog } from "viem";
|
|
12
20
|
import { CustomTokenInfo } from "@vechain/contract-getters";
|
|
13
|
-
import { Abi, ContractEventName, ContractFunctionParameters, MulticallParameters, MulticallReturnType, decodeEventLog } from "viem";
|
|
14
21
|
import { z } from "zod";
|
|
15
22
|
import { Options } from "browser-image-compression";
|
|
16
23
|
import { UseFormRegister } from "react-hook-form";
|
|
17
|
-
import * as _vechain_sdk_network2 from "@vechain/sdk-network";
|
|
18
|
-
import { CompressedBlockDetail, EventLogs, FilterEventLogsOptions, ThorClient, ThorClient as ThorClient$1, TransactionReceipt } from "@vechain/sdk-network";
|
|
19
|
-
import { LogLevel, WalletSource } from "@vechain/dapp-kit";
|
|
20
|
-
import { CustomizedStyle, I18n, SourceInfo } from "@vechain/dapp-kit-ui";
|
|
21
24
|
import { IconType } from "react-icons";
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
25
|
+
import { SignTypedDataParameters } from "@wagmi/core";
|
|
26
|
+
import { VeChainSignerDAppKit } from "@vechain/dapp-kit";
|
|
27
|
+
import { AbiParametersToPrimitiveTypes, ExtractAbiFunctionNames } from "abitype";
|
|
24
28
|
|
|
25
|
-
//#region src/config/network.d.ts
|
|
26
|
-
/**
|
|
27
|
-
* The type of network that we are connected to (indentified by the genesis block)
|
|
28
|
-
* */
|
|
29
|
-
type NETWORK_TYPE = 'main' | 'test' | 'solo';
|
|
30
|
-
/**
|
|
31
|
-
* A model for the VechainThor network that we are connected to
|
|
32
|
-
* @field `id` - Unique ID for this network
|
|
33
|
-
* @field `defaultNet` - If the network is a default network
|
|
34
|
-
* @field `name` - A name for this network
|
|
35
|
-
* @field `type` - What type of network is it? `main, test, solo or custom`
|
|
36
|
-
* @field `urls` - A list of URLs for this network
|
|
37
|
-
* @field `currentUrl` - The current URL that we are connected to
|
|
38
|
-
* @field `explorerUrl` - The explorer URL for this network
|
|
39
|
-
* @field `genesis` - The genesis block for the network
|
|
40
|
-
* @field `blockTime` - The time it takes to mine a block in milliseconds
|
|
41
|
-
*/
|
|
42
|
-
type Network = {
|
|
43
|
-
id: string;
|
|
44
|
-
defaultNet: boolean;
|
|
45
|
-
name: string;
|
|
46
|
-
type: NETWORK_TYPE;
|
|
47
|
-
urls: string[];
|
|
48
|
-
explorerUrl?: string;
|
|
49
|
-
genesis: typeof genesises.main;
|
|
50
|
-
blockTime: number;
|
|
51
|
-
};
|
|
52
|
-
declare const genesises: {
|
|
53
|
-
readonly main: CompressedBlockDetail;
|
|
54
|
-
readonly test: CompressedBlockDetail;
|
|
55
|
-
readonly solo: CompressedBlockDetail;
|
|
56
|
-
which(gid: string): "main" | "test" | "solo" | undefined;
|
|
57
|
-
};
|
|
58
|
-
//#endregion
|
|
59
|
-
//#region src/types/types.d.ts
|
|
60
|
-
type TokenBalance = {
|
|
61
|
-
original: string;
|
|
62
|
-
scaled: string;
|
|
63
|
-
formatted: string;
|
|
64
|
-
};
|
|
65
|
-
type ENSRecords = {
|
|
66
|
-
display?: string;
|
|
67
|
-
description?: string;
|
|
68
|
-
email?: string;
|
|
69
|
-
url?: string;
|
|
70
|
-
header?: string;
|
|
71
|
-
notice?: string;
|
|
72
|
-
location?: string;
|
|
73
|
-
phone?: string;
|
|
74
|
-
[key: string]: string | undefined;
|
|
75
|
-
};
|
|
76
|
-
type Wallet = {
|
|
77
|
-
address: string;
|
|
78
|
-
domain?: string;
|
|
79
|
-
image?: string;
|
|
80
|
-
isLoadingMetadata?: boolean;
|
|
81
|
-
metadata?: ENSRecords;
|
|
82
|
-
} | null;
|
|
83
|
-
type SmartAccount = Wallet & {
|
|
84
|
-
isDeployed: boolean;
|
|
85
|
-
isActive: boolean;
|
|
86
|
-
version: number | null;
|
|
87
|
-
};
|
|
88
|
-
type ConnectionSource = {
|
|
89
|
-
type: 'privy' | 'wallet' | 'privy-cross-app';
|
|
90
|
-
displayName: string;
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* Data that the Privy user must sign in order to execute a transaction
|
|
94
|
-
* by authorizing the Smart Account contract
|
|
95
|
-
*/
|
|
96
|
-
type ExecuteWithAuthorizationSignData = {
|
|
97
|
-
domain: {
|
|
98
|
-
name: string;
|
|
99
|
-
version: string;
|
|
100
|
-
chainId: number;
|
|
101
|
-
verifyingContract: string;
|
|
102
|
-
};
|
|
103
|
-
types: {
|
|
104
|
-
ExecuteWithAuthorization: {
|
|
105
|
-
name: string;
|
|
106
|
-
type: string;
|
|
107
|
-
}[];
|
|
108
|
-
EIP712Domain: {
|
|
109
|
-
name: string;
|
|
110
|
-
type: string;
|
|
111
|
-
}[];
|
|
112
|
-
};
|
|
113
|
-
primaryType: string;
|
|
114
|
-
message: {
|
|
115
|
-
validAfter: number;
|
|
116
|
-
validBefore: number;
|
|
117
|
-
to: string | null | undefined;
|
|
118
|
-
value: string;
|
|
119
|
-
data: string;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
type ExecuteBatchWithAuthorizationSignData = {
|
|
123
|
-
domain: {
|
|
124
|
-
name: string;
|
|
125
|
-
version: string;
|
|
126
|
-
chainId: number;
|
|
127
|
-
verifyingContract: string;
|
|
128
|
-
};
|
|
129
|
-
types: {
|
|
130
|
-
ExecuteBatchWithAuthorization: {
|
|
131
|
-
name: string;
|
|
132
|
-
type: string;
|
|
133
|
-
}[];
|
|
134
|
-
EIP712Domain: {
|
|
135
|
-
name: string;
|
|
136
|
-
type: string;
|
|
137
|
-
}[];
|
|
138
|
-
};
|
|
139
|
-
primaryType: string;
|
|
140
|
-
message: {
|
|
141
|
-
to: string[] | null | undefined;
|
|
142
|
-
value: string[] | null | undefined;
|
|
143
|
-
data: string[] | null | undefined;
|
|
144
|
-
validAfter: number;
|
|
145
|
-
validBefore: number;
|
|
146
|
-
nonce: string;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
/**
|
|
150
|
-
* ready: the user has not clicked on the button yet
|
|
151
|
-
* pending: the user has clicked on the button and we're waiting for the transaction to be sent
|
|
152
|
-
* waitingConfirmation: the transaction has been sent and we're waiting for the transaction to be confirmed by the chain
|
|
153
|
-
* success: the transaction has been confirmed by the chain
|
|
154
|
-
* error: the transaction has failed
|
|
155
|
-
* unknown: the transaction receipt has failed to load
|
|
156
|
-
*/
|
|
157
|
-
type TransactionStatus = 'ready' | 'pending' | 'waitingConfirmation' | 'success' | 'error' | 'unknown';
|
|
158
|
-
type TransactionStatusErrorType = {
|
|
159
|
-
type: 'SendTransactionError' | 'TxReceiptError' | 'RevertReasonError' | 'UserRejectedError';
|
|
160
|
-
reason?: string;
|
|
161
|
-
};
|
|
162
|
-
/**
|
|
163
|
-
* An enhanced clause with a comment and an abi
|
|
164
|
-
* @param comment a comment to add to the clause
|
|
165
|
-
* @param abi the abi of the contract to call
|
|
166
|
-
*/
|
|
167
|
-
type EnhancedClause = TransactionClause;
|
|
168
|
-
type PrivyAppInfo = {
|
|
169
|
-
id: string;
|
|
170
|
-
name: string;
|
|
171
|
-
logo_url: string;
|
|
172
|
-
icon_url: string | null;
|
|
173
|
-
terms_and_conditions_url: string;
|
|
174
|
-
privacy_policy_url: string;
|
|
175
|
-
theme: string;
|
|
176
|
-
accent_color: string;
|
|
177
|
-
wallet_auth: boolean;
|
|
178
|
-
email_auth: boolean;
|
|
179
|
-
google_oauth: boolean;
|
|
180
|
-
twitter_oauth: boolean;
|
|
181
|
-
url: string;
|
|
182
|
-
website?: string;
|
|
183
|
-
};
|
|
184
|
-
type PrivyLoginMethod = LoginMethodOrderOption;
|
|
185
|
-
interface CrossAppConnectionCache {
|
|
186
|
-
timestamp: number;
|
|
187
|
-
ecosystemApp: {
|
|
188
|
-
name: string;
|
|
189
|
-
logoUrl?: string;
|
|
190
|
-
appId: string;
|
|
191
|
-
website?: string;
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
declare enum NFTMediaType {
|
|
195
|
-
IMAGE = "image",
|
|
196
|
-
VIDEO = "video",
|
|
197
|
-
UNKNOWN = "unknown",
|
|
198
|
-
TEXT = "text",
|
|
199
|
-
}
|
|
200
|
-
declare enum VePassportUserStatus {
|
|
201
|
-
NONE = "NONE",
|
|
202
|
-
WHITELIST = "WHITELIST",
|
|
203
|
-
BLACKLIST = "BLACKLIST",
|
|
204
|
-
}
|
|
205
|
-
type CURRENCY = 'usd' | 'gbp' | 'eur';
|
|
206
|
-
declare const CURRENCY_SYMBOLS: Record<CURRENCY, string>;
|
|
207
|
-
//#endregion
|
|
208
|
-
//#region src/types/ensTextRecords.d.ts
|
|
209
|
-
declare const ENS_TEXT_RECORDS: readonly ["display", "avatar", "description", "keywords", "email", "url", "header", "notice", "location", "phone", "com.x"];
|
|
210
|
-
type TextRecords = { [K in (typeof ENS_TEXT_RECORDS)[number]]?: string };
|
|
211
|
-
//#endregion
|
|
212
|
-
//#region src/types/gasToken.d.ts
|
|
213
|
-
type GasTokenType = 'B3TR' | 'VET' | 'VTHO';
|
|
214
|
-
type TransactionSpeed = 'regular' | 'medium' | 'high';
|
|
215
|
-
interface GasTokenInfo {
|
|
216
|
-
type: GasTokenType;
|
|
217
|
-
name: string;
|
|
218
|
-
symbol: string;
|
|
219
|
-
address?: string;
|
|
220
|
-
description: string;
|
|
221
|
-
}
|
|
222
|
-
interface GasTokenPreferences {
|
|
223
|
-
tokenPriority: GasTokenType[];
|
|
224
|
-
availableGasTokens: GasTokenType[];
|
|
225
|
-
excludedTokens: GasTokenType[];
|
|
226
|
-
alwaysConfirm: boolean;
|
|
227
|
-
gasTokenToUse: GasTokenType;
|
|
228
|
-
}
|
|
229
|
-
interface GasTokenEstimate {
|
|
230
|
-
token: GasTokenType;
|
|
231
|
-
cost: string;
|
|
232
|
-
available: boolean;
|
|
233
|
-
balance?: string;
|
|
234
|
-
}
|
|
235
|
-
interface GasTokenSelection {
|
|
236
|
-
selectedToken: GasTokenType;
|
|
237
|
-
cost: string;
|
|
238
|
-
hasServiceFee: boolean;
|
|
239
|
-
}
|
|
240
|
-
//#endregion
|
|
241
|
-
//#region src/types/gasEstimation.d.ts
|
|
242
|
-
interface VthoPerGasAtSpeed {
|
|
243
|
-
regular: number;
|
|
244
|
-
medium: number;
|
|
245
|
-
high: number;
|
|
246
|
-
legacy: number;
|
|
247
|
-
}
|
|
248
|
-
interface EstimatedGas {
|
|
249
|
-
vtho: number;
|
|
250
|
-
vet: number;
|
|
251
|
-
b3tr: number;
|
|
252
|
-
smartAccount: number;
|
|
253
|
-
}
|
|
254
|
-
interface Rate {
|
|
255
|
-
vtho: number;
|
|
256
|
-
vet: number;
|
|
257
|
-
b3tr: number;
|
|
258
|
-
}
|
|
259
|
-
interface CostLevel {
|
|
260
|
-
vtho: number;
|
|
261
|
-
vet: number;
|
|
262
|
-
b3tr: number;
|
|
263
|
-
vetWithSmartAccount: number;
|
|
264
|
-
b3trWithSmartAccount: number;
|
|
265
|
-
}
|
|
266
|
-
interface TransactionCost {
|
|
267
|
-
regular: CostLevel;
|
|
268
|
-
medium: CostLevel;
|
|
269
|
-
high: CostLevel;
|
|
270
|
-
legacy: CostLevel;
|
|
271
|
-
}
|
|
272
|
-
interface EstimationResponse {
|
|
273
|
-
vthoPerGasAtSpeed?: number;
|
|
274
|
-
estimatedGas?: number;
|
|
275
|
-
rate?: number;
|
|
276
|
-
transactionCost?: number;
|
|
277
|
-
serviceFee?: number;
|
|
278
|
-
totalGasUsed?: number;
|
|
279
|
-
}
|
|
280
|
-
interface DepositAccount {
|
|
281
|
-
depositAccount: string;
|
|
282
|
-
}
|
|
283
|
-
declare function calculateTotalCost(baseCost: number, serviceFeeRate: number): number;
|
|
284
|
-
declare function formatGasCost(amount: number, decimals?: number): string;
|
|
285
|
-
//#endregion
|
|
286
|
-
//#region src/types/index.d.ts
|
|
287
|
-
declare enum LegalDocumentType {
|
|
288
|
-
TERMS = "terms",
|
|
289
|
-
PRIVACY = "privacy",
|
|
290
|
-
COOKIES = "cookies",
|
|
291
|
-
}
|
|
292
|
-
declare enum LegalDocumentSource {
|
|
293
|
-
VECHAIN_KIT = "vechain-kit",
|
|
294
|
-
APPLICATION = "application",
|
|
295
|
-
}
|
|
296
|
-
type EnrichedLegalDocument = LegalDocument & {
|
|
297
|
-
id: string;
|
|
298
|
-
documentType: LegalDocumentType;
|
|
299
|
-
documentSource: LegalDocumentSource;
|
|
300
|
-
};
|
|
301
|
-
type LegalDocumentAgreement = EnrichedLegalDocument & {
|
|
302
|
-
walletAddress: string;
|
|
303
|
-
timestamp: number;
|
|
304
|
-
};
|
|
305
|
-
//#endregion
|
|
306
|
-
//#region src/theme/tokens.d.ts
|
|
307
|
-
/**
|
|
308
|
-
* Theme token system for VeChain Kit
|
|
309
|
-
* Provides a single source of truth for all styling values
|
|
310
|
-
*/
|
|
311
|
-
/**
|
|
312
|
-
* Complete internal token type - all fields required
|
|
313
|
-
*/
|
|
314
|
-
interface ThemeTokens {
|
|
315
|
-
colors: {
|
|
316
|
-
background: {
|
|
317
|
-
modal: string;
|
|
318
|
-
overlay: string;
|
|
319
|
-
card: string;
|
|
320
|
-
cardElevated: string;
|
|
321
|
-
stickyHeader: string;
|
|
322
|
-
};
|
|
323
|
-
text: {
|
|
324
|
-
primary: string;
|
|
325
|
-
secondary: string;
|
|
326
|
-
tertiary: string;
|
|
327
|
-
disabled: string;
|
|
328
|
-
};
|
|
329
|
-
border: {
|
|
330
|
-
default: string;
|
|
331
|
-
hover: string;
|
|
332
|
-
focus: string;
|
|
333
|
-
button: string;
|
|
334
|
-
modal: string;
|
|
335
|
-
};
|
|
336
|
-
success: string;
|
|
337
|
-
error: string;
|
|
338
|
-
warning: string;
|
|
339
|
-
};
|
|
340
|
-
buttons: {
|
|
341
|
-
button: {
|
|
342
|
-
bg: string;
|
|
343
|
-
color: string;
|
|
344
|
-
border: string;
|
|
345
|
-
hoverBg?: string;
|
|
346
|
-
backdropFilter?: string;
|
|
347
|
-
rounded?: string | number;
|
|
348
|
-
};
|
|
349
|
-
primaryButton: {
|
|
350
|
-
bg: string;
|
|
351
|
-
color: string;
|
|
352
|
-
border: string;
|
|
353
|
-
hoverBg?: string;
|
|
354
|
-
backdropFilter?: string;
|
|
355
|
-
rounded?: string | number;
|
|
356
|
-
};
|
|
357
|
-
tertiaryButton: {
|
|
358
|
-
bg: string;
|
|
359
|
-
color: string;
|
|
360
|
-
border: string;
|
|
361
|
-
backdropFilter?: string;
|
|
362
|
-
rounded?: string | number;
|
|
363
|
-
};
|
|
364
|
-
loginButton: {
|
|
365
|
-
bg: string;
|
|
366
|
-
color: string;
|
|
367
|
-
border: string;
|
|
368
|
-
backdropFilter?: string;
|
|
369
|
-
rounded?: string | number;
|
|
370
|
-
};
|
|
371
|
-
};
|
|
372
|
-
effects: {
|
|
373
|
-
backdropFilter: {
|
|
374
|
-
modal: string;
|
|
375
|
-
overlay: string;
|
|
376
|
-
stickyHeader: string;
|
|
377
|
-
};
|
|
378
|
-
glassOpacity: {
|
|
379
|
-
modal: number;
|
|
380
|
-
overlay: number;
|
|
381
|
-
stickyHeader: number;
|
|
382
|
-
};
|
|
383
|
-
};
|
|
384
|
-
fonts: {
|
|
385
|
-
body: string;
|
|
386
|
-
heading: string;
|
|
387
|
-
sizes: {
|
|
388
|
-
small: string;
|
|
389
|
-
medium: string;
|
|
390
|
-
large: string;
|
|
391
|
-
};
|
|
392
|
-
weights: {
|
|
393
|
-
normal: number;
|
|
394
|
-
medium: number;
|
|
395
|
-
bold: number;
|
|
396
|
-
};
|
|
397
|
-
};
|
|
398
|
-
borders: {
|
|
399
|
-
radius: {
|
|
400
|
-
small: string;
|
|
401
|
-
medium: string;
|
|
402
|
-
large: string;
|
|
403
|
-
xl: string;
|
|
404
|
-
full: string;
|
|
405
|
-
modal: string;
|
|
406
|
-
};
|
|
407
|
-
};
|
|
408
|
-
modal: {
|
|
409
|
-
rounded?: string | number;
|
|
410
|
-
};
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
|
-
* Developer-facing theme configuration
|
|
414
|
-
* Simplified interface - only modal.backgroundColor and textColor required
|
|
415
|
-
* All other colors are automatically derived from these base colors
|
|
416
|
-
*/
|
|
417
|
-
interface VechainKitThemeConfig {
|
|
418
|
-
textColor?: string;
|
|
419
|
-
overlay?: {
|
|
420
|
-
backgroundColor?: string;
|
|
421
|
-
blur?: string;
|
|
422
|
-
};
|
|
423
|
-
modal?: {
|
|
424
|
-
backgroundColor?: string;
|
|
425
|
-
border?: string;
|
|
426
|
-
backdropFilter?: string;
|
|
427
|
-
borderRadius?: string;
|
|
428
|
-
rounded?: string | number;
|
|
429
|
-
/**
|
|
430
|
-
* Whether to use bottom sheet on mobile devices.
|
|
431
|
-
* When false (default), uses regular modal on all screen sizes.
|
|
432
|
-
* When true, uses bottom sheet on mobile (< 768px) and regular modal on desktop.
|
|
433
|
-
*/
|
|
434
|
-
useBottomSheetOnMobile?: boolean;
|
|
435
|
-
};
|
|
436
|
-
buttons?: {
|
|
437
|
-
secondaryButton?: {
|
|
438
|
-
bg?: string;
|
|
439
|
-
color?: string;
|
|
440
|
-
border?: string;
|
|
441
|
-
hoverBg?: string;
|
|
442
|
-
backdropFilter?: string;
|
|
443
|
-
rounded?: string | number;
|
|
444
|
-
};
|
|
445
|
-
primaryButton?: {
|
|
446
|
-
bg?: string;
|
|
447
|
-
color?: string;
|
|
448
|
-
border?: string;
|
|
449
|
-
hoverBg?: string;
|
|
450
|
-
backdropFilter?: string;
|
|
451
|
-
rounded?: string | number;
|
|
452
|
-
};
|
|
453
|
-
tertiaryButton?: {
|
|
454
|
-
bg?: string;
|
|
455
|
-
color?: string;
|
|
456
|
-
border?: string;
|
|
457
|
-
backdropFilter?: string;
|
|
458
|
-
rounded?: string | number;
|
|
459
|
-
};
|
|
460
|
-
loginButton?: {
|
|
461
|
-
bg?: string;
|
|
462
|
-
color?: string;
|
|
463
|
-
border?: string;
|
|
464
|
-
backdropFilter?: string;
|
|
465
|
-
rounded?: string | number;
|
|
466
|
-
};
|
|
467
|
-
};
|
|
468
|
-
fonts?: {
|
|
469
|
-
family?: string;
|
|
470
|
-
body?: string;
|
|
471
|
-
heading?: string;
|
|
472
|
-
sizes?: {
|
|
473
|
-
small?: string;
|
|
474
|
-
medium?: string;
|
|
475
|
-
large?: string;
|
|
476
|
-
};
|
|
477
|
-
weights?: {
|
|
478
|
-
normal?: number;
|
|
479
|
-
medium?: number;
|
|
480
|
-
bold?: number;
|
|
481
|
-
};
|
|
482
|
-
};
|
|
483
|
-
effects?: {
|
|
484
|
-
glass?: {
|
|
485
|
-
enabled?: boolean;
|
|
486
|
-
intensity?: 'low' | 'medium' | 'high';
|
|
487
|
-
};
|
|
488
|
-
backdropFilter?: {
|
|
489
|
-
modal?: string;
|
|
490
|
-
overlay?: string;
|
|
491
|
-
};
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
//#endregion
|
|
495
|
-
//#region src/providers/VeChainKitProvider.d.ts
|
|
496
|
-
type AlwaysAvailableMethods = 'vechain' | 'dappkit' | 'ecosystem';
|
|
497
|
-
type PrivyDependentMethods = 'email' | 'google' | 'github' | 'passkey' | 'more';
|
|
498
|
-
type LoginMethodOrder = {
|
|
499
|
-
method: AlwaysAvailableMethods | (VechainKitProviderProps['privy'] extends undefined ? never : PrivyDependentMethods);
|
|
500
|
-
gridColumn?: number;
|
|
501
|
-
allowedApps?: string[];
|
|
502
|
-
};
|
|
503
|
-
type LegalDocumentOptions = {
|
|
504
|
-
privacyPolicy?: LegalDocument[];
|
|
505
|
-
termsAndConditions?: LegalDocument[];
|
|
506
|
-
cookiePolicy?: LegalDocument[];
|
|
507
|
-
};
|
|
508
|
-
type LegalDocument = {
|
|
509
|
-
url: string;
|
|
510
|
-
version: number;
|
|
511
|
-
required: boolean;
|
|
512
|
-
displayName?: string;
|
|
513
|
-
};
|
|
514
|
-
type VechainKitProviderProps = {
|
|
515
|
-
children: ReactNode;
|
|
516
|
-
privy?: {
|
|
517
|
-
appId: string;
|
|
518
|
-
clientId: string;
|
|
519
|
-
appearance: {
|
|
520
|
-
walletList?: WalletListEntry[];
|
|
521
|
-
accentColor?: `#${string}`;
|
|
522
|
-
loginMessage: string;
|
|
523
|
-
logo: string;
|
|
524
|
-
};
|
|
525
|
-
embeddedWallets?: {
|
|
526
|
-
createOnLogin: 'users-without-wallets' | 'all-users' | 'off';
|
|
527
|
-
};
|
|
528
|
-
loginMethods: PrivyLoginMethod[];
|
|
529
|
-
};
|
|
530
|
-
feeDelegation?: {
|
|
531
|
-
delegatorUrl?: string;
|
|
532
|
-
delegateAllTransactions?: boolean;
|
|
533
|
-
genericDelegatorUrl?: string;
|
|
534
|
-
b3trTransfers?: {
|
|
535
|
-
minAmountInEther: number;
|
|
536
|
-
};
|
|
537
|
-
};
|
|
538
|
-
dappKit?: {
|
|
539
|
-
allowedWallets?: WalletSource[];
|
|
540
|
-
walletConnectOptions?: WalletConnectOptions;
|
|
541
|
-
usePersistence?: boolean;
|
|
542
|
-
useFirstDetectedSource?: boolean;
|
|
543
|
-
logLevel?: LogLevel;
|
|
544
|
-
themeVariables?: CustomizedStyle;
|
|
545
|
-
modalParent?: HTMLElement;
|
|
546
|
-
onSourceClick?: (source?: SourceInfo) => void;
|
|
547
|
-
v2Api?: {
|
|
548
|
-
enabled?: boolean;
|
|
549
|
-
external?: boolean;
|
|
550
|
-
};
|
|
551
|
-
};
|
|
552
|
-
loginModalUI?: {
|
|
553
|
-
logo?: string;
|
|
554
|
-
description?: string;
|
|
555
|
-
};
|
|
556
|
-
loginMethods?: LoginMethodOrder[];
|
|
557
|
-
darkMode?: boolean;
|
|
558
|
-
i18n?: I18n;
|
|
559
|
-
language?: string;
|
|
560
|
-
network?: {
|
|
561
|
-
type?: string;
|
|
562
|
-
nodeUrl?: string;
|
|
563
|
-
requireCertificate?: boolean;
|
|
564
|
-
connectionCertificate?: {
|
|
565
|
-
message?: Certificate;
|
|
566
|
-
options?: CertificateData;
|
|
567
|
-
};
|
|
568
|
-
};
|
|
569
|
-
allowCustomTokens?: boolean;
|
|
570
|
-
legalDocuments?: LegalDocumentOptions;
|
|
571
|
-
defaultCurrency?: CURRENCY;
|
|
572
|
-
theme?: VechainKitThemeConfig;
|
|
573
|
-
onLanguageChange?: (language: string) => void;
|
|
574
|
-
onCurrencyChange?: (currency: CURRENCY) => void;
|
|
575
|
-
};
|
|
576
|
-
/**
|
|
577
|
-
* Configuration object returned by useVeChainKitConfig hook
|
|
578
|
-
*/
|
|
579
|
-
type VeChainKitConfig = {
|
|
580
|
-
privy?: VechainKitProviderProps['privy'];
|
|
581
|
-
privyEcosystemAppIDS: string[];
|
|
582
|
-
feeDelegation?: VechainKitProviderProps['feeDelegation'];
|
|
583
|
-
dappKit: VechainKitProviderProps['dappKit'];
|
|
584
|
-
loginModalUI?: VechainKitProviderProps['loginModalUI'];
|
|
585
|
-
loginMethods?: VechainKitProviderProps['loginMethods'];
|
|
586
|
-
darkMode: boolean;
|
|
587
|
-
i18n?: VechainKitProviderProps['i18n'];
|
|
588
|
-
network: {
|
|
589
|
-
type: NETWORK_TYPE;
|
|
590
|
-
nodeUrl: string;
|
|
591
|
-
requireCertificate?: boolean;
|
|
592
|
-
connectionCertificate?: {
|
|
593
|
-
message?: Certificate;
|
|
594
|
-
options?: CertificateData;
|
|
595
|
-
};
|
|
596
|
-
};
|
|
597
|
-
/** Current runtime language value. Reflects the active language in VeChainKit. */
|
|
598
|
-
currentLanguage: string;
|
|
599
|
-
allowCustomTokens?: boolean;
|
|
600
|
-
legalDocuments?: VechainKitProviderProps['legalDocuments'];
|
|
601
|
-
/** Current runtime currency value. Reflects the active currency in VeChainKit. */
|
|
602
|
-
currentCurrency: CURRENCY;
|
|
603
|
-
theme?: VechainKitThemeConfig;
|
|
604
|
-
/** Function to change the language from the host app. Changes will sync to VeChainKit. */
|
|
605
|
-
setLanguage: (language: string) => void;
|
|
606
|
-
/** Function to change the currency from the host app. Changes will sync to VeChainKit. */
|
|
607
|
-
setCurrency: (currency: CURRENCY) => void;
|
|
608
|
-
};
|
|
609
|
-
/**
|
|
610
|
-
* Context to store the Privy and DAppKit configs so that they can be used by the hooks/components
|
|
611
|
-
*/
|
|
612
|
-
declare const VeChainKitContext: react0.Context<VeChainKitConfig | null>;
|
|
613
|
-
/**
|
|
614
|
-
* Hook to get the VeChainKit configuration
|
|
615
|
-
*
|
|
616
|
-
* @returns VeChainKitConfig object containing:
|
|
617
|
-
* - `currentLanguage`: Current runtime language value
|
|
618
|
-
* - `currentCurrency`: Current runtime currency value
|
|
619
|
-
* - `setLanguage`: Function to change language from host app
|
|
620
|
-
* - `setCurrency`: Function to change currency from host app
|
|
621
|
-
* - Other configuration values (network, darkMode, etc.)
|
|
622
|
-
*
|
|
623
|
-
* @example
|
|
624
|
-
* ```tsx
|
|
625
|
-
* const config = useVeChainKitConfig();
|
|
626
|
-
* console.log(config.currentLanguage); // 'fr' (current value)
|
|
627
|
-
* console.log(config.currentCurrency); // 'eur' (current value)
|
|
628
|
-
* config.setLanguage('de'); // Change language
|
|
629
|
-
* ```
|
|
630
|
-
*/
|
|
631
|
-
declare const useVeChainKitConfig: () => VeChainKitConfig;
|
|
632
|
-
declare const VeChainKitProvider: (props: Omit<VechainKitProviderProps, "queryClient">) => react_jsx_runtime3.JSX.Element;
|
|
633
|
-
//#endregion
|
|
634
|
-
//#region src/providers/PrivyWalletProvider.d.ts
|
|
635
|
-
interface PrivyWalletProviderContextType {
|
|
636
|
-
accountFactory: string;
|
|
637
|
-
delegateAllTransactions: boolean;
|
|
638
|
-
sendTransaction: (tx: {
|
|
639
|
-
txClauses: TransactionClause[];
|
|
640
|
-
title?: string;
|
|
641
|
-
description?: string;
|
|
642
|
-
buttonText?: string;
|
|
643
|
-
currentGasToken?: GasTokenType;
|
|
644
|
-
delegationUrl?: string;
|
|
645
|
-
}) => Promise<string>;
|
|
646
|
-
signTypedData: (data: SignTypedDataParams) => Promise<string>;
|
|
647
|
-
signMessage: (message: string) => Promise<string>;
|
|
648
|
-
exportWallet: () => Promise<void>;
|
|
649
|
-
}
|
|
650
|
-
/**
|
|
651
|
-
* This provider is responsible for retrieving the smart account address
|
|
652
|
-
* of a Privy wallet and providing the necessary context for the smart account.
|
|
653
|
-
* Upon initialization this provider will execute a few useEffect hooks to:
|
|
654
|
-
* - retrieve the smart account address of the embedded wallet
|
|
655
|
-
* - retrieve the chain id
|
|
656
|
-
* - check if the smart account is deployed
|
|
657
|
-
*
|
|
658
|
-
* It also provides a function to send transactions on vechain by asking the privy wallet
|
|
659
|
-
* to sign the transaction and then forwarding the transaction to the node api.
|
|
660
|
-
* When sending a transaction this provider will check if the smart account is deployed and if not,
|
|
661
|
-
* it will deploy it.
|
|
662
|
-
*/
|
|
663
|
-
declare const PrivyWalletProvider: ({
|
|
664
|
-
children,
|
|
665
|
-
nodeUrl,
|
|
666
|
-
delegatorUrl,
|
|
667
|
-
delegateAllTransactions,
|
|
668
|
-
genericDelegator
|
|
669
|
-
}: {
|
|
670
|
-
children: React$1.ReactNode;
|
|
671
|
-
nodeUrl: string;
|
|
672
|
-
delegatorUrl?: string;
|
|
673
|
-
delegateAllTransactions: boolean;
|
|
674
|
-
genericDelegator?: boolean;
|
|
675
|
-
}) => react_jsx_runtime3.JSX.Element;
|
|
676
|
-
declare const usePrivyWalletProvider: () => PrivyWalletProviderContextType;
|
|
677
|
-
//#endregion
|
|
678
|
-
//#region src/providers/VechainKitThemeProvider.d.ts
|
|
679
|
-
type Props$35 = {
|
|
680
|
-
children: ReactNode;
|
|
681
|
-
darkMode?: boolean;
|
|
682
|
-
theme?: VechainKitThemeConfig;
|
|
683
|
-
};
|
|
684
|
-
declare const useVechainKitThemeConfig: () => {
|
|
685
|
-
portalRootRef?: React.RefObject<HTMLDivElement | null>;
|
|
686
|
-
tokens?: ThemeTokens;
|
|
687
|
-
themeConfig?: VechainKitThemeConfig;
|
|
688
|
-
};
|
|
689
|
-
declare const ColorModeSync: ({
|
|
690
|
-
darkMode
|
|
691
|
-
}: {
|
|
692
|
-
darkMode: boolean;
|
|
693
|
-
}) => react_jsx_runtime3.JSX.Element;
|
|
694
|
-
declare const VechainKitThemeProvider: ({
|
|
695
|
-
children,
|
|
696
|
-
darkMode,
|
|
697
|
-
theme: customTheme
|
|
698
|
-
}: Props$35) => react_jsx_runtime3.JSX.Element;
|
|
699
|
-
//#endregion
|
|
700
|
-
//#region src/providers/LegalDocumentsProvider.d.ts
|
|
701
|
-
type Props$34 = {
|
|
702
|
-
children: Readonly<ReactNode>;
|
|
703
|
-
};
|
|
704
|
-
type LegalDocumentsContextType = {
|
|
705
|
-
hasAgreedToRequiredDocuments: boolean;
|
|
706
|
-
agreements: LegalDocumentAgreement[];
|
|
707
|
-
walletAddress?: string;
|
|
708
|
-
documents: EnrichedLegalDocument[];
|
|
709
|
-
documentsNotAgreed: EnrichedLegalDocument[];
|
|
710
|
-
};
|
|
711
|
-
declare const useLegalDocuments: () => LegalDocumentsContextType;
|
|
712
|
-
declare const LegalDocumentsProvider: ({
|
|
713
|
-
children
|
|
714
|
-
}: Props$34) => react_jsx_runtime3.JSX.Element;
|
|
715
|
-
//#endregion
|
|
716
29
|
//#region src/components/ConnectModal/ConnectModal.d.ts
|
|
717
30
|
type Props$33 = {
|
|
718
31
|
isOpen: boolean;
|
|
@@ -720,34 +33,12 @@ type Props$33 = {
|
|
|
720
33
|
initialContent?: ConnectModalContentsTypes;
|
|
721
34
|
preventAutoClose?: boolean;
|
|
722
35
|
};
|
|
723
|
-
type ConnectModalContentsTypes = 'main' | 'faq' | {
|
|
724
|
-
type: 'ecosystem';
|
|
725
|
-
props: {
|
|
726
|
-
appsInfo: PrivyAppInfo[];
|
|
727
|
-
isLoading: boolean;
|
|
728
|
-
showBackButton?: boolean;
|
|
729
|
-
};
|
|
730
|
-
} | {
|
|
731
|
-
type: 'loading';
|
|
732
|
-
props: {
|
|
733
|
-
title?: string;
|
|
734
|
-
loadingText?: string;
|
|
735
|
-
onTryAgain?: () => void;
|
|
736
|
-
showBackButton?: boolean;
|
|
737
|
-
};
|
|
738
|
-
} | {
|
|
739
|
-
type: 'error';
|
|
740
|
-
props: {
|
|
741
|
-
error: string;
|
|
742
|
-
onTryAgain: () => void;
|
|
743
|
-
};
|
|
744
|
-
};
|
|
745
36
|
declare const ConnectModal: ({
|
|
746
37
|
isOpen,
|
|
747
38
|
onClose,
|
|
748
39
|
initialContent,
|
|
749
40
|
preventAutoClose
|
|
750
|
-
}: Props$33) =>
|
|
41
|
+
}: Props$33) => react_jsx_runtime30.JSX.Element;
|
|
751
42
|
//#endregion
|
|
752
43
|
//#region src/components/ConnectModal/Contents/MainContent.d.ts
|
|
753
44
|
type Props$32 = {
|
|
@@ -759,7 +50,7 @@ declare const MainContent: ({
|
|
|
759
50
|
setCurrentContent,
|
|
760
51
|
onClose,
|
|
761
52
|
preventAutoClose
|
|
762
|
-
}: Props$32) =>
|
|
53
|
+
}: Props$32) => react_jsx_runtime30.JSX.Element;
|
|
763
54
|
//#endregion
|
|
764
55
|
//#region src/components/ConnectModal/Contents/LoadingContent.d.ts
|
|
765
56
|
type LoadingContentProps = {
|
|
@@ -777,7 +68,7 @@ declare const LoadingContent: ({
|
|
|
777
68
|
onClose,
|
|
778
69
|
onGoBack,
|
|
779
70
|
showBackButton
|
|
780
|
-
}: LoadingContentProps) =>
|
|
71
|
+
}: LoadingContentProps) => react_jsx_runtime30.JSX.Element;
|
|
781
72
|
//#endregion
|
|
782
73
|
//#region src/components/ConnectModal/Contents/ErrorContent.d.ts
|
|
783
74
|
type ErrorContentProps = {
|
|
@@ -791,7 +82,7 @@ declare const ErrorContent: ({
|
|
|
791
82
|
onClose,
|
|
792
83
|
onTryAgain,
|
|
793
84
|
onGoBack
|
|
794
|
-
}: ErrorContentProps) =>
|
|
85
|
+
}: ErrorContentProps) => react_jsx_runtime30.JSX.Element;
|
|
795
86
|
//#endregion
|
|
796
87
|
//#region src/components/ConnectModal/Contents/EcosystemContent.d.ts
|
|
797
88
|
type Props$31 = {
|
|
@@ -807,7 +98,7 @@ declare const EcosystemContent: ({
|
|
|
807
98
|
isLoading,
|
|
808
99
|
setCurrentContent,
|
|
809
100
|
showBackButton
|
|
810
|
-
}: Props$31) =>
|
|
101
|
+
}: Props$31) => react_jsx_runtime30.JSX.Element;
|
|
811
102
|
//#endregion
|
|
812
103
|
//#region src/components/ConnectModal/Components/ConnectionButton.d.ts
|
|
813
104
|
interface ConnectionButtonProps {
|
|
@@ -830,10 +121,10 @@ declare const ConnectionButton: ({
|
|
|
830
121
|
style,
|
|
831
122
|
variant,
|
|
832
123
|
iconWidth
|
|
833
|
-
}: ConnectionButtonProps) =>
|
|
124
|
+
}: ConnectionButtonProps) => react_jsx_runtime30.JSX.Element | null;
|
|
834
125
|
//#endregion
|
|
835
126
|
//#region src/components/ConnectModal/Components/EmailLoginButton.d.ts
|
|
836
|
-
declare const EmailLoginButton: () =>
|
|
127
|
+
declare const EmailLoginButton: () => react_jsx_runtime30.JSX.Element;
|
|
837
128
|
//#endregion
|
|
838
129
|
//#region src/components/ConnectModal/Components/VeChainLoginButton.d.ts
|
|
839
130
|
type Props$30 = {
|
|
@@ -845,7 +136,7 @@ declare const VeChainLoginButton: ({
|
|
|
845
136
|
isDark,
|
|
846
137
|
gridColumn,
|
|
847
138
|
setCurrentContent
|
|
848
|
-
}: Props$30) =>
|
|
139
|
+
}: Props$30) => react_jsx_runtime30.JSX.Element;
|
|
849
140
|
//#endregion
|
|
850
141
|
//#region src/components/ConnectModal/Components/EcosystemButton.d.ts
|
|
851
142
|
type Props$29 = {
|
|
@@ -859,7 +150,7 @@ declare const EcosystemButton: ({
|
|
|
859
150
|
appsInfo,
|
|
860
151
|
isLoading,
|
|
861
152
|
setCurrentContent
|
|
862
|
-
}: Props$29) =>
|
|
153
|
+
}: Props$29) => react_jsx_runtime30.JSX.Element;
|
|
863
154
|
//#endregion
|
|
864
155
|
//#region src/components/ConnectModal/Components/PrivyButton.d.ts
|
|
865
156
|
type Props$28 = {
|
|
@@ -871,7 +162,7 @@ declare const PrivyButton: ({
|
|
|
871
162
|
isDark,
|
|
872
163
|
onViewMoreLogin,
|
|
873
164
|
gridColumn
|
|
874
|
-
}: Props$28) =>
|
|
165
|
+
}: Props$28) => react_jsx_runtime30.JSX.Element;
|
|
875
166
|
//#endregion
|
|
876
167
|
//#region src/components/ConnectModal/Components/LoginWithGoogleButton.d.ts
|
|
877
168
|
type Props$27 = {
|
|
@@ -881,7 +172,7 @@ type Props$27 = {
|
|
|
881
172
|
declare const LoginWithGoogleButton: ({
|
|
882
173
|
isDark,
|
|
883
174
|
gridColumn
|
|
884
|
-
}: Props$27) =>
|
|
175
|
+
}: Props$27) => react_jsx_runtime30.JSX.Element;
|
|
885
176
|
//#endregion
|
|
886
177
|
//#region src/components/ConnectModal/Components/PasskeyLoginButton.d.ts
|
|
887
178
|
type Props$26 = {
|
|
@@ -893,7 +184,7 @@ declare const PasskeyLoginButton: ({
|
|
|
893
184
|
isDark,
|
|
894
185
|
gridColumn,
|
|
895
186
|
setCurrentContent
|
|
896
|
-
}: Props$26) =>
|
|
187
|
+
}: Props$26) => react_jsx_runtime30.JSX.Element;
|
|
897
188
|
//#endregion
|
|
898
189
|
//#region src/components/ConnectModal/Components/DappKitButton.d.ts
|
|
899
190
|
type Props$25 = {
|
|
@@ -903,7 +194,7 @@ type Props$25 = {
|
|
|
903
194
|
declare const DappKitButton: ({
|
|
904
195
|
isDark,
|
|
905
196
|
gridColumn
|
|
906
|
-
}: Props$25) =>
|
|
197
|
+
}: Props$25) => react_jsx_runtime30.JSX.Element;
|
|
907
198
|
//#endregion
|
|
908
199
|
//#region src/components/ConnectModal/Components/VeChainWithPrivyLoginButton.d.ts
|
|
909
200
|
type Props$24 = {
|
|
@@ -913,7 +204,7 @@ type Props$24 = {
|
|
|
913
204
|
declare const VeChainWithPrivyLoginButton: ({
|
|
914
205
|
isDark,
|
|
915
206
|
gridColumn
|
|
916
|
-
}: Props$24) =>
|
|
207
|
+
}: Props$24) => react_jsx_runtime30.JSX.Element;
|
|
917
208
|
//#endregion
|
|
918
209
|
//#region src/components/ConnectModal/Components/LoginWithGithubButton.d.ts
|
|
919
210
|
type Props$23 = {
|
|
@@ -923,7 +214,7 @@ type Props$23 = {
|
|
|
923
214
|
declare const LoginWithGithubButton: ({
|
|
924
215
|
isDark,
|
|
925
216
|
gridColumn
|
|
926
|
-
}: Props$23) =>
|
|
217
|
+
}: Props$23) => react_jsx_runtime30.JSX.Element;
|
|
927
218
|
//#endregion
|
|
928
219
|
//#region src/components/ConnectModal/ConnectPopover.d.ts
|
|
929
220
|
type ConnectPopoverProps = {
|
|
@@ -933,12 +224,10 @@ type ConnectPopoverProps = {
|
|
|
933
224
|
declare const ConnectPopover: ({
|
|
934
225
|
isLoading,
|
|
935
226
|
buttonStyle
|
|
936
|
-
}: ConnectPopoverProps) =>
|
|
227
|
+
}: ConnectPopoverProps) => react_jsx_runtime30.JSX.Element;
|
|
937
228
|
//#endregion
|
|
938
229
|
//#region src/components/WalletButton/types.d.ts
|
|
939
230
|
type WalletDisplayVariant = 'icon' | 'iconAndDomain' | 'iconDomainAndAddress' | 'iconDomainAndAssets';
|
|
940
|
-
//#endregion
|
|
941
|
-
//#region src/components/WalletButton/WalletButton.d.ts
|
|
942
231
|
type WalletButtonProps = {
|
|
943
232
|
mobileVariant?: WalletDisplayVariant;
|
|
944
233
|
desktopVariant?: WalletDisplayVariant;
|
|
@@ -946,18 +235,20 @@ type WalletButtonProps = {
|
|
|
946
235
|
connectionVariant?: 'modal' | 'popover';
|
|
947
236
|
label?: string;
|
|
948
237
|
};
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region src/components/WalletButton/WalletButton.d.ts
|
|
949
240
|
declare const WalletButton: ({
|
|
950
241
|
mobileVariant,
|
|
951
242
|
desktopVariant,
|
|
952
243
|
buttonStyle,
|
|
953
244
|
connectionVariant,
|
|
954
245
|
label
|
|
955
|
-
}: WalletButtonProps) =>
|
|
246
|
+
}: WalletButtonProps) => react_jsx_runtime30.JSX.Element;
|
|
956
247
|
//#endregion
|
|
957
248
|
//#region src/components/WalletButton/SocialIcons.d.ts
|
|
958
|
-
declare const SocialIcons: () =>
|
|
249
|
+
declare const SocialIcons: () => react_jsx_runtime30.JSX.Element;
|
|
959
250
|
//#endregion
|
|
960
|
-
//#region src/components/TransactionModal/
|
|
251
|
+
//#region src/components/TransactionModal/types.d.ts
|
|
961
252
|
type TransactionModalProps = {
|
|
962
253
|
isOpen: boolean;
|
|
963
254
|
onClose: () => void;
|
|
@@ -977,6 +268,8 @@ type TransactionModalProps = {
|
|
|
977
268
|
showSocialButtons?: boolean;
|
|
978
269
|
};
|
|
979
270
|
};
|
|
271
|
+
//#endregion
|
|
272
|
+
//#region src/components/TransactionModal/TransactionModal.d.ts
|
|
980
273
|
declare const TransactionModal: ({
|
|
981
274
|
isOpen,
|
|
982
275
|
onClose,
|
|
@@ -985,7 +278,7 @@ declare const TransactionModal: ({
|
|
|
985
278
|
txReceipt,
|
|
986
279
|
txError,
|
|
987
280
|
onTryAgain
|
|
988
|
-
}: TransactionModalProps) =>
|
|
281
|
+
}: TransactionModalProps) => react_jsx_runtime30.JSX.Element | null;
|
|
989
282
|
//#endregion
|
|
990
283
|
//#region src/components/TransactionModal/Components/ShareButtons.d.ts
|
|
991
284
|
type Props$22 = {
|
|
@@ -995,7 +288,7 @@ type Props$22 = {
|
|
|
995
288
|
};
|
|
996
289
|
declare const ShareButtons: ({
|
|
997
290
|
description
|
|
998
|
-
}: Props$22) =>
|
|
291
|
+
}: Props$22) => react_jsx_runtime30.JSX.Element;
|
|
999
292
|
//#endregion
|
|
1000
293
|
//#region src/components/TransactionModal/TransactionModalContent.d.ts
|
|
1001
294
|
declare const TransactionModalContent: ({
|
|
@@ -1005,7 +298,7 @@ declare const TransactionModalContent: ({
|
|
|
1005
298
|
txReceipt,
|
|
1006
299
|
txError,
|
|
1007
300
|
onClose
|
|
1008
|
-
}: Omit<TransactionModalProps, "isOpen">) =>
|
|
301
|
+
}: Omit<TransactionModalProps, "isOpen">) => react_jsx_runtime30.JSX.Element;
|
|
1009
302
|
//#endregion
|
|
1010
303
|
//#region src/components/TransactionToast/TransactionToast.d.ts
|
|
1011
304
|
type TransactionToastProps = {
|
|
@@ -1025,11 +318,23 @@ declare const TransactionToast: ({
|
|
|
1025
318
|
txError,
|
|
1026
319
|
onTryAgain,
|
|
1027
320
|
description
|
|
1028
|
-
}: TransactionToastProps) =>
|
|
321
|
+
}: TransactionToastProps) => react_jsx_runtime30.JSX.Element | null;
|
|
1029
322
|
//#endregion
|
|
1030
|
-
//#region src/components/AccountModal/
|
|
323
|
+
//#region src/components/AccountModal/AccountModal.d.ts
|
|
1031
324
|
type Props$21 = {
|
|
1032
|
-
|
|
325
|
+
isOpen: boolean;
|
|
326
|
+
onClose: () => void;
|
|
327
|
+
initialContent?: AccountModalContentTypes$1;
|
|
328
|
+
};
|
|
329
|
+
declare const AccountModal: ({
|
|
330
|
+
isOpen,
|
|
331
|
+
onClose,
|
|
332
|
+
initialContent
|
|
333
|
+
}: Props$21) => react_jsx_runtime30.JSX.Element;
|
|
334
|
+
//#endregion
|
|
335
|
+
//#region src/components/AccountModal/Contents/Account/AccountMainContent.d.ts
|
|
336
|
+
type Props$20 = {
|
|
337
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
1033
338
|
onClose: () => void;
|
|
1034
339
|
wallet: Wallet;
|
|
1035
340
|
switchFeedback?: {
|
|
@@ -1041,12 +346,12 @@ declare const AccountMainContent: ({
|
|
|
1041
346
|
wallet,
|
|
1042
347
|
onClose,
|
|
1043
348
|
switchFeedback
|
|
1044
|
-
}: Props$
|
|
349
|
+
}: Props$20) => react_jsx_runtime30.JSX.Element;
|
|
1045
350
|
//#endregion
|
|
1046
351
|
//#region src/hooks/api/privy/useFetchAppInfo.d.ts
|
|
1047
352
|
declare const fetchPrivyAppInfo: (appId: string) => Promise<PrivyAppInfo>;
|
|
1048
353
|
declare const getPrivyAppInfoQueryKey: (appIds: string | string[]) => string[];
|
|
1049
|
-
declare const useFetchAppInfo: (appIds: string | string[]) =>
|
|
354
|
+
declare const useFetchAppInfo: (appIds: string | string[]) => _tanstack_react_query7.UseQueryResult<{
|
|
1050
355
|
[k: string]: {
|
|
1051
356
|
website: string | undefined;
|
|
1052
357
|
id: string;
|
|
@@ -1067,7 +372,93 @@ declare const useFetchAppInfo: (appIds: string | string[]) => _tanstack_react_qu
|
|
|
1067
372
|
//#endregion
|
|
1068
373
|
//#region src/hooks/api/privy/useFetchPrivyStatus.d.ts
|
|
1069
374
|
declare const fetchPrivyStatus: () => Promise<string>;
|
|
1070
|
-
declare const useFetchPrivyStatus: () =>
|
|
375
|
+
declare const useFetchPrivyStatus: () => _tanstack_react_query7.UseQueryResult<string, Error>;
|
|
376
|
+
//#endregion
|
|
377
|
+
//#region src/hooks/api/privy/useOptionalPrivy.d.ts
|
|
378
|
+
/**
|
|
379
|
+
* Type for the optional Privy hook return value.
|
|
380
|
+
* Uses a subset of the actual hook return type for safer defaults.
|
|
381
|
+
*/
|
|
382
|
+
type UseOptionalPrivyReturnType = {
|
|
383
|
+
user: User | null;
|
|
384
|
+
authenticated: boolean;
|
|
385
|
+
ready: boolean;
|
|
386
|
+
logout: () => Promise<void>;
|
|
387
|
+
login: () => void;
|
|
388
|
+
exportWallet: () => Promise<void>;
|
|
389
|
+
linkPasskey: () => void;
|
|
390
|
+
};
|
|
391
|
+
/**
|
|
392
|
+
* Optional hook to access Privy context.
|
|
393
|
+
* Returns default values when Privy is not configured in VeChainKitProvider,
|
|
394
|
+
* avoiding the need to wrap every usage in a try-catch or conditional check.
|
|
395
|
+
*
|
|
396
|
+
* Uses static import to ensure the same module instance as LazyPrivyProvider,
|
|
397
|
+
* avoiding ESM/CJS interop issues that can occur with require().
|
|
398
|
+
*
|
|
399
|
+
* @returns Privy user info and auth state, or default values if Privy is not configured
|
|
400
|
+
*/
|
|
401
|
+
declare const useOptionalPrivy: () => UseOptionalPrivyReturnType;
|
|
402
|
+
//#endregion
|
|
403
|
+
//#region src/providers/PrivyCrossAppProvider.d.ts
|
|
404
|
+
declare const usePrivyCrossAppSdk: () => {
|
|
405
|
+
login: (appID: string) => Promise<wagmi_query0.ConnectData<wagmi0.Config, wagmi0.Connector<wagmi0.CreateConnectorFn>, false>>;
|
|
406
|
+
logout: () => Promise<void>;
|
|
407
|
+
signMessage: (message: string) => Promise<`0x${string}`>;
|
|
408
|
+
signTypedData: (data: SignTypedDataParameters) => Promise<`0x${string}`>;
|
|
409
|
+
isConnecting: boolean;
|
|
410
|
+
connectionError: Error | null;
|
|
411
|
+
};
|
|
412
|
+
//#endregion
|
|
413
|
+
//#region src/hooks/api/privy/useOptionalPrivyCrossAppSdk.d.ts
|
|
414
|
+
/**
|
|
415
|
+
* Type for the optional PrivyCrossAppSdk hook return value.
|
|
416
|
+
* Uses ReturnType to ensure type compatibility with the actual hook.
|
|
417
|
+
*/
|
|
418
|
+
type UseOptionalPrivyCrossAppSdkReturnType = ReturnType<typeof usePrivyCrossAppSdk> | {
|
|
419
|
+
login: () => Promise<never>;
|
|
420
|
+
logout: () => Promise<void>;
|
|
421
|
+
signMessage: () => Promise<never>;
|
|
422
|
+
signTypedData: () => Promise<never>;
|
|
423
|
+
isConnecting: false;
|
|
424
|
+
connectionError: null;
|
|
425
|
+
};
|
|
426
|
+
/**
|
|
427
|
+
* Optional hook to access PrivyCrossAppSdk context.
|
|
428
|
+
* Returns default values when ecosystem login is not configured, avoiding the need
|
|
429
|
+
* to wrap every usage in a try-catch or conditional check.
|
|
430
|
+
*
|
|
431
|
+
* Checks VeChainKitConfig to determine if ecosystem login is enabled before
|
|
432
|
+
* using the PrivyCrossAppSdk result.
|
|
433
|
+
*
|
|
434
|
+
* @returns Cross-app SDK functions, or no-op functions if ecosystem login is not configured
|
|
435
|
+
*/
|
|
436
|
+
declare const useOptionalPrivyCrossAppSdk: () => UseOptionalPrivyCrossAppSdkReturnType;
|
|
437
|
+
//#endregion
|
|
438
|
+
//#region src/hooks/api/privy/useOptionalWagmiAccount.d.ts
|
|
439
|
+
/**
|
|
440
|
+
* Type for the optional wagmi useAccount hook return value.
|
|
441
|
+
* Uses ReturnType to ensure type compatibility with the actual hook.
|
|
442
|
+
*/
|
|
443
|
+
type UseOptionalWagmiAccountReturnType = ReturnType<typeof useAccount> | {
|
|
444
|
+
address: undefined;
|
|
445
|
+
isConnected: false;
|
|
446
|
+
isConnecting: false;
|
|
447
|
+
isReconnecting: false;
|
|
448
|
+
isDisconnected: true;
|
|
449
|
+
status: 'disconnected';
|
|
450
|
+
};
|
|
451
|
+
/**
|
|
452
|
+
* Optional hook to access wagmi's useAccount.
|
|
453
|
+
* Returns default values when ecosystem login is not configured (i.e., when WagmiProvider is not rendered).
|
|
454
|
+
* This prevents errors when PrivyCrossAppProvider is not rendered.
|
|
455
|
+
*
|
|
456
|
+
* Checks VeChainKitConfig to determine if ecosystem login is enabled before
|
|
457
|
+
* using wagmi's useAccount result, avoiding false loading states.
|
|
458
|
+
*
|
|
459
|
+
* @returns Account info from wagmi, or disconnected state if ecosystem login is not configured
|
|
460
|
+
*/
|
|
461
|
+
declare const useOptionalWagmiAccount: () => UseOptionalWagmiAccountReturnType;
|
|
1071
462
|
//#endregion
|
|
1072
463
|
//#region src/hooks/api/vetDomains/useVechainDomain.d.ts
|
|
1073
464
|
interface VeChainDomainResult {
|
|
@@ -1077,11 +468,106 @@ interface VeChainDomainResult {
|
|
|
1077
468
|
isPrimaryDomain: boolean;
|
|
1078
469
|
}
|
|
1079
470
|
declare const getVechainDomainQueryKey: (addressOrDomain?: string | null) => (string | null | undefined)[];
|
|
1080
|
-
declare const useVechainDomain: (addressOrDomain?: string | null) =>
|
|
471
|
+
declare const useVechainDomain: (addressOrDomain?: string | null) => _tanstack_react_query7.UseQueryResult<VeChainDomainResult, Error>;
|
|
1081
472
|
//#endregion
|
|
1082
473
|
//#region src/hooks/api/vetDomains/useEnsRecordExists.d.ts
|
|
1083
474
|
declare const getEnsRecordExistsQueryKey: (name: string) => string[];
|
|
1084
|
-
declare const useEnsRecordExists: (name: string) =>
|
|
475
|
+
declare const useEnsRecordExists: (name: string) => _tanstack_react_query7.UseQueryResult<boolean, Error>;
|
|
476
|
+
//#endregion
|
|
477
|
+
//#region src/hooks/thor/transactions/useSendTransaction.d.ts
|
|
478
|
+
/**
|
|
479
|
+
* Props for the {@link useSendTransaction} hook
|
|
480
|
+
* @param signerAccountAddress the signer account to use
|
|
481
|
+
* @param clauses clauses to send in the transaction
|
|
482
|
+
* @param onTxConfirmed callback to run when the tx is confirmed
|
|
483
|
+
* @param onTxFailedOrCancelled callback to run when the tx fails or is cancelled
|
|
484
|
+
* @param suggestedMaxGas the suggested max gas for the transaction
|
|
485
|
+
* @param privyUIOptions options to pass to the Privy UI
|
|
486
|
+
* @param gasPadding the gas padding to use for the transaction (Eg. 0.1 for 10%)
|
|
487
|
+
* @param delegationUrl the dApp sponsored delegator url.
|
|
488
|
+
*/
|
|
489
|
+
type UseSendTransactionProps = {
|
|
490
|
+
signerAccountAddress?: string | null;
|
|
491
|
+
clauses?: TransactionClause[];
|
|
492
|
+
onTxConfirmed?: () => void | Promise<void>;
|
|
493
|
+
onTxFailedOrCancelled?: (error?: Error | string) => void | Promise<void>;
|
|
494
|
+
suggestedMaxGas?: number;
|
|
495
|
+
privyUIOptions?: {
|
|
496
|
+
title?: string;
|
|
497
|
+
description?: string;
|
|
498
|
+
buttonText?: string;
|
|
499
|
+
};
|
|
500
|
+
gasPadding?: number;
|
|
501
|
+
delegationUrl?: string;
|
|
502
|
+
};
|
|
503
|
+
/**
|
|
504
|
+
* Return value of the {@link useSendTransaction} hook
|
|
505
|
+
* @param sendTransaction function to trigger the transaction
|
|
506
|
+
* @param isTransactionPending boolean indicating if the transaction is waiting for the wallet to sign it
|
|
507
|
+
* @param isWaitingForWalletConfirmation boolean indicating if the transaction is waiting for the wallet to confirm it
|
|
508
|
+
* @param txReceipt the transaction receipt
|
|
509
|
+
* @param status the status of the transaction (see {@link TransactionStatus})
|
|
510
|
+
* @param resetStatus function to reset the status to "ready"
|
|
511
|
+
* @param error error that occurred while sending the transaction
|
|
512
|
+
*/
|
|
513
|
+
type UseSendTransactionReturnValue = {
|
|
514
|
+
sendTransaction: (clauses?: TransactionClause[], delegationUrl?: string, privyUIOptions?: {
|
|
515
|
+
title?: string;
|
|
516
|
+
description?: string;
|
|
517
|
+
buttonText?: string;
|
|
518
|
+
}) => Promise<void>;
|
|
519
|
+
isTransactionPending: boolean;
|
|
520
|
+
isWaitingForWalletConfirmation: boolean;
|
|
521
|
+
txReceipt: TransactionReceipt | null;
|
|
522
|
+
status: TransactionStatus;
|
|
523
|
+
resetStatus: () => void;
|
|
524
|
+
error?: TransactionStatusErrorType;
|
|
525
|
+
};
|
|
526
|
+
/**
|
|
527
|
+
* Generic hook to send a transaction using dapp-kit-react.
|
|
528
|
+
* This hook supports both Privy and VeChain wallets.
|
|
529
|
+
*
|
|
530
|
+
* It returns a function to send the transaction and a status to indicate the state
|
|
531
|
+
* of the transaction (together with the transaction id).
|
|
532
|
+
*
|
|
533
|
+
* * ⚠️ IMPORTANT: When using this hook with Privy cross-app connections, ensure all
|
|
534
|
+
* data fetching is done before triggering the transaction. Fetching data after
|
|
535
|
+
* the transaction is triggered may cause browser popup blocking. Pre-fetch any
|
|
536
|
+
* required data and pass it to your transaction building logic.
|
|
537
|
+
*
|
|
538
|
+
* @example
|
|
539
|
+
* ```typescript
|
|
540
|
+
* // ❌ Bad: Fetching during transaction
|
|
541
|
+
* const sendTx = async () => {
|
|
542
|
+
* const data = await fetchSomeData(); // May cause popup blocking
|
|
543
|
+
* return sendTransaction(data);
|
|
544
|
+
* };
|
|
545
|
+
*
|
|
546
|
+
* // ✅ Good: Pre-fetch data
|
|
547
|
+
* const { data } = useQuery(['someData'], fetchSomeData);
|
|
548
|
+
* const sendTx = () => sendTransaction(data); // No async operations
|
|
549
|
+
* ```
|
|
550
|
+
*
|
|
551
|
+
* @param signerAccount the signer account to use
|
|
552
|
+
* @param clauses clauses to send in the transaction
|
|
553
|
+
* @param onTxConfirmed callback to run when the tx is confirmed
|
|
554
|
+
* @param onTxFailedOrCancelled callback to run when the tx fails or is cancelled
|
|
555
|
+
* @param suggestedMaxGas the suggested max gas for the transaction
|
|
556
|
+
* @param privyUIOptions options to pass to the Privy UI
|
|
557
|
+
* @param gasPadding the gas padding to use for the transaction (Eg. 0.1 for 10%)
|
|
558
|
+
* @param delegationUrl the dApp sponsored delegator url.
|
|
559
|
+
* @returns see {@link UseSendTransactionReturnValue}
|
|
560
|
+
*/
|
|
561
|
+
declare const useSendTransaction: ({
|
|
562
|
+
signerAccountAddress,
|
|
563
|
+
clauses,
|
|
564
|
+
onTxConfirmed,
|
|
565
|
+
onTxFailedOrCancelled,
|
|
566
|
+
suggestedMaxGas,
|
|
567
|
+
privyUIOptions,
|
|
568
|
+
gasPadding,
|
|
569
|
+
delegationUrl
|
|
570
|
+
}: UseSendTransactionProps) => UseSendTransactionReturnValue;
|
|
1085
571
|
//#endregion
|
|
1086
572
|
//#region src/hooks/api/vetDomains/useClaimVeWorldSubdomain.d.ts
|
|
1087
573
|
type useClaimVeWorldSubdomainProps = {
|
|
@@ -1143,7 +629,7 @@ declare const getIsDomainProtectedQueryKey: (domain?: string) => (string | undef
|
|
|
1143
629
|
* @param {boolean} [enabled=true] - Flag to enable or disable the hook.
|
|
1144
630
|
* @returns The result of the useQuery hook, with the protection status.
|
|
1145
631
|
*/
|
|
1146
|
-
declare const useIsDomainProtected: (domain?: string, enabled?: boolean) =>
|
|
632
|
+
declare const useIsDomainProtected: (domain?: string, enabled?: boolean) => _tanstack_react_query7.UseQueryResult<boolean, Error>;
|
|
1147
633
|
//#endregion
|
|
1148
634
|
//#region src/hooks/api/vetDomains/useGetDomainsOfAddress.d.ts
|
|
1149
635
|
declare const DomainSchema: z.ZodObject<{
|
|
@@ -1171,7 +657,7 @@ declare const getDomainsOfAddressQueryKey: (address?: string, parentDomain?: str
|
|
|
1171
657
|
* @param parentDomain The parent domain (e.g., "veworld.vet")
|
|
1172
658
|
* @returns The domains owned by the address
|
|
1173
659
|
*/
|
|
1174
|
-
declare const useGetDomainsOfAddress: (address?: string, parentDomain?: string) =>
|
|
660
|
+
declare const useGetDomainsOfAddress: (address?: string, parentDomain?: string) => _tanstack_react_query7.UseQueryResult<{
|
|
1175
661
|
domains: {
|
|
1176
662
|
name: string;
|
|
1177
663
|
}[];
|
|
@@ -1184,7 +670,7 @@ declare const getAvatarQueryKey: (name: string, networkType: NETWORK_TYPE) => st
|
|
|
1184
670
|
* @param name - The VET domain name
|
|
1185
671
|
* @returns The resolved avatar URL
|
|
1186
672
|
*/
|
|
1187
|
-
declare const useGetAvatar: (name: string) =>
|
|
673
|
+
declare const useGetAvatar: (name: string) => _tanstack_react_query7.UseQueryResult<string | null, Error>;
|
|
1188
674
|
//#endregion
|
|
1189
675
|
//#region src/hooks/api/vetDomains/useGetTextRecords.d.ts
|
|
1190
676
|
/**
|
|
@@ -1196,7 +682,7 @@ declare const useGetAvatar: (name: string) => _tanstack_react_query21.UseQueryRe
|
|
|
1196
682
|
*/
|
|
1197
683
|
declare const getTextRecords: (nodeUrl: string, network: NETWORK_TYPE, domain?: string) => Promise<TextRecords>;
|
|
1198
684
|
declare const getTextRecordsQueryKey: (domain?: string, network?: NETWORK_TYPE) => (string | undefined)[];
|
|
1199
|
-
declare const useGetTextRecords: (domain?: string) =>
|
|
685
|
+
declare const useGetTextRecords: (domain?: string) => _tanstack_react_query7.UseQueryResult<TextRecords, Error>;
|
|
1200
686
|
//#endregion
|
|
1201
687
|
//#region src/hooks/api/vetDomains/useUpdateTextRecord.d.ts
|
|
1202
688
|
type UpdateTextRecordVariables = {
|
|
@@ -1229,7 +715,7 @@ declare const getResolverAddressQueryKey: (domain?: string) => (string | undefin
|
|
|
1229
715
|
* @param domain The domain to get resolver for
|
|
1230
716
|
* @returns The resolver address for the domain
|
|
1231
717
|
*/
|
|
1232
|
-
declare const useGetResolverAddress: (domain?: string) =>
|
|
718
|
+
declare const useGetResolverAddress: (domain?: string) => _tanstack_react_query7.UseQueryResult<`0x${string}`, unknown>;
|
|
1233
719
|
//#endregion
|
|
1234
720
|
//#region src/hooks/api/vetDomains/useGetAvatarOfAddress.d.ts
|
|
1235
721
|
declare const getAvatarOfAddressQueryKey: (address?: string) => (string | undefined)[];
|
|
@@ -1239,7 +725,7 @@ declare const getAvatarOfAddressQueryKey: (address?: string) => (string | undefi
|
|
|
1239
725
|
* @param address The owner's address
|
|
1240
726
|
* @returns The avatar URL for the address's primary domain
|
|
1241
727
|
*/
|
|
1242
|
-
declare const useGetAvatarOfAddress: (address?: string) =>
|
|
728
|
+
declare const useGetAvatarOfAddress: (address?: string) => _tanstack_react_query7.UseQueryResult<string, Error>;
|
|
1243
729
|
//#endregion
|
|
1244
730
|
//#region src/hooks/api/vetDomains/useGetAvatarLegacy.d.ts
|
|
1245
731
|
/**
|
|
@@ -1256,7 +742,7 @@ declare const getAvatarLegacyQueryKey: (name: string, networkType: NETWORK_TYPE)
|
|
|
1256
742
|
* @param name - The VET domain name
|
|
1257
743
|
* @returns The resolved avatar URL
|
|
1258
744
|
*/
|
|
1259
|
-
declare const useGetAvatarLegacy: (name: string) =>
|
|
745
|
+
declare const useGetAvatarLegacy: (name: string) => _tanstack_react_query7.UseQueryResult<string | null, Error>;
|
|
1260
746
|
//#endregion
|
|
1261
747
|
//#region src/hooks/api/vetDomains/useUnsetDomain.d.ts
|
|
1262
748
|
type useUnsetDomainProps = {
|
|
@@ -1365,7 +851,7 @@ declare const getCurrentAllocationsRoundIdQueryKey: (address: string) => string[
|
|
|
1365
851
|
* Hook to get the current roundId of allocations voting
|
|
1366
852
|
* @returns the current roundId of allocations voting
|
|
1367
853
|
*/
|
|
1368
|
-
declare const useCurrentAllocationsRoundId: () =>
|
|
854
|
+
declare const useCurrentAllocationsRoundId: () => _tanstack_react_query7.UseQueryResult<string, unknown>;
|
|
1369
855
|
//#endregion
|
|
1370
856
|
//#region src/hooks/api/wallet/useCustomTokens.d.ts
|
|
1371
857
|
declare const useCustomTokens: () => {
|
|
@@ -1378,7 +864,7 @@ declare const useCustomTokens: () => {
|
|
|
1378
864
|
//#endregion
|
|
1379
865
|
//#region src/hooks/api/wallet/useGetB3trBalance.d.ts
|
|
1380
866
|
declare const getB3trBalanceQueryKey: (address?: string) => (string | undefined)[];
|
|
1381
|
-
declare const useGetB3trBalance: (address?: string) =>
|
|
867
|
+
declare const useGetB3trBalance: (address?: string) => _tanstack_react_query7.UseQueryResult<{
|
|
1382
868
|
original: string;
|
|
1383
869
|
scaled: string;
|
|
1384
870
|
formatted: string;
|
|
@@ -1387,7 +873,7 @@ declare const useGetB3trBalance: (address?: string) => _tanstack_react_query21.U
|
|
|
1387
873
|
//#region src/hooks/api/wallet/useGetCustomTokenBalances.d.ts
|
|
1388
874
|
type TokenWithBalance = CustomTokenInfo & TokenBalance;
|
|
1389
875
|
declare const getCustomTokenBalanceQueryKey: (tokenAddress?: string, address?: string) => (string | undefined)[];
|
|
1390
|
-
declare const useGetCustomTokenBalances: (address?: string) =>
|
|
876
|
+
declare const useGetCustomTokenBalances: (address?: string) => _tanstack_react_query7.UseQueryResult<{
|
|
1391
877
|
original: string;
|
|
1392
878
|
scaled: string;
|
|
1393
879
|
formatted: string;
|
|
@@ -1400,11 +886,11 @@ declare const useGetCustomTokenBalances: (address?: string) => _tanstack_react_q
|
|
|
1400
886
|
//#region src/hooks/api/wallet/useGetCustomTokenInfo.d.ts
|
|
1401
887
|
declare const getTokenInfo$1: (tokenAddress: string, networkUrl: string) => Promise<CustomTokenInfo>;
|
|
1402
888
|
declare const getCustomTokenInfoQueryKey: (tokenAddress: string) => string[];
|
|
1403
|
-
declare const useGetCustomTokenInfo: (tokenAddress: string) =>
|
|
889
|
+
declare const useGetCustomTokenInfo: (tokenAddress: string) => _tanstack_react_query7.UseQueryResult<CustomTokenInfo, Error>;
|
|
1404
890
|
//#endregion
|
|
1405
891
|
//#region src/hooks/api/wallet/useGetErc20Balance.d.ts
|
|
1406
892
|
declare const getErc20BalanceQueryKey: (tokenAddress: string, address?: string) => (string | undefined)[];
|
|
1407
|
-
declare const useGetErc20Balance: (tokenAddress: string, address?: string) =>
|
|
893
|
+
declare const useGetErc20Balance: (tokenAddress: string, address?: string) => _tanstack_react_query7.UseQueryResult<{
|
|
1408
894
|
original: string;
|
|
1409
895
|
scaled: string;
|
|
1410
896
|
formatted: string;
|
|
@@ -1421,11 +907,11 @@ declare const PRICE_FEED_IDS: {
|
|
|
1421
907
|
type SupportedToken = keyof typeof PRICE_FEED_IDS;
|
|
1422
908
|
declare const getTokenUsdPrice: (thor: ThorClient, token: SupportedToken, network: NETWORK_TYPE) => Promise<number>;
|
|
1423
909
|
declare const getTokenUsdPriceQueryKey: (token: SupportedToken) => string[];
|
|
1424
|
-
declare const useGetTokenUsdPrice: (token: SupportedToken) =>
|
|
910
|
+
declare const useGetTokenUsdPrice: (token: SupportedToken) => _tanstack_react_query7.UseQueryResult<number, Error>;
|
|
1425
911
|
//#endregion
|
|
1426
912
|
//#region src/hooks/api/wallet/useGetVot3Balance.d.ts
|
|
1427
913
|
declare const getVot3BalanceQueryKey: (address?: string) => (string | undefined)[];
|
|
1428
|
-
declare const useGetVot3Balance: (address?: string) =>
|
|
914
|
+
declare const useGetVot3Balance: (address?: string) => _tanstack_react_query7.UseQueryResult<{
|
|
1429
915
|
original: string;
|
|
1430
916
|
scaled: string;
|
|
1431
917
|
formatted: string;
|
|
@@ -1444,7 +930,7 @@ declare const getIsPersonQueryKey: (user: string, networkType: NETWORK_TYPE) =>
|
|
|
1444
930
|
* @param user - The user address.
|
|
1445
931
|
* @returns The isPerson status.
|
|
1446
932
|
*/
|
|
1447
|
-
declare const useIsPerson: (user?: string | null) =>
|
|
933
|
+
declare const useIsPerson: (user?: string | null) => _tanstack_react_query7.UseQueryResult<boolean, Error>;
|
|
1448
934
|
//#endregion
|
|
1449
935
|
//#region src/hooks/api/wallet/useMostVotedAppsInRound.d.ts
|
|
1450
936
|
type XApp = {
|
|
@@ -1482,7 +968,7 @@ declare const useRefreshMetadata: (domain: string, address: string) => {
|
|
|
1482
968
|
//#endregion
|
|
1483
969
|
//#region src/hooks/api/wallet/useRoundXApps.d.ts
|
|
1484
970
|
declare const getRoundXAppsQueryKey: (roundId: string, networkType: NETWORK_TYPE) => unknown[];
|
|
1485
|
-
declare const useRoundXApps: (roundId?: string) =>
|
|
971
|
+
declare const useRoundXApps: (roundId?: string) => _tanstack_react_query7.UseQueryResult<{
|
|
1486
972
|
id: string;
|
|
1487
973
|
teamWalletAddress: `0x${string}`;
|
|
1488
974
|
name: string;
|
|
@@ -1596,7 +1082,7 @@ type XAppMetadata = {
|
|
|
1596
1082
|
* @returns The metadata of the xApp see {@link XAppMetadata}
|
|
1597
1083
|
*/
|
|
1598
1084
|
declare const getXAppMetadata: (uri: string, networkType: NETWORK_TYPE) => Promise<XAppMetadata | undefined>;
|
|
1599
|
-
declare const useXAppMetadata: (xAppId: string) =>
|
|
1085
|
+
declare const useXAppMetadata: (xAppId: string) => _tanstack_react_query7.UseQueryResult<XAppMetadata | undefined, Error>;
|
|
1600
1086
|
//#endregion
|
|
1601
1087
|
//#region src/hooks/api/wallet/useXAppShares.d.ts
|
|
1602
1088
|
/**
|
|
@@ -1611,7 +1097,7 @@ declare const getXAppsSharesQueryKey: (roundId?: number | string) => (string | n
|
|
|
1611
1097
|
* @returns the shares (% of allocation pool) for the xApps in the round { allocated: number, unallocated: number }
|
|
1612
1098
|
*
|
|
1613
1099
|
*/
|
|
1614
|
-
declare const useXAppsShares: (apps: string[], roundId?: string) =>
|
|
1100
|
+
declare const useXAppsShares: (apps: string[], roundId?: string) => _tanstack_react_query7.UseQueryResult<{
|
|
1615
1101
|
app: string;
|
|
1616
1102
|
share: number;
|
|
1617
1103
|
unallocatedShare: number;
|
|
@@ -1626,14 +1112,14 @@ declare const useXAppsShares: (apps: string[], roundId?: string) => _tanstack_re
|
|
|
1626
1112
|
* @param parseJson - Whether to parse the JSON
|
|
1627
1113
|
* @returns The metadata
|
|
1628
1114
|
*/
|
|
1629
|
-
declare const getIpfsMetadata: <T
|
|
1115
|
+
declare const getIpfsMetadata: <T>(networkType: NETWORK_TYPE, uri?: string, parseJson?: boolean) => Promise<T>;
|
|
1630
1116
|
declare const getIpfsMetadataQueryKey: (networkType: NETWORK_TYPE, ipfsUri?: string) => (string | undefined)[];
|
|
1631
1117
|
/**
|
|
1632
1118
|
* Fetches metadata from IPFS for a given URI
|
|
1633
1119
|
* @param ipfsUri - The IPFS URI
|
|
1634
1120
|
* @returns The metadata from IPFS
|
|
1635
1121
|
*/
|
|
1636
|
-
declare const useIpfsMetadata: <T
|
|
1122
|
+
declare const useIpfsMetadata: <T>(ipfsUri?: string, parseJson?: boolean) => _tanstack_react_query7.UseQueryResult<_tanstack_react_query7.NoInfer<T>, Error>;
|
|
1637
1123
|
//#endregion
|
|
1638
1124
|
//#region src/hooks/api/ipfs/useIpfsImage.d.ts
|
|
1639
1125
|
interface IpfsImage {
|
|
@@ -1660,14 +1146,14 @@ declare const getIpfsImageQueryKey: (networkType: NETWORK_TYPE, imageIpfsUri?: n
|
|
|
1660
1146
|
* @param imageIpfsUri - The IPFS URI of the NFT media
|
|
1661
1147
|
* @returns The NFT media
|
|
1662
1148
|
*/
|
|
1663
|
-
declare const useIpfsImage: (imageIpfsUri?: null | string) =>
|
|
1149
|
+
declare const useIpfsImage: (imageIpfsUri?: null | string) => _tanstack_react_query7.UseQueryResult<IpfsImage, Error>;
|
|
1664
1150
|
/**
|
|
1665
1151
|
* Custom hook to fetch a list of IPFS images.
|
|
1666
1152
|
*
|
|
1667
1153
|
* @param imageIpfsUriList - An array of IPFS URIs for the images.
|
|
1668
1154
|
* @returns An array of queries for each IPFS image URI.
|
|
1669
1155
|
*/
|
|
1670
|
-
declare const useIpfsImageList: (imageIpfsUriList: string[]) =>
|
|
1156
|
+
declare const useIpfsImageList: (imageIpfsUriList: string[]) => _tanstack_react_query7.UseQueryResult<IpfsImage, Error>[];
|
|
1671
1157
|
//#endregion
|
|
1672
1158
|
//#region src/hooks/api/ipfs/useIpfsMetadatas.d.ts
|
|
1673
1159
|
/**
|
|
@@ -1675,12 +1161,12 @@ declare const useIpfsImageList: (imageIpfsUriList: string[]) => _tanstack_react_
|
|
|
1675
1161
|
* @param ipfsUris - The IPFS URIs
|
|
1676
1162
|
* @returns The metadata from IPFS for each URI
|
|
1677
1163
|
*/
|
|
1678
|
-
declare const useIpfsMetadatas: <T
|
|
1164
|
+
declare const useIpfsMetadatas: <T>(ipfsUris: string[], parseJson?: boolean) => _tanstack_react_query7.UseQueryResult<T, Error>[];
|
|
1679
1165
|
//#endregion
|
|
1680
1166
|
//#region src/hooks/api/ipfs/useUploadImages.d.ts
|
|
1681
1167
|
declare const imageCompressionOptions: Options;
|
|
1682
1168
|
declare const compressImages: (images: UploadedImage[]) => Promise<File[]>;
|
|
1683
|
-
type Props$
|
|
1169
|
+
type Props$19 = {
|
|
1684
1170
|
compressImages?: boolean;
|
|
1685
1171
|
defaultImages?: UploadedImage[];
|
|
1686
1172
|
};
|
|
@@ -1696,16 +1182,16 @@ type UploadedImage = {
|
|
|
1696
1182
|
declare const useUploadImages: ({
|
|
1697
1183
|
compressImages,
|
|
1698
1184
|
defaultImages
|
|
1699
|
-
}: Props$
|
|
1185
|
+
}: Props$19) => {
|
|
1700
1186
|
uploadedImages: UploadedImage[];
|
|
1701
|
-
setUploadedImages:
|
|
1187
|
+
setUploadedImages: react8.Dispatch<react8.SetStateAction<UploadedImage[]>>;
|
|
1702
1188
|
onUpload: (acceptedFiles: File[], keepCurrent?: boolean) => Promise<void>;
|
|
1703
1189
|
onRemove: (index: number) => void;
|
|
1704
1190
|
invalidDateError: number[];
|
|
1705
1191
|
};
|
|
1706
1192
|
//#endregion
|
|
1707
1193
|
//#region src/hooks/api/ipfs/useSingleImageUpload.d.ts
|
|
1708
|
-
type Props$
|
|
1194
|
+
type Props$18 = {
|
|
1709
1195
|
compressImage?: boolean;
|
|
1710
1196
|
defaultImage?: UploadedImage;
|
|
1711
1197
|
};
|
|
@@ -1718,13 +1204,62 @@ type Props$19 = {
|
|
|
1718
1204
|
declare const useSingleImageUpload: ({
|
|
1719
1205
|
compressImage,
|
|
1720
1206
|
defaultImage
|
|
1721
|
-
}: Props$
|
|
1207
|
+
}: Props$18) => {
|
|
1722
1208
|
uploadedImage: UploadedImage | undefined;
|
|
1723
|
-
setUploadedImage:
|
|
1209
|
+
setUploadedImage: react8.Dispatch<react8.SetStateAction<UploadedImage | undefined>>;
|
|
1724
1210
|
onUpload: (acceptedFile: File) => Promise<UploadedImage>;
|
|
1725
1211
|
onRemove: () => void;
|
|
1726
1212
|
};
|
|
1727
1213
|
//#endregion
|
|
1214
|
+
//#region src/config/appConfig.d.ts
|
|
1215
|
+
/**
|
|
1216
|
+
* Application configuration for different network environments
|
|
1217
|
+
* Moved to separate file to avoid circular dependencies with network configs
|
|
1218
|
+
*/
|
|
1219
|
+
type AppConfig = {
|
|
1220
|
+
ipfsFetchingService: string;
|
|
1221
|
+
ipfsPinningService: string;
|
|
1222
|
+
vthoContractAddress: string;
|
|
1223
|
+
b3trContractAddress: string;
|
|
1224
|
+
vot3ContractAddress: string;
|
|
1225
|
+
b3trGovernorAddress: string;
|
|
1226
|
+
timelockContractAddress: string;
|
|
1227
|
+
xAllocationPoolContractAddress: string;
|
|
1228
|
+
xAllocationVotingContractAddress: string;
|
|
1229
|
+
emissionsContractAddress: string;
|
|
1230
|
+
voterRewardsContractAddress: string;
|
|
1231
|
+
galaxyMemberContractAddress: string;
|
|
1232
|
+
treasuryContractAddress: string;
|
|
1233
|
+
x2EarnAppsContractAddress: string;
|
|
1234
|
+
x2EarnCreatorContractAddress: string;
|
|
1235
|
+
x2EarnRewardsPoolContractAddress: string;
|
|
1236
|
+
nodeManagementContractAddress: string;
|
|
1237
|
+
veBetterPassportContractAddress: string;
|
|
1238
|
+
veDelegate: string;
|
|
1239
|
+
veDelegateVotes: string;
|
|
1240
|
+
veDelegateTokenContractAddress: string;
|
|
1241
|
+
oracleContractAddress: string;
|
|
1242
|
+
accountFactoryAddress: string;
|
|
1243
|
+
cleanifyCampaignsContractAddress: string;
|
|
1244
|
+
cleanifyChallengesContractAddress: string;
|
|
1245
|
+
veWorldSubdomainClaimerContractAddress: string;
|
|
1246
|
+
vetDomainsContractAddress: string;
|
|
1247
|
+
vetDomainsPublicResolverAddress: string;
|
|
1248
|
+
vetDomainsReverseRegistrarAddress: string;
|
|
1249
|
+
vnsResolverAddress: string;
|
|
1250
|
+
gloDollarContractAddress: string;
|
|
1251
|
+
vetDomainAvatarUrl: string;
|
|
1252
|
+
nodeUrl: string;
|
|
1253
|
+
indexerUrl: string;
|
|
1254
|
+
b3trIndexerUrl: string;
|
|
1255
|
+
graphQlIndexerUrl: string;
|
|
1256
|
+
network: Network;
|
|
1257
|
+
explorerUrl: string;
|
|
1258
|
+
};
|
|
1259
|
+
//#endregion
|
|
1260
|
+
//#region src/config/index.d.ts
|
|
1261
|
+
declare const getConfig: (env: NETWORK_TYPE) => AppConfig;
|
|
1262
|
+
//#endregion
|
|
1728
1263
|
//#region src/types/swap.d.ts
|
|
1729
1264
|
/**
|
|
1730
1265
|
* Swap quote from an aggregator
|
|
@@ -1856,7 +1391,7 @@ declare const useSwapTransaction: (params: SwapParams | null, quote: SwapQuote |
|
|
|
1856
1391
|
executeSwap: () => Promise<void>;
|
|
1857
1392
|
isTransactionPending: boolean;
|
|
1858
1393
|
isWaitingForWalletConfirmation: boolean;
|
|
1859
|
-
txReceipt:
|
|
1394
|
+
txReceipt: _vechain_sdk_network0.TransactionReceipt | null;
|
|
1860
1395
|
status: TransactionStatus;
|
|
1861
1396
|
resetStatus: () => void;
|
|
1862
1397
|
error: TransactionStatusErrorType | undefined;
|
|
@@ -1884,6 +1419,87 @@ type UnifiedSwapQuotesResult = {
|
|
|
1884
1419
|
*/
|
|
1885
1420
|
declare const useSwapQuotes: (fromToken: TokenWithValue | null, toToken: TokenWithValue | null, amountIn: string, userAddress: string, slippageTolerance?: number, enabled?: boolean) => UnifiedSwapQuotesResult;
|
|
1886
1421
|
//#endregion
|
|
1422
|
+
//#region src/hooks/api/dappkit/useOptionalThor.d.ts
|
|
1423
|
+
/**
|
|
1424
|
+
* Type for the optional Thor hook return value.
|
|
1425
|
+
* Returns ThorClient when available, null otherwise.
|
|
1426
|
+
*/
|
|
1427
|
+
type UseOptionalThorReturnType = ThorClient | null;
|
|
1428
|
+
/**
|
|
1429
|
+
* Optional hook to access Thor client.
|
|
1430
|
+
* First tries to use DAppKit's useThor if available and configured,
|
|
1431
|
+
* then falls back to ThorProvider.
|
|
1432
|
+
* Returns null if neither is available.
|
|
1433
|
+
*
|
|
1434
|
+
* Uses static import to ensure the same module instance as LazyDAppKitProvider,
|
|
1435
|
+
* avoiding ESM/CJS interop issues that can occur with require().
|
|
1436
|
+
*
|
|
1437
|
+
* @returns Thor client or null if not available
|
|
1438
|
+
*/
|
|
1439
|
+
declare const useOptionalThor: () => UseOptionalThorReturnType;
|
|
1440
|
+
//#endregion
|
|
1441
|
+
//#region src/hooks/api/dappkit/useOptionalDAppKitWallet.d.ts
|
|
1442
|
+
/**
|
|
1443
|
+
* Type for the optional DAppKitWallet hook return value.
|
|
1444
|
+
* Returns default values when DAppKit is not configured.
|
|
1445
|
+
*/
|
|
1446
|
+
type UseOptionalDAppKitWalletReturnType = {
|
|
1447
|
+
account: string | null;
|
|
1448
|
+
source: string | null;
|
|
1449
|
+
connectionCertificate: CertificateData | null;
|
|
1450
|
+
connect: () => void;
|
|
1451
|
+
connectV2: (...args: unknown[]) => void;
|
|
1452
|
+
disconnect: () => void;
|
|
1453
|
+
setSource: (source: string) => void;
|
|
1454
|
+
availableWallets: string[];
|
|
1455
|
+
switchWallet?: () => Promise<void>;
|
|
1456
|
+
isSwitchWalletEnabled?: boolean;
|
|
1457
|
+
signer: VeChainSignerDAppKit;
|
|
1458
|
+
requestCertificate: (...args: unknown[]) => Promise<{
|
|
1459
|
+
annex: {
|
|
1460
|
+
domain: string;
|
|
1461
|
+
signer: string;
|
|
1462
|
+
timestamp: number;
|
|
1463
|
+
};
|
|
1464
|
+
signature: string;
|
|
1465
|
+
}>;
|
|
1466
|
+
requestTransaction: (...args: unknown[]) => Promise<{
|
|
1467
|
+
txid: string;
|
|
1468
|
+
}>;
|
|
1469
|
+
};
|
|
1470
|
+
/**
|
|
1471
|
+
* Optional hook to access DAppKit wallet context.
|
|
1472
|
+
* Returns default values when DAppKit is not configured, avoiding the need
|
|
1473
|
+
* to wrap every usage in a try-catch or conditional check.
|
|
1474
|
+
*
|
|
1475
|
+
* Uses static import to ensure the same module instance as LazyDAppKitProvider,
|
|
1476
|
+
* avoiding ESM/CJS interop issues that can occur with require().
|
|
1477
|
+
*
|
|
1478
|
+
* @returns DAppKit wallet info and functions, or default values if DAppKit is not configured
|
|
1479
|
+
*/
|
|
1480
|
+
declare const useOptionalDAppKitWallet: () => UseOptionalDAppKitWalletReturnType;
|
|
1481
|
+
//#endregion
|
|
1482
|
+
//#region src/hooks/api/dappkit/useOptionalDAppKitWalletModal.d.ts
|
|
1483
|
+
/**
|
|
1484
|
+
* Type for the optional DAppKitWalletModal hook return value.
|
|
1485
|
+
*/
|
|
1486
|
+
type UseOptionalDAppKitWalletModalReturnType = {
|
|
1487
|
+
open: () => void;
|
|
1488
|
+
close: () => void;
|
|
1489
|
+
onConnectionStatusChange: (callback: (address: string | null, error?: Error) => void) => void;
|
|
1490
|
+
};
|
|
1491
|
+
/**
|
|
1492
|
+
* Optional hook to access DAppKit wallet modal context.
|
|
1493
|
+
* Returns default values when DAppKit is not configured, avoiding the need
|
|
1494
|
+
* to wrap every usage in a try-catch or conditional check.
|
|
1495
|
+
*
|
|
1496
|
+
* Uses static import to ensure the same module instance as LazyDAppKitProvider,
|
|
1497
|
+
* avoiding ESM/CJS interop issues that can occur with require().
|
|
1498
|
+
*
|
|
1499
|
+
* @returns DAppKit wallet modal functions, or default values if DAppKit is not configured
|
|
1500
|
+
*/
|
|
1501
|
+
declare const useOptionalDAppKitWalletModal: () => UseOptionalDAppKitWalletModalReturnType;
|
|
1502
|
+
//#endregion
|
|
1887
1503
|
//#region src/hooks/modals/useConnectModal.d.ts
|
|
1888
1504
|
declare const useConnectModal: () => {
|
|
1889
1505
|
open: (initialContent?: ConnectModalContentsTypes) => void;
|
|
@@ -1894,7 +1510,7 @@ declare const ConnectModalProvider: ({
|
|
|
1894
1510
|
children
|
|
1895
1511
|
}: {
|
|
1896
1512
|
children: ReactNode;
|
|
1897
|
-
}) =>
|
|
1513
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
1898
1514
|
//#endregion
|
|
1899
1515
|
//#region src/hooks/modals/useAccountModal.d.ts
|
|
1900
1516
|
declare const useAccountModal: () => {
|
|
@@ -1906,7 +1522,7 @@ declare const AccountModalProvider: ({
|
|
|
1906
1522
|
children
|
|
1907
1523
|
}: {
|
|
1908
1524
|
children: ReactNode;
|
|
1909
|
-
}) =>
|
|
1525
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
1910
1526
|
//#endregion
|
|
1911
1527
|
//#region src/hooks/modals/useTransactionModal.d.ts
|
|
1912
1528
|
declare const useTransactionModal: () => {
|
|
@@ -1918,7 +1534,7 @@ declare const TransactionModalProvider: ({
|
|
|
1918
1534
|
children
|
|
1919
1535
|
}: {
|
|
1920
1536
|
children: ReactNode;
|
|
1921
|
-
}) =>
|
|
1537
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
1922
1538
|
//#endregion
|
|
1923
1539
|
//#region src/hooks/modals/useTransactionToast.d.ts
|
|
1924
1540
|
declare const useTransactionToast: () => {
|
|
@@ -1930,10 +1546,10 @@ declare const TransactionToastProvider: ({
|
|
|
1930
1546
|
children
|
|
1931
1547
|
}: {
|
|
1932
1548
|
children: ReactNode;
|
|
1933
|
-
}) =>
|
|
1549
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
1934
1550
|
//#endregion
|
|
1935
1551
|
//#region src/hooks/modals/useWalletModal.d.ts
|
|
1936
|
-
declare const useWalletModal: () => {
|
|
1552
|
+
declare const useWalletModal$1: () => {
|
|
1937
1553
|
open: (options?: AccountModalOptions) => void;
|
|
1938
1554
|
close: () => void;
|
|
1939
1555
|
isOpen: boolean;
|
|
@@ -1942,7 +1558,7 @@ declare const WalletModalProvider: ({
|
|
|
1942
1558
|
children
|
|
1943
1559
|
}: {
|
|
1944
1560
|
children: ReactNode;
|
|
1945
|
-
}) =>
|
|
1561
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
1946
1562
|
//#endregion
|
|
1947
1563
|
//#region src/hooks/modals/useChooseNameModal.d.ts
|
|
1948
1564
|
declare const useChooseNameModal: () => {
|
|
@@ -1954,7 +1570,7 @@ declare const ChooseNameModalProvider: ({
|
|
|
1954
1570
|
children
|
|
1955
1571
|
}: {
|
|
1956
1572
|
children: ReactNode;
|
|
1957
|
-
}) =>
|
|
1573
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
1958
1574
|
//#endregion
|
|
1959
1575
|
//#region src/hooks/modals/useSendTokenModal.d.ts
|
|
1960
1576
|
declare const useSendTokenModal: () => {
|
|
@@ -1966,7 +1582,7 @@ declare const SendTokenModalProvider: ({
|
|
|
1966
1582
|
children
|
|
1967
1583
|
}: {
|
|
1968
1584
|
children: ReactNode;
|
|
1969
|
-
}) =>
|
|
1585
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
1970
1586
|
//#endregion
|
|
1971
1587
|
//#region src/hooks/modals/useSwapTokenModal.d.ts
|
|
1972
1588
|
type SwapTokenModalOptions = {
|
|
@@ -1983,7 +1599,7 @@ declare const SwapTokenModalProvider: ({
|
|
|
1983
1599
|
children
|
|
1984
1600
|
}: {
|
|
1985
1601
|
children: ReactNode;
|
|
1986
|
-
}) =>
|
|
1602
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
1987
1603
|
//#endregion
|
|
1988
1604
|
//#region src/hooks/modals/useExploreEcosystemModal.d.ts
|
|
1989
1605
|
declare const useExploreEcosystemModal: () => {
|
|
@@ -1995,7 +1611,7 @@ declare const ExploreEcosystemModalProvider: ({
|
|
|
1995
1611
|
children
|
|
1996
1612
|
}: {
|
|
1997
1613
|
children: ReactNode;
|
|
1998
|
-
}) =>
|
|
1614
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
1999
1615
|
//#endregion
|
|
2000
1616
|
//#region src/hooks/modals/useNotificationsModal.d.ts
|
|
2001
1617
|
declare const useNotificationsModal: () => {
|
|
@@ -2007,7 +1623,7 @@ declare const NotificationsModalProvider: ({
|
|
|
2007
1623
|
children
|
|
2008
1624
|
}: {
|
|
2009
1625
|
children: ReactNode;
|
|
2010
|
-
}) =>
|
|
1626
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
2011
1627
|
//#endregion
|
|
2012
1628
|
//#region src/hooks/modals/useFAQModal.d.ts
|
|
2013
1629
|
declare const useFAQModal: () => {
|
|
@@ -2019,7 +1635,7 @@ declare const FAQModalProvider: ({
|
|
|
2019
1635
|
children
|
|
2020
1636
|
}: {
|
|
2021
1637
|
children: ReactNode;
|
|
2022
|
-
}) =>
|
|
1638
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
2023
1639
|
//#endregion
|
|
2024
1640
|
//#region src/hooks/modals/useAccountCustomizationModal.d.ts
|
|
2025
1641
|
declare const useAccountCustomizationModal: () => {
|
|
@@ -2031,7 +1647,7 @@ declare const AccountCustomizationModalProvider: ({
|
|
|
2031
1647
|
children
|
|
2032
1648
|
}: {
|
|
2033
1649
|
children: ReactNode;
|
|
2034
|
-
}) =>
|
|
1650
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
2035
1651
|
//#endregion
|
|
2036
1652
|
//#region src/hooks/modals/useReceiveModal.d.ts
|
|
2037
1653
|
declare const useReceiveModal: () => {
|
|
@@ -2043,7 +1659,7 @@ declare const ReceiveModalProvider: ({
|
|
|
2043
1659
|
children
|
|
2044
1660
|
}: {
|
|
2045
1661
|
children: ReactNode;
|
|
2046
|
-
}) =>
|
|
1662
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
2047
1663
|
//#endregion
|
|
2048
1664
|
//#region src/hooks/modals/useLoginModalContent.d.ts
|
|
2049
1665
|
type LoginModalContentConfig = {
|
|
@@ -2069,7 +1685,7 @@ declare const UpgradeSmartAccountModalProvider: ({
|
|
|
2069
1685
|
children
|
|
2070
1686
|
}: {
|
|
2071
1687
|
children: ReactNode;
|
|
2072
|
-
}) =>
|
|
1688
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
2073
1689
|
//#endregion
|
|
2074
1690
|
//#region src/hooks/modals/useProfileModal.d.ts
|
|
2075
1691
|
declare const useProfileModal: () => {
|
|
@@ -2081,7 +1697,7 @@ declare const ProfileModalProvider: ({
|
|
|
2081
1697
|
children
|
|
2082
1698
|
}: {
|
|
2083
1699
|
children: ReactNode;
|
|
2084
|
-
}) =>
|
|
1700
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
2085
1701
|
//#endregion
|
|
2086
1702
|
//#region src/hooks/modals/useAccountModalOptions.d.ts
|
|
2087
1703
|
declare const useAccountModalOptions: () => {
|
|
@@ -2099,12 +1715,13 @@ declare const SettingsModalProvider: ({
|
|
|
2099
1715
|
children
|
|
2100
1716
|
}: {
|
|
2101
1717
|
children: ReactNode;
|
|
2102
|
-
}) =>
|
|
1718
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
2103
1719
|
//#endregion
|
|
2104
1720
|
//#region src/hooks/notifications/types.d.ts
|
|
1721
|
+
type AccountModalContentTypes$2 = any;
|
|
2105
1722
|
type NotificationAction = {
|
|
2106
1723
|
label: string;
|
|
2107
|
-
content: AccountModalContentTypes;
|
|
1724
|
+
content: AccountModalContentTypes$2;
|
|
2108
1725
|
};
|
|
2109
1726
|
type Notification = {
|
|
2110
1727
|
id: string;
|
|
@@ -2143,7 +1760,7 @@ type UseSignMessageReturnValue = {
|
|
|
2143
1760
|
*
|
|
2144
1761
|
* @returns {UseSignMessageReturnValue} Object containing the signing function and status
|
|
2145
1762
|
*/
|
|
2146
|
-
declare const useSignMessage: () => UseSignMessageReturnValue;
|
|
1763
|
+
declare const useSignMessage$1: () => UseSignMessageReturnValue;
|
|
2147
1764
|
//#endregion
|
|
2148
1765
|
//#region src/hooks/signing/useSignTypedData.d.ts
|
|
2149
1766
|
type UseSignTypedDataReturnValue = {
|
|
@@ -2161,7 +1778,7 @@ type UseSignTypedDataReturnValue = {
|
|
|
2161
1778
|
*
|
|
2162
1779
|
* @returns {UseSignTypedDataReturnValue} Object containing the signing function and status
|
|
2163
1780
|
*/
|
|
2164
|
-
declare const useSignTypedData: () => UseSignTypedDataReturnValue;
|
|
1781
|
+
declare const useSignTypedData$1: () => UseSignTypedDataReturnValue;
|
|
2165
1782
|
//#endregion
|
|
2166
1783
|
//#region src/hooks/login/useLoginWithPasskey.d.ts
|
|
2167
1784
|
declare const useLoginWithPasskey$1: () => {
|
|
@@ -2183,9 +1800,6 @@ declare const useLoginWithVeChain: () => {
|
|
|
2183
1800
|
login: () => Promise<void>;
|
|
2184
1801
|
};
|
|
2185
1802
|
//#endregion
|
|
2186
|
-
//#region src/components/AccountModal/Contents/Ecosystem/Components/CategoryLabel.d.ts
|
|
2187
|
-
type AllowedCategories = 'defi' | 'games' | 'collectibles' | 'marketplaces' | 'utilities' | 'vebetter';
|
|
2188
|
-
//#endregion
|
|
2189
1803
|
//#region src/hooks/utils/useAppHubApps.d.ts
|
|
2190
1804
|
type AppHubApp = {
|
|
2191
1805
|
id: string;
|
|
@@ -2229,320 +1843,7 @@ declare const fetchAppHubApps: () => Promise<AppHubApp[]>;
|
|
|
2229
1843
|
* );
|
|
2230
1844
|
* ```
|
|
2231
1845
|
*/
|
|
2232
|
-
declare const useAppHubApps: () =>
|
|
2233
|
-
//#endregion
|
|
2234
|
-
//#region src/utils/constants.d.ts
|
|
2235
|
-
declare const TOKEN_LOGOS: Record<string, string>;
|
|
2236
|
-
declare const TOKEN_LOGO_COMPONENTS: Record<string, JSX.Element>;
|
|
2237
|
-
declare const VECHAIN_PRIVY_APP_ID = "cm4wxxujb022fyujl7g0thb21";
|
|
2238
|
-
declare const notFoundImage = "https://upload.wikimedia.org/wikipedia/commons/a/a3/Image-not-found.png";
|
|
2239
|
-
declare enum TogglePassportCheck {
|
|
2240
|
-
WhitelistCheck = 1,
|
|
2241
|
-
BlacklistCheck = 2,
|
|
2242
|
-
SignalingCheck = 3,
|
|
2243
|
-
ParticipationScoreCheck = 4,
|
|
2244
|
-
GmOwnershipCheck = 5,
|
|
2245
|
-
}
|
|
2246
|
-
declare const VECHAIN_KIT_STORAGE_KEYS: {
|
|
2247
|
-
NETWORK: string;
|
|
2248
|
-
};
|
|
2249
|
-
declare const getENV: () => {
|
|
2250
|
-
isDevelopment: boolean;
|
|
2251
|
-
isProduction: boolean;
|
|
2252
|
-
};
|
|
2253
|
-
declare const ENV: {
|
|
2254
|
-
readonly isDevelopment: boolean;
|
|
2255
|
-
readonly isProduction: boolean;
|
|
2256
|
-
};
|
|
2257
|
-
declare const getGenericDelegatorUrl: () => "https://mainnet.delegator.vechain.org/api/v1/" | "https://testnet.delegator.vechain.org/api/v1/";
|
|
2258
|
-
type PrivyEcosystemApp = {
|
|
2259
|
-
id: string;
|
|
2260
|
-
name: string;
|
|
2261
|
-
website: string;
|
|
2262
|
-
};
|
|
2263
|
-
declare const DEFAULT_PRIVY_ECOSYSTEM_APPS: PrivyEcosystemApp[];
|
|
2264
|
-
declare const VECHAIN_KIT_TERMS_CONFIG: {
|
|
2265
|
-
url: string;
|
|
2266
|
-
version: number;
|
|
2267
|
-
required: boolean;
|
|
2268
|
-
displayName: string;
|
|
2269
|
-
};
|
|
2270
|
-
declare const VECHAIN_KIT_COOKIES_CONFIG: {
|
|
2271
|
-
url: string;
|
|
2272
|
-
version: number;
|
|
2273
|
-
required: boolean;
|
|
2274
|
-
displayName: string;
|
|
2275
|
-
};
|
|
2276
|
-
declare const DEFAULT_GAS_TOKEN_PREFERENCES: GasTokenPreferences;
|
|
2277
|
-
declare const SUPPORTED_GAS_TOKENS: Record<GasTokenType, GasTokenInfo>;
|
|
2278
|
-
//#endregion
|
|
2279
|
-
//#region src/utils/formattingUtils.d.ts
|
|
2280
|
-
declare const humanAddress: (address: string, charAtStart?: number, charAtEnd?: number) => string;
|
|
2281
|
-
declare const humanDomain: (domain: string, lengthBefore?: number, lengthAfter?: number) => string;
|
|
2282
|
-
declare const humanNumber: (formattedValue: BigNumber.Value, originalValue?: BigNumber.Value, symbol?: string | null) => string;
|
|
2283
|
-
declare const isZero: (value?: BigNumber.Value) => boolean;
|
|
2284
|
-
declare const getPicassoImage: (address: string, base64?: boolean) => string;
|
|
2285
|
-
/**
|
|
2286
|
-
* Format the token balance human friendly
|
|
2287
|
-
* @param balance - balance in bigint
|
|
2288
|
-
* @returns the formatted balance in the form of {@link TokenBalance} (original, scaled down and formatted)
|
|
2289
|
-
*/
|
|
2290
|
-
declare const formatTokenBalance: (balance: bigint) => {
|
|
2291
|
-
original: string;
|
|
2292
|
-
scaled: string;
|
|
2293
|
-
formatted: string;
|
|
2294
|
-
};
|
|
2295
|
-
//#endregion
|
|
2296
|
-
//#region src/utils/randomTxForwarder.d.ts
|
|
2297
|
-
declare const randomTransactionUser: {
|
|
2298
|
-
privateKey: string;
|
|
2299
|
-
account: Account;
|
|
2300
|
-
address: string;
|
|
2301
|
-
};
|
|
2302
|
-
//#endregion
|
|
2303
|
-
//#region src/utils/addressUtils.d.ts
|
|
2304
|
-
/**
|
|
2305
|
-
* Checks if two addresses are equal. Returns true if both values are strings AND:
|
|
2306
|
-
* - The two values are equal OR
|
|
2307
|
-
* - The checksumed addresses are equal
|
|
2308
|
-
*
|
|
2309
|
-
* @param address1
|
|
2310
|
-
* @param address2
|
|
2311
|
-
*/
|
|
2312
|
-
declare const compareAddresses: (address1?: string, address2?: string) => boolean;
|
|
2313
|
-
declare const compareListOfAddresses: (add1: string[], add2: string[]) => boolean;
|
|
2314
|
-
declare const regexPattern: () => RegExp;
|
|
2315
|
-
declare const isValidAddress: typeof Address.isValid;
|
|
2316
|
-
declare const leftPadWithZeros: (str: string, length: number) => string;
|
|
2317
|
-
//#endregion
|
|
2318
|
-
//#region src/utils/ipfs.d.ts
|
|
2319
|
-
/**
|
|
2320
|
-
* Validate IPFS URI strings. An example of a valid IPFS URI is:
|
|
2321
|
-
* - ipfs://QmfSTia1TJUiKQ2fyW9NTPzEKNdjMGzbUgrC3QPSTpkum6/406.json
|
|
2322
|
-
* - ipfs://QmVPqKfwRXjg5Fqwy6RNRbKR2ZP4pKKVLvmfjmhQfdM3MH/4
|
|
2323
|
-
* - ipfs://QmVPqKfwRXjg5Fqwy6RNRbKR2ZP4pKKVLvmfjmhQfdM3MH
|
|
2324
|
-
* @param uri
|
|
2325
|
-
* @returns
|
|
2326
|
-
*/
|
|
2327
|
-
declare const validateIpfsUri: (uri: string) => boolean;
|
|
2328
|
-
/**
|
|
2329
|
-
* Converts a CID to an IPFS native URL.
|
|
2330
|
-
*
|
|
2331
|
-
* @param cid - The CID to convert.
|
|
2332
|
-
* @param fileName - The name of the file to append to the URL.
|
|
2333
|
-
*
|
|
2334
|
-
* @returns The IPFS URL in the format `ipfs://${cid}/${fileName}`.
|
|
2335
|
-
*/
|
|
2336
|
-
declare function toIPFSURL(cid: string, fileName?: string): string;
|
|
2337
|
-
/**
|
|
2338
|
-
* Uploads a blob to IPFS.
|
|
2339
|
-
* @param blob The Blob object to upload.
|
|
2340
|
-
* @param filename A name for the file in the FormData payload.
|
|
2341
|
-
* @param networkType The network type to use for the IPFS pinning service.
|
|
2342
|
-
* @returns The IPFS hash of the uploaded blob.
|
|
2343
|
-
*/
|
|
2344
|
-
declare function uploadBlobToIPFS(blob: Blob, filename: string, networkType: NETWORK_TYPE): Promise<string>;
|
|
2345
|
-
//#endregion
|
|
2346
|
-
//#region src/utils/media.d.ts
|
|
2347
|
-
declare const resolveMediaTypeFromMimeType: (mimeType: string) => NFTMediaType;
|
|
2348
|
-
//#endregion
|
|
2349
|
-
//#region src/utils/uri.d.ts
|
|
2350
|
-
/**
|
|
2351
|
-
* Convert a URI to a URL
|
|
2352
|
-
* We support both IPFS and Arweave URIs. Both should be converted to their https gateway URLs.
|
|
2353
|
-
* All other URIs should pass through unchanged.
|
|
2354
|
-
*
|
|
2355
|
-
* @param uri
|
|
2356
|
-
*/
|
|
2357
|
-
declare const convertUriToUrl: (uri: string, networkType: NETWORK_TYPE) => string | null;
|
|
2358
|
-
//#endregion
|
|
2359
|
-
//#region src/utils/gmNfts.d.ts
|
|
2360
|
-
declare const gmNfts: {
|
|
2361
|
-
level: string;
|
|
2362
|
-
name: string;
|
|
2363
|
-
image: string;
|
|
2364
|
-
multiplier: number;
|
|
2365
|
-
b3trToUpgrade: number;
|
|
2366
|
-
}[];
|
|
2367
|
-
/**
|
|
2368
|
-
* Maps the XNode level to the GM starting level.
|
|
2369
|
-
*/
|
|
2370
|
-
declare const xNodeToGMstartingLevel: Record<number, number>;
|
|
2371
|
-
//#endregion
|
|
2372
|
-
//#region src/utils/buildQueryString.d.ts
|
|
2373
|
-
declare const buildQueryString: (params: {
|
|
2374
|
-
[key: string]: any;
|
|
2375
|
-
}) => string;
|
|
2376
|
-
//#endregion
|
|
2377
|
-
//#region src/utils/xNode.d.ts
|
|
2378
|
-
/**
|
|
2379
|
-
* Map strength level coming from contract to hq image
|
|
2380
|
-
*/
|
|
2381
|
-
declare const NodeStrengthLevelToImage: {
|
|
2382
|
-
[key: string]: string;
|
|
2383
|
-
};
|
|
2384
|
-
declare const MinXNodeLevel = 4;
|
|
2385
|
-
declare const EconomicNodeStrengthLevelToName: {
|
|
2386
|
-
[key: string]: string;
|
|
2387
|
-
};
|
|
2388
|
-
declare const XNodeStrengthLevelToName: {
|
|
2389
|
-
[key: string]: string;
|
|
2390
|
-
};
|
|
2391
|
-
declare const allNodeStrengthLevelToName: {
|
|
2392
|
-
[key: string]: string;
|
|
2393
|
-
};
|
|
2394
|
-
//#endregion
|
|
2395
|
-
//#region src/utils/time.d.ts
|
|
2396
|
-
declare const TIME: {
|
|
2397
|
-
SECOND: number;
|
|
2398
|
-
MINUTE: number;
|
|
2399
|
-
HOUR: number;
|
|
2400
|
-
DAY: number;
|
|
2401
|
-
WEEK: number;
|
|
2402
|
-
MONTH: number;
|
|
2403
|
-
YEAR: number;
|
|
2404
|
-
};
|
|
2405
|
-
//#endregion
|
|
2406
|
-
//#region src/utils/stringUtils.d.ts
|
|
2407
|
-
/**
|
|
2408
|
-
* Checks if a string contains common rejection-related terms
|
|
2409
|
-
* @param errorMessage The error message to check
|
|
2410
|
-
* @returns boolean indicating if the message contains rejection terms
|
|
2411
|
-
*/
|
|
2412
|
-
declare const isRejectionError: (errorMessage: string) => boolean;
|
|
2413
|
-
/**
|
|
2414
|
-
* Generates a simple hash from a string using a 32-bit hash algorithm
|
|
2415
|
-
* @param input The string to hash
|
|
2416
|
-
* @returns A base-36 string representation of the hash
|
|
2417
|
-
*/
|
|
2418
|
-
declare const simpleHash: (input: string) => string;
|
|
2419
|
-
//#endregion
|
|
2420
|
-
//#region src/utils/hexUtils.d.ts
|
|
2421
|
-
/**
|
|
2422
|
-
* Returns the provied hex string with the hex prefix removed.
|
|
2423
|
-
* If the prefix doesn't exist the hex is returned unmodified
|
|
2424
|
-
* @param hex - the input hex string
|
|
2425
|
-
* @returns the input hex string with the hex prefix removed
|
|
2426
|
-
* @throws an error if the input is not a valid hex string
|
|
2427
|
-
*/
|
|
2428
|
-
declare const removePrefix: (hex: string) => string;
|
|
2429
|
-
/**
|
|
2430
|
-
* Returns the provided hex string with the hex prefix added.
|
|
2431
|
-
* If the prefix already exists the string is returned unmodified.
|
|
2432
|
-
* If the string contains an UPPER case `X` in the prefix it will be replaced with a lower case `x`
|
|
2433
|
-
* @param hex - the input hex string
|
|
2434
|
-
* @returns the input hex string with the hex prefix added
|
|
2435
|
-
* @throws an error if the input is not a valid hex string
|
|
2436
|
-
*/
|
|
2437
|
-
declare const addPrefix: (hex: string) => string;
|
|
2438
|
-
/**
|
|
2439
|
-
* Validate the hex string. Throws an Error if not valid
|
|
2440
|
-
* @param hex - the input hex string
|
|
2441
|
-
* @throws an error if the input is not a valid hex string
|
|
2442
|
-
*/
|
|
2443
|
-
declare const validate: (hex: string) => void;
|
|
2444
|
-
/**
|
|
2445
|
-
* Check if input string is valid
|
|
2446
|
-
* @param hex - the input hex string
|
|
2447
|
-
* @returns boolean representing whether the input hex is valid
|
|
2448
|
-
*/
|
|
2449
|
-
declare const isValid: (hex?: string | null) => boolean;
|
|
2450
|
-
declare const isInvalid: (hex?: string | null) => boolean;
|
|
2451
|
-
declare const normalize: (hex: string) => string;
|
|
2452
|
-
declare const compare: (hex1: string, hex2: string) => boolean;
|
|
2453
|
-
//#endregion
|
|
2454
|
-
//#region src/utils/url.d.ts
|
|
2455
|
-
declare const isValidUrl: (value: string) => boolean;
|
|
2456
|
-
//#endregion
|
|
2457
|
-
//#region src/utils/thorUtils.d.ts
|
|
2458
|
-
type ExtractViewFunction$1<TAbi extends Abi, TMethod extends ExtractAbiFunctionNames<TAbi, 'pure' | 'view'>> = Extract<TAbi[number], {
|
|
2459
|
-
type: 'function';
|
|
2460
|
-
stateMutability: 'pure' | 'view';
|
|
2461
|
-
name: TMethod;
|
|
2462
|
-
}>;
|
|
2463
|
-
type ViewFunctionResult<TAbi extends Abi, TMethod extends ExtractAbiFunctionNames<TAbi, 'pure' | 'view'>> = AbiParametersToPrimitiveTypes<ExtractViewFunction$1<TAbi, TMethod>['outputs'], 'outputs'>;
|
|
2464
|
-
type MultipleClausesCallParameters<contracts extends readonly unknown[] = readonly ContractFunctionParameters[], allowFailure extends boolean = true> = MulticallParameters<contracts, allowFailure>['contracts'];
|
|
2465
|
-
type MultipleClausesCallReturnType<contracts extends readonly unknown[] = readonly ContractFunctionParameters[], allowFailure extends boolean = true> = MulticallReturnType<contracts, allowFailure>;
|
|
2466
|
-
declare const executeCallClause: <TAbi extends Abi, TMethod extends ExtractAbiFunctionNames<TAbi, "pure" | "view">>({
|
|
2467
|
-
thor,
|
|
2468
|
-
contractAddress,
|
|
2469
|
-
abi,
|
|
2470
|
-
method,
|
|
2471
|
-
args
|
|
2472
|
-
}: {
|
|
2473
|
-
thor: ThorClient;
|
|
2474
|
-
contractAddress: string;
|
|
2475
|
-
abi: TAbi;
|
|
2476
|
-
method: TMethod;
|
|
2477
|
-
args: AbiParametersToPrimitiveTypes<ExtractAbiFunction<TAbi, TMethod>["inputs"], "inputs">;
|
|
2478
|
-
}) => Promise<(Extract<TAbi[number], {
|
|
2479
|
-
type: "function";
|
|
2480
|
-
stateMutability: "pure" | "view";
|
|
2481
|
-
name: TMethod;
|
|
2482
|
-
}>["outputs"] extends infer T_1 extends readonly abitype0.AbiParameter[] ? { [key_1 in keyof T_1]: abitype0.AbiParameterToPrimitiveType<T_1[key_1], abiParameterKind> } : never) extends infer T ? { [key in keyof T]: T[key] } : never>;
|
|
2483
|
-
declare const executeMultipleClausesCall: <contracts extends readonly ContractFunctionParameters[], allowFailure extends boolean = false>({
|
|
2484
|
-
thor,
|
|
2485
|
-
calls
|
|
2486
|
-
}: {
|
|
2487
|
-
thor: ThorClient;
|
|
2488
|
-
calls: MultipleClausesCallParameters<contracts, allowFailure>;
|
|
2489
|
-
}) => Promise<MultipleClausesCallReturnType<contracts, allowFailure>>;
|
|
2490
|
-
declare const buildCallClauses: <contracts extends readonly ContractFunctionParameters[], allowFailure extends boolean = false>({
|
|
2491
|
-
thor,
|
|
2492
|
-
calls
|
|
2493
|
-
}: {
|
|
2494
|
-
thor: ThorClient;
|
|
2495
|
-
calls: MultipleClausesCallParameters<contracts, allowFailure>;
|
|
2496
|
-
}) => _vechain_sdk_core0.ContractClause[];
|
|
2497
|
-
//#endregion
|
|
2498
|
-
//#region src/utils/ssrUtils.d.ts
|
|
2499
|
-
/**
|
|
2500
|
-
* SSR-safe utilities for browser API access
|
|
2501
|
-
*/
|
|
2502
|
-
/**
|
|
2503
|
-
* SSR-safe localStorage getter
|
|
2504
|
-
*/
|
|
2505
|
-
declare const getLocalStorageItem: (key: string) => string | null;
|
|
2506
|
-
/**
|
|
2507
|
-
* SSR-safe localStorage setter
|
|
2508
|
-
*/
|
|
2509
|
-
declare const setLocalStorageItem: (key: string, value: string) => void;
|
|
2510
|
-
/**
|
|
2511
|
-
* SSR-safe localStorage remover
|
|
2512
|
-
*/
|
|
2513
|
-
declare const removeLocalStorageItem: (key: string) => void;
|
|
2514
|
-
/**
|
|
2515
|
-
* SSR-safe document.title getter
|
|
2516
|
-
*/
|
|
2517
|
-
declare const getDocumentTitle: () => string;
|
|
2518
|
-
/**
|
|
2519
|
-
* SSR-safe window.location.origin getter
|
|
2520
|
-
*/
|
|
2521
|
-
declare const getWindowOrigin: () => string;
|
|
2522
|
-
/**
|
|
2523
|
-
* Check if we're in a browser environment
|
|
2524
|
-
*/
|
|
2525
|
-
declare const isBrowser: () => boolean;
|
|
2526
|
-
/**
|
|
2527
|
-
* SSR-safe window.open
|
|
2528
|
-
*/
|
|
2529
|
-
declare const safeWindowOpen: (url?: string, target?: string, features?: string) => void;
|
|
2530
|
-
/**
|
|
2531
|
-
* SSR-safe document.querySelector
|
|
2532
|
-
*/
|
|
2533
|
-
declare const safeQuerySelector: <T$1 extends Element>(selector: string) => T$1 | null;
|
|
2534
|
-
/**
|
|
2535
|
-
* SSR-safe navigator check
|
|
2536
|
-
*/
|
|
2537
|
-
declare const hasNavigator: () => boolean;
|
|
2538
|
-
/**
|
|
2539
|
-
* SSR-safe navigator.onLine check
|
|
2540
|
-
*/
|
|
2541
|
-
declare const isOnline: () => boolean;
|
|
2542
|
-
/**
|
|
2543
|
-
* SSR-safe clipboard write
|
|
2544
|
-
*/
|
|
2545
|
-
declare const copyToClipboard: (text: string) => Promise<boolean>;
|
|
1846
|
+
declare const useAppHubApps: () => _tanstack_react_query7.UseQueryResult<AppHubApp[], Error>;
|
|
2546
1847
|
//#endregion
|
|
2547
1848
|
//#region src/hooks/utils/useCallClause.d.ts
|
|
2548
1849
|
type ExtractViewFunction<TAbi extends Abi, TMethod extends ExtractAbiFunctionNames<TAbi, 'pure' | 'view'>> = Extract<TAbi[number], {
|
|
@@ -2582,7 +1883,7 @@ declare const useCallClause: <TAbi extends Abi, TMethod extends ExtractAbiFuncti
|
|
|
2582
1883
|
method: TMethod;
|
|
2583
1884
|
args: AbiParametersToPrimitiveTypes<ExtractViewFunction<TAbi, TMethod>["inputs"], "inputs">;
|
|
2584
1885
|
queryOptions?: Omit<UseQueryOptions<ViewFunctionResult<TAbi, TMethod>, unknown, TData, ReturnType<typeof getCallClauseQueryKeyWithArgs<TAbi, TMethod>>>, "queryKey" | "queryFn">;
|
|
2585
|
-
}) =>
|
|
1886
|
+
}) => _tanstack_react_query7.UseQueryResult<_tanstack_react_query7.NoInfer<TData>, unknown>;
|
|
2586
1887
|
declare const useMultipleClausesCall: <contracts extends readonly ContractFunctionParameters[], allowFailure extends boolean = false>({
|
|
2587
1888
|
thor,
|
|
2588
1889
|
calls,
|
|
@@ -2593,7 +1894,7 @@ declare const useMultipleClausesCall: <contracts extends readonly ContractFuncti
|
|
|
2593
1894
|
calls: MultipleClausesCallParameters<contracts, allowFailure>;
|
|
2594
1895
|
queryKey: string[];
|
|
2595
1896
|
enabled?: boolean;
|
|
2596
|
-
}) =>
|
|
1897
|
+
}) => _tanstack_react_query7.UseQueryResult<_tanstack_react_query7.NoInfer<MultipleClausesCallReturnType<contracts, false>>, Error>;
|
|
2597
1898
|
//#endregion
|
|
2598
1899
|
//#region src/hooks/utils/useCurrency.d.ts
|
|
2599
1900
|
/**
|
|
@@ -2685,8 +1986,8 @@ declare const decodeEventLog$1: <TAbi extends Abi>(event: EventLogs, abi: TAbi)
|
|
|
2685
1986
|
meta: EventLogs["meta"];
|
|
2686
1987
|
decodedData: ReturnType<typeof decodeEventLog<TAbi>>;
|
|
2687
1988
|
};
|
|
2688
|
-
type UseEventsParams<T
|
|
2689
|
-
abi: T
|
|
1989
|
+
type UseEventsParams<T extends Abi, K extends ContractEventName<T>, R> = {
|
|
1990
|
+
abi: T;
|
|
2690
1991
|
contractAddress: string;
|
|
2691
1992
|
eventName: K;
|
|
2692
1993
|
filterParams?: Record<string, unknown> | unknown[] | undefined;
|
|
@@ -2695,7 +1996,7 @@ type UseEventsParams<T$1 extends Abi, K extends ContractEventName<T$1>, R> = {
|
|
|
2695
1996
|
decodedData
|
|
2696
1997
|
}: {
|
|
2697
1998
|
meta: EventLogs['meta'];
|
|
2698
|
-
decodedData: ReturnType<typeof decodeEventLog<T
|
|
1999
|
+
decodedData: ReturnType<typeof decodeEventLog<T, K>>;
|
|
2699
2000
|
}) => R;
|
|
2700
2001
|
nodeUrl: string;
|
|
2701
2002
|
};
|
|
@@ -2710,14 +2011,35 @@ declare const getEventsKey: ({
|
|
|
2710
2011
|
/**
|
|
2711
2012
|
* Custom hook for fetching contract events.
|
|
2712
2013
|
*/
|
|
2713
|
-
declare const useEvents: <T
|
|
2014
|
+
declare const useEvents: <T extends Abi, K extends ContractEventName<T>, R>({
|
|
2714
2015
|
abi,
|
|
2715
2016
|
contractAddress,
|
|
2716
2017
|
eventName,
|
|
2717
2018
|
filterParams,
|
|
2718
2019
|
mapResponse,
|
|
2719
2020
|
nodeUrl
|
|
2720
|
-
}: UseEventsParams<T
|
|
2021
|
+
}: UseEventsParams<T, K, R>) => _tanstack_react_query7.UseQueryResult<R[], Error>;
|
|
2022
|
+
//#endregion
|
|
2023
|
+
//#region src/hooks/thor/smartAccounts/useSmartAccount.d.ts
|
|
2024
|
+
interface SmartAccountReturnType {
|
|
2025
|
+
address: string | undefined;
|
|
2026
|
+
isDeployed: boolean;
|
|
2027
|
+
}
|
|
2028
|
+
declare const getSmartAccount: (thor: ThorClient, network: NETWORK_TYPE, ownerAddress?: string) => Promise<{
|
|
2029
|
+
address: undefined;
|
|
2030
|
+
isDeployed?: undefined;
|
|
2031
|
+
} | {
|
|
2032
|
+
address: string;
|
|
2033
|
+
isDeployed: boolean;
|
|
2034
|
+
}>;
|
|
2035
|
+
declare const getSmartAccountQueryKey: (ownerAddress?: string) => (string | undefined)[];
|
|
2036
|
+
declare const useSmartAccount: (ownerAddress?: string) => _tanstack_react_query7.UseQueryResult<{
|
|
2037
|
+
address: undefined;
|
|
2038
|
+
isDeployed?: undefined;
|
|
2039
|
+
} | {
|
|
2040
|
+
address: string;
|
|
2041
|
+
isDeployed: boolean;
|
|
2042
|
+
}, Error>;
|
|
2721
2043
|
//#endregion
|
|
2722
2044
|
//#region src/hooks/utils/useBuildClauses.d.ts
|
|
2723
2045
|
interface BuildClausesParams {
|
|
@@ -2784,10 +2106,10 @@ declare enum LocalStorageKey {
|
|
|
2784
2106
|
GAS_TOKEN_PREFERENCES = "vechain_kit_gas_token_preferences",
|
|
2785
2107
|
SHOW_ASSETS = "vechain_kit_show_assets",
|
|
2786
2108
|
}
|
|
2787
|
-
declare const useLocalStorage: <T
|
|
2109
|
+
declare const useLocalStorage: <T>(key: LocalStorageKey, initialValue: T) => readonly [T, react8.Dispatch<react8.SetStateAction<T>>];
|
|
2788
2110
|
//#endregion
|
|
2789
2111
|
//#region src/hooks/cache/useSyncableLocalStorage.d.ts
|
|
2790
|
-
declare const useSyncableLocalStorage: <T
|
|
2112
|
+
declare const useSyncableLocalStorage: <T>(key: string, defaultValue: T) => readonly [T, react8.Dispatch<react8.SetStateAction<T>>, () => void, () => T];
|
|
2791
2113
|
//#endregion
|
|
2792
2114
|
//#region src/hooks/cache/useEcosystemShortcuts.d.ts
|
|
2793
2115
|
type EcosystemShortcut = {
|
|
@@ -2869,7 +2191,7 @@ declare const useGenericDelegatorFeeEstimation: ({
|
|
|
2869
2191
|
tokens,
|
|
2870
2192
|
sendingAmount,
|
|
2871
2193
|
sendingTokenSymbol
|
|
2872
|
-
}: useGenericDelegatorFeeEstimationParams) =>
|
|
2194
|
+
}: useGenericDelegatorFeeEstimationParams) => _tanstack_react_query7.UseQueryResult<EstimationResponse & {
|
|
2873
2195
|
usedToken: string;
|
|
2874
2196
|
}, Error>;
|
|
2875
2197
|
//#endregion
|
|
@@ -2883,7 +2205,7 @@ declare const useEstimateAllTokens: ({
|
|
|
2883
2205
|
clauses,
|
|
2884
2206
|
tokens,
|
|
2885
2207
|
enabled
|
|
2886
|
-
}: UseEstimateAllTokensParams) =>
|
|
2208
|
+
}: UseEstimateAllTokensParams) => _tanstack_react_query7.UseQueryResult<Record<GasTokenType, {
|
|
2887
2209
|
cost: number;
|
|
2888
2210
|
loading: boolean;
|
|
2889
2211
|
error?: string;
|
|
@@ -2900,7 +2222,7 @@ declare const getAccountBalanceQueryKey: (address?: string) => (string | undefin
|
|
|
2900
2222
|
* @param address The address of the account to get the balance for
|
|
2901
2223
|
* @returns The account balance
|
|
2902
2224
|
*/
|
|
2903
|
-
declare const useAccountBalance: (address?: string) =>
|
|
2225
|
+
declare const useAccountBalance: (address?: string) => _tanstack_react_query7.UseQueryResult<{
|
|
2904
2226
|
balance: string;
|
|
2905
2227
|
energy: string;
|
|
2906
2228
|
}, Error>;
|
|
@@ -2913,7 +2235,7 @@ declare const getAccountImplementationAddressQueryKey: (version?: number, networ
|
|
|
2913
2235
|
* @param version - The version of the smart account implementation
|
|
2914
2236
|
* @returns The address of the smart account implementation
|
|
2915
2237
|
*/
|
|
2916
|
-
declare const useAccountImplementationAddress: (version?: number) =>
|
|
2238
|
+
declare const useAccountImplementationAddress: (version?: number) => _tanstack_react_query7.UseQueryResult<string, Error>;
|
|
2917
2239
|
//#endregion
|
|
2918
2240
|
//#region src/hooks/thor/smartAccounts/useCurrentAccountImplementationVersion.d.ts
|
|
2919
2241
|
declare const getCurrentAccountImplementationVersion: (thor: ThorClient, networkType?: NETWORK_TYPE) => Promise<number>;
|
|
@@ -2922,7 +2244,7 @@ declare const getCurrentAccountImplementationVersionQueryKey: (networkType?: NET
|
|
|
2922
2244
|
* Get the current account implementation version used by the smart account factory
|
|
2923
2245
|
* @returns The current account implementation version
|
|
2924
2246
|
*/
|
|
2925
|
-
declare const useCurrentAccountImplementationVersion: () =>
|
|
2247
|
+
declare const useCurrentAccountImplementationVersion: () => _tanstack_react_query7.UseQueryResult<number, Error>;
|
|
2926
2248
|
//#endregion
|
|
2927
2249
|
//#region src/hooks/thor/smartAccounts/useGetAccountAddress.d.ts
|
|
2928
2250
|
declare const getAccountAddress: (thor: ThorClient, ownerAddress?: string, networkType?: NETWORK_TYPE) => Promise<string>;
|
|
@@ -2932,7 +2254,7 @@ declare const getAccountAddressQueryKey: (ownerAddress?: string, networkType?: N
|
|
|
2932
2254
|
* @param ownerAddress - The address of the owner of the smart account
|
|
2933
2255
|
* @returns The address of the smart account
|
|
2934
2256
|
*/
|
|
2935
|
-
declare const useGetAccountAddress: (ownerAddress?: string) =>
|
|
2257
|
+
declare const useGetAccountAddress: (ownerAddress?: string) => _tanstack_react_query7.UseQueryResult<string, Error>;
|
|
2936
2258
|
//#endregion
|
|
2937
2259
|
//#region src/hooks/thor/smartAccounts/useGetAccountVersion.d.ts
|
|
2938
2260
|
declare const getAccountVersionQueryKey: (accountAddress: string, ownerAddress: string, networkType: NETWORK_TYPE) => unknown[];
|
|
@@ -2942,7 +2264,7 @@ declare const getAccountVersionQueryKey: (accountAddress: string, ownerAddress:
|
|
|
2942
2264
|
* @param ownerAddress - The address of the owner of the smart account
|
|
2943
2265
|
* @returns The version of the smart account
|
|
2944
2266
|
*/
|
|
2945
|
-
declare const useGetAccountVersion: (accountAddress: string, ownerAddress: string) =>
|
|
2267
|
+
declare const useGetAccountVersion: (accountAddress: string, ownerAddress: string) => _tanstack_react_query7.UseQueryResult<{
|
|
2946
2268
|
version: number;
|
|
2947
2269
|
isDeployed: boolean;
|
|
2948
2270
|
}, unknown>;
|
|
@@ -2955,7 +2277,7 @@ declare const getHasV1SmartAccountQueryKey: (ownerAddress?: string, networkType?
|
|
|
2955
2277
|
* @param ownerAddress - The address of the owner of the smart account
|
|
2956
2278
|
* @returns True if the smart account has a v1 smart account, false otherwise
|
|
2957
2279
|
*/
|
|
2958
|
-
declare const useHasV1SmartAccount: (ownerAddress?: string) =>
|
|
2280
|
+
declare const useHasV1SmartAccount: (ownerAddress?: string) => _tanstack_react_query7.UseQueryResult<boolean, Error>;
|
|
2959
2281
|
//#endregion
|
|
2960
2282
|
//#region src/hooks/thor/smartAccounts/useIsSmartAccountDeployed.d.ts
|
|
2961
2283
|
declare const getIsDeployed: (thor: ThorClient, accountAddress?: string) => Promise<boolean>;
|
|
@@ -2964,7 +2286,7 @@ declare const getIsDeployedQueryKey: (contractAddress?: string) => (string | und
|
|
|
2964
2286
|
* Check if a smart account is deployed
|
|
2965
2287
|
* @returns True if the smart account is deployed, false otherwise
|
|
2966
2288
|
*/
|
|
2967
|
-
declare const useIsSmartAccountDeployed: (accountAddress?: string) =>
|
|
2289
|
+
declare const useIsSmartAccountDeployed: (accountAddress?: string) => _tanstack_react_query7.UseQueryResult<boolean, Error>;
|
|
2968
2290
|
//#endregion
|
|
2969
2291
|
//#region src/hooks/thor/smartAccounts/useRefreshFactoryQueries.d.ts
|
|
2970
2292
|
/**
|
|
@@ -2984,27 +2306,6 @@ declare const useRefreshSmartAccountQueries: () => {
|
|
|
2984
2306
|
refresh: () => Promise<void>;
|
|
2985
2307
|
};
|
|
2986
2308
|
//#endregion
|
|
2987
|
-
//#region src/hooks/thor/smartAccounts/useSmartAccount.d.ts
|
|
2988
|
-
interface SmartAccountReturnType {
|
|
2989
|
-
address: string | undefined;
|
|
2990
|
-
isDeployed: boolean;
|
|
2991
|
-
}
|
|
2992
|
-
declare const getSmartAccount: (thor: ThorClient, network: NETWORK_TYPE, ownerAddress?: string) => Promise<{
|
|
2993
|
-
address: undefined;
|
|
2994
|
-
isDeployed?: undefined;
|
|
2995
|
-
} | {
|
|
2996
|
-
address: string;
|
|
2997
|
-
isDeployed: boolean;
|
|
2998
|
-
}>;
|
|
2999
|
-
declare const getSmartAccountQueryKey: (ownerAddress?: string) => (string | undefined)[];
|
|
3000
|
-
declare const useSmartAccount: (ownerAddress?: string) => _tanstack_react_query21.UseQueryResult<{
|
|
3001
|
-
address: undefined;
|
|
3002
|
-
isDeployed?: undefined;
|
|
3003
|
-
} | {
|
|
3004
|
-
address: string;
|
|
3005
|
-
isDeployed: boolean;
|
|
3006
|
-
}, Error>;
|
|
3007
|
-
//#endregion
|
|
3008
2309
|
//#region src/hooks/thor/smartAccounts/useUpgradeRequired.d.ts
|
|
3009
2310
|
declare const getUpgradeRequired: (thor: ThorClient, accountAddress: string, ownerAddress: string, targetVersion: number, networkType: NETWORK_TYPE) => Promise<boolean>;
|
|
3010
2311
|
declare const getUpgradeRequiredQueryKey: (accountAddress: string, ownerAddress: string, targetVersion: number, networkType: NETWORK_TYPE) => (string | number)[];
|
|
@@ -3015,7 +2316,7 @@ declare const getUpgradeRequiredQueryKey: (accountAddress: string, ownerAddress:
|
|
|
3015
2316
|
* @param targetVersion - The version of the smart account to check for
|
|
3016
2317
|
* @returns True if the smart account needs an upgrade, false otherwise
|
|
3017
2318
|
*/
|
|
3018
|
-
declare const useUpgradeRequired: (accountAddress: string, ownerAddress: string, targetVersion: number) =>
|
|
2319
|
+
declare const useUpgradeRequired: (accountAddress: string, ownerAddress: string, targetVersion: number) => _tanstack_react_query7.UseQueryResult<boolean, Error>;
|
|
3019
2320
|
//#endregion
|
|
3020
2321
|
//#region src/hooks/thor/smartAccounts/useUpgradeRequiredForAccount.d.ts
|
|
3021
2322
|
declare const getUpgradeRequiredForAccount: (thor: ThorClient, contractAddress: string, targetVersion: number, networkType: NETWORK_TYPE) => Promise<boolean>;
|
|
@@ -3026,7 +2327,7 @@ declare const getUpgradeRequiredForAccountQueryKey: (contractAddress: string, ta
|
|
|
3026
2327
|
* @param targetVersion - The target version of the smart account
|
|
3027
2328
|
* @returns True if the smart account needs an upgrade, false otherwise
|
|
3028
2329
|
*/
|
|
3029
|
-
declare const useUpgradeRequiredForAccount: (contractAddress: string, targetVersion: number) =>
|
|
2330
|
+
declare const useUpgradeRequiredForAccount: (contractAddress: string, targetVersion: number) => _tanstack_react_query7.UseQueryResult<boolean, Error>;
|
|
3030
2331
|
//#endregion
|
|
3031
2332
|
//#region src/hooks/thor/smartAccounts/useUpgradeSmartAccount.d.ts
|
|
3032
2333
|
type UseUpgradeSmartAccountVersionProps = {
|
|
@@ -3051,7 +2352,7 @@ declare const currentBlockQueryKey: () => string[];
|
|
|
3051
2352
|
* Fetches the current block from the blockchain. The block is refetched every 10 seconds.
|
|
3052
2353
|
* @returns the current block
|
|
3053
2354
|
*/
|
|
3054
|
-
declare const useCurrentBlock: () =>
|
|
2355
|
+
declare const useCurrentBlock: () => _tanstack_react_query7.UseQueryResult<_vechain_sdk_network0.ExpandedBlockDetail, Error>;
|
|
3055
2356
|
//#endregion
|
|
3056
2357
|
//#region src/hooks/thor/blocks/useGetChainId.d.ts
|
|
3057
2358
|
declare const getChainId: (thor: ThorClient) => Promise<string>;
|
|
@@ -3060,7 +2361,7 @@ declare const getChainIdQueryKey: () => string[];
|
|
|
3060
2361
|
* Get the chain id
|
|
3061
2362
|
* @returns The chain id
|
|
3062
2363
|
*/
|
|
3063
|
-
declare const useGetChainId: () =>
|
|
2364
|
+
declare const useGetChainId: () => _tanstack_react_query7.UseQueryResult<string, Error>;
|
|
3064
2365
|
//#endregion
|
|
3065
2366
|
//#region src/hooks/thor/logs/logUtils.d.ts
|
|
3066
2367
|
/**
|
|
@@ -3119,101 +2420,6 @@ declare const getAllEventLogs: ({
|
|
|
3119
2420
|
filterCriteria
|
|
3120
2421
|
}: Omit<GetEventsProps, "offset" | "limit">) => Promise<EventLogs[]>;
|
|
3121
2422
|
//#endregion
|
|
3122
|
-
//#region src/hooks/thor/transactions/useSendTransaction.d.ts
|
|
3123
|
-
/**
|
|
3124
|
-
* Props for the {@link useSendTransaction} hook
|
|
3125
|
-
* @param signerAccountAddress the signer account to use
|
|
3126
|
-
* @param clauses clauses to send in the transaction
|
|
3127
|
-
* @param onTxConfirmed callback to run when the tx is confirmed
|
|
3128
|
-
* @param onTxFailedOrCancelled callback to run when the tx fails or is cancelled
|
|
3129
|
-
* @param suggestedMaxGas the suggested max gas for the transaction
|
|
3130
|
-
* @param privyUIOptions options to pass to the Privy UI
|
|
3131
|
-
* @param gasPadding the gas padding to use for the transaction (Eg. 0.1 for 10%)
|
|
3132
|
-
* @param delegationUrl the dApp sponsored delegator url.
|
|
3133
|
-
*/
|
|
3134
|
-
type UseSendTransactionProps = {
|
|
3135
|
-
signerAccountAddress?: string | null;
|
|
3136
|
-
clauses?: TransactionClause[];
|
|
3137
|
-
onTxConfirmed?: () => void | Promise<void>;
|
|
3138
|
-
onTxFailedOrCancelled?: (error?: Error | string) => void | Promise<void>;
|
|
3139
|
-
suggestedMaxGas?: number;
|
|
3140
|
-
privyUIOptions?: {
|
|
3141
|
-
title?: string;
|
|
3142
|
-
description?: string;
|
|
3143
|
-
buttonText?: string;
|
|
3144
|
-
};
|
|
3145
|
-
gasPadding?: number;
|
|
3146
|
-
delegationUrl?: string;
|
|
3147
|
-
};
|
|
3148
|
-
/**
|
|
3149
|
-
* Return value of the {@link useSendTransaction} hook
|
|
3150
|
-
* @param sendTransaction function to trigger the transaction
|
|
3151
|
-
* @param isTransactionPending boolean indicating if the transaction is waiting for the wallet to sign it
|
|
3152
|
-
* @param isWaitingForWalletConfirmation boolean indicating if the transaction is waiting for the wallet to confirm it
|
|
3153
|
-
* @param txReceipt the transaction receipt
|
|
3154
|
-
* @param status the status of the transaction (see {@link TransactionStatus})
|
|
3155
|
-
* @param resetStatus function to reset the status to "ready"
|
|
3156
|
-
* @param error error that occurred while sending the transaction
|
|
3157
|
-
*/
|
|
3158
|
-
type UseSendTransactionReturnValue = {
|
|
3159
|
-
sendTransaction: (clauses?: TransactionClause[], delegationUrl?: string, privyUIOptions?: {
|
|
3160
|
-
title?: string;
|
|
3161
|
-
description?: string;
|
|
3162
|
-
buttonText?: string;
|
|
3163
|
-
}) => Promise<void>;
|
|
3164
|
-
isTransactionPending: boolean;
|
|
3165
|
-
isWaitingForWalletConfirmation: boolean;
|
|
3166
|
-
txReceipt: TransactionReceipt | null;
|
|
3167
|
-
status: TransactionStatus;
|
|
3168
|
-
resetStatus: () => void;
|
|
3169
|
-
error?: TransactionStatusErrorType;
|
|
3170
|
-
};
|
|
3171
|
-
/**
|
|
3172
|
-
* Generic hook to send a transaction using dapp-kit-react.
|
|
3173
|
-
* This hook supports both Privy and VeChain wallets.
|
|
3174
|
-
*
|
|
3175
|
-
* It returns a function to send the transaction and a status to indicate the state
|
|
3176
|
-
* of the transaction (together with the transaction id).
|
|
3177
|
-
*
|
|
3178
|
-
* * ⚠️ IMPORTANT: When using this hook with Privy cross-app connections, ensure all
|
|
3179
|
-
* data fetching is done before triggering the transaction. Fetching data after
|
|
3180
|
-
* the transaction is triggered may cause browser popup blocking. Pre-fetch any
|
|
3181
|
-
* required data and pass it to your transaction building logic.
|
|
3182
|
-
*
|
|
3183
|
-
* @example
|
|
3184
|
-
* ```typescript
|
|
3185
|
-
* // ❌ Bad: Fetching during transaction
|
|
3186
|
-
* const sendTx = async () => {
|
|
3187
|
-
* const data = await fetchSomeData(); // May cause popup blocking
|
|
3188
|
-
* return sendTransaction(data);
|
|
3189
|
-
* };
|
|
3190
|
-
*
|
|
3191
|
-
* // ✅ Good: Pre-fetch data
|
|
3192
|
-
* const { data } = useQuery(['someData'], fetchSomeData);
|
|
3193
|
-
* const sendTx = () => sendTransaction(data); // No async operations
|
|
3194
|
-
* ```
|
|
3195
|
-
*
|
|
3196
|
-
* @param signerAccount the signer account to use
|
|
3197
|
-
* @param clauses clauses to send in the transaction
|
|
3198
|
-
* @param onTxConfirmed callback to run when the tx is confirmed
|
|
3199
|
-
* @param onTxFailedOrCancelled callback to run when the tx fails or is cancelled
|
|
3200
|
-
* @param suggestedMaxGas the suggested max gas for the transaction
|
|
3201
|
-
* @param privyUIOptions options to pass to the Privy UI
|
|
3202
|
-
* @param gasPadding the gas padding to use for the transaction (Eg. 0.1 for 10%)
|
|
3203
|
-
* @param delegationUrl the dApp sponsored delegator url.
|
|
3204
|
-
* @returns see {@link UseSendTransactionReturnValue}
|
|
3205
|
-
*/
|
|
3206
|
-
declare const useSendTransaction: ({
|
|
3207
|
-
signerAccountAddress,
|
|
3208
|
-
clauses,
|
|
3209
|
-
onTxConfirmed,
|
|
3210
|
-
onTxFailedOrCancelled,
|
|
3211
|
-
suggestedMaxGas,
|
|
3212
|
-
privyUIOptions,
|
|
3213
|
-
gasPadding,
|
|
3214
|
-
delegationUrl
|
|
3215
|
-
}: UseSendTransactionProps) => UseSendTransactionReturnValue;
|
|
3216
|
-
//#endregion
|
|
3217
2423
|
//#region src/hooks/thor/transactions/useTransferERC20.d.ts
|
|
3218
2424
|
type useTransferERC20Props = {
|
|
3219
2425
|
fromAddress: string;
|
|
@@ -3297,7 +2503,7 @@ declare const useBuildTransaction: <ClausesParams>({
|
|
|
3297
2503
|
sendTransaction: (props: ClausesParams) => Promise<void>;
|
|
3298
2504
|
isTransactionPending: boolean;
|
|
3299
2505
|
isWaitingForWalletConfirmation: boolean;
|
|
3300
|
-
txReceipt:
|
|
2506
|
+
txReceipt: _vechain_sdk_network0.TransactionReceipt | null;
|
|
3301
2507
|
status: TransactionStatus;
|
|
3302
2508
|
resetStatus: () => void;
|
|
3303
2509
|
error?: TransactionStatusErrorType;
|
|
@@ -3312,7 +2518,7 @@ declare const txReceiptQueryKey: (txId: string) => string[];
|
|
|
3312
2518
|
* @param blockTimeout Optional timeout in milliseconds to stop polling for receipt
|
|
3313
2519
|
* @returns Query result containing the transaction receipt
|
|
3314
2520
|
*/
|
|
3315
|
-
declare const useTxReceipt: (txId: string, blockTimeout?: number) =>
|
|
2521
|
+
declare const useTxReceipt: (txId: string, blockTimeout?: number) => _tanstack_react_query7.UseQueryResult<_vechain_sdk_network0.TransactionReceipt, Error>;
|
|
3316
2522
|
//#endregion
|
|
3317
2523
|
//#region src/hooks/thor/transactions/useGasEstimate.d.ts
|
|
3318
2524
|
declare const useGasEstimate: (thor: ThorClient, clauses: TransactionClause[], caller: string, options?: {
|
|
@@ -3322,7 +2528,7 @@ declare const useGasEstimate: (thor: ThorClient, clauses: TransactionClause[], c
|
|
|
3322
2528
|
//#endregion
|
|
3323
2529
|
//#region src/components/AccountModal/Contents/SendToken/SendTokenContent.d.ts
|
|
3324
2530
|
type SendTokenContentProps = {
|
|
3325
|
-
setCurrentContent: React$1.Dispatch<React$1.SetStateAction<AccountModalContentTypes>>;
|
|
2531
|
+
setCurrentContent: React$1.Dispatch<React$1.SetStateAction<AccountModalContentTypes$1>>;
|
|
3326
2532
|
preselectedToken?: TokenWithValue;
|
|
3327
2533
|
initialAmount?: string;
|
|
3328
2534
|
initialToAddressOrDomain?: string;
|
|
@@ -3334,11 +2540,11 @@ declare const SendTokenContent: ({
|
|
|
3334
2540
|
initialAmount,
|
|
3335
2541
|
initialToAddressOrDomain,
|
|
3336
2542
|
onBack: parentOnBack
|
|
3337
|
-
}: SendTokenContentProps) =>
|
|
2543
|
+
}: SendTokenContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3338
2544
|
//#endregion
|
|
3339
2545
|
//#region src/components/AccountModal/Contents/SendToken/SendTokenSummaryContent.d.ts
|
|
3340
2546
|
type SendTokenSummaryContentProps = {
|
|
3341
|
-
setCurrentContent: React$1.Dispatch<React$1.SetStateAction<AccountModalContentTypes>>;
|
|
2547
|
+
setCurrentContent: React$1.Dispatch<React$1.SetStateAction<AccountModalContentTypes$1>>;
|
|
3342
2548
|
toAddressOrDomain: string;
|
|
3343
2549
|
resolvedDomain?: string;
|
|
3344
2550
|
resolvedAddress?: string;
|
|
@@ -3354,11 +2560,11 @@ declare const SendTokenSummaryContent: ({
|
|
|
3354
2560
|
amount,
|
|
3355
2561
|
selectedToken,
|
|
3356
2562
|
formattedTotalAmount
|
|
3357
|
-
}: SendTokenSummaryContentProps) =>
|
|
2563
|
+
}: SendTokenSummaryContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3358
2564
|
//#endregion
|
|
3359
2565
|
//#region src/components/AccountModal/Contents/SendToken/SelectTokenContent.d.ts
|
|
3360
|
-
type Props$
|
|
3361
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2566
|
+
type Props$17 = {
|
|
2567
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3362
2568
|
onSelectToken: (token: TokenWithValue) => void;
|
|
3363
2569
|
onBack: () => void;
|
|
3364
2570
|
/**
|
|
@@ -3370,19 +2576,19 @@ declare const SelectTokenContent: ({
|
|
|
3370
2576
|
onSelectToken,
|
|
3371
2577
|
onBack,
|
|
3372
2578
|
showAllTokens
|
|
3373
|
-
}: Props$
|
|
2579
|
+
}: Props$17) => react_jsx_runtime30.JSX.Element;
|
|
3374
2580
|
//#endregion
|
|
3375
2581
|
//#region src/components/AccountModal/Contents/Receive/ReceiveTokenContent.d.ts
|
|
3376
|
-
type Props$
|
|
3377
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2582
|
+
type Props$16 = {
|
|
2583
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3378
2584
|
};
|
|
3379
2585
|
declare const ReceiveTokenContent: ({
|
|
3380
2586
|
setCurrentContent
|
|
3381
|
-
}: Props$
|
|
2587
|
+
}: Props$16) => react_jsx_runtime30.JSX.Element;
|
|
3382
2588
|
//#endregion
|
|
3383
2589
|
//#region src/components/AccountModal/Contents/Swap/SwapTokenContent.d.ts
|
|
3384
|
-
type Props$
|
|
3385
|
-
setCurrentContent: React$1.Dispatch<React$1.SetStateAction<AccountModalContentTypes>>;
|
|
2590
|
+
type Props$15 = {
|
|
2591
|
+
setCurrentContent: React$1.Dispatch<React$1.SetStateAction<AccountModalContentTypes$1>>;
|
|
3386
2592
|
fromTokenAddress?: string;
|
|
3387
2593
|
toTokenAddress?: string;
|
|
3388
2594
|
};
|
|
@@ -3390,40 +2596,40 @@ declare const SwapTokenContent: ({
|
|
|
3390
2596
|
setCurrentContent,
|
|
3391
2597
|
fromTokenAddress,
|
|
3392
2598
|
toTokenAddress
|
|
3393
|
-
}: Props$
|
|
2599
|
+
}: Props$15) => react_jsx_runtime30.JSX.Element;
|
|
3394
2600
|
//#endregion
|
|
3395
2601
|
//#region src/components/AccountModal/Contents/ChooseName/ChooseNameContent.d.ts
|
|
3396
2602
|
type ChooseNameContentProps = {
|
|
3397
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2603
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3398
2604
|
onBack?: () => void;
|
|
3399
|
-
initialContentSource?: AccountModalContentTypes;
|
|
2605
|
+
initialContentSource?: AccountModalContentTypes$1;
|
|
3400
2606
|
};
|
|
3401
2607
|
declare const ChooseNameContent: ({
|
|
3402
2608
|
setCurrentContent,
|
|
3403
2609
|
onBack,
|
|
3404
2610
|
initialContentSource
|
|
3405
|
-
}: ChooseNameContentProps) =>
|
|
2611
|
+
}: ChooseNameContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3406
2612
|
//#endregion
|
|
3407
2613
|
//#region src/components/AccountModal/Contents/ChooseName/ChooseNameSearchContent.d.ts
|
|
3408
2614
|
type ChooseNameSearchContentProps = {
|
|
3409
2615
|
name: string;
|
|
3410
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
3411
|
-
initialContentSource?: AccountModalContentTypes;
|
|
2616
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
2617
|
+
initialContentSource?: AccountModalContentTypes$1;
|
|
3412
2618
|
};
|
|
3413
2619
|
declare const ChooseNameSearchContent: ({
|
|
3414
2620
|
name: initialName,
|
|
3415
2621
|
setCurrentContent,
|
|
3416
2622
|
initialContentSource
|
|
3417
|
-
}: ChooseNameSearchContentProps) =>
|
|
2623
|
+
}: ChooseNameSearchContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3418
2624
|
//#endregion
|
|
3419
2625
|
//#region src/components/AccountModal/Contents/ChooseName/ChooseNameSummaryContent.d.ts
|
|
3420
2626
|
type ChooseNameSummaryContentProps = {
|
|
3421
|
-
setCurrentContent: React$1.Dispatch<React$1.SetStateAction<AccountModalContentTypes>>;
|
|
2627
|
+
setCurrentContent: React$1.Dispatch<React$1.SetStateAction<AccountModalContentTypes$1>>;
|
|
3422
2628
|
fullDomain: string;
|
|
3423
2629
|
domainType?: string;
|
|
3424
2630
|
isOwnDomain: boolean;
|
|
3425
2631
|
isUnsetting?: boolean;
|
|
3426
|
-
initialContentSource?: AccountModalContentTypes;
|
|
2632
|
+
initialContentSource?: AccountModalContentTypes$1;
|
|
3427
2633
|
};
|
|
3428
2634
|
declare const ChooseNameSummaryContent: ({
|
|
3429
2635
|
setCurrentContent,
|
|
@@ -3432,7 +2638,7 @@ declare const ChooseNameSummaryContent: ({
|
|
|
3432
2638
|
isOwnDomain,
|
|
3433
2639
|
isUnsetting,
|
|
3434
2640
|
initialContentSource
|
|
3435
|
-
}: ChooseNameSummaryContentProps) =>
|
|
2641
|
+
}: ChooseNameSummaryContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3436
2642
|
//#endregion
|
|
3437
2643
|
//#region src/components/AccountModal/Contents/FAQ/FAQContent.d.ts
|
|
3438
2644
|
type FAQContentProps = {
|
|
@@ -3442,21 +2648,21 @@ type FAQContentProps = {
|
|
|
3442
2648
|
declare const FAQContent: ({
|
|
3443
2649
|
onGoBack,
|
|
3444
2650
|
showLanguageSelector
|
|
3445
|
-
}: FAQContentProps) =>
|
|
2651
|
+
}: FAQContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3446
2652
|
//#endregion
|
|
3447
2653
|
//#region src/components/AccountModal/Contents/Profile/Customization/CustomizationContent.d.ts
|
|
3448
2654
|
type AccountCustomizationContentProps = {
|
|
3449
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
3450
|
-
initialContentSource?: AccountModalContentTypes;
|
|
2655
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
2656
|
+
initialContentSource?: AccountModalContentTypes$1;
|
|
3451
2657
|
};
|
|
3452
2658
|
declare const CustomizationContent: ({
|
|
3453
2659
|
setCurrentContent,
|
|
3454
2660
|
initialContentSource
|
|
3455
|
-
}: AccountCustomizationContentProps) =>
|
|
2661
|
+
}: AccountCustomizationContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3456
2662
|
//#endregion
|
|
3457
2663
|
//#region src/components/AccountModal/Contents/Profile/Customization/CustomizationSummaryContent.d.ts
|
|
3458
2664
|
type CustomizationSummaryContentProps = {
|
|
3459
|
-
setCurrentContent: React$1.Dispatch<React$1.SetStateAction<AccountModalContentTypes>>;
|
|
2665
|
+
setCurrentContent: React$1.Dispatch<React$1.SetStateAction<AccountModalContentTypes$1>>;
|
|
3460
2666
|
changes: {
|
|
3461
2667
|
avatarIpfsHash?: string | null;
|
|
3462
2668
|
displayName?: string;
|
|
@@ -3465,17 +2671,17 @@ type CustomizationSummaryContentProps = {
|
|
|
3465
2671
|
website?: string;
|
|
3466
2672
|
email?: string;
|
|
3467
2673
|
};
|
|
3468
|
-
onDoneRedirectContent: AccountModalContentTypes;
|
|
2674
|
+
onDoneRedirectContent: AccountModalContentTypes$1;
|
|
3469
2675
|
};
|
|
3470
2676
|
declare const CustomizationSummaryContent: ({
|
|
3471
2677
|
setCurrentContent,
|
|
3472
2678
|
changes,
|
|
3473
2679
|
onDoneRedirectContent
|
|
3474
|
-
}: CustomizationSummaryContentProps) =>
|
|
2680
|
+
}: CustomizationSummaryContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3475
2681
|
//#endregion
|
|
3476
2682
|
//#region src/components/AccountModal/Contents/Profile/ProfileContent.d.ts
|
|
3477
2683
|
type ProfileContentProps = {
|
|
3478
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2684
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3479
2685
|
onLogoutSuccess: () => void;
|
|
3480
2686
|
switchFeedback?: {
|
|
3481
2687
|
showFeedback: boolean;
|
|
@@ -3485,77 +2691,77 @@ declare const ProfileContent: ({
|
|
|
3485
2691
|
setCurrentContent,
|
|
3486
2692
|
onLogoutSuccess,
|
|
3487
2693
|
switchFeedback
|
|
3488
|
-
}: ProfileContentProps) =>
|
|
2694
|
+
}: ProfileContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3489
2695
|
//#endregion
|
|
3490
2696
|
//#region src/components/AccountModal/Contents/UpgradeSmartAccount/UpgradeSmartAccountContent.d.ts
|
|
3491
2697
|
type UpgradeSmartAccountContentProps = {
|
|
3492
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2698
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3493
2699
|
handleClose?: () => void;
|
|
3494
|
-
initialContent?: AccountModalContentTypes;
|
|
2700
|
+
initialContent?: AccountModalContentTypes$1;
|
|
3495
2701
|
};
|
|
3496
2702
|
declare const UpgradeSmartAccountContent: ({
|
|
3497
2703
|
setCurrentContent,
|
|
3498
2704
|
handleClose,
|
|
3499
2705
|
initialContent
|
|
3500
|
-
}: UpgradeSmartAccountContentProps) =>
|
|
2706
|
+
}: UpgradeSmartAccountContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3501
2707
|
//#endregion
|
|
3502
2708
|
//#region src/components/AccountModal/Contents/Assets/AssetsContent.d.ts
|
|
3503
2709
|
type AssetsContentProps = {
|
|
3504
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2710
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3505
2711
|
};
|
|
3506
2712
|
declare const AssetsContent: ({
|
|
3507
2713
|
setCurrentContent
|
|
3508
|
-
}: AssetsContentProps) =>
|
|
2714
|
+
}: AssetsContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3509
2715
|
//#endregion
|
|
3510
2716
|
//#region src/components/AccountModal/Contents/Assets/ManageCustomTokenContent.d.ts
|
|
3511
2717
|
type ManageCustomTokenContentProps = {
|
|
3512
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2718
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3513
2719
|
};
|
|
3514
2720
|
declare const ManageCustomTokenContent: ({
|
|
3515
2721
|
setCurrentContent
|
|
3516
|
-
}: ManageCustomTokenContentProps) =>
|
|
2722
|
+
}: ManageCustomTokenContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3517
2723
|
//#endregion
|
|
3518
2724
|
//#region src/components/AccountModal/Contents/Bridge/BridgeContent.d.ts
|
|
3519
|
-
type Props$
|
|
3520
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2725
|
+
type Props$14 = {
|
|
2726
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3521
2727
|
};
|
|
3522
2728
|
declare const BridgeContent: ({
|
|
3523
2729
|
setCurrentContent
|
|
3524
|
-
}: Props$
|
|
2730
|
+
}: Props$14) => react_jsx_runtime30.JSX.Element;
|
|
3525
2731
|
//#endregion
|
|
3526
2732
|
//#region src/components/AccountModal/Contents/KitSettings/ChangeCurrencyContent.d.ts
|
|
3527
2733
|
type ChangeCurrencyContentProps = {
|
|
3528
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2734
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3529
2735
|
};
|
|
3530
2736
|
declare const ChangeCurrencyContent: ({
|
|
3531
2737
|
setCurrentContent
|
|
3532
|
-
}: ChangeCurrencyContentProps) =>
|
|
2738
|
+
}: ChangeCurrencyContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3533
2739
|
//#endregion
|
|
3534
2740
|
//#region src/components/AccountModal/Contents/KitSettings/LanguageSettingsContent.d.ts
|
|
3535
|
-
type Props$
|
|
3536
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2741
|
+
type Props$13 = {
|
|
2742
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3537
2743
|
};
|
|
3538
2744
|
declare const LanguageSettingsContent: ({
|
|
3539
2745
|
setCurrentContent
|
|
3540
|
-
}: Props$
|
|
2746
|
+
}: Props$13) => react_jsx_runtime30.JSX.Element;
|
|
3541
2747
|
//#endregion
|
|
3542
2748
|
//#region src/components/AccountModal/Contents/KitSettings/GasTokenSettingsContent.d.ts
|
|
3543
|
-
type Props$
|
|
3544
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2749
|
+
type Props$12 = {
|
|
2750
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3545
2751
|
};
|
|
3546
2752
|
declare const GasTokenSettingsContent: ({
|
|
3547
2753
|
setCurrentContent
|
|
3548
|
-
}: Props$
|
|
2754
|
+
}: Props$12) => react_jsx_runtime30.JSX.Element;
|
|
3549
2755
|
//#endregion
|
|
3550
2756
|
//#region src/components/AccountModal/Contents/KitSettings/SettingsContent.d.ts
|
|
3551
2757
|
type SettingsContentProps = {
|
|
3552
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2758
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3553
2759
|
onLogoutSuccess: () => void;
|
|
3554
2760
|
};
|
|
3555
2761
|
declare const SettingsContent: ({
|
|
3556
2762
|
setCurrentContent,
|
|
3557
2763
|
onLogoutSuccess
|
|
3558
|
-
}: SettingsContentProps) =>
|
|
2764
|
+
}: SettingsContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3559
2765
|
//#endregion
|
|
3560
2766
|
//#region src/components/AccountModal/Contents/TermsAndPrivacy/TermsAndPrivacyContent.d.ts
|
|
3561
2767
|
type TermsAndPrivacyContentProps = {
|
|
@@ -3563,7 +2769,7 @@ type TermsAndPrivacyContentProps = {
|
|
|
3563
2769
|
};
|
|
3564
2770
|
declare const TermsAndPrivacyContent: ({
|
|
3565
2771
|
onGoBack
|
|
3566
|
-
}: TermsAndPrivacyContentProps) =>
|
|
2772
|
+
}: TermsAndPrivacyContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3567
2773
|
//#endregion
|
|
3568
2774
|
//#region src/components/AccountModal/Contents/DisconnectConfirmation/DisconnectConfirmContent.d.ts
|
|
3569
2775
|
type DisconnectConfirmContentProps = {
|
|
@@ -3579,11 +2785,11 @@ declare const DisconnectConfirmContent: ({
|
|
|
3579
2785
|
onClose,
|
|
3580
2786
|
showCloseButton,
|
|
3581
2787
|
text
|
|
3582
|
-
}: DisconnectConfirmContentProps) =>
|
|
2788
|
+
}: DisconnectConfirmContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3583
2789
|
//#endregion
|
|
3584
2790
|
//#region src/components/AccountModal/Contents/SelectWallet/SelectWalletContent.d.ts
|
|
3585
|
-
type Props$
|
|
3586
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2791
|
+
type Props$11 = {
|
|
2792
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3587
2793
|
onClose: () => void;
|
|
3588
2794
|
returnTo?: 'main' | 'profile';
|
|
3589
2795
|
onLogoutSuccess?: () => void;
|
|
@@ -3592,7 +2798,7 @@ declare const SelectWalletContent: ({
|
|
|
3592
2798
|
setCurrentContent,
|
|
3593
2799
|
returnTo,
|
|
3594
2800
|
onLogoutSuccess: _onLogoutSuccess
|
|
3595
|
-
}: Props$
|
|
2801
|
+
}: Props$11) => react_jsx_runtime30.JSX.Element;
|
|
3596
2802
|
//#endregion
|
|
3597
2803
|
//#region src/components/AccountModal/Contents/SelectWallet/RemoveWalletConfirmContent.d.ts
|
|
3598
2804
|
type RemoveWalletConfirmContentProps = {
|
|
@@ -3608,135 +2814,7 @@ declare const RemoveWalletConfirmContent: ({
|
|
|
3608
2814
|
onConfirm,
|
|
3609
2815
|
onBack,
|
|
3610
2816
|
onClose
|
|
3611
|
-
}: RemoveWalletConfirmContentProps) =>
|
|
3612
|
-
//#endregion
|
|
3613
|
-
//#region src/components/AccountModal/Contents/Ecosystem/Components/CategoryFilterSection.d.ts
|
|
3614
|
-
type CategoryFilter = string | null;
|
|
3615
|
-
//#endregion
|
|
3616
|
-
//#region src/components/AccountModal/Contents/Ecosystem/AppOverviewContent.d.ts
|
|
3617
|
-
type AppOverviewContentProps = {
|
|
3618
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
3619
|
-
name: string;
|
|
3620
|
-
image: string;
|
|
3621
|
-
url: string;
|
|
3622
|
-
description: string;
|
|
3623
|
-
category?: AllowedCategories;
|
|
3624
|
-
selectedCategory?: CategoryFilter;
|
|
3625
|
-
logoComponent?: JSX.Element;
|
|
3626
|
-
};
|
|
3627
|
-
//#endregion
|
|
3628
|
-
//#region src/components/AccountModal/Contents/SuccessfulOperation/SuccessfulOperationContent.d.ts
|
|
3629
|
-
type SuccessfulOperationContentProps$1 = {
|
|
3630
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
3631
|
-
txId?: string;
|
|
3632
|
-
title: string;
|
|
3633
|
-
description?: string;
|
|
3634
|
-
onDone: () => void;
|
|
3635
|
-
showSocialButtons?: boolean;
|
|
3636
|
-
};
|
|
3637
|
-
//#endregion
|
|
3638
|
-
//#region src/components/AccountModal/Contents/FailedOperation/FailedOperationContent.d.ts
|
|
3639
|
-
type FailedOperationContentProps = {
|
|
3640
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
3641
|
-
txId?: string;
|
|
3642
|
-
title: string;
|
|
3643
|
-
description?: string;
|
|
3644
|
-
onDone: () => void;
|
|
3645
|
-
};
|
|
3646
|
-
//#endregion
|
|
3647
|
-
//#region src/components/AccountModal/Types/Types.d.ts
|
|
3648
|
-
type SwitchFeedback = {
|
|
3649
|
-
showFeedback: boolean;
|
|
3650
|
-
};
|
|
3651
|
-
type AccountModalContentTypes = 'main' | 'settings' | 'profile' | {
|
|
3652
|
-
type: 'main';
|
|
3653
|
-
props?: {
|
|
3654
|
-
switchFeedback?: SwitchFeedback;
|
|
3655
|
-
};
|
|
3656
|
-
} | {
|
|
3657
|
-
type: 'profile';
|
|
3658
|
-
props?: {
|
|
3659
|
-
switchFeedback?: SwitchFeedback;
|
|
3660
|
-
};
|
|
3661
|
-
} | 'manage-mfa' | 'receive-token' | 'swap-token' | 'connection-details' | 'ecosystem' | 'notifications' | 'privy-linked-accounts' | 'add-custom-token' | 'assets' | 'change-currency' | 'change-language' | 'gas-token-settings' | {
|
|
3662
|
-
type: 'select-wallet';
|
|
3663
|
-
props: {
|
|
3664
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
3665
|
-
onClose: () => void;
|
|
3666
|
-
returnTo?: 'main' | 'profile';
|
|
3667
|
-
onLogoutSuccess?: () => void;
|
|
3668
|
-
};
|
|
3669
|
-
} | {
|
|
3670
|
-
type: 'swap-token';
|
|
3671
|
-
props: {
|
|
3672
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
3673
|
-
fromTokenAddress?: string;
|
|
3674
|
-
toTokenAddress?: string;
|
|
3675
|
-
};
|
|
3676
|
-
} | {
|
|
3677
|
-
type: 'account-customization';
|
|
3678
|
-
props: AccountCustomizationContentProps;
|
|
3679
|
-
} | {
|
|
3680
|
-
type: 'successful-operation';
|
|
3681
|
-
props: SuccessfulOperationContentProps$1;
|
|
3682
|
-
} | {
|
|
3683
|
-
type: 'failed-operation';
|
|
3684
|
-
props: FailedOperationContentProps;
|
|
3685
|
-
} | {
|
|
3686
|
-
type: 'account-customization-summary';
|
|
3687
|
-
props: CustomizationSummaryContentProps;
|
|
3688
|
-
} | {
|
|
3689
|
-
type: 'app-overview';
|
|
3690
|
-
props: AppOverviewContentProps;
|
|
3691
|
-
} | {
|
|
3692
|
-
type: 'ecosystem-with-category';
|
|
3693
|
-
props: {
|
|
3694
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
3695
|
-
selectedCategory: CategoryFilter;
|
|
3696
|
-
};
|
|
3697
|
-
} | {
|
|
3698
|
-
type: 'send-token';
|
|
3699
|
-
props: SendTokenContentProps;
|
|
3700
|
-
} | {
|
|
3701
|
-
type: 'send-token-summary';
|
|
3702
|
-
props: SendTokenSummaryContentProps;
|
|
3703
|
-
} | {
|
|
3704
|
-
type: 'choose-name';
|
|
3705
|
-
props: ChooseNameContentProps;
|
|
3706
|
-
} | {
|
|
3707
|
-
type: 'choose-name-search';
|
|
3708
|
-
props: ChooseNameSearchContentProps;
|
|
3709
|
-
} | {
|
|
3710
|
-
type: 'choose-name-summary';
|
|
3711
|
-
props: ChooseNameSummaryContentProps;
|
|
3712
|
-
} | {
|
|
3713
|
-
type: 'disconnect-confirm';
|
|
3714
|
-
props: DisconnectConfirmContentProps;
|
|
3715
|
-
} | {
|
|
3716
|
-
type: 'remove-wallet-confirm';
|
|
3717
|
-
props: RemoveWalletConfirmContentProps;
|
|
3718
|
-
} | {
|
|
3719
|
-
type: 'upgrade-smart-account';
|
|
3720
|
-
props: UpgradeSmartAccountContentProps;
|
|
3721
|
-
} | {
|
|
3722
|
-
type: 'faq';
|
|
3723
|
-
props: FAQContentProps;
|
|
3724
|
-
} | {
|
|
3725
|
-
type: 'terms-and-privacy';
|
|
3726
|
-
props: TermsAndPrivacyContentProps;
|
|
3727
|
-
};
|
|
3728
|
-
//#endregion
|
|
3729
|
-
//#region src/components/AccountModal/AccountModal.d.ts
|
|
3730
|
-
type Props$11 = {
|
|
3731
|
-
isOpen: boolean;
|
|
3732
|
-
onClose: () => void;
|
|
3733
|
-
initialContent?: AccountModalContentTypes;
|
|
3734
|
-
};
|
|
3735
|
-
declare const AccountModal: ({
|
|
3736
|
-
isOpen,
|
|
3737
|
-
onClose,
|
|
3738
|
-
initialContent
|
|
3739
|
-
}: Props$11) => react_jsx_runtime3.JSX.Element;
|
|
2817
|
+
}: RemoveWalletConfirmContentProps) => react_jsx_runtime30.JSX.Element;
|
|
3740
2818
|
//#endregion
|
|
3741
2819
|
//#region src/components/AccountModal/Components/AccountDetailsButton.d.ts
|
|
3742
2820
|
interface AccountDetailsButtonProps {
|
|
@@ -3758,7 +2836,7 @@ declare const AccountDetailsButton: ({
|
|
|
3758
2836
|
onClick,
|
|
3759
2837
|
leftImage,
|
|
3760
2838
|
isActive
|
|
3761
|
-
}: AccountDetailsButtonProps) =>
|
|
2839
|
+
}: AccountDetailsButtonProps) => react_jsx_runtime30.JSX.Element;
|
|
3762
2840
|
//#endregion
|
|
3763
2841
|
//#region src/components/AccountModal/Components/ActionButton.d.ts
|
|
3764
2842
|
type ActionButtonProps = {
|
|
@@ -3800,12 +2878,12 @@ declare const ActionButton: ({
|
|
|
3800
2878
|
extraContent,
|
|
3801
2879
|
dataTestId,
|
|
3802
2880
|
variant
|
|
3803
|
-
}: ActionButtonProps) =>
|
|
2881
|
+
}: ActionButtonProps) => react_jsx_runtime30.JSX.Element;
|
|
3804
2882
|
//#endregion
|
|
3805
2883
|
//#region src/components/AccountModal/Components/AccountSelector.d.ts
|
|
3806
2884
|
type Props$10 = {
|
|
3807
2885
|
wallet: Wallet;
|
|
3808
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2886
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3809
2887
|
size?: string;
|
|
3810
2888
|
onClick?: () => void;
|
|
3811
2889
|
onClose: () => void;
|
|
@@ -3820,7 +2898,7 @@ declare const AccountSelector: ({
|
|
|
3820
2898
|
onClose,
|
|
3821
2899
|
mt,
|
|
3822
2900
|
style
|
|
3823
|
-
}: Props$10) =>
|
|
2901
|
+
}: Props$10) => react_jsx_runtime30.JSX.Element;
|
|
3824
2902
|
//#endregion
|
|
3825
2903
|
//#region src/components/AccountModal/Components/BalanceSection.d.ts
|
|
3826
2904
|
declare const BalanceSection: ({
|
|
@@ -3831,34 +2909,34 @@ declare const BalanceSection: ({
|
|
|
3831
2909
|
mb?: number;
|
|
3832
2910
|
mt?: number;
|
|
3833
2911
|
onAssetsClick?: () => void;
|
|
3834
|
-
}) =>
|
|
2912
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
3835
2913
|
//#endregion
|
|
3836
2914
|
//#region src/components/AccountModal/Components/QuickActionsSection.d.ts
|
|
3837
2915
|
type Props$9 = {
|
|
3838
2916
|
mt?: number;
|
|
3839
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2917
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3840
2918
|
};
|
|
3841
2919
|
declare const QuickActionsSection: ({
|
|
3842
2920
|
mt,
|
|
3843
2921
|
setCurrentContent
|
|
3844
|
-
}: Props$9) =>
|
|
2922
|
+
}: Props$9) => react_jsx_runtime30.JSX.Element;
|
|
3845
2923
|
//#endregion
|
|
3846
2924
|
//#region src/components/AccountModal/Components/Alerts/FeatureAnnouncementCard.d.ts
|
|
3847
2925
|
type FeatureAnnouncementCardProps = {
|
|
3848
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
2926
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes$1>>;
|
|
3849
2927
|
};
|
|
3850
2928
|
declare const FeatureAnnouncementCard: ({
|
|
3851
2929
|
setCurrentContent
|
|
3852
|
-
}: FeatureAnnouncementCardProps) =>
|
|
2930
|
+
}: FeatureAnnouncementCardProps) => react_jsx_runtime30.JSX.Element;
|
|
3853
2931
|
//#endregion
|
|
3854
2932
|
//#region src/components/AccountModal/Components/Alerts/ExchangeWarningAlert.d.ts
|
|
3855
|
-
declare const ExchangeWarningAlert: () =>
|
|
2933
|
+
declare const ExchangeWarningAlert: () => react_jsx_runtime30.JSX.Element;
|
|
3856
2934
|
//#endregion
|
|
3857
2935
|
//#region src/components/AccountModal/Components/Alerts/DomainRequiredAlert.d.ts
|
|
3858
|
-
declare const DomainRequiredAlert: () =>
|
|
2936
|
+
declare const DomainRequiredAlert: () => react_jsx_runtime30.JSX.Element;
|
|
3859
2937
|
//#endregion
|
|
3860
2938
|
//#region src/components/AccountModal/Components/CrossAppConnectionSecurityCard.d.ts
|
|
3861
|
-
declare const CrossAppConnectionSecurityCard: () =>
|
|
2939
|
+
declare const CrossAppConnectionSecurityCard: () => react_jsx_runtime30.JSX.Element;
|
|
3862
2940
|
//#endregion
|
|
3863
2941
|
//#region src/components/common/ModalBackButton.d.ts
|
|
3864
2942
|
type BackButtonProps = {
|
|
@@ -3867,9 +2945,10 @@ type BackButtonProps = {
|
|
|
3867
2945
|
declare const ModalBackButton: ({
|
|
3868
2946
|
onClick,
|
|
3869
2947
|
...props
|
|
3870
|
-
}: BackButtonProps) =>
|
|
2948
|
+
}: BackButtonProps) => react_jsx_runtime30.JSX.Element;
|
|
3871
2949
|
//#endregion
|
|
3872
2950
|
//#region src/components/common/AddressDisplay.d.ts
|
|
2951
|
+
type AccountModalContentTypes = any;
|
|
3873
2952
|
type Props$8 = {
|
|
3874
2953
|
wallet: Wallet;
|
|
3875
2954
|
label?: string;
|
|
@@ -3885,13 +2964,13 @@ declare const AddressDisplay: ({
|
|
|
3885
2964
|
showHumanAddress,
|
|
3886
2965
|
setCurrentContent,
|
|
3887
2966
|
onLogout
|
|
3888
|
-
}: Props$8) =>
|
|
2967
|
+
}: Props$8) => react_jsx_runtime30.JSX.Element;
|
|
3889
2968
|
//#endregion
|
|
3890
2969
|
//#region src/components/common/VersionFooter.d.ts
|
|
3891
2970
|
type Props$7 = {} & Omit<StackProps, 'dangerouslySetInnerHTML'>;
|
|
3892
2971
|
declare const VersionFooter: ({
|
|
3893
2972
|
...props
|
|
3894
|
-
}: Props$7) =>
|
|
2973
|
+
}: Props$7) => react_jsx_runtime30.JSX.Element;
|
|
3895
2974
|
//#endregion
|
|
3896
2975
|
//#region src/components/common/StickyHeaderContainer.d.ts
|
|
3897
2976
|
type Props$6 = {
|
|
@@ -3902,7 +2981,7 @@ declare const useStickyHeaderContext: () => {
|
|
|
3902
2981
|
};
|
|
3903
2982
|
declare const StickyHeaderContainer: ({
|
|
3904
2983
|
children
|
|
3905
|
-
}: Props$6) =>
|
|
2984
|
+
}: Props$6) => react_jsx_runtime30.JSX.Element;
|
|
3906
2985
|
//#endregion
|
|
3907
2986
|
//#region src/components/common/StickyFooterContainer.d.ts
|
|
3908
2987
|
type Props$5 = {
|
|
@@ -3910,7 +2989,7 @@ type Props$5 = {
|
|
|
3910
2989
|
};
|
|
3911
2990
|
declare const StickyFooterContainer: ({
|
|
3912
2991
|
children
|
|
3913
|
-
}: Props$5) =>
|
|
2992
|
+
}: Props$5) => react_jsx_runtime30.JSX.Element;
|
|
3914
2993
|
//#endregion
|
|
3915
2994
|
//#region src/components/common/BaseModal.d.ts
|
|
3916
2995
|
type BaseModalProps = {
|
|
@@ -3959,7 +3038,7 @@ declare const BaseModal: ({
|
|
|
3959
3038
|
mobileMaxHeight,
|
|
3960
3039
|
desktopMinHeight,
|
|
3961
3040
|
desktopMaxHeight
|
|
3962
|
-
}: BaseModalProps) =>
|
|
3041
|
+
}: BaseModalProps) => react_jsx_runtime30.JSX.Element;
|
|
3963
3042
|
//#endregion
|
|
3964
3043
|
//#region src/components/common/AssetButton.d.ts
|
|
3965
3044
|
type AssetButtonProps = ButtonProps & {
|
|
@@ -3978,7 +3057,7 @@ declare const AssetButton: ({
|
|
|
3978
3057
|
isDisabled,
|
|
3979
3058
|
onClick,
|
|
3980
3059
|
...buttonProps
|
|
3981
|
-
}: AssetButtonProps) =>
|
|
3060
|
+
}: AssetButtonProps) => react_jsx_runtime30.JSX.Element;
|
|
3982
3061
|
//#endregion
|
|
3983
3062
|
//#region src/components/common/AddressDisplayCard.d.ts
|
|
3984
3063
|
type AddressDisplayCardProps = {
|
|
@@ -3998,7 +3077,7 @@ declare const AddressDisplayCard: ({
|
|
|
3998
3077
|
hideAddress,
|
|
3999
3078
|
balance,
|
|
4000
3079
|
tokenAddress
|
|
4001
|
-
}: AddressDisplayCardProps) =>
|
|
3080
|
+
}: AddressDisplayCardProps) => react_jsx_runtime30.JSX.Element;
|
|
4002
3081
|
//#endregion
|
|
4003
3082
|
//#region src/components/common/ModalFAQButton.d.ts
|
|
4004
3083
|
type FAQButtonProps = {
|
|
@@ -4007,13 +3086,13 @@ type FAQButtonProps = {
|
|
|
4007
3086
|
declare const ModalFAQButton: ({
|
|
4008
3087
|
onClick,
|
|
4009
3088
|
...props
|
|
4010
|
-
}: FAQButtonProps) =>
|
|
3089
|
+
}: FAQButtonProps) => react_jsx_runtime30.JSX.Element;
|
|
4011
3090
|
//#endregion
|
|
4012
3091
|
//#region src/components/common/ScrollToTopWrapper.d.ts
|
|
4013
3092
|
declare const ScrollToTopWrapper: ({
|
|
4014
3093
|
children,
|
|
4015
3094
|
...props
|
|
4016
|
-
}: StackProps) =>
|
|
3095
|
+
}: StackProps) => react_jsx_runtime30.JSX.Element;
|
|
4017
3096
|
//#endregion
|
|
4018
3097
|
//#region src/components/common/AccountAvatar.d.ts
|
|
4019
3098
|
type AccountAvatarProps = {
|
|
@@ -4023,7 +3102,7 @@ type AccountAvatarProps = {
|
|
|
4023
3102
|
declare const AccountAvatar: ({
|
|
4024
3103
|
wallet,
|
|
4025
3104
|
props
|
|
4026
|
-
}: AccountAvatarProps) =>
|
|
3105
|
+
}: AccountAvatarProps) => react_jsx_runtime30.JSX.Element;
|
|
4027
3106
|
//#endregion
|
|
4028
3107
|
//#region src/components/common/TransactionButtonAndStatus.d.ts
|
|
4029
3108
|
type TransactionButtonAndStatusProps = {
|
|
@@ -4065,7 +3144,7 @@ declare const TransactionButtonAndStatus: ({
|
|
|
4065
3144
|
isLoadingGasEstimation,
|
|
4066
3145
|
showGasEstimationError,
|
|
4067
3146
|
context
|
|
4068
|
-
}: TransactionButtonAndStatusProps) =>
|
|
3147
|
+
}: TransactionButtonAndStatusProps) => react_jsx_runtime30.JSX.Element;
|
|
4069
3148
|
//#endregion
|
|
4070
3149
|
//#region src/components/common/ModalNotificationButton.d.ts
|
|
4071
3150
|
type NotificationButtonProps = {
|
|
@@ -4076,7 +3155,7 @@ declare const ModalNotificationButton: ({
|
|
|
4076
3155
|
onClick,
|
|
4077
3156
|
hasUnreadNotifications,
|
|
4078
3157
|
...props
|
|
4079
|
-
}: NotificationButtonProps) =>
|
|
3158
|
+
}: NotificationButtonProps) => react_jsx_runtime30.JSX.Element;
|
|
4080
3159
|
//#endregion
|
|
4081
3160
|
//#region src/components/common/GasFeeSummary.d.ts
|
|
4082
3161
|
interface GasFeeSummaryProps {
|
|
@@ -4112,7 +3191,7 @@ declare const GasFeeTokenSelector: ({
|
|
|
4112
3191
|
availableTokens,
|
|
4113
3192
|
tokenEstimations,
|
|
4114
3193
|
walletAddress
|
|
4115
|
-
}: GasFeeTokenSelectorProps) =>
|
|
3194
|
+
}: GasFeeTokenSelectorProps) => react_jsx_runtime30.JSX.Element;
|
|
4116
3195
|
//#endregion
|
|
4117
3196
|
//#region src/components/common/InlineFeedback.d.ts
|
|
4118
3197
|
type Props$4 = {
|
|
@@ -4124,7 +3203,7 @@ declare const InlineFeedback: ({
|
|
|
4124
3203
|
message,
|
|
4125
3204
|
duration,
|
|
4126
3205
|
onClose
|
|
4127
|
-
}: Props$4) =>
|
|
3206
|
+
}: Props$4) => react_jsx_runtime30.JSX.Element;
|
|
4128
3207
|
//#endregion
|
|
4129
3208
|
//#region src/components/common/WalletSwitchFeedback.d.ts
|
|
4130
3209
|
type Props$3 = {
|
|
@@ -4141,37 +3220,19 @@ type Props$3 = {
|
|
|
4141
3220
|
*/
|
|
4142
3221
|
declare const WalletSwitchFeedback: ({
|
|
4143
3222
|
showFeedback
|
|
4144
|
-
}: Props$3) =>
|
|
4145
|
-
//#endregion
|
|
4146
|
-
//#region src/components/UpgradeSmartAccountModal/Contents/SuccessfulOperationContent.d.ts
|
|
4147
|
-
type SuccessfulOperationContentProps = {
|
|
4148
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<UpgradeSmartAccountModalContentsTypes>>;
|
|
4149
|
-
txId?: string;
|
|
4150
|
-
title: string;
|
|
4151
|
-
description?: string;
|
|
4152
|
-
onDone: () => void;
|
|
4153
|
-
showSocialButtons?: boolean;
|
|
4154
|
-
};
|
|
3223
|
+
}: Props$3) => react_jsx_runtime30.JSX.Element | null;
|
|
4155
3224
|
//#endregion
|
|
4156
3225
|
//#region src/components/UpgradeSmartAccountModal/UpgradeSmartAccountModal.d.ts
|
|
4157
|
-
type UpgradeSmartAccountModalStyle = {
|
|
4158
|
-
accentColor?: string;
|
|
4159
|
-
modalSize?: ThemeTypings['components']['Modal']['sizes'];
|
|
4160
|
-
};
|
|
4161
3226
|
type Props$2 = {
|
|
4162
3227
|
isOpen: boolean;
|
|
4163
3228
|
onClose: () => void;
|
|
4164
3229
|
style?: UpgradeSmartAccountModalStyle;
|
|
4165
3230
|
};
|
|
4166
|
-
type UpgradeSmartAccountModalContentsTypes = 'upgrade-smart-account' | {
|
|
4167
|
-
type: 'successful-operation';
|
|
4168
|
-
props: SuccessfulOperationContentProps;
|
|
4169
|
-
};
|
|
4170
3231
|
declare const UpgradeSmartAccountModal: ({
|
|
4171
3232
|
isOpen,
|
|
4172
3233
|
onClose,
|
|
4173
3234
|
style
|
|
4174
|
-
}: Props$2) =>
|
|
3235
|
+
}: Props$2) => react_jsx_runtime30.JSX.Element;
|
|
4175
3236
|
//#endregion
|
|
4176
3237
|
//#region src/components/LegalDocumentsModal/LegalDocumentsModal.d.ts
|
|
4177
3238
|
type Props$1 = {
|
|
@@ -4186,7 +3247,7 @@ declare const LegalDocumentsModal: ({
|
|
|
4186
3247
|
onAgree,
|
|
4187
3248
|
handleLogout,
|
|
4188
3249
|
onlyOptionalDocuments
|
|
4189
|
-
}: Props$1) =>
|
|
3250
|
+
}: Props$1) => react_jsx_runtime30.JSX.Element;
|
|
4190
3251
|
//#endregion
|
|
4191
3252
|
//#region src/components/LegalDocumentsModal/Components/LegalDocumentItem.d.ts
|
|
4192
3253
|
type Props = {
|
|
@@ -4198,85 +3259,7 @@ declare const LegalDocumentItem: ({
|
|
|
4198
3259
|
document,
|
|
4199
3260
|
register,
|
|
4200
3261
|
isText
|
|
4201
|
-
}: Props) =>
|
|
4202
|
-
//#endregion
|
|
4203
|
-
//#region src/providers/ModalProvider.d.ts
|
|
4204
|
-
type AccountModalOptions = {
|
|
4205
|
-
isolatedView?: boolean;
|
|
4206
|
-
};
|
|
4207
|
-
type ModalContextType = {
|
|
4208
|
-
openConnectModal: (initialContent?: ConnectModalContentsTypes, preventAutoClose?: boolean) => void;
|
|
4209
|
-
closeConnectModal: () => void;
|
|
4210
|
-
isConnectModalOpen: boolean;
|
|
4211
|
-
connectModalContent: ConnectModalContentsTypes;
|
|
4212
|
-
setConnectModalContent: React.Dispatch<React.SetStateAction<ConnectModalContentsTypes>>;
|
|
4213
|
-
connectModalPreventAutoClose: boolean;
|
|
4214
|
-
setConnectModalPreventAutoClose: React.Dispatch<React.SetStateAction<boolean>>;
|
|
4215
|
-
openAccountModal: (content?: AccountModalContentTypes, options?: AccountModalOptions) => void;
|
|
4216
|
-
closeAccountModal: () => void;
|
|
4217
|
-
isAccountModalOpen: boolean;
|
|
4218
|
-
accountModalContent: AccountModalContentTypes;
|
|
4219
|
-
setAccountModalContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
4220
|
-
isolatedView: boolean;
|
|
4221
|
-
openTransactionModal: () => void;
|
|
4222
|
-
closeTransactionModal: () => void;
|
|
4223
|
-
isTransactionModalOpen: boolean;
|
|
4224
|
-
openTransactionToast: () => void;
|
|
4225
|
-
closeTransactionToast: () => void;
|
|
4226
|
-
isTransactionToastOpen: boolean;
|
|
4227
|
-
openUpgradeSmartAccountModal: (style?: UpgradeSmartAccountModalStyle) => void;
|
|
4228
|
-
closeUpgradeSmartAccountModal: () => void;
|
|
4229
|
-
isUpgradeSmartAccountModalOpen: boolean;
|
|
4230
|
-
};
|
|
4231
|
-
declare const useModal: () => ModalContextType;
|
|
4232
|
-
declare const ModalProvider: ({
|
|
4233
|
-
children
|
|
4234
|
-
}: {
|
|
4235
|
-
children: ReactNode;
|
|
4236
|
-
}) => react_jsx_runtime3.JSX.Element;
|
|
4237
|
-
//#endregion
|
|
4238
|
-
//#region src/config/index.d.ts
|
|
4239
|
-
type AppConfig = {
|
|
4240
|
-
ipfsFetchingService: string;
|
|
4241
|
-
ipfsPinningService: string;
|
|
4242
|
-
vthoContractAddress: string;
|
|
4243
|
-
b3trContractAddress: string;
|
|
4244
|
-
vot3ContractAddress: string;
|
|
4245
|
-
b3trGovernorAddress: string;
|
|
4246
|
-
timelockContractAddress: string;
|
|
4247
|
-
xAllocationPoolContractAddress: string;
|
|
4248
|
-
xAllocationVotingContractAddress: string;
|
|
4249
|
-
emissionsContractAddress: string;
|
|
4250
|
-
voterRewardsContractAddress: string;
|
|
4251
|
-
galaxyMemberContractAddress: string;
|
|
4252
|
-
treasuryContractAddress: string;
|
|
4253
|
-
x2EarnAppsContractAddress: string;
|
|
4254
|
-
x2EarnCreatorContractAddress: string;
|
|
4255
|
-
x2EarnRewardsPoolContractAddress: string;
|
|
4256
|
-
nodeManagementContractAddress: string;
|
|
4257
|
-
veBetterPassportContractAddress: string;
|
|
4258
|
-
veDelegate: string;
|
|
4259
|
-
veDelegateVotes: string;
|
|
4260
|
-
veDelegateTokenContractAddress: string;
|
|
4261
|
-
oracleContractAddress: string;
|
|
4262
|
-
accountFactoryAddress: string;
|
|
4263
|
-
cleanifyCampaignsContractAddress: string;
|
|
4264
|
-
cleanifyChallengesContractAddress: string;
|
|
4265
|
-
veWorldSubdomainClaimerContractAddress: string;
|
|
4266
|
-
vetDomainsContractAddress: string;
|
|
4267
|
-
vetDomainsPublicResolverAddress: string;
|
|
4268
|
-
vetDomainsReverseRegistrarAddress: string;
|
|
4269
|
-
vnsResolverAddress: string;
|
|
4270
|
-
gloDollarContractAddress: string;
|
|
4271
|
-
vetDomainAvatarUrl: string;
|
|
4272
|
-
nodeUrl: string;
|
|
4273
|
-
indexerUrl: string;
|
|
4274
|
-
b3trIndexerUrl: string;
|
|
4275
|
-
graphQlIndexerUrl: string;
|
|
4276
|
-
network: Network;
|
|
4277
|
-
explorerUrl: string;
|
|
4278
|
-
};
|
|
4279
|
-
declare const getConfig: (env: NETWORK_TYPE) => AppConfig;
|
|
3262
|
+
}: Props) => react_jsx_runtime30.JSX.Element;
|
|
4280
3263
|
//#endregion
|
|
4281
|
-
export { LanguageSettingsContent as $, useRefreshBalances as $a, FAQModalProvider as $i, useBuildClauses as $n, useIsDomainProtected as $o, resolveMediaTypeFromMimeType as $r, useVeChainKitConfig as $s, useUpgradeSmartAccount as $t, AddressDisplay as A, MAX_IMAGE_SIZE as Aa, PrivyAppInfo as Ac, AppHubApp as Ai, getAccountBalanceQueryKey as An, WalletTokenBalance as Ao, buildCallClauses as Ar, VeChainLoginButton as As, useMfaEnrollment as At, AccountDetailsButton as B, XAppMetadata as Ba, useNotifications as Bi, estimateGas as Bn, buildClauses as Bo, validate as Br, useLegalDocuments as Bs, useTransferVET as Bt, AddressDisplayCard as C, useSingleImageUpload as Ca, ConnectionSource as Cc, VECHAIN_KIT_COOKIES_CONFIG as Ci, getCurrentAccountImplementationVersion as Cn, getCurrentAllocationsRoundIdQueryKey as Co, removeLocalStorageItem as Cr, LoginWithGithubButton as Cs, ReceiveTokenContent as Ct, StickyHeaderContainer as D, useUploadImages as Da, ExecuteBatchWithAuthorizationSignData as Dc, getENV as Di, getAccountImplementationAddressQueryKey as Dn, useTokensWithValues as Do, MultipleClausesCallParameters as Dr, LoginWithGoogleButton as Ds, ThorClient$1 as Dt, StickyFooterContainer as E, imageCompressionOptions as Ea, EnhancedClause as Ec, VECHAIN_PRIVY_APP_ID as Ei, getAccountImplementationAddress as En, TokenWithValue as Eo, setLocalStorageItem as Er, PasskeyLoginButton as Es, SendTokenContent as Et, FeatureAnnouncementCard as F, getIpfsMetadata as Fa, TransactionStatusErrorType as Fc, useLoginWithOAuth$1 as Fi, useGenericDelegatorFeeEstimationParams as Fn, useGetAvatarLegacy as Fo, compare as Fr, LoadingContent as Fs, txReceiptQueryKey as Ft, RemoveWalletConfirmContentProps as G, StoredWallet as Ga, useProfileModal as Gi, EcosystemShortcut as Gn, getAvatarQueryKey as Go, MinXNodeLevel as Gr, PrivyWalletProviderContextType as Gs, GetEventsProps as Gt, AccountModalContentTypes as H, useXAppMetadata as Ha, useSettingsModal as Hi, signVip191Transaction as Hn, getTextRecords as Ho, simpleHash as Hr, VechainKitThemeProvider as Hs, useTransferERC20 as Ht, QuickActionsSection as I, getIpfsMetadataQueryKey as Ia, VePassportUserStatus as Ic, useLoginWithPasskey$1 as Ii, useGasTokenSelection as In, getAvatarOfAddressQueryKey as Io, isInvalid as Ir, MainContent as Is, useTxReceipt as It, DisconnectConfirmContentProps as J, UseWalletReturnType as Ja, useLoginModalContent as Ji, LocalStorageKey as Jn, DomainsResponse as Jo, allNodeStrengthLevelToName as Jr, LegalDocumentOptions as Js, getChainId as Jt, SelectWalletContent as K, useWalletStorage as Ka, UpgradeSmartAccountModalProvider as Ki, useEcosystemShortcuts as Kn, useGetAvatar as Ko, NodeStrengthLevelToImage as Kr, usePrivyWalletProvider as Ks, getAllEventLogs as Kt, BalanceSection as L, useIpfsMetadata as La, Wallet as Lc, useSignTypedData as Li, decodeRawTx as Ln, useGetAvatarOfAddress as Lo, isValid as Lr, ConnectModal as Ls, BuildTransactionProps as Lt, CrossAppConnectionSecurityCard as M, getIpfsImageQueryKey as Ma, SmartAccount as Mc, getAppHubAppsQueryKey as Mi, UseEstimateAllTokensParams as Mn, useUnsetDomain as Mo, executeMultipleClausesCall as Mr, ConnectionButton as Ms, useSetWalletRecovery as Mt, DomainRequiredAlert as N, useIpfsImage as Na, TokenBalance as Nc, useAppHubApps as Ni, useEstimateAllTokens as Nn, getAvatarLegacy as No, isValidUrl as Nr, EcosystemContent as Ns, useThor$1 as Nt, useStickyHeaderContext as O, useIpfsMetadatas as Oa, ExecuteWithAuthorizationSignData as Oc, getGenericDelegatorUrl as Oi, useAccountImplementationAddress as On, ExchangeRates as Oo, MultipleClausesCallReturnType as Or, PrivyButton as Os, useDAppKitWallet as Ot, ExchangeWarningAlert as P, useIpfsImageList as Pa, TransactionStatus as Pc, useLoginWithVeChain as Pi, useGenericDelegatorFeeEstimation as Pn, getAvatarLegacyQueryKey as Po, addPrefix as Pr, ErrorContent as Ps, useGasEstimate as Pt, GasTokenSettingsContent as Q, useRefreshMetadata as Qa, useAccountCustomizationModal as Qi, buildSingleAuthorizationTypedData as Qn, getIsDomainProtectedQueryKey as Qo, convertUriToUrl as Qr, VechainKitProviderProps as Qs, useCurrentBlock as Qt, AccountSelector as R, getXAppsSharesQueryKey as Ra, useSignMessage as Ri, delegateAuthorized as Rn, getResolverAddressQueryKey as Ro, normalize as Rr, ConnectModalContentsTypes as Rs, useBuildTransaction as Rt, ModalFAQButton as S, useSwapTransaction as Sa, CURRENCY_SYMBOLS as Sc, TogglePassportCheck as Si, useGetAccountAddress as Sn, useCustomTokens as So, isOnline as Sr, ConnectPopover as Ss, SwapTokenContent as St, BaseModal as T, compressImages as Ta, ENSRecords as Tc, VECHAIN_KIT_TERMS_CONFIG as Ti, useCurrentAccountImplementationVersion as Tn, useTotalBalance as To, safeWindowOpen as Tr, DappKitButton as Ts, SendTokenSummaryContent as Tt, SwitchFeedback as U, UseSwitchWalletReturnType as Ua, useAccountModalOptions as Ui, useGenericDelegator as Un, getTextRecordsQueryKey as Uo, TIME as Ur, useVechainKitThemeConfig as Us, UseSendTransactionReturnValue as Ut, AccountModal as V, getXAppMetadata as Va, SettingsModalProvider as Vi, getDepositAccount as Vn, useUpdateTextRecord as Vo, isRejectionError as Vr, ColorModeSync as Vs, buildERC20Clauses as Vt, RemoveWalletConfirmContent as W, useSwitchWallet as Wa, ProfileModalProvider as Wi, useCrossAppConnectionCache as Wn, useGetTextRecords as Wo, EconomicNodeStrengthLevelToName as Wr, PrivyWalletProvider as Ws, useSendTransaction as Wt, SettingsContent as X, getRoundXAppsQueryKey as Xa, useReceiveModal as Xi, BuildClausesParams as Xn, getDomainsOfAddressQueryKey as Xo, gmNfts as Xr, VeChainKitContext as Xs, useGetChainId as Xt, TermsAndPrivacyContent as Y, useWallet$1 as Ya, ReceiveModalProvider as Yi, useLocalStorage as Yn, getDomainsOfAddress as Yo, buildQueryString as Yr, VeChainKitConfig as Ys, getChainIdQueryKey as Yt, SettingsContentProps as Z, useRoundXApps as Za, AccountCustomizationModalProvider as Zi, buildBatchAuthorizationTypedData as Zn, useGetDomainsOfAddress as Zo, xNodeToGMstartingLevel as Zr, VeChainKitProvider as Zs, currentBlockQueryKey as Zt, ModalNotificationButton as _, AccountModalProvider as _a, GasTokenType as _c, ENV as _i, useHasV1SmartAccount as _n, TokenWithBalance as _o, getDocumentTitle as _r, TransactionModalProps as _s, ChooseNameSummaryContentProps as _t, useModal as a, SwapTokenModalProvider as aa, DepositAccount as ac, isValidAddress as ai, useUpgradeRequired as an, getVot3BalanceQueryKey as ao, useScrollToTop as ar, getVechainDomainQueryKey as as, AssetsContent as at, AccountAvatar as b, useConnectModal as ba, TextRecords as bc, TOKEN_LOGOS as bi, getAccountAddress as bn, getB3trBalanceQueryKey as bo, hasNavigator as br, WalletButtonProps as bs, ChooseNameContent as bt, LegalDocumentsModal as c, useSendTokenModal as ca, Rate as cc, randomTransactionUser as ci, getSmartAccountQueryKey as cn, SupportedToken as co, useFeatureAnnouncement as cr, useFetchPrivyStatus as cs, UpgradeSmartAccountContentProps as ct, UpgradeSmartAccountModalContentsTypes as d, WalletModalProvider as da, calculateTotalCost as dc, humanAddress as di, useRefreshFactoryQueries as dn, useGetTokenUsdPrice as do, useCurrency as dr, useFetchAppInfo as ds, CustomizationSummaryContent as dt, useFAQModal as ea, EnrichedLegalDocument as ec, toIPFSURL as ei, getUpgradeRequiredForAccount as en, MostVotedAppsInRoundReturnType as eo, GetEventsKeyParams as er, buildVetDomainClauses as es, ChangeCurrencyContent as et, UpgradeSmartAccountModalStyle as f, useWalletModal as fa, formatGasCost as fc, humanDomain as fi, getIsDeployed as fn, getErc20BalanceQueryKey as fo, getCallClauseQueryKey as fr, AccountMainContent as fs, CustomizationSummaryContentProps as ft, GasFeeSummary as g, useTransactionModal as ga, GasTokenSelection as gc, DEFAULT_PRIVY_ECOSYSTEM_APPS as gi, getHasV1SmartAccountQueryKey as gn, useGetCustomTokenInfo as go, copyToClipboard as gr, TransactionModal as gs, ChooseNameSummaryContent as gt, GasFeeTokenSelector as h, TransactionModalProvider as ha, GasTokenPreferences as hc, DEFAULT_GAS_TOKEN_PREFERENCES as hi, getHasV1SmartAccount as hn, getTokenInfo$1 as ho, useMultipleClausesCall as hr, ShareButtons as hs, FAQContent as ht, ModalProvider as i, useExploreEcosystemModal as ia, CostLevel as ic, compareListOfAddresses as ii, getUpgradeRequiredQueryKey as in, useIsPerson as io, useEvents as ir, useEnsRecordExists as is, ManageCustomTokenContentProps as it, ModalBackButton as j, getIpfsImage as ja, PrivyLoginMethod as jc, fetchAppHubApps as ji, useAccountBalance as jn, useTokenBalances as jo, executeCallClause as jr, EmailLoginButton as js, usePrivy$1 as jt, VersionFooter as k, IpfsImage as ka, NFTMediaType as kc, notFoundImage as ki, getAccountBalance as kn, useTokenPrices as ko, ViewFunctionResult as kr, EcosystemButton as ks, useDAppKitWalletModal as kt, LegalDocumentsModalContentsTypes as l, ChooseNameModalProvider as la, TransactionCost as lc, formatTokenBalance as li, useSmartAccount as ln, getTokenUsdPrice as lo, useCurrentCurrency as lr, fetchPrivyAppInfo as ls, ProfileContent as lt, InlineFeedback as m, useTransactionToast as ma, GasTokenInfo as mc, isZero as mi, useIsSmartAccountDeployed as mn, getCustomTokenInfoQueryKey as mo, useCallClause as mr, TransactionModalContent as ms, CustomizationContent as mt, getConfig as n, useNotificationsModal as na, LegalDocumentSource as nc, validateIpfsUri as ni, useUpgradeRequiredForAccount as nn, useMostVotedAppsInRound as no, decodeEventLog$1 as nr, useClaimVeWorldSubdomain as ns, BridgeContent as nt, DAppKitWalletButton as o, useSwapTokenModal as oa, EstimatedGas as oc, leftPadWithZeros as oi, SmartAccountReturnType as on, useGetVot3Balance as oo, useIsPWA as or, useVechainDomain as os, AssetsContentProps as ot, WalletSwitchFeedback as p, TransactionToastProvider as pa, GasTokenEstimate as pc, humanNumber as pi, getIsDeployedQueryKey as pn, useGetErc20Balance as po, getCallClauseQueryKeyWithArgs as pr, TransactionToast as ps, AccountCustomizationContentProps as pt, DisconnectConfirmContent as q, useWalletMetadata as qa, useUpgradeSmartAccountModal as qi, useSyncableLocalStorage as qn, Domain as qo, XNodeStrengthLevelToName as qr, LegalDocument as qs, getEventLogs as qt, AccountModalOptions as r, ExploreEcosystemModalProvider as ra, LegalDocumentType as rc, compareAddresses as ri, getUpgradeRequired as rn, getIsPersonQueryKey as ro, getEventsKey as rr, getEnsRecordExistsQueryKey as rs, ManageCustomTokenContent as rt, LegalDocumentItem as s, SendTokenModalProvider as sa, EstimationResponse as sc, regexPattern as si, getSmartAccount as sn, PRICE_FEED_IDS as so, useGetNodeUrl as sr, fetchPrivyStatus as ss, UpgradeSmartAccountContent as st, AppConfig as t, NotificationsModalProvider as ta, LegalDocumentAgreement as tc, uploadBlobToIPFS as ti, getUpgradeRequiredForAccountQueryKey as tn, XApp as to, UseEventsParams as tr, useClaimVetDomain as ts, ChangeCurrencyContentProps as tt, UpgradeSmartAccountModal as u, useChooseNameModal as ua, VthoPerGasAtSpeed as uc, getPicassoImage as ui, useRefreshSmartAccountQueries as un, getTokenUsdPriceQueryKey as uo, useCurrentLanguage as ur, getPrivyAppInfoQueryKey as us, ProfileContentProps as ut, TransactionButtonAndStatus as v, useAccountModal as va, TransactionSpeed as vc, PrivyEcosystemApp as vi, getAccountVersionQueryKey as vn, getCustomTokenBalanceQueryKey as vo, getLocalStorageItem as vr, SocialIcons as vs, ChooseNameSearchContent as vt, AssetButton as w, UploadedImage as wa, CrossAppConnectionCache as wc, VECHAIN_KIT_STORAGE_KEYS as wi, getCurrentAccountImplementationVersionQueryKey as wn, useCurrentAllocationsRoundId as wo, safeQuerySelector as wr, VeChainWithPrivyLoginButton as ws, SelectTokenContent as wt, ScrollToTopWrapper as x, useSwapQuotes as xa, CURRENCY as xc, TOKEN_LOGO_COMPONENTS as xi, getAccountAddressQueryKey as xn, useGetB3trBalance as xo, isBrowser as xr, WalletDisplayVariant as xs, ChooseNameContentProps as xt, TransactionButtonAndStatusProps as y, ConnectModalProvider as ya, ENS_TEXT_RECORDS as yc, SUPPORTED_GAS_TOKENS as yi, useGetAccountVersion as yn, useGetCustomTokenBalances as yo, getWindowOrigin as yr, WalletButton as ys, ChooseNameSearchContentProps as yt, ActionButton as z, useXAppsShares as za, useNotificationAlerts as zi, estimateAndBuildTxBody as zn, useGetResolverAddress as zo, removePrefix as zr, LegalDocumentsProvider as zs, buildVETClauses as zt };
|
|
4282
|
-
//# sourceMappingURL=index-
|
|
3264
|
+
export { ProfileContent as $, fetchPrivyAppInfo as $a, TokenWithBalance as $i, useCurrency as $n, UseOptionalThorReturnType as $r, getHasV1SmartAccount as $t, BalanceSection as A, DomainsResponse as Aa, UseWalletReturnType as Ai, useEcosystemShortcuts as An, useNotificationsModal as Ar, useTransferVET as At, SettingsContent as B, useSendTransaction as Ba, useIsPerson as Bi, getSmartAccountQueryKey as Bn, useWalletModal$1 as Br, useCurrentBlock as Bt, AddressDisplay as C, useUpdateTextRecord as Ca, getXAppMetadata as Ci, estimateAndBuildTxBody as Cn, ConnectionButton as Co, ReceiveModalProvider as Cr, useThor$1 as Ct, ExchangeWarningAlert as D, getAvatarQueryKey as Da, StoredWallet as Di, useGenericDelegator as Dn, MainContent as Do, FAQModalProvider as Dr, BuildTransactionProps as Dt, DomainRequiredAlert as E, useGetTextRecords as Ea, useSwitchWallet as Ei, signVip191Transaction as En, LoadingContent as Eo, useAccountCustomizationModal as Er, useTxReceipt as Et, RemoveWalletConfirmContentProps as F, useIsDomainProtected as Fa, useRefreshBalances as Fi, buildBatchAuthorizationTypedData as Fn, SendTokenModalProvider as Fr, getEventLogs as Ft, ChangeCurrencyContentProps as G, UseOptionalWagmiAccountReturnType as Ga, getTokenUsdPrice as Gi, getEventsKey as Gn, AccountModalProvider as Gr, getUpgradeRequired as Gt, GasTokenSettingsContent as H, useEnsRecordExists as Ha, useGetVot3Balance as Hi, GetEventsKeyParams as Hn, useTransactionToast as Hr, getUpgradeRequiredForAccount as Ht, SelectWalletContent as I, buildVetDomainClauses as Ia, MostVotedAppsInRoundReturnType as Ii, buildSingleAuthorizationTypedData as In, useSendTokenModal as Ir, getChainId as It, ManageCustomTokenContentProps as J, useOptionalPrivyCrossAppSdk as Ja, getErc20BalanceQueryKey as Ji, useIsPWA as Jn, useConnectModal as Jr, useRefreshSmartAccountQueries as Jt, BridgeContent as K, useOptionalWagmiAccount as Ka, getTokenUsdPriceQueryKey as Ki, useEvents as Kn, useAccountModal as Kr, getUpgradeRequiredQueryKey as Kt, DisconnectConfirmContent as L, useClaimVetDomain as La, XApp as Li, useBuildClauses as Ln, ChooseNameModalProvider as Lr, getChainIdQueryKey as Lt, ActionButton as M, getDomainsOfAddressQueryKey as Ma, getRoundXAppsQueryKey as Mi, LocalStorageKey as Mn, useExploreEcosystemModal as Mr, useTransferERC20 as Mt, AccountDetailsButton as N, useGetDomainsOfAddress as Na, useRoundXApps as Ni, useLocalStorage as Nn, SwapTokenModalProvider as Nr, GetEventsProps as Nt, FeatureAnnouncementCard as O, useGetAvatar as Oa, useWalletStorage as Oi, useCrossAppConnectionCache as On, ConnectModal as Oo, useFAQModal as Or, useBuildTransaction as Ot, RemoveWalletConfirmContent as P, getIsDomainProtectedQueryKey as Pa, useRefreshMetadata as Pi, BuildClausesParams as Pn, useSwapTokenModal as Pr, getAllEventLogs as Pt, UpgradeSmartAccountContentProps as Q, useFetchPrivyStatus as Qa, useGetCustomTokenInfo as Qi, useCurrentLanguage as Qn, useOptionalDAppKitWallet as Qr, useIsSmartAccountDeployed as Qt, DisconnectConfirmContentProps as R, useClaimVeWorldSubdomain as Ra, useMostVotedAppsInRound as Ri, SmartAccountReturnType as Rn, useChooseNameModal as Rr, useGetChainId as Rt, VersionFooter as S, buildClauses as Sa, XAppMetadata as Si, delegateAuthorized as Sn, EmailLoginButton as So, useLoginModalContent as Sr, useSetWalletRecovery as St, CrossAppConnectionSecurityCard as T, getTextRecordsQueryKey as Ta, UseSwitchWalletReturnType as Ti, getDepositAccount as Tn, ErrorContent as To, AccountCustomizationModalProvider as Tr, txReceiptQueryKey as Tt, LanguageSettingsContent as U, getVechainDomainQueryKey as Ua, PRICE_FEED_IDS as Ui, UseEventsParams as Un, TransactionModalProvider as Ur, getUpgradeRequiredForAccountQueryKey as Ut, SettingsContentProps as V, getEnsRecordExistsQueryKey as Va, getVot3BalanceQueryKey as Vi, useSmartAccount as Vn, TransactionToastProvider as Vr, useUpgradeSmartAccount as Vt, ChangeCurrencyContent as W, useVechainDomain as Wa, SupportedToken as Wi, decodeEventLog$1 as Wn, useTransactionModal as Wr, useUpgradeRequiredForAccount as Wt, AssetsContentProps as X, useOptionalPrivy as Xa, getCustomTokenInfoQueryKey as Xi, useFeatureAnnouncement as Xn, useOptionalDAppKitWalletModal as Xr, getIsDeployed as Xt, AssetsContent as Y, UseOptionalPrivyReturnType as Ya, useGetErc20Balance as Yi, useGetNodeUrl as Yn, UseOptionalDAppKitWalletModalReturnType as Yr, useRefreshFactoryQueries as Yt, UpgradeSmartAccountContent as Z, fetchPrivyStatus as Za, getTokenInfo$1 as Zi, useCurrentCurrency as Zn, UseOptionalDAppKitWalletReturnType as Zr, getIsDeployedQueryKey as Zt, AssetButton as _, useGetAvatarLegacy as _a, getIpfsMetadata as _i, useEstimateAllTokens as _n, PasskeyLoginButton as _o, useAccountModalOptions as _r, ThorClient$1 as _t, UpgradeSmartAccountModal as a, getCurrentAllocationsRoundIdQueryKey as aa, useSingleImageUpload as ai, getAccountAddressQueryKey as an, TransactionModalContent as ao, fetchAppHubApps as ar, FAQContent as at, StickyHeaderContainer as b, getResolverAddressQueryKey as ba, getXAppsSharesQueryKey as bi, useGasTokenSelection as bn, EcosystemButton as bo, UpgradeSmartAccountModalProvider as br, useMfaEnrollment$1 as bt, GasFeeTokenSelector as c, TokenWithValue as ca, imageCompressionOptions as ci, getCurrentAccountImplementationVersionQueryKey as cn, TransactionModalProps as co, useLoginWithVeChain as cr, ChooseNameSearchContent as ct, TransactionButtonAndStatus as d, useTokenPrices as da, IpfsImage as di, getAccountImplementationAddressQueryKey as dn, WalletButtonProps as do, useSignTypedData$1 as dr, ChooseNameContentProps as dt, getCustomTokenBalanceQueryKey as ea, useOptionalThor as ei, getHasV1SmartAccountQueryKey as en, getPrivyAppInfoQueryKey as eo, getCallClauseQueryKey as er, ProfileContentProps as et, TransactionButtonAndStatusProps as f, WalletTokenBalance as fa, MAX_IMAGE_SIZE as fi, useAccountImplementationAddress as fn, WalletDisplayVariant as fo, useSignMessage$1 as fr, SwapTokenContent as ft, AddressDisplayCard as g, getAvatarLegacyQueryKey as ga, useIpfsImageList as gi, UseEstimateAllTokensParams as gn, DappKitButton as go, useSettingsModal as gr, SendTokenContent as gt, ModalFAQButton as h, getAvatarLegacy as ha, useIpfsImage as hi, useAccountBalance as hn, VeChainWithPrivyLoginButton as ho, SettingsModalProvider as hr, SendTokenSummaryContent as ht, LegalDocumentsModalContentsTypes as i, useCustomTokens as ia, AppConfig as ii, getAccountAddress as in, TransactionToast as io, AppHubApp as ir, CustomizationContent as it, AccountSelector as j, getDomainsOfAddress as ja, useWallet$1 as ji, useSyncableLocalStorage as jn, ExploreEcosystemModalProvider as jr, buildERC20Clauses as jt, QuickActionsSection as k, Domain as ka, useWalletMetadata as ki, EcosystemShortcut as kn, NotificationsModalProvider as kr, buildVETClauses as kt, GasFeeSummary as l, useTokensWithValues as la, useUploadImages as li, useCurrentAccountImplementationVersion as ln, SocialIcons as lo, useLoginWithOAuth$1 as lr, ChooseNameSearchContentProps as lt, ScrollToTopWrapper as m, useUnsetDomain as ma, getIpfsImageQueryKey as mi, getAccountBalanceQueryKey as mn, LoginWithGithubButton as mo, useNotifications as mr, SelectTokenContent as mt, LegalDocumentItem as n, getB3trBalanceQueryKey as na, useSwapTransaction as ni, getAccountVersionQueryKey as nn, AccountMainContent as no, useCallClause as nr, CustomizationSummaryContentProps as nt, WalletSwitchFeedback as o, useCurrentAllocationsRoundId as oa, UploadedImage as oi, useGetAccountAddress as on, ShareButtons as oo, getAppHubAppsQueryKey as or, ChooseNameSummaryContent as ot, AccountAvatar as p, useTokenBalances as pa, getIpfsImage as pi, getAccountBalance as pn, ConnectPopover as po, useNotificationAlerts as pr, ReceiveTokenContent as pt, ManageCustomTokenContent as q, UseOptionalPrivyCrossAppSdkReturnType as qa, useGetTokenUsdPrice as qi, useScrollToTop as qn, ConnectModalProvider as qr, useUpgradeRequired as qt, LegalDocumentsModal as r, useGetB3trBalance as ra, getConfig as ri, useGetAccountVersion as rn, AccountModal as ro, useMultipleClausesCall as rr, AccountCustomizationContentProps as rt, InlineFeedback as s, useTotalBalance as sa, compressImages as si, getCurrentAccountImplementationVersion as sn, TransactionModal as so, useAppHubApps as sr, ChooseNameSummaryContentProps as st, DAppKitWalletButton as t, useGetCustomTokenBalances as ta, useSwapQuotes as ti, useHasV1SmartAccount as tn, useFetchAppInfo as to, getCallClauseQueryKeyWithArgs as tr, CustomizationSummaryContent as tt, ModalNotificationButton as u, ExchangeRates as ua, useIpfsMetadatas as ui, getAccountImplementationAddress as un, WalletButton as uo, useLoginWithPasskey$1 as ur, ChooseNameContent as ut, BaseModal as v, getAvatarOfAddressQueryKey as va, getIpfsMetadataQueryKey as vi, useGenericDelegatorFeeEstimation as vn, LoginWithGoogleButton as vo, ProfileModalProvider as vr, useDAppKitWallet as vt, ModalBackButton as w, getTextRecords as wa, useXAppMetadata as wi, estimateGas as wn, EcosystemContent as wo, useReceiveModal as wr, useGasEstimate as wt, useStickyHeaderContext as x, useGetResolverAddress as xa, useXAppsShares as xi, decodeRawTx as xn, VeChainLoginButton as xo, useUpgradeSmartAccountModal as xr, usePrivy$1 as xt, StickyFooterContainer as y, useGetAvatarOfAddress as ya, useIpfsMetadata as yi, useGenericDelegatorFeeEstimationParams as yn, PrivyButton as yo, useProfileModal as yr, useDAppKitWalletModal as yt, TermsAndPrivacyContent as z, UseSendTransactionReturnValue as za, getIsPersonQueryKey as zi, getSmartAccount as zn, WalletModalProvider as zr, currentBlockQueryKey as zt };
|
|
3265
|
+
//# sourceMappingURL=index-BGQS0a81.d.ts.map
|