@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
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
import { ThemeTypings } from "@chakra-ui/react";
|
|
2
|
+
import { TransactionClause } from "@vechain/sdk-core";
|
|
3
|
+
import { LoginMethodOrderOption } from "@privy-io/react-auth";
|
|
4
|
+
import { CompressedBlockDetail } from "@vechain/sdk-network";
|
|
5
|
+
|
|
6
|
+
//#region src/types/types.d.ts
|
|
7
|
+
type TokenBalance = {
|
|
8
|
+
original: string;
|
|
9
|
+
scaled: string;
|
|
10
|
+
formatted: string;
|
|
11
|
+
};
|
|
12
|
+
type ENSRecords = {
|
|
13
|
+
display?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
email?: string;
|
|
16
|
+
url?: string;
|
|
17
|
+
header?: string;
|
|
18
|
+
notice?: string;
|
|
19
|
+
location?: string;
|
|
20
|
+
phone?: string;
|
|
21
|
+
[key: string]: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
type Wallet = {
|
|
24
|
+
address: string;
|
|
25
|
+
domain?: string;
|
|
26
|
+
image?: string;
|
|
27
|
+
isLoadingMetadata?: boolean;
|
|
28
|
+
metadata?: ENSRecords;
|
|
29
|
+
} | null;
|
|
30
|
+
type SmartAccount = Wallet & {
|
|
31
|
+
isDeployed: boolean;
|
|
32
|
+
isActive: boolean;
|
|
33
|
+
version: number | null;
|
|
34
|
+
};
|
|
35
|
+
type ConnectionSource = {
|
|
36
|
+
type: 'privy' | 'wallet' | 'privy-cross-app';
|
|
37
|
+
displayName: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Data that the Privy user must sign in order to execute a transaction
|
|
41
|
+
* by authorizing the Smart Account contract
|
|
42
|
+
*/
|
|
43
|
+
type ExecuteWithAuthorizationSignData = {
|
|
44
|
+
domain: {
|
|
45
|
+
name: string;
|
|
46
|
+
version: string;
|
|
47
|
+
chainId: number;
|
|
48
|
+
verifyingContract: string;
|
|
49
|
+
};
|
|
50
|
+
types: {
|
|
51
|
+
ExecuteWithAuthorization: {
|
|
52
|
+
name: string;
|
|
53
|
+
type: string;
|
|
54
|
+
}[];
|
|
55
|
+
EIP712Domain: {
|
|
56
|
+
name: string;
|
|
57
|
+
type: string;
|
|
58
|
+
}[];
|
|
59
|
+
};
|
|
60
|
+
primaryType: string;
|
|
61
|
+
message: {
|
|
62
|
+
validAfter: number;
|
|
63
|
+
validBefore: number;
|
|
64
|
+
to: string | null | undefined;
|
|
65
|
+
value: string;
|
|
66
|
+
data: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
type ExecuteBatchWithAuthorizationSignData = {
|
|
70
|
+
domain: {
|
|
71
|
+
name: string;
|
|
72
|
+
version: string;
|
|
73
|
+
chainId: number;
|
|
74
|
+
verifyingContract: string;
|
|
75
|
+
};
|
|
76
|
+
types: {
|
|
77
|
+
ExecuteBatchWithAuthorization: {
|
|
78
|
+
name: string;
|
|
79
|
+
type: string;
|
|
80
|
+
}[];
|
|
81
|
+
EIP712Domain: {
|
|
82
|
+
name: string;
|
|
83
|
+
type: string;
|
|
84
|
+
}[];
|
|
85
|
+
};
|
|
86
|
+
primaryType: string;
|
|
87
|
+
message: {
|
|
88
|
+
to: string[] | null | undefined;
|
|
89
|
+
value: string[] | null | undefined;
|
|
90
|
+
data: string[] | null | undefined;
|
|
91
|
+
validAfter: number;
|
|
92
|
+
validBefore: number;
|
|
93
|
+
nonce: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* ready: the user has not clicked on the button yet
|
|
98
|
+
* pending: the user has clicked on the button and we're waiting for the transaction to be sent
|
|
99
|
+
* waitingConfirmation: the transaction has been sent and we're waiting for the transaction to be confirmed by the chain
|
|
100
|
+
* success: the transaction has been confirmed by the chain
|
|
101
|
+
* error: the transaction has failed
|
|
102
|
+
* unknown: the transaction receipt has failed to load
|
|
103
|
+
*/
|
|
104
|
+
type TransactionStatus = 'ready' | 'pending' | 'waitingConfirmation' | 'success' | 'error' | 'unknown';
|
|
105
|
+
type TransactionStatusErrorType = {
|
|
106
|
+
type: 'SendTransactionError' | 'TxReceiptError' | 'RevertReasonError' | 'UserRejectedError';
|
|
107
|
+
reason?: string;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* An enhanced clause with a comment and an abi
|
|
111
|
+
* @param comment a comment to add to the clause
|
|
112
|
+
* @param abi the abi of the contract to call
|
|
113
|
+
*/
|
|
114
|
+
type EnhancedClause = TransactionClause;
|
|
115
|
+
type PrivyAppInfo = {
|
|
116
|
+
id: string;
|
|
117
|
+
name: string;
|
|
118
|
+
logo_url: string;
|
|
119
|
+
icon_url: string | null;
|
|
120
|
+
terms_and_conditions_url: string;
|
|
121
|
+
privacy_policy_url: string;
|
|
122
|
+
theme: string;
|
|
123
|
+
accent_color: string;
|
|
124
|
+
wallet_auth: boolean;
|
|
125
|
+
email_auth: boolean;
|
|
126
|
+
google_oauth: boolean;
|
|
127
|
+
twitter_oauth: boolean;
|
|
128
|
+
url: string;
|
|
129
|
+
website?: string;
|
|
130
|
+
};
|
|
131
|
+
type PrivyLoginMethod = LoginMethodOrderOption;
|
|
132
|
+
interface CrossAppConnectionCache {
|
|
133
|
+
timestamp: number;
|
|
134
|
+
ecosystemApp: {
|
|
135
|
+
name: string;
|
|
136
|
+
logoUrl?: string;
|
|
137
|
+
appId: string;
|
|
138
|
+
website?: string;
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
declare enum NFTMediaType {
|
|
142
|
+
IMAGE = "image",
|
|
143
|
+
VIDEO = "video",
|
|
144
|
+
UNKNOWN = "unknown",
|
|
145
|
+
TEXT = "text",
|
|
146
|
+
}
|
|
147
|
+
declare enum VePassportUserStatus {
|
|
148
|
+
NONE = "NONE",
|
|
149
|
+
WHITELIST = "WHITELIST",
|
|
150
|
+
BLACKLIST = "BLACKLIST",
|
|
151
|
+
}
|
|
152
|
+
type CURRENCY = 'usd' | 'gbp' | 'eur';
|
|
153
|
+
declare const CURRENCY_SYMBOLS: Record<CURRENCY, string>;
|
|
154
|
+
/**
|
|
155
|
+
* Legal document configuration for terms, privacy policy, and cookies
|
|
156
|
+
* Used by VeChainKitProvider and LegalDocumentsProvider
|
|
157
|
+
*/
|
|
158
|
+
type LegalDocument = {
|
|
159
|
+
url: string;
|
|
160
|
+
version: number;
|
|
161
|
+
required: boolean;
|
|
162
|
+
displayName?: string;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Options for configuring legal documents in VeChainKitProvider
|
|
166
|
+
*/
|
|
167
|
+
type LegalDocumentOptions = {
|
|
168
|
+
privacyPolicy?: LegalDocument[];
|
|
169
|
+
termsAndConditions?: LegalDocument[];
|
|
170
|
+
cookiePolicy?: LegalDocument[];
|
|
171
|
+
};
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/types/modal.d.ts
|
|
174
|
+
/**
|
|
175
|
+
* Allowed categories for App Hub apps displayed in the Ecosystem modal.
|
|
176
|
+
*/
|
|
177
|
+
type AllowedCategories = 'defi' | 'games' | 'collectibles' | 'marketplaces' | 'utilities' | 'vebetter';
|
|
178
|
+
/**
|
|
179
|
+
* Category filter type for ecosystem content
|
|
180
|
+
*/
|
|
181
|
+
type CategoryFilter = string | null;
|
|
182
|
+
/**
|
|
183
|
+
* All possible content types for the ConnectModal
|
|
184
|
+
*/
|
|
185
|
+
type ConnectModalContentsTypes = 'main' | 'faq' | {
|
|
186
|
+
type: 'ecosystem';
|
|
187
|
+
props: {
|
|
188
|
+
appsInfo: PrivyAppInfo[];
|
|
189
|
+
isLoading: boolean;
|
|
190
|
+
showBackButton?: boolean;
|
|
191
|
+
};
|
|
192
|
+
} | {
|
|
193
|
+
type: 'loading';
|
|
194
|
+
props: {
|
|
195
|
+
title?: string;
|
|
196
|
+
loadingText?: string;
|
|
197
|
+
onTryAgain?: () => void;
|
|
198
|
+
showBackButton?: boolean;
|
|
199
|
+
};
|
|
200
|
+
} | {
|
|
201
|
+
type: 'error';
|
|
202
|
+
props: {
|
|
203
|
+
error: string;
|
|
204
|
+
onTryAgain: () => void;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Style options for UpgradeSmartAccountModal
|
|
209
|
+
*/
|
|
210
|
+
type UpgradeSmartAccountModalStyle = {
|
|
211
|
+
accentColor?: string;
|
|
212
|
+
modalSize?: ThemeTypings['components']['Modal']['sizes'];
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Content types for UpgradeSmartAccountModal
|
|
216
|
+
*/
|
|
217
|
+
type UpgradeSmartAccountModalContentsTypes = 'upgrade-smart-account' | {
|
|
218
|
+
type: 'successful-operation';
|
|
219
|
+
props: any;
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* Feedback type for switch operations
|
|
223
|
+
*/
|
|
224
|
+
type SwitchFeedback = {
|
|
225
|
+
showFeedback: boolean;
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Generic dispatcher type for setCurrentContent
|
|
229
|
+
* Using this avoids circular dependency with AccountModalContentTypes
|
|
230
|
+
*/
|
|
231
|
+
type SetContentDispatcher = React.Dispatch<React.SetStateAction<any>>;
|
|
232
|
+
/**
|
|
233
|
+
* All possible content types for the AccountModal.
|
|
234
|
+
*
|
|
235
|
+
* This type is defined here (instead of in components/AccountModal/Types/Types.ts)
|
|
236
|
+
* to avoid circular dependencies. The prop types for complex content types
|
|
237
|
+
* use inline definitions rather than importing from component files.
|
|
238
|
+
*/
|
|
239
|
+
type AccountModalContentTypes = 'main' | 'settings' | 'profile' | {
|
|
240
|
+
type: 'main';
|
|
241
|
+
props?: {
|
|
242
|
+
switchFeedback?: SwitchFeedback;
|
|
243
|
+
};
|
|
244
|
+
} | {
|
|
245
|
+
type: 'profile';
|
|
246
|
+
props?: {
|
|
247
|
+
switchFeedback?: SwitchFeedback;
|
|
248
|
+
};
|
|
249
|
+
} | 'manage-mfa' | 'receive-token' | 'swap-token' | 'connection-details' | 'ecosystem' | 'notifications' | 'privy-linked-accounts' | 'add-custom-token' | 'assets' | 'change-currency' | 'change-language' | 'gas-token-settings' | {
|
|
250
|
+
type: 'select-wallet';
|
|
251
|
+
props: {
|
|
252
|
+
setCurrentContent: SetContentDispatcher;
|
|
253
|
+
onClose: () => void;
|
|
254
|
+
returnTo?: 'main' | 'profile';
|
|
255
|
+
onLogoutSuccess?: () => void;
|
|
256
|
+
};
|
|
257
|
+
} | {
|
|
258
|
+
type: 'swap-token';
|
|
259
|
+
props: {
|
|
260
|
+
setCurrentContent: SetContentDispatcher;
|
|
261
|
+
fromTokenAddress?: string;
|
|
262
|
+
toTokenAddress?: string;
|
|
263
|
+
};
|
|
264
|
+
} | {
|
|
265
|
+
type: 'account-customization';
|
|
266
|
+
props: {
|
|
267
|
+
setCurrentContent: SetContentDispatcher;
|
|
268
|
+
initialContentSource?: AccountModalContentTypes;
|
|
269
|
+
};
|
|
270
|
+
} | {
|
|
271
|
+
type: 'successful-operation';
|
|
272
|
+
props: {
|
|
273
|
+
setCurrentContent: SetContentDispatcher;
|
|
274
|
+
txId?: string;
|
|
275
|
+
title: string;
|
|
276
|
+
description?: string;
|
|
277
|
+
onDone: () => void;
|
|
278
|
+
showSocialButtons?: boolean;
|
|
279
|
+
};
|
|
280
|
+
} | {
|
|
281
|
+
type: 'failed-operation';
|
|
282
|
+
props: {
|
|
283
|
+
setCurrentContent: SetContentDispatcher;
|
|
284
|
+
txId?: string;
|
|
285
|
+
title: string;
|
|
286
|
+
description?: string;
|
|
287
|
+
onDone: () => void;
|
|
288
|
+
};
|
|
289
|
+
} | {
|
|
290
|
+
type: 'account-customization-summary';
|
|
291
|
+
props: {
|
|
292
|
+
setCurrentContent: SetContentDispatcher;
|
|
293
|
+
changes: {
|
|
294
|
+
avatarIpfsHash?: string | null;
|
|
295
|
+
displayName?: string;
|
|
296
|
+
description?: string;
|
|
297
|
+
twitter?: string;
|
|
298
|
+
website?: string;
|
|
299
|
+
email?: string;
|
|
300
|
+
};
|
|
301
|
+
onDoneRedirectContent: AccountModalContentTypes;
|
|
302
|
+
};
|
|
303
|
+
} | {
|
|
304
|
+
type: 'app-overview';
|
|
305
|
+
props: {
|
|
306
|
+
setCurrentContent: SetContentDispatcher;
|
|
307
|
+
name: string;
|
|
308
|
+
image: string;
|
|
309
|
+
url: string;
|
|
310
|
+
description: string;
|
|
311
|
+
category?: AllowedCategories;
|
|
312
|
+
selectedCategory?: CategoryFilter;
|
|
313
|
+
logoComponent?: JSX.Element;
|
|
314
|
+
};
|
|
315
|
+
} | {
|
|
316
|
+
type: 'ecosystem-with-category';
|
|
317
|
+
props: {
|
|
318
|
+
setCurrentContent: SetContentDispatcher;
|
|
319
|
+
selectedCategory: CategoryFilter;
|
|
320
|
+
};
|
|
321
|
+
} | {
|
|
322
|
+
type: 'send-token';
|
|
323
|
+
props: {
|
|
324
|
+
setCurrentContent: SetContentDispatcher;
|
|
325
|
+
preselectedToken?: any;
|
|
326
|
+
initialAmount?: string;
|
|
327
|
+
initialToAddressOrDomain?: string;
|
|
328
|
+
onBack?: () => void;
|
|
329
|
+
};
|
|
330
|
+
} | {
|
|
331
|
+
type: 'send-token-summary';
|
|
332
|
+
props: {
|
|
333
|
+
setCurrentContent: SetContentDispatcher;
|
|
334
|
+
toAddressOrDomain: string;
|
|
335
|
+
resolvedDomain?: string;
|
|
336
|
+
resolvedAddress?: string;
|
|
337
|
+
amount: string;
|
|
338
|
+
selectedToken: any;
|
|
339
|
+
formattedTotalAmount: string;
|
|
340
|
+
};
|
|
341
|
+
} | {
|
|
342
|
+
type: 'choose-name';
|
|
343
|
+
props: {
|
|
344
|
+
setCurrentContent: SetContentDispatcher;
|
|
345
|
+
onBack?: () => void;
|
|
346
|
+
initialContentSource?: AccountModalContentTypes;
|
|
347
|
+
};
|
|
348
|
+
} | {
|
|
349
|
+
type: 'choose-name-search';
|
|
350
|
+
props: {
|
|
351
|
+
name: string;
|
|
352
|
+
setCurrentContent: SetContentDispatcher;
|
|
353
|
+
initialContentSource?: AccountModalContentTypes;
|
|
354
|
+
};
|
|
355
|
+
} | {
|
|
356
|
+
type: 'choose-name-summary';
|
|
357
|
+
props: {
|
|
358
|
+
setCurrentContent: SetContentDispatcher;
|
|
359
|
+
fullDomain: string;
|
|
360
|
+
domainType?: string;
|
|
361
|
+
isOwnDomain: boolean;
|
|
362
|
+
isUnsetting?: boolean;
|
|
363
|
+
initialContentSource?: AccountModalContentTypes;
|
|
364
|
+
};
|
|
365
|
+
} | {
|
|
366
|
+
type: 'disconnect-confirm';
|
|
367
|
+
props: {
|
|
368
|
+
onDisconnect: () => void;
|
|
369
|
+
onBack: () => void;
|
|
370
|
+
onClose?: () => void;
|
|
371
|
+
text?: string;
|
|
372
|
+
showCloseButton?: boolean;
|
|
373
|
+
};
|
|
374
|
+
} | {
|
|
375
|
+
type: 'remove-wallet-confirm';
|
|
376
|
+
props: {
|
|
377
|
+
walletAddress: string;
|
|
378
|
+
walletDomain: string | null;
|
|
379
|
+
onConfirm: () => void;
|
|
380
|
+
onBack: () => void;
|
|
381
|
+
onClose?: () => void;
|
|
382
|
+
};
|
|
383
|
+
} | {
|
|
384
|
+
type: 'upgrade-smart-account';
|
|
385
|
+
props: {
|
|
386
|
+
setCurrentContent: SetContentDispatcher;
|
|
387
|
+
handleClose?: () => void;
|
|
388
|
+
initialContent?: AccountModalContentTypes;
|
|
389
|
+
};
|
|
390
|
+
} | {
|
|
391
|
+
type: 'faq';
|
|
392
|
+
props: {
|
|
393
|
+
onGoBack: () => void;
|
|
394
|
+
showLanguageSelector?: boolean;
|
|
395
|
+
};
|
|
396
|
+
} | {
|
|
397
|
+
type: 'terms-and-privacy';
|
|
398
|
+
props: {
|
|
399
|
+
onGoBack: () => void;
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
//#endregion
|
|
403
|
+
//#region src/types/ensTextRecords.d.ts
|
|
404
|
+
declare const ENS_TEXT_RECORDS: readonly ["display", "avatar", "description", "keywords", "email", "url", "header", "notice", "location", "phone", "com.x"];
|
|
405
|
+
type TextRecords = { [K in (typeof ENS_TEXT_RECORDS)[number]]?: string };
|
|
406
|
+
//#endregion
|
|
407
|
+
//#region src/types/gasToken.d.ts
|
|
408
|
+
type GasTokenType = 'B3TR' | 'VET' | 'VTHO';
|
|
409
|
+
type TransactionSpeed = 'regular' | 'medium' | 'high';
|
|
410
|
+
interface GasTokenInfo {
|
|
411
|
+
type: GasTokenType;
|
|
412
|
+
name: string;
|
|
413
|
+
symbol: string;
|
|
414
|
+
address?: string;
|
|
415
|
+
description: string;
|
|
416
|
+
}
|
|
417
|
+
interface GasTokenPreferences {
|
|
418
|
+
tokenPriority: GasTokenType[];
|
|
419
|
+
availableGasTokens: GasTokenType[];
|
|
420
|
+
excludedTokens: GasTokenType[];
|
|
421
|
+
alwaysConfirm: boolean;
|
|
422
|
+
gasTokenToUse: GasTokenType;
|
|
423
|
+
}
|
|
424
|
+
interface GasTokenEstimate {
|
|
425
|
+
token: GasTokenType;
|
|
426
|
+
cost: string;
|
|
427
|
+
available: boolean;
|
|
428
|
+
balance?: string;
|
|
429
|
+
}
|
|
430
|
+
interface GasTokenSelection {
|
|
431
|
+
selectedToken: GasTokenType;
|
|
432
|
+
cost: string;
|
|
433
|
+
hasServiceFee: boolean;
|
|
434
|
+
}
|
|
435
|
+
//#endregion
|
|
436
|
+
//#region src/types/gasEstimation.d.ts
|
|
437
|
+
interface VthoPerGasAtSpeed {
|
|
438
|
+
regular: number;
|
|
439
|
+
medium: number;
|
|
440
|
+
high: number;
|
|
441
|
+
legacy: number;
|
|
442
|
+
}
|
|
443
|
+
interface EstimatedGas {
|
|
444
|
+
vtho: number;
|
|
445
|
+
vet: number;
|
|
446
|
+
b3tr: number;
|
|
447
|
+
smartAccount: number;
|
|
448
|
+
}
|
|
449
|
+
interface Rate {
|
|
450
|
+
vtho: number;
|
|
451
|
+
vet: number;
|
|
452
|
+
b3tr: number;
|
|
453
|
+
}
|
|
454
|
+
interface CostLevel {
|
|
455
|
+
vtho: number;
|
|
456
|
+
vet: number;
|
|
457
|
+
b3tr: number;
|
|
458
|
+
vetWithSmartAccount: number;
|
|
459
|
+
b3trWithSmartAccount: number;
|
|
460
|
+
}
|
|
461
|
+
interface TransactionCost {
|
|
462
|
+
regular: CostLevel;
|
|
463
|
+
medium: CostLevel;
|
|
464
|
+
high: CostLevel;
|
|
465
|
+
legacy: CostLevel;
|
|
466
|
+
}
|
|
467
|
+
interface EstimationResponse {
|
|
468
|
+
vthoPerGasAtSpeed?: number;
|
|
469
|
+
estimatedGas?: number;
|
|
470
|
+
rate?: number;
|
|
471
|
+
transactionCost?: number;
|
|
472
|
+
serviceFee?: number;
|
|
473
|
+
totalGasUsed?: number;
|
|
474
|
+
}
|
|
475
|
+
interface DepositAccount {
|
|
476
|
+
depositAccount: string;
|
|
477
|
+
}
|
|
478
|
+
declare function calculateTotalCost(baseCost: number, serviceFeeRate: number): number;
|
|
479
|
+
declare function formatGasCost(amount: number, decimals?: number): string;
|
|
480
|
+
//#endregion
|
|
481
|
+
//#region src/types/index.d.ts
|
|
482
|
+
declare enum LegalDocumentType {
|
|
483
|
+
TERMS = "terms",
|
|
484
|
+
PRIVACY = "privacy",
|
|
485
|
+
COOKIES = "cookies",
|
|
486
|
+
}
|
|
487
|
+
declare enum LegalDocumentSource {
|
|
488
|
+
VECHAIN_KIT = "vechain-kit",
|
|
489
|
+
APPLICATION = "application",
|
|
490
|
+
}
|
|
491
|
+
type EnrichedLegalDocument = LegalDocument & {
|
|
492
|
+
id: string;
|
|
493
|
+
documentType: LegalDocumentType;
|
|
494
|
+
documentSource: LegalDocumentSource;
|
|
495
|
+
};
|
|
496
|
+
type LegalDocumentAgreement = EnrichedLegalDocument & {
|
|
497
|
+
walletAddress: string;
|
|
498
|
+
timestamp: number;
|
|
499
|
+
};
|
|
500
|
+
//#endregion
|
|
501
|
+
//#region src/config/network.d.ts
|
|
502
|
+
/**
|
|
503
|
+
* The type of network that we are connected to (indentified by the genesis block)
|
|
504
|
+
* */
|
|
505
|
+
type NETWORK_TYPE = 'main' | 'test' | 'solo';
|
|
506
|
+
/**
|
|
507
|
+
* A model for the VechainThor network that we are connected to
|
|
508
|
+
* @field `id` - Unique ID for this network
|
|
509
|
+
* @field `defaultNet` - If the network is a default network
|
|
510
|
+
* @field `name` - A name for this network
|
|
511
|
+
* @field `type` - What type of network is it? `main, test, solo or custom`
|
|
512
|
+
* @field `urls` - A list of URLs for this network
|
|
513
|
+
* @field `currentUrl` - The current URL that we are connected to
|
|
514
|
+
* @field `explorerUrl` - The explorer URL for this network
|
|
515
|
+
* @field `genesis` - The genesis block for the network
|
|
516
|
+
* @field `blockTime` - The time it takes to mine a block in milliseconds
|
|
517
|
+
*/
|
|
518
|
+
type Network = {
|
|
519
|
+
id: string;
|
|
520
|
+
defaultNet: boolean;
|
|
521
|
+
name: string;
|
|
522
|
+
type: NETWORK_TYPE;
|
|
523
|
+
urls: string[];
|
|
524
|
+
explorerUrl?: string;
|
|
525
|
+
genesis: typeof genesises.main;
|
|
526
|
+
blockTime: number;
|
|
527
|
+
};
|
|
528
|
+
declare const genesises: {
|
|
529
|
+
readonly main: CompressedBlockDetail;
|
|
530
|
+
readonly test: CompressedBlockDetail;
|
|
531
|
+
readonly solo: CompressedBlockDetail;
|
|
532
|
+
which(gid: string): "test" | "main" | "solo" | undefined;
|
|
533
|
+
};
|
|
534
|
+
//#endregion
|
|
535
|
+
export { UpgradeSmartAccountModalContentsTypes as A, LegalDocument as B, TextRecords as C, ConnectModalContentsTypes as D, CategoryFilter as E, CrossAppConnectionCache as F, SmartAccount as G, NFTMediaType as H, ENSRecords as I, TransactionStatusErrorType as J, TokenBalance as K, EnhancedClause as L, CURRENCY as M, CURRENCY_SYMBOLS as N, SetContentDispatcher as O, ConnectionSource as P, ExecuteBatchWithAuthorizationSignData as R, ENS_TEXT_RECORDS as S, AllowedCategories as T, PrivyAppInfo as U, LegalDocumentOptions as V, PrivyLoginMethod as W, Wallet as X, VePassportUserStatus as Y, GasTokenInfo as _, LegalDocumentSource as a, GasTokenType as b, DepositAccount as c, Rate as d, TransactionCost as f, GasTokenEstimate as g, formatGasCost as h, LegalDocumentAgreement as i, UpgradeSmartAccountModalStyle as j, SwitchFeedback as k, EstimatedGas as l, calculateTotalCost as m, Network as n, LegalDocumentType as o, VthoPerGasAtSpeed as p, TransactionStatus as q, EnrichedLegalDocument as r, CostLevel as s, NETWORK_TYPE as t, EstimationResponse as u, GasTokenPreferences as v, AccountModalContentTypes as w, TransactionSpeed as x, GasTokenSelection as y, ExecuteWithAuthorizationSignData as z };
|
|
536
|
+
//# sourceMappingURL=network-yA5VWcPq.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-yA5VWcPq.d.ts","names":[],"sources":["../src/types/types.ts","../src/types/modal.ts","../src/types/ensTextRecords.ts","../src/types/gasToken.ts","../src/types/gasEstimation.ts","../src/types/index.ts","../src/config/network.ts"],"sourcesContent":[],"mappings":";;;;;;KAGY,YAAA;;;;AAAZ,CAAA;AAMY,KAAA,UAAA,GAAU;EAYV,OAAA,CAAA,EAAM,MAAA;EAQN,WAAA,CAAA,EAAA,MAAY;EAMZ,KAAA,CAAA,EAAA,MAAA;EASA,GAAA,CAAA,EAAA,MAAA;EA2BA,MAAA,CAAA,EAAA,MAAA;EAoCA,MAAA,CAAA,EAAA,MAAA;EAQA,QAAA,CAAA,EAAA,MAAA;EAcA,KAAA,CAAA,EAAA,MAAA;EAEA,CAAA,GAAA,EAAA,MAAA,CAAA,EAAY,MAAA,GAAA,SAAA;AAiBxB,CAAA;AAEiB,KAjIL,MAAA,GAiIK;EAUL,OAAA,EAAA,MAAY;EAOZ,MAAA,CAAA,EAAA,MAAA;EAMA,KAAA,CAAA,EAAA,MAAQ;EAEP,iBAAA,CAAA,EAIZ,OAAA;EAMW,QAAA,CAAA,EA/JG,UA+JU;AAUzB,CAAA,GAAY,IAAA;AACQ,KAvKR,YAAA,GAAe,MAuKP,GAAA;EACK,UAAA,EAAA,OAAA;EACN,QAAA,EAAA,OAAA;EAAa,OAAA,EAAA,MAAA,GAAA,IAAA;;KAnKpB,gBAAA;;ECpBA,WAAA,EAAA,MAAA;AAWZ,CAAA;AAKA;AA+BA;AAQA;AAWA;AASY,KD9CA,gCAAA,GC8C4C;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,YAAA,EK7HM,iBL6HU;EAEX,cAAA,EK9HG,mBL8HoB;AAUxC,CAAA;AAOY,KK3IA,sBAAA,GAAyB,qBL2IL,GAAA;EAMpB,aAAQ,EAAA,MAAA;EAEP,SAAA,EAAA,MAAA;AAUb,CAAA;;;;;;KMpLY,YAAA;;ANFZ;AAMA;AAYA;AAQA;AAMA;AASA;AA2BA;AAoCA;AAQA;AAcA;AAEA;AAiBY,KMjIA,OAAA,GNiIA;EAEK,EAAA,EAAA,MAAA;EAUL,UAAA,EAAA,OAAY;EAOZ,IAAA,EAAA,MAAA;EAMA,IAAA,EMtJF,YNsJU;EAEP,IAAA,EAAA,MAAA,EAAA;EAUD,WAAA,CAAA,EAAA,MAAa;EAUb,OAAA,EAAA,OMzKQ,SAAA,CAAU,INyKE;EACZ,SAAA,EAAA,MAAA;CACK;ACtLb,cK8CC,SL9CgB,EAAA;EAWjB,SAAA,IAAA,EKoCI,qBLpCU;EAKd,SAAA,IAAA,EKuDI,qBLvDqB;EA+BzB,SAAA,IAAA,EKgDI,qBLhDyB;EAQ7B,KAAA,CAAA,GAAA,EAAA,MAAA,CAAA,EAAA,MAAA,GAAA,MAAA,GAAA,MAAqC,GAAA,SAAA;AAWjD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../VechainKitThemeProvider-BM5258oA.cjs`);require(`../utils-jW13BhAb.cjs`),require(`../assets-YPd7adzM.cjs`),require(`../ssrUtils-C_5ZY26i.cjs`);const t=require(`../PrivyWalletProvider-BkqWSj75.cjs`),n=require(`../providers-DImdr6Kk.cjs`);require(`../PrivyCrossAppProvider-DSuzrbqs.cjs`),exports.ColorModeSync=e.t,exports.LegalDocumentsContext=e.i,exports.LegalDocumentsProvider=t.C,exports.ModalContext=t.b,exports.ModalProvider=n.r,exports.PrivyWalletProvider=t.t,exports.ThorProvider=t.$,exports.VeChainKitContext=e.l,exports.VeChainKitCoreProvider=n.t,exports.VeChainKitProvider=n.n,exports.VechainKitThemeProvider=e.n,exports.headlessModalContext=t.x,exports.useFallbackThor=t.et,exports.useLegalDocuments=e.a,exports.useModal=t.S,exports.useOptionalPrivyWalletProvider=t.n,exports.usePrivyWalletProvider=t.r,exports.useVeChainKitConfig=e.u,exports.useVechainKitThemeConfig=e.r;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { B as LegalDocument, V as LegalDocumentOptions } from "../network-Cs9YqDJ1.cjs";
|
|
2
|
+
import { C as VeChainKitProvider, D as VechainKitProviderProps, E as VeChainKitContext, O as useVeChainKitConfig, S as VeChainKitCoreProviderProps, T as VeChainKitConfig, _ as PrivyWalletProvider, a as AccountModalOptions, b as usePrivyWalletProvider, c as headlessModalContext, d as LegalDocumentsContext, f as LegalDocumentsContextType, g as useVechainKitThemeConfig, h as VechainKitThemeProvider, i as ModalProvider, l as useModal, m as ColorModeSync, n as ThorProviderProps, o as ModalContext, p as useLegalDocuments, r as useFallbackThor, s as ModalContextType, t as ThorProvider, u as LegalDocumentsProvider, v as PrivyWalletProviderContextType, w as LoginMethodOrder, x as VeChainKitCoreProvider, y as useOptionalPrivyWalletProvider } from "../index-Bqw0Cz5n.cjs";
|
|
3
|
+
export { AccountModalOptions, ColorModeSync, LegalDocument, LegalDocumentOptions, LegalDocumentsContext, LegalDocumentsContextType, LegalDocumentsProvider, LoginMethodOrder, ModalContext, ModalContextType, ModalProvider, PrivyWalletProvider, PrivyWalletProviderContextType, ThorProvider, ThorProviderProps, VeChainKitConfig, VeChainKitContext, VeChainKitCoreProvider, VeChainKitCoreProviderProps, VeChainKitProvider, VechainKitProviderProps, VechainKitThemeProvider, headlessModalContext, useFallbackThor, useLegalDocuments, useModal, useOptionalPrivyWalletProvider, usePrivyWalletProvider, useVeChainKitConfig, useVechainKitThemeConfig };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { B as LegalDocument, V as LegalDocumentOptions } from "../network-yA5VWcPq.js";
|
|
2
|
+
import { C as VeChainKitProvider, D as VechainKitProviderProps, E as VeChainKitContext, O as useVeChainKitConfig, S as VeChainKitCoreProviderProps, T as VeChainKitConfig, _ as PrivyWalletProvider, a as AccountModalOptions, b as usePrivyWalletProvider, c as headlessModalContext, d as LegalDocumentsContext, f as LegalDocumentsContextType, g as useVechainKitThemeConfig, h as VechainKitThemeProvider, i as ModalProvider, l as useModal, m as ColorModeSync, n as ThorProviderProps, o as ModalContext, p as useLegalDocuments, r as useFallbackThor, s as ModalContextType, t as ThorProvider, u as LegalDocumentsProvider, v as PrivyWalletProviderContextType, w as LoginMethodOrder, x as VeChainKitCoreProvider, y as useOptionalPrivyWalletProvider } from "../index-BugHmddr.js";
|
|
3
|
+
export { AccountModalOptions, ColorModeSync, LegalDocument, LegalDocumentOptions, LegalDocumentsContext, LegalDocumentsContextType, LegalDocumentsProvider, LoginMethodOrder, ModalContext, ModalContextType, ModalProvider, PrivyWalletProvider, PrivyWalletProviderContextType, ThorProvider, ThorProviderProps, VeChainKitConfig, VeChainKitContext, VeChainKitCoreProvider, VeChainKitCoreProviderProps, VeChainKitProvider, VechainKitProviderProps, VechainKitThemeProvider, headlessModalContext, useFallbackThor, useLegalDocuments, useModal, useOptionalPrivyWalletProvider, usePrivyWalletProvider, useVeChainKitConfig, useVechainKitThemeConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,i as t,l as n,n as r,r as i,t as a,u as o}from"../VechainKitThemeProvider-Di9a04Es.js";import"../utils-B2Eg9TD3.js";import"../assets-CXk1qRDd.js";import"../ssrUtils-DSwxhTtm.js";import{$ as s,C as c,S as l,b as u,et as d,n as f,r as p,t as m,x as h}from"../PrivyWalletProvider-DToo_u0W.js";import{n as g,r as _,t as v}from"../providers-kA0lotaM.js";import"../PrivyCrossAppProvider-B6oIXeWL.js";export{a as ColorModeSync,t as LegalDocumentsContext,c as LegalDocumentsProvider,u as ModalContext,_ as ModalProvider,m as PrivyWalletProvider,s as ThorProvider,n as VeChainKitContext,v as VeChainKitCoreProvider,g as VeChainKitProvider,r as VechainKitThemeProvider,h as headlessModalContext,d as useFallbackThor,e as useLegalDocuments,l as useModal,f as useOptionalPrivyWalletProvider,p as usePrivyWalletProvider,o as useVeChainKitConfig,i as useVechainKitThemeConfig};
|