@vechain/vechain-kit 2.0.0-rc.9 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -5
- package/dist/assets/index.cjs +1 -104
- package/dist/assets/index.d.cts +2 -1158
- package/dist/assets/index.d.mts +2 -0
- package/dist/assets/index.mjs +1 -0
- package/dist/assets-DXVXPy3w.cjs +47 -0
- package/dist/assets-DXVXPy3w.cjs.map +1 -0
- package/dist/assets-aAdDxPJu.mjs +38 -0
- package/dist/assets-aAdDxPJu.mjs.map +1 -0
- package/dist/index-CWViOs1U.d.mts +136 -0
- package/dist/index-CWViOs1U.d.mts.map +1 -0
- package/dist/index-Ch2ZKl9r.d.mts +3965 -0
- package/dist/index-Ch2ZKl9r.d.mts.map +1 -0
- package/dist/index-D0cyivl4.d.cts +136 -0
- package/dist/index-D0cyivl4.d.cts.map +1 -0
- package/dist/index-ur27qfX4.d.cts +3965 -0
- package/dist/index-ur27qfX4.d.cts.map +1 -0
- package/dist/index.cjs +180 -20660
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2224
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +195 -0
- package/dist/index.mjs.map +1 -0
- package/dist/utils/index.cjs +1 -265
- package/dist/utils/index.d.cts +3 -261
- package/dist/utils/index.d.mts +3 -0
- package/dist/utils/index.mjs +1 -0
- package/dist/utils-Bl-JeVTg.cjs +2 -0
- package/dist/utils-Bl-JeVTg.cjs.map +1 -0
- package/dist/utils-DAs6kMGs.mjs +2 -0
- package/dist/utils-DAs6kMGs.mjs.map +1 -0
- package/package.json +155 -104
- package/dist/assets/index.cjs.map +0 -1
- package/dist/assets/index.d.ts +0 -1158
- package/dist/assets/index.js +0 -3
- package/dist/assets/index.js.map +0 -1
- package/dist/chunk-BCEQ6QWT.js +0 -863
- package/dist/chunk-BCEQ6QWT.js.map +0 -1
- package/dist/chunk-EESC6JDT.cjs +0 -1897
- package/dist/chunk-EESC6JDT.cjs.map +0 -1
- package/dist/chunk-M6WTSZ5C.cjs +0 -939
- package/dist/chunk-M6WTSZ5C.cjs.map +0 -1
- package/dist/chunk-Z4FE6MMP.js +0 -1872
- package/dist/chunk-Z4FE6MMP.js.map +0 -1
- package/dist/index.d.ts +0 -2224
- package/dist/index.js +0 -20322
- package/dist/index.js.map +0 -1
- package/dist/metafile-cjs.json +0 -1
- package/dist/metafile-esm.json +0 -1
- package/dist/thorUtils-IptLtkeL.d.cts +0 -230
- package/dist/thorUtils-IptLtkeL.d.ts +0 -230
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.d.ts +0 -261
- package/dist/utils/index.js +0 -4
- package/dist/utils/index.js.map +0 -1
package/dist/utils/index.cjs
CHANGED
|
@@ -1,265 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var chunkM6WTSZ5C_cjs = require('../chunk-M6WTSZ5C.cjs');
|
|
4
|
-
require('../chunk-EESC6JDT.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "DEFAULT_PRIVY_ECOSYSTEM_APPS", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkM6WTSZ5C_cjs.DEFAULT_PRIVY_ECOSYSTEM_APPS; }
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "ENV", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return chunkM6WTSZ5C_cjs.ENV; }
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "EconomicNodeStrengthLevelToName", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return chunkM6WTSZ5C_cjs.EconomicNodeStrengthLevelToName; }
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "MinXNodeLevel", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return chunkM6WTSZ5C_cjs.MinXNodeLevel; }
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "NodeStrengthLevelToImage", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () { return chunkM6WTSZ5C_cjs.NodeStrengthLevelToImage; }
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports, "TIME", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () { return chunkM6WTSZ5C_cjs.TIME; }
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(exports, "TOKEN_LOGOS", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () { return chunkM6WTSZ5C_cjs.TOKEN_LOGOS; }
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "TOKEN_LOGO_COMPONENTS", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () { return chunkM6WTSZ5C_cjs.TOKEN_LOGO_COMPONENTS; }
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(exports, "TogglePassportCheck", {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function () { return chunkM6WTSZ5C_cjs.TogglePassportCheck; }
|
|
43
|
-
});
|
|
44
|
-
Object.defineProperty(exports, "VECHAIN_KIT_COOKIES_CONFIG", {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
get: function () { return chunkM6WTSZ5C_cjs.VECHAIN_KIT_COOKIES_CONFIG; }
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "VECHAIN_KIT_MIXPANEL_PROJECT_NAME", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () { return chunkM6WTSZ5C_cjs.VECHAIN_KIT_MIXPANEL_PROJECT_NAME; }
|
|
51
|
-
});
|
|
52
|
-
Object.defineProperty(exports, "VECHAIN_KIT_MIXPANEL_PROJECT_TOKEN", {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
get: function () { return chunkM6WTSZ5C_cjs.VECHAIN_KIT_MIXPANEL_PROJECT_TOKEN; }
|
|
55
|
-
});
|
|
56
|
-
Object.defineProperty(exports, "VECHAIN_KIT_MIXPANEL_TOKENS", {
|
|
57
|
-
enumerable: true,
|
|
58
|
-
get: function () { return chunkM6WTSZ5C_cjs.VECHAIN_KIT_MIXPANEL_TOKENS; }
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "VECHAIN_KIT_STORAGE_KEYS", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () { return chunkM6WTSZ5C_cjs.VECHAIN_KIT_STORAGE_KEYS; }
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(exports, "VECHAIN_KIT_TERMS_CONFIG", {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function () { return chunkM6WTSZ5C_cjs.VECHAIN_KIT_TERMS_CONFIG; }
|
|
67
|
-
});
|
|
68
|
-
Object.defineProperty(exports, "VECHAIN_PRIVY_APP_ID", {
|
|
69
|
-
enumerable: true,
|
|
70
|
-
get: function () { return chunkM6WTSZ5C_cjs.VECHAIN_PRIVY_APP_ID; }
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "XNodeStrengthLevelToName", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function () { return chunkM6WTSZ5C_cjs.XNodeStrengthLevelToName; }
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(exports, "addPrefix", {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () { return chunkM6WTSZ5C_cjs.addPrefix; }
|
|
79
|
-
});
|
|
80
|
-
Object.defineProperty(exports, "allNodeStrengthLevelToName", {
|
|
81
|
-
enumerable: true,
|
|
82
|
-
get: function () { return chunkM6WTSZ5C_cjs.allNodeStrengthLevelToName; }
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "buildCallClauses", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function () { return chunkM6WTSZ5C_cjs.buildCallClauses; }
|
|
87
|
-
});
|
|
88
|
-
Object.defineProperty(exports, "buildQueryString", {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
get: function () { return chunkM6WTSZ5C_cjs.buildQueryString; }
|
|
91
|
-
});
|
|
92
|
-
Object.defineProperty(exports, "compare", {
|
|
93
|
-
enumerable: true,
|
|
94
|
-
get: function () { return chunkM6WTSZ5C_cjs.compare; }
|
|
95
|
-
});
|
|
96
|
-
Object.defineProperty(exports, "compareAddresses", {
|
|
97
|
-
enumerable: true,
|
|
98
|
-
get: function () { return chunkM6WTSZ5C_cjs.compareAddresses; }
|
|
99
|
-
});
|
|
100
|
-
Object.defineProperty(exports, "compareListOfAddresses", {
|
|
101
|
-
enumerable: true,
|
|
102
|
-
get: function () { return chunkM6WTSZ5C_cjs.compareListOfAddresses; }
|
|
103
|
-
});
|
|
104
|
-
Object.defineProperty(exports, "convertUriToUrl", {
|
|
105
|
-
enumerable: true,
|
|
106
|
-
get: function () { return chunkM6WTSZ5C_cjs.convertUriToUrl; }
|
|
107
|
-
});
|
|
108
|
-
Object.defineProperty(exports, "copyToClipboard", {
|
|
109
|
-
enumerable: true,
|
|
110
|
-
get: function () { return chunkM6WTSZ5C_cjs.copyToClipboard; }
|
|
111
|
-
});
|
|
112
|
-
Object.defineProperty(exports, "executeCallClause", {
|
|
113
|
-
enumerable: true,
|
|
114
|
-
get: function () { return chunkM6WTSZ5C_cjs.executeCallClause; }
|
|
115
|
-
});
|
|
116
|
-
Object.defineProperty(exports, "executeMultipleClausesCall", {
|
|
117
|
-
enumerable: true,
|
|
118
|
-
get: function () { return chunkM6WTSZ5C_cjs.executeMultipleClausesCall; }
|
|
119
|
-
});
|
|
120
|
-
Object.defineProperty(exports, "generateRandom", {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function () { return chunkM6WTSZ5C_cjs.generateRandom; }
|
|
123
|
-
});
|
|
124
|
-
Object.defineProperty(exports, "getDocumentTitle", {
|
|
125
|
-
enumerable: true,
|
|
126
|
-
get: function () { return chunkM6WTSZ5C_cjs.getDocumentTitle; }
|
|
127
|
-
});
|
|
128
|
-
Object.defineProperty(exports, "getENV", {
|
|
129
|
-
enumerable: true,
|
|
130
|
-
get: function () { return chunkM6WTSZ5C_cjs.getENV; }
|
|
131
|
-
});
|
|
132
|
-
Object.defineProperty(exports, "getLocalStorageItem", {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function () { return chunkM6WTSZ5C_cjs.getLocalStorageItem; }
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(exports, "getPicassoImage", {
|
|
137
|
-
enumerable: true,
|
|
138
|
-
get: function () { return chunkM6WTSZ5C_cjs.getPicassoImage; }
|
|
139
|
-
});
|
|
140
|
-
Object.defineProperty(exports, "getVECHAIN_KIT_MIXPANEL_PROJECT_TOKEN", {
|
|
141
|
-
enumerable: true,
|
|
142
|
-
get: function () { return chunkM6WTSZ5C_cjs.getVECHAIN_KIT_MIXPANEL_PROJECT_TOKEN; }
|
|
143
|
-
});
|
|
144
|
-
Object.defineProperty(exports, "getWindowOrigin", {
|
|
145
|
-
enumerable: true,
|
|
146
|
-
get: function () { return chunkM6WTSZ5C_cjs.getWindowOrigin; }
|
|
147
|
-
});
|
|
148
|
-
Object.defineProperty(exports, "gmNfts", {
|
|
149
|
-
enumerable: true,
|
|
150
|
-
get: function () { return chunkM6WTSZ5C_cjs.gmNfts; }
|
|
151
|
-
});
|
|
152
|
-
Object.defineProperty(exports, "hasNavigator", {
|
|
153
|
-
enumerable: true,
|
|
154
|
-
get: function () { return chunkM6WTSZ5C_cjs.hasNavigator; }
|
|
155
|
-
});
|
|
156
|
-
Object.defineProperty(exports, "humanAddress", {
|
|
157
|
-
enumerable: true,
|
|
158
|
-
get: function () { return chunkM6WTSZ5C_cjs.humanAddress; }
|
|
159
|
-
});
|
|
160
|
-
Object.defineProperty(exports, "humanDomain", {
|
|
161
|
-
enumerable: true,
|
|
162
|
-
get: function () { return chunkM6WTSZ5C_cjs.humanDomain; }
|
|
163
|
-
});
|
|
164
|
-
Object.defineProperty(exports, "humanNumber", {
|
|
165
|
-
enumerable: true,
|
|
166
|
-
get: function () { return chunkM6WTSZ5C_cjs.humanNumber; }
|
|
167
|
-
});
|
|
168
|
-
Object.defineProperty(exports, "isBrowser", {
|
|
169
|
-
enumerable: true,
|
|
170
|
-
get: function () { return chunkM6WTSZ5C_cjs.isBrowser; }
|
|
171
|
-
});
|
|
172
|
-
Object.defineProperty(exports, "isInvalid", {
|
|
173
|
-
enumerable: true,
|
|
174
|
-
get: function () { return chunkM6WTSZ5C_cjs.isInvalid; }
|
|
175
|
-
});
|
|
176
|
-
Object.defineProperty(exports, "isOnline", {
|
|
177
|
-
enumerable: true,
|
|
178
|
-
get: function () { return chunkM6WTSZ5C_cjs.isOnline; }
|
|
179
|
-
});
|
|
180
|
-
Object.defineProperty(exports, "isRejectionError", {
|
|
181
|
-
enumerable: true,
|
|
182
|
-
get: function () { return chunkM6WTSZ5C_cjs.isRejectionError; }
|
|
183
|
-
});
|
|
184
|
-
Object.defineProperty(exports, "isValid", {
|
|
185
|
-
enumerable: true,
|
|
186
|
-
get: function () { return chunkM6WTSZ5C_cjs.isValid; }
|
|
187
|
-
});
|
|
188
|
-
Object.defineProperty(exports, "isValidAddress", {
|
|
189
|
-
enumerable: true,
|
|
190
|
-
get: function () { return chunkM6WTSZ5C_cjs.isValidAddress; }
|
|
191
|
-
});
|
|
192
|
-
Object.defineProperty(exports, "isValidUrl", {
|
|
193
|
-
enumerable: true,
|
|
194
|
-
get: function () { return chunkM6WTSZ5C_cjs.isValidUrl; }
|
|
195
|
-
});
|
|
196
|
-
Object.defineProperty(exports, "isZero", {
|
|
197
|
-
enumerable: true,
|
|
198
|
-
get: function () { return chunkM6WTSZ5C_cjs.isZero; }
|
|
199
|
-
});
|
|
200
|
-
Object.defineProperty(exports, "leftPadWithZeros", {
|
|
201
|
-
enumerable: true,
|
|
202
|
-
get: function () { return chunkM6WTSZ5C_cjs.leftPadWithZeros; }
|
|
203
|
-
});
|
|
204
|
-
Object.defineProperty(exports, "normalize", {
|
|
205
|
-
enumerable: true,
|
|
206
|
-
get: function () { return chunkM6WTSZ5C_cjs.normalize; }
|
|
207
|
-
});
|
|
208
|
-
Object.defineProperty(exports, "notFoundImage", {
|
|
209
|
-
enumerable: true,
|
|
210
|
-
get: function () { return chunkM6WTSZ5C_cjs.notFoundImage; }
|
|
211
|
-
});
|
|
212
|
-
Object.defineProperty(exports, "randomTransactionUser", {
|
|
213
|
-
enumerable: true,
|
|
214
|
-
get: function () { return chunkM6WTSZ5C_cjs.randomTransactionUser; }
|
|
215
|
-
});
|
|
216
|
-
Object.defineProperty(exports, "regexPattern", {
|
|
217
|
-
enumerable: true,
|
|
218
|
-
get: function () { return chunkM6WTSZ5C_cjs.regexPattern; }
|
|
219
|
-
});
|
|
220
|
-
Object.defineProperty(exports, "removeLocalStorageItem", {
|
|
221
|
-
enumerable: true,
|
|
222
|
-
get: function () { return chunkM6WTSZ5C_cjs.removeLocalStorageItem; }
|
|
223
|
-
});
|
|
224
|
-
Object.defineProperty(exports, "removePrefix", {
|
|
225
|
-
enumerable: true,
|
|
226
|
-
get: function () { return chunkM6WTSZ5C_cjs.removePrefix; }
|
|
227
|
-
});
|
|
228
|
-
Object.defineProperty(exports, "resolveMediaTypeFromMimeType", {
|
|
229
|
-
enumerable: true,
|
|
230
|
-
get: function () { return chunkM6WTSZ5C_cjs.resolveMediaTypeFromMimeType; }
|
|
231
|
-
});
|
|
232
|
-
Object.defineProperty(exports, "safeQuerySelector", {
|
|
233
|
-
enumerable: true,
|
|
234
|
-
get: function () { return chunkM6WTSZ5C_cjs.safeQuerySelector; }
|
|
235
|
-
});
|
|
236
|
-
Object.defineProperty(exports, "safeWindowOpen", {
|
|
237
|
-
enumerable: true,
|
|
238
|
-
get: function () { return chunkM6WTSZ5C_cjs.safeWindowOpen; }
|
|
239
|
-
});
|
|
240
|
-
Object.defineProperty(exports, "setLocalStorageItem", {
|
|
241
|
-
enumerable: true,
|
|
242
|
-
get: function () { return chunkM6WTSZ5C_cjs.setLocalStorageItem; }
|
|
243
|
-
});
|
|
244
|
-
Object.defineProperty(exports, "toIPFSURL", {
|
|
245
|
-
enumerable: true,
|
|
246
|
-
get: function () { return chunkM6WTSZ5C_cjs.toIPFSURL; }
|
|
247
|
-
});
|
|
248
|
-
Object.defineProperty(exports, "uploadBlobToIPFS", {
|
|
249
|
-
enumerable: true,
|
|
250
|
-
get: function () { return chunkM6WTSZ5C_cjs.uploadBlobToIPFS; }
|
|
251
|
-
});
|
|
252
|
-
Object.defineProperty(exports, "validate", {
|
|
253
|
-
enumerable: true,
|
|
254
|
-
get: function () { return chunkM6WTSZ5C_cjs.validate; }
|
|
255
|
-
});
|
|
256
|
-
Object.defineProperty(exports, "validateIpfsUri", {
|
|
257
|
-
enumerable: true,
|
|
258
|
-
get: function () { return chunkM6WTSZ5C_cjs.validateIpfsUri; }
|
|
259
|
-
});
|
|
260
|
-
Object.defineProperty(exports, "xNodeToGMstartingLevel", {
|
|
261
|
-
enumerable: true,
|
|
262
|
-
get: function () { return chunkM6WTSZ5C_cjs.xNodeToGMstartingLevel; }
|
|
263
|
-
});
|
|
264
|
-
//# sourceMappingURL=index.cjs.map
|
|
265
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
require(`../assets-DXVXPy3w.cjs`);const e=require(`../utils-Bl-JeVTg.cjs`);exports.DEFAULT_GAS_TOKEN_PREFERENCES=e.q,exports.DEFAULT_PRIVY_ECOSYSTEM_APPS=e.J,exports.ENV=e.Y,exports.EconomicNodeStrengthLevelToName=e.s,exports.MinXNodeLevel=e.c,exports.NodeStrengthLevelToImage=e.l,exports.SUPPORTED_GAS_TOKENS=e.X,exports.TIME=e.o,exports.TOKEN_LOGOS=e.Z,exports.TOKEN_LOGO_COMPONENTS=e.Q,exports.TogglePassportCheck=e.$,exports.VECHAIN_KIT_COOKIES_CONFIG=e.et,exports.VECHAIN_KIT_STORAGE_KEYS=e.tt,exports.VECHAIN_KIT_TERMS_CONFIG=e.nt,exports.VECHAIN_PRIVY_APP_ID=e.rt,exports.XNodeStrengthLevelToName=e.u,exports.addPrefix=e.N,exports.allNodeStrengthLevelToName=e.d,exports.buildCallClauses=e.t,exports.buildQueryString=e.f,exports.compare=e.P,exports.compareAddresses=e.O,exports.compareListOfAddresses=e.k,exports.convertUriToUrl=e.h,exports.copyToClipboard=e.st,exports.executeCallClause=e.n,exports.executeMultipleClausesCall=e.r,exports.formatTokenBalance=e.V,exports.getDocumentTitle=e.ct,exports.getENV=e.it,exports.getGenericDelegatorUrl=e.at,exports.getLocalStorageItem=e.lt,exports.getPicassoImage=e.H,exports.getWindowOrigin=e.ut,exports.gmNfts=e.p,exports.hasNavigator=e.dt,exports.humanAddress=e.U,exports.humanDomain=e.W,exports.humanNumber=e.G,exports.isBrowser=e.ft,exports.isInvalid=e.F,exports.isOnline=e.pt,exports.isRejectionError=e.a,exports.isValid=e.I,exports.isValidAddress=e.A,exports.isValidUrl=e.i,exports.isZero=e.K,exports.leftPadWithZeros=e.j,exports.normalize=e.L,exports.notFoundImage=e.ot,exports.randomTransactionUser=e.B,exports.regexPattern=e.M,exports.removeLocalStorageItem=e.mt,exports.removePrefix=e.R,exports.resolveMediaTypeFromMimeType=e.g,exports.safeQuerySelector=e.ht,exports.safeWindowOpen=e.gt,exports.setLocalStorageItem=e._t,exports.toIPFSURL=e.T,exports.uploadBlobToIPFS=e.E,exports.validate=e.z,exports.validateIpfsUri=e.D,exports.xNodeToGMstartingLevel=e.m;
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,261 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export { M as MultipleClausesCallParameters, g as MultipleClausesCallReturnType, V as ViewFunctionResult, p as buildCallClauses, n as executeCallClause, o as executeMultipleClausesCall } from '../thorUtils-IptLtkeL.cjs';
|
|
5
|
-
import '@vechain/sdk-network';
|
|
6
|
-
import '@privy-io/react-auth';
|
|
7
|
-
import 'abitype';
|
|
8
|
-
import 'viem';
|
|
9
|
-
|
|
10
|
-
declare const TOKEN_LOGOS: Record<string, string>;
|
|
11
|
-
declare const TOKEN_LOGO_COMPONENTS: Record<string, JSX.Element>;
|
|
12
|
-
declare const VECHAIN_PRIVY_APP_ID = "cm4wxxujb022fyujl7g0thb21";
|
|
13
|
-
declare const notFoundImage = "https://upload.wikimedia.org/wikipedia/commons/a/a3/Image-not-found.png";
|
|
14
|
-
declare enum TogglePassportCheck {
|
|
15
|
-
WhitelistCheck = 1,
|
|
16
|
-
BlacklistCheck = 2,
|
|
17
|
-
SignalingCheck = 3,
|
|
18
|
-
ParticipationScoreCheck = 4,
|
|
19
|
-
GmOwnershipCheck = 5
|
|
20
|
-
}
|
|
21
|
-
declare const VECHAIN_KIT_STORAGE_KEYS: {
|
|
22
|
-
NETWORK: string;
|
|
23
|
-
};
|
|
24
|
-
declare const getENV: () => {
|
|
25
|
-
isDevelopment: boolean;
|
|
26
|
-
isProduction: boolean;
|
|
27
|
-
};
|
|
28
|
-
declare const ENV: {
|
|
29
|
-
readonly isDevelopment: boolean;
|
|
30
|
-
readonly isProduction: boolean;
|
|
31
|
-
};
|
|
32
|
-
declare const VECHAIN_KIT_MIXPANEL_TOKENS: {
|
|
33
|
-
development: string;
|
|
34
|
-
production: string;
|
|
35
|
-
};
|
|
36
|
-
declare const getVECHAIN_KIT_MIXPANEL_PROJECT_TOKEN: () => string;
|
|
37
|
-
declare const VECHAIN_KIT_MIXPANEL_PROJECT_TOKEN: string;
|
|
38
|
-
declare const VECHAIN_KIT_MIXPANEL_PROJECT_NAME = "vechain-kit";
|
|
39
|
-
type PrivyEcosystemApp = {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
website: string;
|
|
43
|
-
};
|
|
44
|
-
declare const DEFAULT_PRIVY_ECOSYSTEM_APPS: PrivyEcosystemApp[];
|
|
45
|
-
declare const VECHAIN_KIT_TERMS_CONFIG: {
|
|
46
|
-
url: string;
|
|
47
|
-
version: number;
|
|
48
|
-
required: boolean;
|
|
49
|
-
displayName: string;
|
|
50
|
-
};
|
|
51
|
-
declare const VECHAIN_KIT_COOKIES_CONFIG: {
|
|
52
|
-
url: string;
|
|
53
|
-
version: number;
|
|
54
|
-
required: boolean;
|
|
55
|
-
displayName: string;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
declare const humanAddress: (address: string, charAtStart?: number, charAtEnd?: number) => string;
|
|
59
|
-
declare const humanDomain: (domain: string, lengthBefore?: number, lengthAfter?: number) => string;
|
|
60
|
-
declare const humanNumber: (formattedValue: BigNumber.Value, originalValue?: BigNumber.Value, symbol?: string | null) => string;
|
|
61
|
-
declare const isZero: (value?: BigNumber.Value) => boolean;
|
|
62
|
-
declare const getPicassoImage: (address: string, base64?: boolean) => string;
|
|
63
|
-
|
|
64
|
-
declare const randomTransactionUser: {
|
|
65
|
-
privateKey: string;
|
|
66
|
-
account: Account;
|
|
67
|
-
address: string;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Checks if two addresses are equal. Returns true if both values are strings AND:
|
|
72
|
-
* - The two values are equal OR
|
|
73
|
-
* - The checksumed addresses are equal
|
|
74
|
-
*
|
|
75
|
-
* @param address1
|
|
76
|
-
* @param address2
|
|
77
|
-
*/
|
|
78
|
-
declare const compareAddresses: (address1?: string, address2?: string) => boolean;
|
|
79
|
-
declare const compareListOfAddresses: (add1: string[], add2: string[]) => boolean;
|
|
80
|
-
declare const regexPattern: () => RegExp;
|
|
81
|
-
declare const isValidAddress: typeof Address.isValid;
|
|
82
|
-
declare const leftPadWithZeros: (str: string, length: number) => string;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Validate IPFS URI strings. An example of a valid IPFS URI is:
|
|
86
|
-
* - ipfs://QmfSTia1TJUiKQ2fyW9NTPzEKNdjMGzbUgrC3QPSTpkum6/406.json
|
|
87
|
-
* - ipfs://QmVPqKfwRXjg5Fqwy6RNRbKR2ZP4pKKVLvmfjmhQfdM3MH/4
|
|
88
|
-
* - ipfs://QmVPqKfwRXjg5Fqwy6RNRbKR2ZP4pKKVLvmfjmhQfdM3MH
|
|
89
|
-
* @param uri
|
|
90
|
-
* @returns
|
|
91
|
-
*/
|
|
92
|
-
declare const validateIpfsUri: (uri: string) => boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Converts a CID to an IPFS native URL.
|
|
95
|
-
*
|
|
96
|
-
* @param cid - The CID to convert.
|
|
97
|
-
* @param fileName - The name of the file to append to the URL.
|
|
98
|
-
*
|
|
99
|
-
* @returns The IPFS URL in the format `ipfs://${cid}/${fileName}`.
|
|
100
|
-
*/
|
|
101
|
-
declare function toIPFSURL(cid: string, fileName?: string): string;
|
|
102
|
-
/**
|
|
103
|
-
* Uploads a blob to IPFS.
|
|
104
|
-
* @param blob The Blob object to upload.
|
|
105
|
-
* @param filename A name for the file in the FormData payload.
|
|
106
|
-
* @param networkType The network type to use for the IPFS pinning service.
|
|
107
|
-
* @returns The IPFS hash of the uploaded blob.
|
|
108
|
-
*/
|
|
109
|
-
declare function uploadBlobToIPFS(blob: Blob, filename: string, networkType: NETWORK_TYPE): Promise<string>;
|
|
110
|
-
|
|
111
|
-
declare const resolveMediaTypeFromMimeType: (mimeType: string) => NFTMediaType;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Convert a URI to a URL
|
|
115
|
-
* We support both IPFS and Arweave URIs. Both should be converted to their https gateway URLs.
|
|
116
|
-
* All other URIs should pass through unchanged.
|
|
117
|
-
*
|
|
118
|
-
* @param uri
|
|
119
|
-
*/
|
|
120
|
-
declare const convertUriToUrl: (uri: string, networkType: NETWORK_TYPE) => string | null;
|
|
121
|
-
|
|
122
|
-
declare const gmNfts: {
|
|
123
|
-
level: string;
|
|
124
|
-
name: string;
|
|
125
|
-
image: string;
|
|
126
|
-
multiplier: number;
|
|
127
|
-
b3trToUpgrade: number;
|
|
128
|
-
}[];
|
|
129
|
-
/**
|
|
130
|
-
* Maps the XNode level to the GM starting level.
|
|
131
|
-
*/
|
|
132
|
-
declare const xNodeToGMstartingLevel: Record<number, number>;
|
|
133
|
-
|
|
134
|
-
declare const buildQueryString: (params: {
|
|
135
|
-
[key: string]: any;
|
|
136
|
-
}) => string;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Map strength level coming from contract to hq image
|
|
140
|
-
*/
|
|
141
|
-
declare const NodeStrengthLevelToImage: {
|
|
142
|
-
[key: string]: string;
|
|
143
|
-
};
|
|
144
|
-
declare const MinXNodeLevel = 4;
|
|
145
|
-
declare const EconomicNodeStrengthLevelToName: {
|
|
146
|
-
[key: string]: string;
|
|
147
|
-
};
|
|
148
|
-
declare const XNodeStrengthLevelToName: {
|
|
149
|
-
[key: string]: string;
|
|
150
|
-
};
|
|
151
|
-
declare const allNodeStrengthLevelToName: {
|
|
152
|
-
[key: string]: string;
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
declare const TIME: {
|
|
156
|
-
SECOND: number;
|
|
157
|
-
MINUTE: number;
|
|
158
|
-
HOUR: number;
|
|
159
|
-
DAY: number;
|
|
160
|
-
WEEK: number;
|
|
161
|
-
MONTH: number;
|
|
162
|
-
YEAR: number;
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Checks if a string contains common rejection-related terms
|
|
167
|
-
* @param errorMessage The error message to check
|
|
168
|
-
* @returns boolean indicating if the message contains rejection terms
|
|
169
|
-
*/
|
|
170
|
-
declare const isRejectionError: (errorMessage: string) => boolean;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Returns the provied hex string with the hex prefix removed.
|
|
174
|
-
* If the prefix doesn't exist the hex is returned unmodified
|
|
175
|
-
* @param hex - the input hex string
|
|
176
|
-
* @returns the input hex string with the hex prefix removed
|
|
177
|
-
* @throws an error if the input is not a valid hex string
|
|
178
|
-
*/
|
|
179
|
-
declare const removePrefix: (hex: string) => string;
|
|
180
|
-
/**
|
|
181
|
-
* Returns the provided hex string with the hex prefix added.
|
|
182
|
-
* If the prefix already exists the string is returned unmodified.
|
|
183
|
-
* If the string contains an UPPER case `X` in the prefix it will be replaced with a lower case `x`
|
|
184
|
-
* @param hex - the input hex string
|
|
185
|
-
* @returns the input hex string with the hex prefix added
|
|
186
|
-
* @throws an error if the input is not a valid hex string
|
|
187
|
-
*/
|
|
188
|
-
declare const addPrefix: (hex: string) => string;
|
|
189
|
-
/**
|
|
190
|
-
* Validate the hex string. Throws an Error if not valid
|
|
191
|
-
* @param hex - the input hex string
|
|
192
|
-
* @throws an error if the input is not a valid hex string
|
|
193
|
-
*/
|
|
194
|
-
declare const validate: (hex: string) => void;
|
|
195
|
-
/**
|
|
196
|
-
* Check if input string is valid
|
|
197
|
-
* @param hex - the input hex string
|
|
198
|
-
* @returns boolean representing whether the input hex is valid
|
|
199
|
-
*/
|
|
200
|
-
declare const isValid: (hex?: string | null) => boolean;
|
|
201
|
-
declare const isInvalid: (hex?: string | null) => boolean;
|
|
202
|
-
declare const normalize: (hex: string) => string;
|
|
203
|
-
declare const compare: (hex1: string, hex2: string) => boolean;
|
|
204
|
-
/**
|
|
205
|
-
* Generate a random hex string of the defined length
|
|
206
|
-
* @param size - the length of the random hex output
|
|
207
|
-
* @returns a random hex string of length `size`
|
|
208
|
-
*/
|
|
209
|
-
declare const generateRandom: (size: number) => string;
|
|
210
|
-
|
|
211
|
-
declare const isValidUrl: (value: string) => boolean;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* SSR-safe utilities for browser API access
|
|
215
|
-
*/
|
|
216
|
-
/**
|
|
217
|
-
* SSR-safe localStorage getter
|
|
218
|
-
*/
|
|
219
|
-
declare const getLocalStorageItem: (key: string) => string | null;
|
|
220
|
-
/**
|
|
221
|
-
* SSR-safe localStorage setter
|
|
222
|
-
*/
|
|
223
|
-
declare const setLocalStorageItem: (key: string, value: string) => void;
|
|
224
|
-
/**
|
|
225
|
-
* SSR-safe localStorage remover
|
|
226
|
-
*/
|
|
227
|
-
declare const removeLocalStorageItem: (key: string) => void;
|
|
228
|
-
/**
|
|
229
|
-
* SSR-safe document.title getter
|
|
230
|
-
*/
|
|
231
|
-
declare const getDocumentTitle: () => string;
|
|
232
|
-
/**
|
|
233
|
-
* SSR-safe window.location.origin getter
|
|
234
|
-
*/
|
|
235
|
-
declare const getWindowOrigin: () => string;
|
|
236
|
-
/**
|
|
237
|
-
* Check if we're in a browser environment
|
|
238
|
-
*/
|
|
239
|
-
declare const isBrowser: () => boolean;
|
|
240
|
-
/**
|
|
241
|
-
* SSR-safe window.open
|
|
242
|
-
*/
|
|
243
|
-
declare const safeWindowOpen: (url?: string, target?: string, features?: string) => void;
|
|
244
|
-
/**
|
|
245
|
-
* SSR-safe document.querySelector
|
|
246
|
-
*/
|
|
247
|
-
declare const safeQuerySelector: <T extends Element>(selector: string) => T | null;
|
|
248
|
-
/**
|
|
249
|
-
* SSR-safe navigator check
|
|
250
|
-
*/
|
|
251
|
-
declare const hasNavigator: () => boolean;
|
|
252
|
-
/**
|
|
253
|
-
* SSR-safe navigator.onLine check
|
|
254
|
-
*/
|
|
255
|
-
declare const isOnline: () => boolean;
|
|
256
|
-
/**
|
|
257
|
-
* SSR-safe clipboard write
|
|
258
|
-
*/
|
|
259
|
-
declare const copyToClipboard: (text: string) => Promise<boolean>;
|
|
260
|
-
|
|
261
|
-
export { DEFAULT_PRIVY_ECOSYSTEM_APPS, ENV, EconomicNodeStrengthLevelToName, MinXNodeLevel, NodeStrengthLevelToImage, type PrivyEcosystemApp, TIME, TOKEN_LOGOS, TOKEN_LOGO_COMPONENTS, TogglePassportCheck, VECHAIN_KIT_COOKIES_CONFIG, VECHAIN_KIT_MIXPANEL_PROJECT_NAME, VECHAIN_KIT_MIXPANEL_PROJECT_TOKEN, VECHAIN_KIT_MIXPANEL_TOKENS, VECHAIN_KIT_STORAGE_KEYS, VECHAIN_KIT_TERMS_CONFIG, VECHAIN_PRIVY_APP_ID, XNodeStrengthLevelToName, addPrefix, allNodeStrengthLevelToName, buildQueryString, compare, compareAddresses, compareListOfAddresses, convertUriToUrl, copyToClipboard, generateRandom, getDocumentTitle, getENV, getLocalStorageItem, getPicassoImage, getVECHAIN_KIT_MIXPANEL_PROJECT_TOKEN, getWindowOrigin, gmNfts, hasNavigator, humanAddress, humanDomain, humanNumber, isBrowser, isInvalid, isOnline, isRejectionError, isValid, isValidAddress, isValidUrl, isZero, leftPadWithZeros, normalize, notFoundImage, randomTransactionUser, regexPattern, removeLocalStorageItem, removePrefix, resolveMediaTypeFromMimeType, safeQuerySelector, safeWindowOpen, setLocalStorageItem, toIPFSURL, uploadBlobToIPFS, validate, validateIpfsUri, xNodeToGMstartingLevel };
|
|
1
|
+
import "../index-D0cyivl4.cjs";
|
|
2
|
+
import { $r as getPicassoImage, Ar as validate, Br as xNodeToGMstartingLevel, Cr as isValidUrl, Dr as isValid, Er as isInvalid, Fr as NodeStrengthLevelToImage, Gr as validateIpfsUri, Hr as resolveMediaTypeFromMimeType, Ir as XNodeStrengthLevelToName, Jr as isValidAddress, Kr as compareAddresses, Lr as allNodeStrengthLevelToName, Mr as TIME, Nr as EconomicNodeStrengthLevelToName, Or as normalize, Pr as MinXNodeLevel, Qr as formatTokenBalance, Rr as buildQueryString, Sr as executeMultipleClausesCall, Tr as compare, Ur as toIPFSURL, Vr as convertUriToUrl, Wr as uploadBlobToIPFS, Xr as regexPattern, Yr as leftPadWithZeros, Zr as randomTransactionUser, _i as getGenericDelegatorUrl, _r as MultipleClausesCallParameters, ai as DEFAULT_PRIVY_ECOSYSTEM_APPS, br as buildCallClauses, ci as SUPPORTED_GAS_TOKENS, cr as getLocalStorageItem, di as TogglePassportCheck, dr as isBrowser, ei as humanAddress, fi as VECHAIN_KIT_COOKIES_CONFIG, fr as isOnline, gi as getENV, gr as setLocalStorageItem, hi as VECHAIN_PRIVY_APP_ID, hr as safeWindowOpen, ii as DEFAULT_GAS_TOKEN_PREFERENCES, jr as isRejectionError, kr as removePrefix, li as TOKEN_LOGOS, lr as getWindowOrigin, mi as VECHAIN_KIT_TERMS_CONFIG, mr as safeQuerySelector, ni as humanNumber, oi as ENV, or as copyToClipboard, pi as VECHAIN_KIT_STORAGE_KEYS, pr as removeLocalStorageItem, qr as compareListOfAddresses, ri as isZero, si as PrivyEcosystemApp, sr as getDocumentTitle, ti as humanDomain, ui as TOKEN_LOGO_COMPONENTS, ur as hasNavigator, vi as notFoundImage, vr as MultipleClausesCallReturnType, wr as addPrefix, xr as executeCallClause, yr as ViewFunctionResult, zr as gmNfts } from "../index-ur27qfX4.cjs";
|
|
3
|
+
export { DEFAULT_GAS_TOKEN_PREFERENCES, DEFAULT_PRIVY_ECOSYSTEM_APPS, ENV, EconomicNodeStrengthLevelToName, MinXNodeLevel, MultipleClausesCallParameters, MultipleClausesCallReturnType, NodeStrengthLevelToImage, PrivyEcosystemApp, SUPPORTED_GAS_TOKENS, TIME, TOKEN_LOGOS, TOKEN_LOGO_COMPONENTS, TogglePassportCheck, VECHAIN_KIT_COOKIES_CONFIG, VECHAIN_KIT_STORAGE_KEYS, VECHAIN_KIT_TERMS_CONFIG, VECHAIN_PRIVY_APP_ID, ViewFunctionResult, XNodeStrengthLevelToName, addPrefix, allNodeStrengthLevelToName, buildCallClauses, buildQueryString, compare, compareAddresses, compareListOfAddresses, convertUriToUrl, copyToClipboard, executeCallClause, executeMultipleClausesCall, formatTokenBalance, getDocumentTitle, getENV, getGenericDelegatorUrl, getLocalStorageItem, getPicassoImage, getWindowOrigin, gmNfts, hasNavigator, humanAddress, humanDomain, humanNumber, isBrowser, isInvalid, isOnline, isRejectionError, isValid, isValidAddress, isValidUrl, isZero, leftPadWithZeros, normalize, notFoundImage, randomTransactionUser, regexPattern, removeLocalStorageItem, removePrefix, resolveMediaTypeFromMimeType, safeQuerySelector, safeWindowOpen, setLocalStorageItem, toIPFSURL, uploadBlobToIPFS, validate, validateIpfsUri, xNodeToGMstartingLevel };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import "../index-CWViOs1U.mjs";
|
|
2
|
+
import { $r as getPicassoImage, Ar as validate, Br as xNodeToGMstartingLevel, Cr as isValidUrl, Dr as isValid, Er as isInvalid, Fr as NodeStrengthLevelToImage, Gr as validateIpfsUri, Hr as resolveMediaTypeFromMimeType, Ir as XNodeStrengthLevelToName, Jr as isValidAddress, Kr as compareAddresses, Lr as allNodeStrengthLevelToName, Mr as TIME, Nr as EconomicNodeStrengthLevelToName, Or as normalize, Pr as MinXNodeLevel, Qr as formatTokenBalance, Rr as buildQueryString, Sr as executeMultipleClausesCall, Tr as compare, Ur as toIPFSURL, Vr as convertUriToUrl, Wr as uploadBlobToIPFS, Xr as regexPattern, Yr as leftPadWithZeros, Zr as randomTransactionUser, _i as getGenericDelegatorUrl, _r as MultipleClausesCallParameters, ai as DEFAULT_PRIVY_ECOSYSTEM_APPS, br as buildCallClauses, ci as SUPPORTED_GAS_TOKENS, cr as getLocalStorageItem, di as TogglePassportCheck, dr as isBrowser, ei as humanAddress, fi as VECHAIN_KIT_COOKIES_CONFIG, fr as isOnline, gi as getENV, gr as setLocalStorageItem, hi as VECHAIN_PRIVY_APP_ID, hr as safeWindowOpen, ii as DEFAULT_GAS_TOKEN_PREFERENCES, jr as isRejectionError, kr as removePrefix, li as TOKEN_LOGOS, lr as getWindowOrigin, mi as VECHAIN_KIT_TERMS_CONFIG, mr as safeQuerySelector, ni as humanNumber, oi as ENV, or as copyToClipboard, pi as VECHAIN_KIT_STORAGE_KEYS, pr as removeLocalStorageItem, qr as compareListOfAddresses, ri as isZero, si as PrivyEcosystemApp, sr as getDocumentTitle, ti as humanDomain, ui as TOKEN_LOGO_COMPONENTS, ur as hasNavigator, vi as notFoundImage, vr as MultipleClausesCallReturnType, wr as addPrefix, xr as executeCallClause, yr as ViewFunctionResult, zr as gmNfts } from "../index-Ch2ZKl9r.mjs";
|
|
3
|
+
export { DEFAULT_GAS_TOKEN_PREFERENCES, DEFAULT_PRIVY_ECOSYSTEM_APPS, ENV, EconomicNodeStrengthLevelToName, MinXNodeLevel, MultipleClausesCallParameters, MultipleClausesCallReturnType, NodeStrengthLevelToImage, PrivyEcosystemApp, SUPPORTED_GAS_TOKENS, TIME, TOKEN_LOGOS, TOKEN_LOGO_COMPONENTS, TogglePassportCheck, VECHAIN_KIT_COOKIES_CONFIG, VECHAIN_KIT_STORAGE_KEYS, VECHAIN_KIT_TERMS_CONFIG, VECHAIN_PRIVY_APP_ID, ViewFunctionResult, XNodeStrengthLevelToName, addPrefix, allNodeStrengthLevelToName, buildCallClauses, buildQueryString, compare, compareAddresses, compareListOfAddresses, convertUriToUrl, copyToClipboard, executeCallClause, executeMultipleClausesCall, formatTokenBalance, getDocumentTitle, getENV, getGenericDelegatorUrl, getLocalStorageItem, getPicassoImage, getWindowOrigin, gmNfts, hasNavigator, humanAddress, humanDomain, humanNumber, isBrowser, isInvalid, isOnline, isRejectionError, isValid, isValidAddress, isValidUrl, isZero, leftPadWithZeros, normalize, notFoundImage, randomTransactionUser, regexPattern, removeLocalStorageItem, removePrefix, resolveMediaTypeFromMimeType, safeQuerySelector, safeWindowOpen, setLocalStorageItem, toIPFSURL, uploadBlobToIPFS, validate, validateIpfsUri, xNodeToGMstartingLevel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,A as t,B as n,D as r,E as i,F as a,G as o,H as s,I as c,J as l,K as u,L as d,M as f,N as p,O as m,P as h,Q as g,R as _,T as v,U as y,V as b,W as x,X as S,Y as C,Z as w,_t as T,a as E,at as D,c as O,ct as k,d as A,dt as j,et as M,f as N,ft as P,g as F,gt as I,h as L,ht as R,i as z,it as B,j as V,k as H,l as U,lt as W,m as G,mt as K,n as q,nt as J,o as Y,ot as X,p as Z,pt as Q,q as $,r as ee,rt as te,s as ne,st as re,t as ie,tt as ae,u as oe,ut as se,z as ce}from"../utils-DAs6kMGs.mjs";import"../assets-aAdDxPJu.mjs";export{$ as DEFAULT_GAS_TOKEN_PREFERENCES,l as DEFAULT_PRIVY_ECOSYSTEM_APPS,C as ENV,ne as EconomicNodeStrengthLevelToName,O as MinXNodeLevel,U as NodeStrengthLevelToImage,S as SUPPORTED_GAS_TOKENS,Y as TIME,w as TOKEN_LOGOS,g as TOKEN_LOGO_COMPONENTS,e as TogglePassportCheck,M as VECHAIN_KIT_COOKIES_CONFIG,ae as VECHAIN_KIT_STORAGE_KEYS,J as VECHAIN_KIT_TERMS_CONFIG,te as VECHAIN_PRIVY_APP_ID,oe as XNodeStrengthLevelToName,p as addPrefix,A as allNodeStrengthLevelToName,ie as buildCallClauses,N as buildQueryString,h as compare,m as compareAddresses,H as compareListOfAddresses,L as convertUriToUrl,re as copyToClipboard,q as executeCallClause,ee as executeMultipleClausesCall,b as formatTokenBalance,k as getDocumentTitle,B as getENV,D as getGenericDelegatorUrl,W as getLocalStorageItem,s as getPicassoImage,se as getWindowOrigin,Z as gmNfts,j as hasNavigator,y as humanAddress,x as humanDomain,o as humanNumber,P as isBrowser,a as isInvalid,Q as isOnline,E as isRejectionError,c as isValid,t as isValidAddress,z as isValidUrl,u as isZero,V as leftPadWithZeros,d as normalize,X as notFoundImage,n as randomTransactionUser,f as regexPattern,K as removeLocalStorageItem,_ as removePrefix,F as resolveMediaTypeFromMimeType,R as safeQuerySelector,I as safeWindowOpen,T as setLocalStorageItem,v as toIPFSURL,i as uploadBlobToIPFS,ce as validate,r as validateIpfsUri,G as xNodeToGMstartingLevel};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require(`./assets-DXVXPy3w.cjs`);let t=require(`@chakra-ui/react`),n=require(`react`);n=e.E(n);let r=require(`react/jsx-runtime`),i=require(`@vechain/picasso`),ee=require(`bignumber.js`),te=require(`ethers`),a=require(`viem/accounts`),o=require(`@vechain/sdk-core`);const s={ipfsFetchingService:`https://api.dev.gateway-proxy.vechain.org/ipfs`,ipfsPinningService:`https://api.dev.gateway-proxy.vechain.org/api/v1/pinning/pinFileToIPFS`,vthoContractAddress:`0x0000000000000000000000000000456E65726779`,b3trContractAddress:`0xd31A6f2DBa8785cE41AB68Ea192791B5175309F4`,vot3ContractAddress:`0x028Af33230576c1e073C8245F72a7A4aa53564E4`,b3trGovernorAddress:`0x36E0e9b46D56dF12Dd69fD560e41954C73cE9ded`,timelockContractAddress:`0x125389845c93Efcf6471BA8BE1AC19c11e128603`,xAllocationPoolContractAddress:`0xC8232c91E2f744E533322B99F95f809b9f7ec446`,xAllocationVotingContractAddress:`0x074F093f4C534a16cDD09cb4b2669713218A762a`,emissionsContractAddress:`0x6a084E85f38400790043788FcCee39595616aa3A`,voterRewardsContractAddress:`0xbAb852081C459c0060960287aDcf9a0C2c1dc4b8`,galaxyMemberContractAddress:`0xbdA1cff75d2D43AB9186Ada41fECF79e25c49Ba3`,treasuryContractAddress:`0xe9414513Fe0e3b9bf7a61eC5c1AC7Df943fB3e77`,x2EarnAppsContractAddress:`0x432C46476f4970575C43B19588A170D237dC4929`,x2EarnRewardsPoolContractAddress:`0x134E4Fce6761f660401808CF86aE0e62cE52a81E`,nodeManagementContractAddress:`0xa96B5057171D797298A71178b48449A7bC615D8E`,veBetterPassportContractAddress:`0x8db6D14452fE36ba86C341AfEFaC0f90A0Db2bcb`,x2EarnCreatorContractAddress:`0x4e5f7eb452e9ecd75c0B29e3540014cBe01bBF52`,veDelegate:`0xfc32a9895C78CE00A1047d602Bd81Ea8134CC32b`,veDelegateVotes:`0xeb71148c9B3cd57e228c2152d79f6e78F5F1ef9a`,veDelegateTokenContractAddress:`0xD3f7b82Df5705D34f64C634d2dEf6B1cB3116950`,oracleContractAddress:`0x49eC7192BF804Abc289645ca86F1eD01a6C17713`,accountFactoryAddress:`0xC06Ad8573022e2BE416CA89DA47E8c592971679A`,cleanifyCampaignsContractAddress:`0x7a11D63338576aE8c038868433ea199d7E5319A6`,cleanifyChallengesContractAddress:`0xa58681692AdDD2e8E37f9113D40Bb9253C03F65e`,veWorldSubdomainClaimerContractAddress:`0x0000000000000000000000000000000000000000`,vetDomainsContractAddress:`0x0000000000000000000000000000000000000000`,vetDomainsPublicResolverAddress:`0x0000000000000000000000000000000000000000`,vetDomainsReverseRegistrarAddress:`0x5c970901a587BA3932C835D4ae5FAE2BEa7e78Bc`,vnsResolverAddress:`0x0000000000000000000000000000000000000000`,gloDollarContractAddress:`0x0000000000000000000000000000000000000000`,vetDomainAvatarUrl:`https://testnet.vet.domains/api/avatar`,indexerUrl:`https://b3tr.testnet.vechain.org/api/v1`,b3trIndexerUrl:`https://b3tr.testnet.vechain.org/api/v1`,graphQlIndexerUrl:`https://graph.vet/subgraphs/name/vns`,nodeUrl:`http://localhost:8669`,network:{id:`solo`,name:`solo`,type:`solo`,defaultNet:!0,urls:[`http://localhost:8669`],explorerUrl:`https://explore-testnet.vechain.org`,blockTime:1e4,genesis:{number:0,id:`0x00000000c05a20fbca2bf6ae3affba6af4a74b800b585bf7a4988aba7aea69f6`,size:170,parentID:`0xffffffff53616c757465202620526573706563742c20457468657265756d2100`,timestamp:1530316800,gasLimit:1e7,beneficiary:`0x0000000000000000000000000000000000000000`,gasUsed:0,totalScore:0,txsRoot:`0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0`,txsFeatures:0,stateRoot:`0x93de0ffb1f33bc0af053abc2a87c4af44594f5dcb1cb879dd823686a15d68550`,receiptsRoot:`0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0`,signer:`0x0000000000000000000000000000000000000000`,isTrunk:!0,transactions:[]}},explorerUrl:`https://explore-testnet.vechain.org`};var c=s;const l={ipfsFetchingService:`https://api.dev.gateway-proxy.vechain.org/ipfs`,ipfsPinningService:`https://api.dev.gateway-proxy.vechain.org/api/v1/pinning/pinFileToIPFS`,vthoContractAddress:`0x0000000000000000000000000000456E65726779`,b3trContractAddress:`0xbf64cf86894Ee0877C4e7d03936e35Ee8D8b864F`,vot3ContractAddress:`0xa704c45971995467696EE9544Da77DD42Bc9706E`,b3trGovernorAddress:`0xDF5E114D391CAC840529802fe8D01f6bdeBE41eC`,timelockContractAddress:`0x30ee94F303643902a68aD8A7A6456cA69d763192`,xAllocationPoolContractAddress:`0x9B9CA9D0C41Add1d204f90BA0E9a6844f1843A84`,xAllocationVotingContractAddress:`0x5859ff910d8b0c127364c98E24233b0af7443c1c`,emissionsContractAddress:`0x3D7616213191a10460e49CfdB7edBf88D6a10942`,voterRewardsContractAddress:`0x2E47fc4aabB3403037fB5E1f38995E7a91Ce8Ed2`,galaxyMemberContractAddress:`0xa9aC49C030c1148b95F056E86f2531f8F3d5bf27`,x2EarnCreatorContractAddress:``,nodeManagementContractAddress:``,x2EarnAppsContractAddress:`0xcB23Eb1bBD5c07553795b9538b1061D0f4ABA153`,treasuryContractAddress:`0x039893EBe092A2D22B08E2b029735D211bfF7F50`,x2EarnRewardsPoolContractAddress:`0x5F8f86B8D0Fa93cdaE20936d150175dF0205fB38`,veBetterPassportContractAddress:`0x63c061a2753e84635a22ff05954e1687f104f002`,veDelegate:`0xfc32a9895C78CE00A1047d602Bd81Ea8134CC32b`,veDelegateVotes:`0xeb71148c9B3cd57e228c2152d79f6e78F5F1ef9a`,veDelegateTokenContractAddress:`0xD3f7b82Df5705D34f64C634d2dEf6B1cB3116950`,oracleContractAddress:`0xdcCAaBd81B38e0dEEf4c202bC7F1261A4D9192C6`,accountFactoryAddress:`0x713b908Bcf77f3E00EFEf328E50b657a1A23AeaF`,cleanifyCampaignsContractAddress:`0x22d19ACBD2cBf6b2B6C546395c26B9Cb448248BF`,cleanifyChallengesContractAddress:`0x8Cc885DC3e5c376632CCEA0e8e1a51F1B3572442`,veWorldSubdomainClaimerContractAddress:`0xe5af50e7ad1aaab4fbe4efbb2b30f764013918b3`,vetDomainsContractAddress:`0xcBFB30c1F267914816668d53AcBA7bA7c9806D13`,vetDomainsPublicResolverAddress:`0xA6eFd130085a127D090ACb0b100294aD1079EA6f`,vetDomainsReverseRegistrarAddress:`0x6878f1aD5e3015310CfE5B38d7B7071C5D8818Ca`,vnsResolverAddress:`0xc403b8EA53F707d7d4de095f0A20bC491Cf2bc94`,gloDollarContractAddress:`0x0000000000000000000000000000000000000000`,vetDomainAvatarUrl:`https://testnet.vet.domains/api/avatar`,indexerUrl:`https://indexer.testnet.vechain.org/api/v1`,b3trIndexerUrl:`https://b3tr.testnet.vechain.org/api/v1`,graphQlIndexerUrl:`https://graph.vet/subgraphs/name/vns`,nodeUrl:`https://testnet.vechain.org`,network:{id:`testnet`,name:`testnet`,type:`test`,defaultNet:!0,urls:[`https://testnet.vechain.org`,`https://vethor-node-test.vechaindev.com`,`https://sync-testnet.veblocks.net`,`https://testnet.vecha.in`],explorerUrl:`https://insight.vecha.in/#/test`,blockTime:1e4,genesis:{number:0,id:`0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127`,size:170,parentID:`0xffffffff00000000000000000000000000000000000000000000000000000000`,timestamp:1530014400,gasLimit:1e7,beneficiary:`0x0000000000000000000000000000000000000000`,gasUsed:0,totalScore:0,txsRoot:`0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0`,txsFeatures:0,stateRoot:`0x4ec3af0acbad1ae467ad569337d2fe8576fe303928d35b8cdd91de47e9ac84bb`,receiptsRoot:`0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0`,signer:`0x0000000000000000000000000000000000000000`,isTrunk:!0,transactions:[]}},explorerUrl:`https://explore-testnet.vechain.org/transactions`};var u=l;const d={ipfsFetchingService:`https://api.gateway-proxy.vechain.org/ipfs`,indexerUrl:`https://indexer.mainnet.vechain.org/api/v1`,ipfsPinningService:`https://api.gateway-proxy.vechain.org/api/v1/pinning/pinFileToIPFS`,b3trIndexerUrl:`https://b3tr.mainnet.vechain.org/api/v1`,graphQlIndexerUrl:`https://graph.vet/subgraphs/name/vns`,nodeUrl:`https://mainnet.vechain.org`,network:{id:`main`,name:`main`,type:`main`,defaultNet:!0,urls:[`https://mainnet.vechain.org`,`https://vethor-node.vechain.com`,`https://mainnet.veblocks.net`,`https://mainnet.vecha.in`],explorerUrl:`https://vechainstats.com`,blockTime:1e4,genesis:{number:0,id:`0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a`,size:170,parentID:`0xffffffff53616c757465202620526573706563742c20457468657265756d2100`,timestamp:1530316800,gasLimit:1e7,beneficiary:`0x0000000000000000000000000000000000000000`,gasUsed:0,totalScore:0,txsRoot:`0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0`,txsFeatures:0,stateRoot:`0x09bfdf9e24dd5cd5b63f3c1b5d58b97ff02ca0490214a021ed7d99b93867839c`,receiptsRoot:`0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0`,signer:`0x0000000000000000000000000000000000000000`,isTrunk:!0,transactions:[]}},explorerUrl:`https://vechainstats.com/transaction`,vthoContractAddress:`0x0000000000000000000000000000456E65726779`,b3trContractAddress:`0x5ef79995FE8a89e0812330E4378eB2660ceDe699`,vot3ContractAddress:`0x76Ca782B59C74d088C7D2Cce2f211BC00836c602`,b3trGovernorAddress:`0x1c65C25fABe2fc1bCb82f253fA0C916a322f777C`,timelockContractAddress:`0x7B7EaF620d88E38782c6491D7Ce0B8D8cF3227e4`,xAllocationPoolContractAddress:`0x4191776F05f4bE4848d3f4d587345078B439C7d3`,xAllocationVotingContractAddress:`0x89A00Bb0947a30FF95BEeF77a66AEdE3842Fe5B7`,emissionsContractAddress:`0xDf94739bd169C84fe6478D8420Bb807F1f47b135`,voterRewardsContractAddress:`0x838A33AF756a6366f93e201423E1425f67eC0Fa7`,galaxyMemberContractAddress:`0x93B8cD34A7Fc4f53271b9011161F7A2B5fEA9D1F`,treasuryContractAddress:`0xD5903BCc66e439c753e525F8AF2FeC7be2429593`,x2EarnAppsContractAddress:`0x8392B7CCc763dB03b47afcD8E8f5e24F9cf0554D`,x2EarnRewardsPoolContractAddress:`0x6Bee7DDab6c99d5B2Af0554EaEA484CE18F52631`,x2EarnCreatorContractAddress:`0xe8e96a768ffd00417d4bd985bec9EcfC6F732a7f`,nodeManagementContractAddress:`0xB0EF9D89C6b49CbA6BBF86Bf2FDf0Eee4968c6AB`,veBetterPassportContractAddress:`0x35a267671d8EDD607B2056A9a13E7ba7CF53c8b3`,veDelegate:`0xfc32a9895C78CE00A1047d602Bd81Ea8134CC32b`,veDelegateVotes:`0xeb71148c9B3cd57e228c2152d79f6e78F5F1ef9a`,veDelegateTokenContractAddress:`0xD3f7b82Df5705D34f64C634d2dEf6B1cB3116950`,oracleContractAddress:`0x49eC7192BF804Abc289645ca86F1eD01a6C17713`,accountFactoryAddress:`0xC06Ad8573022e2BE416CA89DA47E8c592971679A`,cleanifyCampaignsContractAddress:`0x7a11D63338576aE8c038868433ea199d7E5319A6`,cleanifyChallengesContractAddress:`0xa58681692AdDD2e8E37f9113D40Bb9253C03F65e`,veWorldSubdomainClaimerContractAddress:`0xa4173c32fe8a61a8fd0d0234675b559fc360446a`,vetDomainsContractAddress:`0xa9231da8BF8D10e2df3f6E03Dd5449caD600129b`,vetDomainsPublicResolverAddress:`0xabac49445584C8b6c1472b030B1076Ac3901D7cf`,vetDomainsReverseRegistrarAddress:`0x5c970901a587BA3932C835D4ae5FAE2BEa7e78Bc`,vnsResolverAddress:`0xA11413086e163e41901bb81fdc5617c975Fa5a1A`,vetDomainAvatarUrl:`https://vet.domains/api/avatar`,gloDollarContractAddress:`0x29c630cce4ddb23900f5fe66ab55e488c15b9f5e`};var ne=d;const f=e=>{if(e===`solo`)return c;if(e===`test`)return u;if(e===`main`)return ne;throw Error(`Unsupported NETWORK_TYPE ${e}`)},p=({...e})=>(0,r.jsxs)(t.Icon,{viewBox:`0 0 1684.56 1684.56`,...e,children:[(0,r.jsx)(`rect`,{fill:`#b1f16c`,width:`1684.56`,height:`1684.56`,rx:`157.74`,ry:`157.74`}),(0,r.jsx)(`path`,{fill:`#1d1d1d`,d:`M844.98,1386.28c-41.46,0-75.1-33.9-75.1-75.67,0-142.78-86.35-274.05-158.8-359.01-89.72-105.25-197.89-186.19-265.28-219.75-37.18-18.54-52.43-63.88-34.09-101.35,18.39-37.47,63.39-52.83,100.58-34.35,75.09,37.41,202.11,127.08,312.7,256.82,32.24,37.81,66.77,83.5,97.66,135.35,34.2-108.83,79.98-205.07,121.61-280.12,91.8-165.56,214.37-317.13,319.84-395.63,33.36-24.83,80.39-17.68,105.02,15.93,24.64,33.61,17.55,81-15.81,105.82-88.03,65.47-197.1,201.95-277.93,347.68-70.82,127.7-155.25,323.08-155.25,528.6,0,41.78-33.64,75.67-75.1,75.67h-.06Z`})]}),m=e=>{try{return typeof window>`u`?null:localStorage.getItem(e)}catch(t){return console.warn(`Error accessing localStorage for key "${e}":`,t),null}},re=(e,t)=>{try{if(typeof window>`u`)return;localStorage.setItem(e,t)}catch(t){console.warn(`Error setting localStorage for key "${e}":`,t)}},h=e=>{try{if(typeof window>`u`)return;localStorage.removeItem(e)}catch(t){console.warn(`Error removing localStorage for key "${e}":`,t)}},g=()=>{try{return typeof document<`u`?document.title:``}catch{return``}},_=()=>{try{return typeof window<`u`&&window.location?window.location.origin:``}catch{return``}},v=()=>typeof window<`u`&&typeof document<`u`,ie=(e,t,n)=>{v()&&window.open(e,t,n)},ae=e=>typeof document<`u`?document.querySelector(e):null,y=()=>typeof navigator<`u`,oe=()=>y()&&navigator.onLine,se=async e=>{try{return y()&&navigator.clipboard?(await navigator.clipboard.writeText(e),!0):!1}catch(e){return console.warn(`Error copying to clipboard:`,e),!1}},b={VET:`https://cryptologos.cc/logos/vechain-vet-logo.png`,VTHO:`https://s2.coinmarketcap.com/static/img/coins/64x64/3012.png`,B3TR:`https://vechain.github.io/token-registry/assets/3d55edb42b09a634f7f2f26756a02571de901a5b.png`,VOT3:`https://vechain.github.io/token-registry/assets/17ff70aa1d898bc97ad690dbfad1a3b5643f7e0b.png`,veDelegate:`https://vechain.github.io/token-registry/assets/1c641b86096d56bf13d49f38388accd6db8b8b2e.png`,USDGLO:`https://raw.githubusercontent.com/vechain/app-hub/439fba60c80ba2521d435981102d88c4aec050d6/apps/org.glodollar.app/logo.png`},x={VET:(0,r.jsx)(e.c,{}),VTHO:(0,r.jsx)(e.s,{}),B3TR:(0,r.jsx)(e.l,{}),VOT3:(0,r.jsx)(p,{})},ce=`cm4wxxujb022fyujl7g0thb21`,le=`https://upload.wikimedia.org/wikipedia/commons/a/a3/Image-not-found.png`;let S=function(e){return e[e.WhitelistCheck=1]=`WhitelistCheck`,e[e.BlacklistCheck=2]=`BlacklistCheck`,e[e.SignalingCheck=3]=`SignalingCheck`,e[e.ParticipationScoreCheck=4]=`ParticipationScoreCheck`,e[e.GmOwnershipCheck=5]=`GmOwnershipCheck`,e}({});const C={NETWORK:`vechain-kit:network`},w=()=>{if(typeof window>`u`)return{isDevelopment:!1,isProduction:!0};let e=m(C.NETWORK);return{isDevelopment:e===`test`,isProduction:e===`main`}},T={get isDevelopment(){return w().isDevelopment},get isProduction(){return w().isProduction}},E=()=>w().isProduction?`https://mainnet.delegator.vechain.org/api/v1/`:`https://testnet.delegator.vechain.org/api/v1/`,D=[{id:`clz41gcg00e4ay75dmq3uzzgr`,name:`Cleanify`,website:`https://app.cleanify.vet`},{id:`cm153hrup0817axti38avlfyg`,name:`GreenCart`,website:`https://greencart.ai`},{id:`clv9sfos20j6x1431ga80d95f`,name:`Mughsot`,website:`https://mugshot.vet/`},{id:`cm4l8tiai070i108zo17oieyc`,name:`EVearn`,website:`https://evearn.io`}],O={url:`https://vechainkit.vechain.org/terms`,version:1,required:!0,displayName:`Vechain Kit Terms`},k={url:`https://vechainkit.vechain.org/cookies`,version:1,required:!1,displayName:`Vechain Kit Cookies`},A={tokenPriority:[`VET`,`B3TR`,`VTHO`],availableGasTokens:[`VET`,`B3TR`,`VTHO`],excludedTokens:[],alwaysConfirm:!1,gasTokenToUse:`VET`},j={B3TR:{type:`B3TR`,name:`B3TR Token`,symbol:`B3TR`,address:f(process.env.NEXT_PUBLIC_NETWORK_TYPE||`test`).b3trContractAddress,description:`Pay gas with B3TR`},VET:{type:`VET`,name:`VET Token`,symbol:`VET`,description:`Pay gas with VET`},VTHO:{type:`VTHO`,name:`VTHO Token`,symbol:`VTHO`,address:f(process.env.NEXT_PUBLIC_NETWORK_TYPE||`test`).vthoContractAddress,description:`Pay gas with VTHO`}},M=(e,t=6,n=4)=>`${e.slice(0,t)}•••${e.slice(-n)}`,N=(e,t=8,n=6)=>e.length<=t+n?e:`${e.substring(0,t)}•••${e.substring(e.length-n)}`,P=(e,t,n=null)=>{let r=n?` `+n:``;t||=e;let i=new Intl.NumberFormat(`en-US`,{style:`decimal`,minimumFractionDigits:Number.parseFloat(e.toString())%1==0?0:2}).format(L(Number(e),2));return!F(t)&&F(i)&&(i=`< 0.01`),i+r},F=e=>!e&&e!==0?!1:new ee.BigNumber(e).isZero(),I=(e,t=!1)=>{let n=(0,i.picasso)(e.toLowerCase());return t?`data:image/svg+xml;base64,${Buffer.from(n,`utf8`).toString(`base64`)}`:`data:image/svg+xml;utf8,${n}`};function L(e,t=0){if(typeof e!=`number`||typeof t!=`number`)throw Error(`Invalid input: number and decimals must be of type number`);let n=parseInt(e.toExponential().split(`e-`)[1]||`0`,10),r=10**Math.max(0,t+n);return Math.floor(e*r)/r}const R=e=>{let t=(0,te.formatEther)(e),n=t===`0`?`0`:P(t);return{original:e.toString(),scaled:t,formatted:n}},z=(()=>{let e=(0,a.generatePrivateKey)(),t=(0,a.privateKeyToAccount)(e);return{privateKey:e,account:t,address:t.address}})(),ue=`0x`,B=/^0[xX]/,V=/^(0[xX])?[a-fA-F0-9]+$/,H=e=>(W(e),e.replace(B,``)),U=e=>(W(e),B.test(e)?e.replace(B,`0x`):`0x${e}`),W=e=>{if(!G(e))throw Error(`Provided hex value is not valid`)},G=e=>!!e&&V.test(e),K=e=>!G(e),q=e=>U(e.toLowerCase().trim()),de=(e,t)=>{try{return H(e).toLowerCase()===H(t).toLowerCase()}catch{return!1}},J=(e,t)=>{if(!e||!t)return!1;if(t===e)return!0;try{return q(e)===q(t)}catch{return!1}},fe=(e,t)=>{if(e.length!==t.length)return!1;let n=[...e].map(e=>e.toLowerCase()).sort((e,t)=>e.localeCompare(t)),r=[...t].map(e=>e.toLowerCase()).sort((e,t)=>e.localeCompare(t));for(let e=0;e<n.length;e++)if(!J(n[e],r[e]))return!1;return!0},pe=()=>/^0x[a-fA-F0-9]{40}$/,me=o.Address.isValid,he=(e,t)=>{let n=e.startsWith(`0x`)?e.slice(2):e;if(n.length>t)throw Error(`Input string is longer than the specified length`);return`0x${n.padStart(t,`0`)}`},Y=e=>{let t=e.trim();return/^ipfs:\/\/[a-zA-Z0-9]+(\/[^/]+)*\/?$/.test(t)};function ge(e,t){return`ipfs://${e}/${t??``}`}async function _e(e,t,n){try{let r=new FormData;r.append(`file`,e,t);let i=await fetch(f(n).ipfsPinningService,{method:`POST`,headers:{"X-Project-Id":`vechain-kit`},body:r});if(!i.ok)throw Error(`HTTP error! status: ${i.status}`);return(await i.json()).IpfsHash}catch(e){throw console.error(`Error uploading blob:`,e),Error(`Failed to upload blob to IPFS`)}}let X=function(e){return e.IMAGE=`image`,e.VIDEO=`video`,e.UNKNOWN=`unknown`,e.TEXT=`text`,e}({}),ve=function(e){return e.NONE=`NONE`,e.WHITELIST=`WHITELIST`,e.BLACKLIST=`BLACKLIST`,e}({});const ye={usd:`$`,gbp:`£`,eur:`€`},be=[`display`,`avatar`,`description`,`keywords`,`email`,`url`,`header`,`notice`,`location`,`phone`,`com.x`];function xe(e,t){return e*(1+t)}function Se(e,t=4){return Number(e).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:t})}let Ce=function(e){return e.TERMS=`terms`,e.PRIVACY=`privacy`,e.COOKIES=`cookies`,e}({}),we=function(e){return e.VECHAIN_KIT=`vechain-kit`,e.APPLICATION=`application`,e}({});const Z=(e,t)=>!!t.find(t=>{if(e?.split(`/`)[0]===t)return!0}),Te=e=>Z(e,[X.IMAGE])?X.IMAGE:Z(e,[X.VIDEO])?X.VIDEO:X.UNKNOWN,Ee=(e,t)=>{if(e.startsWith(`data:`))return e;let n=e?.split(`://`);if(n.length!==2)return null;let r=n?.[0]?.trim(),i=n[1];switch(r){case`ipfs`:if(!Y(e))throw Error(`Invalid IPFS URI ${e}`);return`${f(t).ipfsFetchingService}/${i}`;case`ar`:return`https://arweave.net/${i}`;default:return e}},De=[{level:`1`,name:`Earth`,image:`/images/nft-levels/0.png`,multiplier:1,b3trToUpgrade:0},{level:`2`,name:`Moon`,image:`/images/nft-levels/1.png`,multiplier:1.1,b3trToUpgrade:1e4},{level:`3`,name:`Mercury`,image:`/images/nft-levels/2.png`,multiplier:1.2,b3trToUpgrade:25e3},{level:`4`,name:`Venus`,image:`/images/nft-levels/3.png`,multiplier:1.5,b3trToUpgrade:5e4},{level:`5`,name:`Mars`,image:`/images/nft-levels/4.png`,multiplier:2,b3trToUpgrade:1e5},{level:`6`,name:`Jupiter`,image:`/images/nft-levels/5.png`,multiplier:2.5,b3trToUpgrade:25e4},{level:`7`,name:`Saturn`,image:`/images/nft-levels/6.png`,multiplier:3,b3trToUpgrade:5e5},{level:`8`,name:`Uranus`,image:`/images/nft-levels/7.png`,multiplier:5,b3trToUpgrade:25e5},{level:`9`,name:`Neptune`,image:`/images/nft-levels/8.png`,multiplier:10,b3trToUpgrade:5e6},{level:`10`,name:`Galaxy`,image:`/images/nft-levels/9.png`,multiplier:25,b3trToUpgrade:25e6}],Oe={1:2,2:4,3:6,4:2,5:4,6:6,7:7},ke=e=>{let t=new URLSearchParams;return Object.keys(e).forEach(n=>{let r=e[n];r!=null&&t.append(n,String(r))}),t.toString()},Ae={0:`/images/vnt/00-noNode.webp`,1:`/images/vnt/01-strength.webp`,2:`/images/vnt/02-thunder.webp`,3:`/images/vnt/03-mjolnir.webp`,4:`/images/vnt/04-vethorX.webp`,5:`/images/vnt/05-strengthX.webp`,6:`/images/vnt/06-thunderX.webp`,7:`/images/vnt/07-mjolnirX.webp`},je=4,Q={1:`Strength`,2:`Thunder`,3:`Mjolnir`},$={4:`VeThorX`,5:`StrengthX`,6:`ThunderX`,7:`MjolnirX`},Me={...Q,...$},Ne={SECOND:1e3,MINUTE:1e3*60,HOUR:1e3*60*60,DAY:1e3*60*60*24,WEEK:1e3*60*60*24*7,MONTH:1e3*60*60*24*30,YEAR:1e3*60*60*24*365},Pe=e=>e?[`rejected`,`cancelled`,`user denied`,`closed`].some(t=>e.toLowerCase().includes(t.toLowerCase())):!1,Fe=e=>{try{return new URL(e),!0}catch{return!1}},Ie=async({thor:e,contractAddress:t,abi:n,method:r,args:i})=>await e.contracts.load(t,n).read[r](...i),Le=async({thor:e,calls:t})=>{if(!Array.isArray(t))throw Error(`calls must be an array`);let n=t.map(t=>e.contracts.load(t.address,t.abi).clause[t.functionName](...t.args)),r=await e.transactions.executeMultipleClausesCall(n);if(!r.every(e=>e.success))throw Error(`Failed to execute multiple clauses call`);return r.map(e=>e.result.plain)},Re=({thor:e,calls:t})=>{if(!Array.isArray(t))throw Error(`calls must be an array`);return t.map(t=>e.contracts.load(t.address,t.abi).clause[t.functionName](...t.args))};Object.defineProperty(exports,`$`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return me}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return _e}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`J`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return pe}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,`Q`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return ye}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return ge}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`X`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`Y`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`Z`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,`_t`,{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,`at`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return Se}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return 4}}),Object.defineProperty(exports,`ct`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,`dt`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`et`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,`ft`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,`gt`,{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,`ht`,{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,`it`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,`lt`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,`mt`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,`nt`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,`ot`,{enumerable:!0,get:function(){return`https://upload.wikimedia.org/wikipedia/commons/a/a3/Image-not-found.png`}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,`pt`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,`rt`,{enumerable:!0,get:function(){return`cm4wxxujb022fyujl7g0thb21`}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`st`,{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Re}}),Object.defineProperty(exports,`tt`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`ut`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,`vt`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return ve}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return W}});
|
|
2
|
+
//# sourceMappingURL=utils-Bl-JeVTg.cjs.map
|