-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinject.js
More file actions
680 lines (623 loc) · 22.5 KB
/
Copy pathinject.js
File metadata and controls
680 lines (623 loc) · 22.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
/**
* Runs in the page (MAIN world). Intercepts FOMO prod-api JSON and posts to the content script.
* Loaded via chrome.scripting.executeScript (CSP blocks extension <script> tags on fomo.family).
*/
(function () {
const w = /** @type {Window & { __fomoDeploySniffer?: boolean }} */ (window);
if (w.__fomoDeploySniffer) return;
w.__fomoDeploySniffer = true;
const SOURCE = "fomo-deploy-sniffer";
const RE_SOL = /\b[1-9A-HJ-NP-Za-km-z]{43,44}\b/g;
const RE_EVM = /\b0x[a-fA-F0-9]{40}\b/g;
function addMatches(str, sol, evm, seenS, seenE) {
if (typeof str !== "string" || str.length < 40) return;
let m;
const rs = new RegExp(RE_SOL.source, "g");
while ((m = rs.exec(str))) {
if (!seenS.has(m[0])) {
seenS.add(m[0]);
sol.push(m[0]);
}
}
const re = new RegExp(RE_EVM.source, "g");
while ((m = re.exec(str))) {
if (!seenE.has(m[0])) {
seenE.add(m[0]);
evm.push(m[0]);
}
}
}
function walk(val, sol, evm, seenS, seenE) {
if (val === null || val === undefined) return;
if (typeof val === "string") {
addMatches(val, sol, evm, seenS, seenE);
return;
}
if (typeof val !== "object") return;
if (Array.isArray(val)) {
for (const item of val) walk(item, sol, evm, seenS, seenE);
return;
}
for (const k of Object.keys(val)) walk(val[k], sol, evm, seenS, seenE);
}
function extractFromJson(data) {
const sol = [];
const evm = [];
const seenS = new Set();
const seenE = new Set();
walk(data, sol, evm, seenS, seenE);
return { solana: sol, evm };
}
/**
* Deploy-gate stats from FOMO prod-api user rows (logged-in / users/me / user by id).
* Canonical shape includes: followers, following, swapCount, numTrades, averageHoldTimeSeconds.
*/
function extractDeployMetrics(data) {
const ro = data?.responseObject;
if (ro && typeof ro === "object") {
const canonicalKeys = [
"followers",
"following",
"swapCount",
"numTrades",
"averageHoldTimeSeconds",
];
if (canonicalKeys.some((k) => Object.prototype.hasOwnProperty.call(ro, k))) {
/** @type {{ followers?: number; following?: number; swaps?: number; avgHoldSeconds?: number }} */
const out = {};
if (typeof ro.followers === "number" && Number.isFinite(ro.followers)) {
out.followers = ro.followers;
}
if (typeof ro.following === "number" && Number.isFinite(ro.following)) {
out.following = ro.following;
}
const sc = ro.swapCount;
const nt = ro.numTrades;
const scOk = typeof sc === "number" && Number.isFinite(sc);
const ntOk = typeof nt === "number" && Number.isFinite(nt);
if (scOk && ntOk) {
out.swaps = Math.max(sc, nt);
} else if (scOk) {
out.swaps = sc;
} else if (ntOk) {
out.swaps = nt;
}
const ah = ro.averageHoldTimeSeconds;
if (typeof ah === "number" && Number.isFinite(ah)) {
out.avgHoldSeconds = ah;
}
if (Object.keys(out).length) return out;
}
}
/* Fallback: older / alternate JSON shapes */
const roots = [];
if (ro && typeof ro === "object") roots.push(ro);
if (data && typeof data === "object" && data !== ro) roots.push(data);
const followerKeys = new Set([
"followerCount",
"followersCount",
"followers",
"followCount",
"numFollowers",
]);
const swapKeys = new Set([
"swapCount",
"numTrades",
"swaps",
"totalSwaps",
"tradeCount",
"trades",
"totalTrades",
]);
const holdKeys = new Set([
"averageHoldTimeSeconds",
"avgHoldSeconds",
"avgHoldingTimeSeconds",
"averageHoldingSeconds",
"avgHoldTimeSeconds",
]);
let followers = null;
let swaps = null;
let avgHoldSeconds = null;
function considerKey(key, val) {
if (typeof val !== "number" || !Number.isFinite(val)) return;
if (followerKeys.has(key)) followers = val;
if (swapKeys.has(key)) swaps = val;
if (holdKeys.has(key)) avgHoldSeconds = val;
const kl = key.toLowerCase();
if (
followers == null &&
kl.includes("follower") &&
(kl.includes("count") || kl === "followers")
) {
followers = val;
}
if (
swaps == null &&
(kl.includes("swap") || kl.includes("trade")) &&
(kl.includes("count") || kl === "total")
) {
swaps = val;
}
if (
avgHoldSeconds == null &&
kl.includes("hold") &&
(kl.includes("avg") || kl.includes("average") || kl.includes("mean"))
) {
avgHoldSeconds = val;
}
}
function walkObj(obj, depth) {
if (depth > 10 || !obj || typeof obj !== "object") return;
if (Array.isArray(obj)) {
for (const item of obj) walkObj(item, depth + 1);
return;
}
for (const [k, v] of Object.entries(obj)) {
considerKey(k, v);
if (typeof v === "object" && v !== null) walkObj(v, depth + 1);
}
}
for (const r of roots) walkObj(r, 0);
if (avgHoldSeconds != null && avgHoldSeconds > 1e7) {
avgHoldSeconds = avgHoldSeconds / 1000;
}
if (followers == null && swaps == null && avgHoldSeconds == null) return null;
const out = {};
if (followers != null) out.followers = followers;
if (swaps != null) out.swaps = swaps;
if (avgHoldSeconds != null) out.avgHoldSeconds = avgHoldSeconds;
return out;
}
/** Native token page comments: `Omo deploy: "Coin Name" $TICK` */
const THESIS_DEPLOY_LINE =
/^Omo\s+deploy:\s*"([^"]{1,64})"\s+\$([A-Za-z0-9]{2,10})\s*$/i;
async function processThesisCommentsIfAny(data, url) {
try {
const comments = data?.responseObject?.comments;
if (!Array.isArray(comments) || !comments.length) return;
const enriched = [];
for (const c of comments) {
if (!c || typeof c.comment !== "string") continue;
const m = c.comment.trim().match(THESIS_DEPLOY_LINE);
if (!m) continue;
let handle = null;
let authorMetrics = null;
const uid = typeof c.userId === "string" ? c.userId : "";
if (uid && /^[0-9a-f-]{36}$/i.test(uid)) {
try {
const r = await fetch(
`https://prod-api.fomo.family/v2/users/${uid}`,
{ credentials: "include" }
);
if (r.ok) {
const j = await r.json();
const u = j?.responseObject;
handle =
(typeof u?.userHandle === "string" && u.userHandle.trim()) ||
(typeof u?.profileHandle === "string" &&
u.profileHandle.trim()) ||
null;
const extracted = extractDeployMetrics(j);
if (extracted && Object.keys(extracted).length) {
authorMetrics = extracted;
}
}
} catch (_) {
/* ignore */
}
}
enriched.push({
id: c.id,
userId: c.userId,
tradeId: c.tradeId,
comment: c.comment,
createdAt: c.createdAt,
_omoResolvedHandle: handle,
_omoThesisName: m[1],
_omoThesisSymbol: m[2],
_omoDeployMetrics: authorMetrics,
});
}
if (!enriched.length) return;
window.postMessage(
{
source: SOURCE,
type: "thesis-comments",
url,
comments: enriched,
},
"*"
);
} catch (_) {
/* ignore */
}
}
function shouldSniffUrl(url) {
if (!url || typeof url !== "string") return false;
return (
url.includes("prod-api.fomo.family") ||
url.includes("api.fomo.family") ||
url.includes("fomo.family") ||
(url.includes("solana-provider") && url.includes("fomo.family"))
);
}
function isFomoBackendUrl(url) {
if (!url || typeof url !== "string") return false;
return (
url.includes("prod-api.fomo.family") ||
url.includes("api.fomo.family") ||
(url.includes("solana-provider") && url.includes("fomo.family"))
);
}
/** FOMO uses several JSON shapes; token / chart pages may omit `success: true`. */
function inferLoggedInFromJson(data, url) {
if (!data || typeof data !== "object") return false;
if (data.success === false) return false;
if (data.success === true) return true;
if (data.responseObject != null) return true;
if (data.statusCode === 200 && data.message) return true;
if (url.includes("/v2/") && Object.keys(data).length > 0) return true;
return false;
}
/**
* Returns true when the URL is a "me" / "self" endpoint that FOMO calls for the logged-in viewer.
* On these endpoints the response ALWAYS belongs to you — never to another user.
*/
function isSelfUrl(path) {
return (
/\/users\/me(?:\/|$)/i.test(path) ||
/\/v\d+\/me(?:\/|$)/i.test(path) ||
/\/auth\/me(?:\/|$)/i.test(path) ||
/\/profile\/me(?:\/|$)/i.test(path) ||
/\/auth\/status(?:\/|$)/i.test(path) ||
/\/user\/me(?:\/|$)/i.test(path)
);
}
function extractRoUserDetail(ro, idHint) {
if (!ro || typeof ro !== "object") return null;
const id =
(typeof ro.id === "string" ? ro.id : null) || idHint || null;
if (!id) return null;
const profileHandle =
(typeof ro.profileHandle === "string" && ro.profileHandle.trim()) ||
(typeof ro.userHandle === "string" && ro.userHandle.trim()) ||
(typeof ro.displayName === "string" && ro.displayName.trim()) ||
(typeof ro.handle === "string" && ro.handle.trim()) ||
(typeof ro.username === "string" && ro.username.trim()) ||
(typeof ro.userName === "string" && ro.userName.trim()) ||
null;
return {
id,
address: typeof ro.address === "string" ? ro.address : null,
evmAddress: typeof ro.evmAddress === "string" ? ro.evmAddress : null,
profileHandle,
/** FOMO: public profile payloads can be stale until the account is activated. */
activated: typeof ro.activated === "boolean" ? ro.activated : undefined,
};
}
function parseUserDetailFromResponse(url, data) {
try {
const u = new URL(url);
const path = u.pathname || "";
if (/\/balances/i.test(path)) return null;
/** "me" / self endpoints — ALWAYS the logged-in viewer; mark with isSelf. */
if (isSelfUrl(path)) {
const ro = data?.responseObject ?? data;
const ud = extractRoUserDetail(ro, null);
if (ud) return { ...ud, isSelf: true };
return null;
}
/** GET …/userHandle/{handle} or …/handle/{handle} — canonical profile wallets on /profile/:handle */
const byHandle = path.match(/\/v2\/users\/userHandle\/([^/]+)$/i) ||
path.match(/\/v3\/users\/userHandle\/([^/]+)$/i) ||
path.match(/\/v2\/users\/handle\/([^/]+)$/i) ||
path.match(/\/api\/v\d+\/users\/userHandle\/([^/]+)$/i);
if (byHandle) {
const ro = data?.responseObject;
if (!ro || typeof ro !== "object") return null;
const hid = typeof ro.id === "string" ? ro.id : null;
if (!hid) return null;
return {
id: hid,
address: typeof ro.address === "string" ? ro.address : null,
evmAddress: typeof ro.evmAddress === "string" ? ro.evmAddress : null,
profileHandle: decodeURIComponent(byHandle[1]),
isSelf: false,
activated: typeof ro.activated === "boolean" ? ro.activated : undefined,
};
}
/**
* GET /v2/users/{uuid}/leaderboard — sidebar "Your rank" row (logged-in viewer only).
* Body uses userHandle / displayName, not profileHandle.
*/
const leaderboardMatch =
path.match(/\/v2\/users\/([0-9a-f-]{36})\/leaderboard$/i) ||
path.match(/\/v3\/users\/([0-9a-f-]{36})\/leaderboard$/i) ||
path.match(/\/api\/v\d+\/users\/([0-9a-f-]{36})\/leaderboard$/i);
if (leaderboardMatch) {
const ro = data?.responseObject;
if (!ro || typeof ro !== "object") return null;
const ud = extractRoUserDetail(ro, leaderboardMatch[1]);
if (!ud) return null;
return { ...ud, isSelf: true };
}
if (!/\/users\/[0-9a-f-]{36}$/i.test(path)) return null;
const m =
path.match(/\/v2\/users\/([0-9a-f-]{36})$/i) ||
path.match(/\/v3\/users\/([0-9a-f-]{36})$/i) ||
path.match(/\/api\/v\d+\/users\/([0-9a-f-]{36})$/i);
if (!m || !m[1]) return null;
const ro = data?.responseObject;
if (!ro || typeof ro !== "object") return null;
const ud = extractRoUserDetail(ro, m[1]);
if (!ud) return null;
return { ...ud, isSelf: false };
} catch {
return null;
}
}
function parseBalancesUserId(url) {
try {
const p = new URL(url).pathname || "";
const m =
p.match(/\/v2\/users\/([0-9a-f-]{36})\/balances$/i) ||
p.match(/\/v3\/users\/([0-9a-f-]{36})\/balances$/i) ||
p.match(/\/api\/v\d+\/users\/([0-9a-f-]{36})\/balances$/i);
return m ? m[1] : null;
} catch {
return null;
}
}
/** Wallet rows from balances API — authoritative for "whose" balances (vs blind JSON walk). */
function extractBalancesStructured(data) {
const solana = [];
const evm = [];
const seenS = new Set();
const seenE = new Set();
function pushAddr(raw) {
if (typeof raw !== "string") return;
const addr = raw.trim();
if (!addr) return;
if (/^0x[a-fA-F0-9]{40}$/i.test(addr)) {
if (!seenE.has(addr)) {
seenE.add(addr);
evm.push(addr);
}
} else if (/^[1-9A-HJ-NP-Za-km-z]{43,44}$/.test(addr)) {
if (!seenS.has(addr)) {
seenS.add(addr);
solana.push(addr);
}
}
}
try {
const balances = data?.responseObject?.balances;
if (!Array.isArray(balances)) return { solana, evm };
for (const row of balances) {
if (!row || typeof row !== "object") continue;
pushAddr(row.address);
const bal = row.balance;
if (bal && typeof bal === "object") {
pushAddr(bal.address);
pushAddr(bal.evmAddress);
}
pushAddr(row.evmAddress);
const ut = row.userToken;
if (ut && typeof ut === "object") pushAddr(ut.userAddress);
const at = row.activeTrade;
if (at && typeof at === "object") pushAddr(at.userAddress);
}
} catch {
/* ignore */
}
return { solana, evm };
}
/**
* Viewer UUID from `/users/me` (and other `isSelf` API responses). Used to prefetch leaderboard
* JSON without relying on FOMO's SPA "leaderboard tab" routing.
* @type {string | null}
*/
let viewerCanonicalUserId = null;
/** Dedupe: same leaderboard prefetch as opening the sidebar tab in the app. */
const prefetchedLeaderboardFor = new Set();
/**
* Triggers `GET …/users/{id}/leaderboard` with credentials — same payload as when the UI loads
* that tab. Goes through our wrapped `fetch` so responses are sniffed like normal page traffic.
*/
function prefetchLeaderboardForViewer(userId) {
try {
const id = String(userId || "").trim().toLowerCase();
if (!/^[0-9a-f-]{36}$/.test(id)) return;
if (prefetchedLeaderboardFor.has(id)) return;
prefetchedLeaderboardFor.add(id);
const url = `https://prod-api.fomo.family/v2/users/${id}/leaderboard`;
void window.fetch(url, { credentials: "include", cache: "no-store" });
} catch (_) {
/* ignore */
}
}
/**
* Cached FOMO API responses often come back as **304** with **no body**. Our fetch hook
* needs JSON (`averageHoldTimeSeconds`, etc.) — `clone.json()` then fails silently.
* Force `cache: "no-store"` so we always get **200 + body** for these GETs.
*/
function sniffArgsForceFreshJsonBody(args) {
const req = args[0];
const init = args[1];
const urlStr = typeof req === "string" ? req : req?.url || "";
if (!shouldSniffUrl(urlStr)) return args;
try {
let method = "GET";
if (typeof Request !== "undefined" && req instanceof Request) {
method = String(req.method || "GET").toUpperCase();
} else if (typeof init === "object" && init !== null && typeof init.method === "string") {
method = init.method.toUpperCase();
}
if (method !== "GET") return args;
const pu = new URL(urlStr, location.href);
const p = pu.pathname || "";
const isLeaderboard = /\/users\/[0-9a-f-]{36}\/leaderboard$/i.test(p);
/** GET /v2/users/{uuid} — user row incl. averageHoldTimeSeconds (often 304 when cached). */
const isBareUserById =
/\/v\d+\/users\/[0-9a-f-]{36}$/i.test(p) ||
/\/api\/v\d+\/users\/[0-9a-f-]{36}$/i.test(p);
if (!isLeaderboard && !isBareUserById) return args;
const nextInit = {
...(typeof init === "object" && init !== null ? init : {}),
cache: "no-store",
};
if (typeof req === "string") return [req, nextInit];
if (typeof Request !== "undefined" && req instanceof Request) {
return [new Request(req, nextInit)];
}
} catch {
/* ignore */
}
return args;
}
const origFetch = window.fetch;
window.fetch = async function (...args) {
args = sniffArgsForceFreshJsonBody(args);
const res = await origFetch.apply(this, args);
try {
const req = args[0];
const url = typeof req === "string" ? req : req?.url || "";
if (!shouldSniffUrl(url)) return res;
const clone = res.clone();
const isFomoApi = isFomoBackendUrl(url);
if (isFomoApi && !clone.ok && (clone.status === 401 || clone.status === 403)) {
window.postMessage(
{ source: SOURCE, type: "fomo-auth", ok: false },
"*"
);
return res;
}
const ct = clone.headers.get("content-type") || "";
if (!ct.includes("json")) return res;
clone
.json()
.then((data) => {
void processThesisCommentsIfAny(data, url);
if (isFomoApi && clone.ok && inferLoggedInFromJson(data, url)) {
window.postMessage(
{ source: SOURCE, type: "fomo-auth", ok: true },
"*"
);
}
const { solana: sWalk, evm: eWalk } = extractFromJson(data);
const balancesUserId = parseBalancesUserId(url);
const balancesStructured = balancesUserId
? extractBalancesStructured(data)
: { solana: [], evm: [] };
const userDetail = parseUserDetailFromResponse(url, data);
let deployMetrics = null;
/** Handle whose stats these are (for saving only when it matches the logged-in user). */
let deployMetricsOwnerHandle = null;
try {
const pu = new URL(url, location.href);
const pathname = pu.pathname || "";
const pathSelf =
userDetail?.isSelf === true || isSelfUrl(pathname);
const byHandleMatch =
pathname.match(/\/v2\/users\/userHandle\/([^/]+)$/i) ||
pathname.match(/\/v3\/users\/userHandle\/([^/]+)$/i) ||
pathname.match(/\/v2\/users\/handle\/([^/]+)$/i) ||
pathname.match(/\/api\/v\d+\/users\/userHandle\/([^/]+)$/i);
const bareUuidUser =
/\/v\d+\/users\/[0-9a-f-]{36}$/i.test(pathname);
let extracted = null;
if (pathSelf || byHandleMatch || bareUuidUser) {
extracted = extractDeployMetrics(data);
}
if (extracted && Object.keys(extracted).length) {
deployMetrics = extracted;
const ro = data?.responseObject;
if (pathSelf && ro && typeof ro === "object") {
const h = ro.userHandle || ro.profileHandle;
if (typeof h === "string" && h.trim()) {
deployMetricsOwnerHandle = h.trim();
}
} else if (byHandleMatch) {
deployMetricsOwnerHandle = decodeURIComponent(byHandleMatch[1]);
} else if (
bareUuidUser &&
ro &&
typeof ro === "object"
) {
const h = ro.userHandle || ro.profileHandle;
if (typeof h === "string" && h.trim()) {
deployMetricsOwnerHandle = h.trim();
}
}
if (
!deployMetricsOwnerHandle &&
userDetail &&
typeof userDetail.profileHandle === "string" &&
userDetail.profileHandle.trim()
) {
deployMetricsOwnerHandle = userDetail.profileHandle.trim();
}
}
} catch (_) {
/* ignore */
}
const solana = [...sWalk];
const evm = [...eWalk];
if (userDetail?.address && !solana.includes(userDetail.address)) {
solana.push(userDetail.address);
}
if (userDetail?.evmAddress && !evm.includes(userDetail.evmAddress)) {
evm.push(userDetail.evmAddress);
}
if (
!solana.length &&
!evm.length &&
!balancesUserId &&
!userDetail &&
!deployMetrics
) {
return;
}
try {
const puPath = new URL(url, location.href).pathname || "";
if (userDetail?.isSelf === true && userDetail.id) {
viewerCanonicalUserId = String(userDetail.id).trim().toLowerCase();
prefetchLeaderboardForViewer(viewerCanonicalUserId);
} else if (
viewerCanonicalUserId &&
/\/v\d+\/users\/[0-9a-f-]{36}$/i.test(puPath)
) {
const um = puPath.match(/\/([0-9a-f-]{36})$/i);
const pathId = um ? um[1].toLowerCase() : "";
if (pathId && pathId === viewerCanonicalUserId) {
prefetchLeaderboardForViewer(viewerCanonicalUserId);
}
}
} catch (_) {
/* ignore */
}
window.postMessage(
{
source: SOURCE,
type: "api-sniff",
url,
solana,
evm,
balancesUserId,
balancesStructuredSolana: balancesStructured.solana,
balancesStructuredEvm: balancesStructured.evm,
userDetail,
deployMetrics,
deployMetricsOwnerHandle,
},
"*"
);
})
.catch(() => {});
} catch (_) {
/* ignore */
}
return res;
};
})();