web3bio-profile-kit 0.1.3 → 0.1.4

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.
Files changed (74) hide show
  1. package/dist/hooks/index.cjs +21 -0
  2. package/dist/hooks/index.js +8 -0
  3. package/dist/hooks/useBaseQuery.cjs +129 -0
  4. package/dist/{types/hooks → hooks}/useBaseQuery.d.ts +1 -2
  5. package/dist/hooks/useBaseQuery.js +127 -0
  6. package/dist/hooks/useBatchNS.cjs +25 -0
  7. package/dist/{types/hooks → hooks}/useBatchNS.d.ts +1 -1
  8. package/dist/hooks/useBatchNS.js +23 -0
  9. package/dist/hooks/useBatchProfile.cjs +25 -0
  10. package/dist/{types/hooks → hooks}/useBatchProfile.d.ts +1 -1
  11. package/dist/hooks/useBatchProfile.js +23 -0
  12. package/dist/hooks/useDomain.cjs +28 -0
  13. package/dist/{types/hooks → hooks}/useDomain.d.ts +1 -1
  14. package/dist/hooks/useDomain.js +26 -0
  15. package/dist/hooks/useNS.cjs +28 -0
  16. package/dist/{types/hooks → hooks}/useNS.d.ts +1 -1
  17. package/dist/hooks/useNS.js +26 -0
  18. package/dist/hooks/useProfile.cjs +28 -0
  19. package/dist/{types/hooks → hooks}/useProfile.d.ts +1 -1
  20. package/dist/hooks/useProfile.js +26 -0
  21. package/dist/hooks/useUniversalNS.cjs +28 -0
  22. package/dist/{types/hooks → hooks}/useUniversalNS.d.ts +1 -1
  23. package/dist/hooks/useUniversalNS.js +26 -0
  24. package/dist/hooks/useUniversalProfile.cjs +28 -0
  25. package/dist/{types/hooks → hooks}/useUniversalProfile.d.ts +1 -1
  26. package/dist/hooks/useUniversalProfile.js +26 -0
  27. package/dist/index.cjs +71 -0
  28. package/dist/index.d.ts +3 -441
  29. package/dist/index.js +18 -2038
  30. package/dist/types/cointype.cjs +29 -0
  31. package/dist/types/cointype.d.ts +26 -0
  32. package/dist/types/cointype.js +29 -0
  33. package/dist/types/hook.cjs +38 -0
  34. package/dist/types/hook.d.ts +195 -0
  35. package/dist/types/hook.js +38 -0
  36. package/dist/types/index.cjs +38 -0
  37. package/dist/types/index.d.ts +5 -7
  38. package/dist/types/index.js +5 -0
  39. package/dist/types/network.cjs +41 -0
  40. package/dist/types/{utils/network.d.ts → network.d.ts} +9 -4
  41. package/dist/types/network.js +41 -0
  42. package/dist/types/platform.cjs +110 -0
  43. package/dist/types/{utils/platform.d.ts → platform.d.ts} +19 -5
  44. package/dist/types/platform.js +110 -0
  45. package/dist/types/source.cjs +44 -0
  46. package/dist/types/{utils/source.d.ts → source.d.ts} +11 -3
  47. package/dist/types/source.js +44 -0
  48. package/dist/utils/helpers.cjs +119 -0
  49. package/dist/{types/utils → utils}/helpers.d.ts +4 -3
  50. package/dist/utils/helpers.js +112 -0
  51. package/dist/utils/index.cjs +27 -0
  52. package/dist/utils/index.d.ts +6 -0
  53. package/dist/utils/index.js +6 -0
  54. package/dist/utils/network.cjs +355 -0
  55. package/dist/utils/network.d.ts +4 -0
  56. package/dist/utils/network.js +353 -0
  57. package/dist/utils/platform.cjs +983 -0
  58. package/dist/utils/platform.d.ts +18 -0
  59. package/dist/utils/platform.js +979 -0
  60. package/dist/utils/regex.cjs +34 -0
  61. package/dist/utils/regex.d.ts +30 -0
  62. package/dist/utils/regex.js +32 -0
  63. package/dist/utils/source.cjs +144 -0
  64. package/dist/utils/source.d.ts +2 -0
  65. package/dist/utils/source.js +142 -0
  66. package/package.json +32 -12
  67. package/dist/index.esm.js +0 -2023
  68. package/dist/index.esm.js.map +0 -1
  69. package/dist/index.js.map +0 -1
  70. package/dist/types/utils/cointype.d.ts +0 -22
  71. package/dist/types/utils/constants.d.ts +0 -36
  72. package/dist/types/utils/types.d.ts +0 -74
  73. /package/dist/{types/hooks → hooks}/index.d.ts +0 -0
  74. /package/dist/{types/setupTests.d.ts → setupTests.d.ts} +0 -0
@@ -0,0 +1,983 @@
1
+ 'use strict';
2
+
3
+ var platform = require('../types/platform.cjs');
4
+
5
+ /**
6
+ * Default data
7
+ * @internal
8
+ */
9
+ const DEFAULT_PLATFORM = {
10
+ color: "#000000",
11
+ icon: "",
12
+ label: "",
13
+ description: "",
14
+ urlPrefix: "",
15
+ ensText: [],
16
+ registerlink: "",
17
+ editUrlPrefix: "",
18
+ system: platform.PlatformSystem.web3,
19
+ };
20
+ /**
21
+ * Platform data
22
+ * @public
23
+ */
24
+ const PLATFORM_DATA = new Map([
25
+ [
26
+ platform.Platform.twitter,
27
+ {
28
+ color: "#000000",
29
+ icon: "icons/icon-x.svg",
30
+ label: "Twitter (X)",
31
+ urlPrefix: "https://x.com/",
32
+ ensText: ["com.twitter", "com.x", "vnd.twitter", "twitter"],
33
+ system: platform.PlatformSystem.web2,
34
+ },
35
+ ],
36
+ [
37
+ platform.Platform.ens,
38
+ {
39
+ color: "#0080bc",
40
+ icon: "icons/icon-ens.svg",
41
+ label: "ENS",
42
+ description: "Ethereum Name Service (ENS and .eth domain)",
43
+ urlPrefix: "https://app.ens.domains/",
44
+ registerlink: "https://app.ens.domains/{name}",
45
+ editUrlPrefix: "https://app.ens.domains/{name}",
46
+ system: platform.PlatformSystem.web3,
47
+ },
48
+ ],
49
+ [
50
+ platform.Platform.ethereum,
51
+ {
52
+ color: "#3741ba",
53
+ icon: "icons/icon-ethereum.svg",
54
+ label: "Ethereum",
55
+ urlPrefix: "https://etherscan.io/address/",
56
+ editUrlPrefix: "https://app.ens.domains/{name}",
57
+ system: platform.PlatformSystem.web3,
58
+ },
59
+ ],
60
+ [
61
+ platform.Platform.farcaster,
62
+ {
63
+ color: "#432C8D",
64
+ icon: "icons/icon-farcaster.svg",
65
+ label: "Farcaster",
66
+ description: "Farcaster social identity (Fname handle)",
67
+ urlPrefix: "https://farcaster.xyz/",
68
+ editUrlPrefix: "https://farcaster.xyz/~/settings",
69
+ ensText: ["farcaster", "xyz.farcaster"],
70
+ registerlink: "https://farcaster.xyz/~/invite-page/1000?id=8ebad588&name={name}",
71
+ system: platform.PlatformSystem.web2,
72
+ },
73
+ ],
74
+ [
75
+ platform.Platform.github,
76
+ {
77
+ color: "#000000",
78
+ icon: "icons/icon-github.svg",
79
+ label: "GitHub",
80
+ urlPrefix: "https://github.com/",
81
+ ensText: ["com.github", "vnd.github", "github"],
82
+ system: platform.PlatformSystem.web2,
83
+ },
84
+ ],
85
+ [
86
+ platform.Platform.keybase,
87
+ {
88
+ color: "#4162E2",
89
+ icon: "icons/icon-keybase.svg",
90
+ label: "Keybase",
91
+ urlPrefix: "https://keybase.io/",
92
+ ensText: ["io.keybase", "keybase"],
93
+ system: platform.PlatformSystem.web2,
94
+ },
95
+ ],
96
+ [
97
+ platform.Platform.lens,
98
+ {
99
+ color: "#2CC256",
100
+ icon: "icons/icon-lens.svg",
101
+ label: "Lens",
102
+ description: "Lens social identity (.lens handle)",
103
+ urlPrefix: "https://hey.xyz/u/",
104
+ editUrlPrefix: "https://hey.xyz/settings",
105
+ ensText: ["lens"],
106
+ registerlink: "https://www.lens.xyz/mint?name={name}",
107
+ system: platform.PlatformSystem.web2,
108
+ },
109
+ ],
110
+ [
111
+ platform.Platform.box,
112
+ {
113
+ color: "#1a1a1a",
114
+ icon: "icons/icon-box.svg",
115
+ label: "Box",
116
+ registerlink: "https://my.box/buy/configure?domain={name}&ref=web3bio",
117
+ system: platform.PlatformSystem.web3,
118
+ },
119
+ ],
120
+ [
121
+ platform.Platform.nextid,
122
+ {
123
+ color: "#000000",
124
+ icon: "icons/icon-nextid.svg",
125
+ label: "Next.ID",
126
+ urlPrefix: "https://web3.bio/",
127
+ system: platform.PlatformSystem.web3,
128
+ },
129
+ ],
130
+ [
131
+ platform.Platform.bitcoin,
132
+ {
133
+ color: "#F7931A",
134
+ icon: "icons/icon-bitcoin.svg",
135
+ label: "Bitcoin",
136
+ urlPrefix: "https://explorer.cloverpool.com/btc/address/",
137
+ system: platform.PlatformSystem.web3,
138
+ },
139
+ ],
140
+ [
141
+ platform.Platform.reddit,
142
+ {
143
+ color: "#ff4500",
144
+ icon: "icons/icon-reddit.svg",
145
+ label: "Reddit",
146
+ urlPrefix: "https://www.reddit.com/user/",
147
+ ensText: ["com.reddit"],
148
+ system: platform.PlatformSystem.web2,
149
+ },
150
+ ],
151
+ [
152
+ platform.Platform.space_id,
153
+ {
154
+ color: "#71EBAA",
155
+ icon: "icons/icon-spaceid.svg",
156
+ label: "SPACE ID",
157
+ registerlink: "https://space.id/search?query={name}",
158
+ urlPrefix: "https://web3.bio/?s=",
159
+ system: platform.PlatformSystem.web3,
160
+ },
161
+ ],
162
+ [
163
+ platform.Platform.unstoppableDomains,
164
+ {
165
+ color: "#2E65F5",
166
+ icon: "icons/icon-unstoppabledomains.svg",
167
+ label: "Unstoppable Domains",
168
+ description: "Unstoppable Domains (.x, .crypto and other Web3 domains), and ud.me Unstoppable Profiles",
169
+ urlPrefix: "https://web3.bio/",
170
+ editUrlPrefix: "https://unstoppabledomains.com/d/{name}",
171
+ registerlink: "https://unstoppabledomains.com/search?searchTerm={name}",
172
+ system: platform.PlatformSystem.web3,
173
+ },
174
+ ],
175
+ [
176
+ platform.Platform.basenames,
177
+ {
178
+ color: "#0052ff",
179
+ icon: "icons/icon-base.svg",
180
+ label: "Basenames",
181
+ description: "Basenames (.base.eth domains) based on ENS",
182
+ urlPrefix: "https://www.base.org/name/",
183
+ editUrlPrefix: "https://www.base.org/name/{name}",
184
+ registerlink: "https://www.base.org/names?claim={name}",
185
+ system: platform.PlatformSystem.web3,
186
+ },
187
+ ],
188
+ [
189
+ platform.Platform.linea,
190
+ {
191
+ color: "#591FE6",
192
+ icon: "icons/icon-linea.svg",
193
+ label: "Linea Name Service",
194
+ description: "Linea Name Service (.linea.eth domains) based on ENS",
195
+ urlPrefix: "https://names.linea.build/",
196
+ editUrlPrefix: "https://names.linea.build/{name}",
197
+ registerlink: "https://names.linea.build/{name}/register",
198
+ system: platform.PlatformSystem.web3,
199
+ },
200
+ ],
201
+ [
202
+ platform.Platform.ckb,
203
+ {
204
+ color: "#000000",
205
+ icon: "icons/icon-ckb.svg",
206
+ label: "Nervos",
207
+ urlPrefix: "https://explorer.nervos.org/address/",
208
+ system: platform.PlatformSystem.web3,
209
+ },
210
+ ],
211
+ [
212
+ platform.Platform.telegram,
213
+ {
214
+ color: "#0088cc",
215
+ icon: "icons/icon-telegram.svg",
216
+ label: "Telegram",
217
+ ensText: ["org.telegram", "vnd.telegram", "telegram"],
218
+ urlPrefix: "https://t.me/",
219
+ system: platform.PlatformSystem.web2,
220
+ },
221
+ ],
222
+ [
223
+ platform.Platform.instagram,
224
+ {
225
+ color: "#E1306C",
226
+ icon: "icons/icon-instagram.svg",
227
+ label: "Instagram",
228
+ ensText: ["com.instagram", "instagram"],
229
+ urlPrefix: "https://www.instagram.com/",
230
+ system: platform.PlatformSystem.web2,
231
+ },
232
+ ],
233
+ [
234
+ platform.Platform.weibo,
235
+ {
236
+ color: "#df2029",
237
+ label: "Weibo",
238
+ urlPrefix: "https://weibo.com/",
239
+ system: platform.PlatformSystem.web2,
240
+ },
241
+ ],
242
+ [
243
+ platform.Platform.dotbit,
244
+ {
245
+ color: "#0e7dff",
246
+ icon: "icons/icon-dotbit.svg",
247
+ label: ".bit",
248
+ urlPrefix: "https://d.id/",
249
+ registerlink: "https://d.id/bit/account/create/{name}",
250
+ system: platform.PlatformSystem.web3,
251
+ },
252
+ ],
253
+ [
254
+ platform.Platform.cyberconnect,
255
+ {
256
+ color: "#000000",
257
+ icon: "icons/icon-cyberconnect.svg",
258
+ label: "CyberConnect",
259
+ urlPrefix: "https://link3.to/",
260
+ registerlink: "",
261
+ system: platform.PlatformSystem.web3,
262
+ },
263
+ ],
264
+ [
265
+ platform.Platform.opensea,
266
+ {
267
+ color: "#407FDB",
268
+ icon: "icons/icon-opensea.svg",
269
+ label: "OpenSea",
270
+ urlPrefix: "https://opensea.io/",
271
+ system: platform.PlatformSystem.web3,
272
+ },
273
+ ],
274
+ [
275
+ platform.Platform.discord,
276
+ {
277
+ color: "#5865f2",
278
+ icon: "icons/icon-discord.svg",
279
+ label: "Discord",
280
+ urlPrefix: "",
281
+ ensText: ["discord", "com.discord"],
282
+ system: platform.PlatformSystem.web2,
283
+ },
284
+ ],
285
+ [
286
+ platform.Platform.calendly,
287
+ {
288
+ color: "#2F69F6",
289
+ icon: "icons/icon-calendly.svg",
290
+ label: "Calendly",
291
+ urlPrefix: "https://calendly.com/",
292
+ ensText: ["calendly", "com.calendly"],
293
+ system: platform.PlatformSystem.web2,
294
+ },
295
+ ],
296
+ [
297
+ platform.Platform.url,
298
+ {
299
+ color: "#121212",
300
+ icon: "icons/icon-web.svg",
301
+ label: "Website",
302
+ urlPrefix: "",
303
+ system: platform.PlatformSystem.web2,
304
+ },
305
+ ],
306
+ [
307
+ platform.Platform.website,
308
+ {
309
+ color: "#121212",
310
+ icon: "icons/icon-web.svg",
311
+ label: "Website",
312
+ urlPrefix: "",
313
+ ensText: ["url", "website"],
314
+ system: platform.PlatformSystem.web2,
315
+ },
316
+ ],
317
+ [
318
+ platform.Platform.linkedin,
319
+ {
320
+ color: "#195DB4",
321
+ icon: "icons/icon-linkedin.svg",
322
+ label: "LinkedIn",
323
+ ensText: ["com.linkedin", "linkedin"],
324
+ urlPrefix: "https://www.linkedin.com/in/",
325
+ system: platform.PlatformSystem.web2,
326
+ },
327
+ ],
328
+ [
329
+ platform.Platform.dns,
330
+ {
331
+ color: "#000000",
332
+ icon: "icons/icon-web.svg",
333
+ label: "DNS",
334
+ urlPrefix: "https://",
335
+ system: platform.PlatformSystem.web2,
336
+ },
337
+ ],
338
+ [
339
+ platform.Platform.tron,
340
+ {
341
+ color: "#EB0029",
342
+ icon: "icons/icon-tron.svg",
343
+ label: "Tron",
344
+ urlPrefix: "https://tronscan.org/#/address/",
345
+ system: platform.PlatformSystem.web3,
346
+ },
347
+ ],
348
+ [
349
+ platform.Platform.hey,
350
+ {
351
+ color: "#E84F64",
352
+ icon: "icons/icon-hey.svg",
353
+ label: "Hey",
354
+ urlPrefix: "https://hey.xyz/u/",
355
+ system: platform.PlatformSystem.web3,
356
+ },
357
+ ],
358
+ [
359
+ platform.Platform.facebook,
360
+ {
361
+ color: "#385898",
362
+ icon: "icons/icon-facebook.svg",
363
+ label: "Facebook",
364
+ urlPrefix: "https://www.facebook.com/",
365
+ ensText: ["com.facebook", "facebook"],
366
+ system: platform.PlatformSystem.web2,
367
+ },
368
+ ],
369
+ [
370
+ platform.Platform.threads,
371
+ {
372
+ color: "#000000",
373
+ icon: "icons/icon-threads.svg",
374
+ label: "Threads",
375
+ urlPrefix: "https://www.threads.net/",
376
+ system: platform.PlatformSystem.web2,
377
+ },
378
+ ],
379
+ [
380
+ platform.Platform.whatsapp,
381
+ {
382
+ color: "#25d366",
383
+ icon: "icons/icon-whatsapp.svg",
384
+ label: "WhatsApp",
385
+ urlPrefix: "https://wa.me/",
386
+ ensText: ["com.whatsapp", "whatsapp"],
387
+ system: platform.PlatformSystem.web2,
388
+ },
389
+ ],
390
+ [
391
+ platform.Platform.youtube,
392
+ {
393
+ color: "#FF0000",
394
+ icon: "icons/icon-youtube.svg",
395
+ label: "Youtube",
396
+ urlPrefix: "https://www.youtube.com/",
397
+ ensText: ["com.youtube", "youtube"],
398
+ system: platform.PlatformSystem.web2,
399
+ },
400
+ ],
401
+ [
402
+ platform.Platform.tiktok,
403
+ {
404
+ color: "#000000",
405
+ icon: "icons/icon-tiktok.svg",
406
+ label: "TikTok",
407
+ urlPrefix: "https://www.tiktok.com/@",
408
+ system: platform.PlatformSystem.web2,
409
+ },
410
+ ],
411
+ [
412
+ platform.Platform.bilibili,
413
+ {
414
+ color: "#00aeec",
415
+ icon: "icons/icon-bilibili.svg",
416
+ label: "Bilibili",
417
+ urlPrefix: "https://www.bilibili.com/",
418
+ system: platform.PlatformSystem.web2,
419
+ },
420
+ ],
421
+ [
422
+ platform.Platform.medium,
423
+ {
424
+ color: "#000000",
425
+ icon: "icons/icon-medium.svg",
426
+ label: "Medium",
427
+ urlPrefix: "https://medium.com/",
428
+ system: platform.PlatformSystem.web2,
429
+ },
430
+ ],
431
+ [
432
+ platform.Platform.mirror,
433
+ {
434
+ color: "#007aff",
435
+ icon: "icons/icon-mirror.svg",
436
+ label: "Mirror",
437
+ urlPrefix: "https://mirror.xyz/",
438
+ system: platform.PlatformSystem.web3,
439
+ },
440
+ ],
441
+ [
442
+ platform.Platform.zerion,
443
+ {
444
+ color: "#3560E5",
445
+ icon: "icons/icon-zerion.svg",
446
+ label: "Zerion",
447
+ system: platform.PlatformSystem.web3,
448
+ },
449
+ ],
450
+ [
451
+ platform.Platform.aave,
452
+ {
453
+ color: "#9896FF",
454
+ icon: "icons/icon-aave.svg",
455
+ label: "AAVE",
456
+ system: platform.PlatformSystem.web3,
457
+ },
458
+ ],
459
+ [
460
+ platform.Platform.rainbow,
461
+ {
462
+ color: "#000000",
463
+ icon: "icons/icon-rainbow.svg",
464
+ label: "Rainbow",
465
+ system: platform.PlatformSystem.web3,
466
+ },
467
+ ],
468
+ [
469
+ platform.Platform.bluesky,
470
+ {
471
+ color: "#0085ff",
472
+ icon: "icons/icon-bluesky.svg",
473
+ label: "Bluesky",
474
+ urlPrefix: "https://bsky.app/profile/",
475
+ ensText: ["app.bsky", "bluesky"],
476
+ system: platform.PlatformSystem.web3,
477
+ },
478
+ ],
479
+ [
480
+ platform.Platform.nostr,
481
+ {
482
+ color: "#5E287D",
483
+ icon: "icons/icon-nostr.svg",
484
+ label: "Nostr",
485
+ urlPrefix: "https://app.coracle.social/",
486
+ ensText: ["nostr"],
487
+ system: platform.PlatformSystem.web2,
488
+ },
489
+ ],
490
+ [
491
+ platform.Platform.poap,
492
+ {
493
+ color: "#5E58A5",
494
+ icon: "icons/icon-poap.svg",
495
+ label: "POAP",
496
+ urlPrefix: "https://app.poap.xyz/scan/",
497
+ system: platform.PlatformSystem.web3,
498
+ },
499
+ ],
500
+ [
501
+ platform.Platform.uniswap,
502
+ {
503
+ color: "#ff007a",
504
+ icon: "icons/icon-uniswap.svg",
505
+ label: "Uniswap",
506
+ urlPrefix: "https://uniswap.org/",
507
+ system: platform.PlatformSystem.web3,
508
+ },
509
+ ],
510
+ [
511
+ platform.Platform.degenscore,
512
+ {
513
+ color: "#a855f7",
514
+ icon: "icons/icon-degenscore.svg",
515
+ label: "DegenScore",
516
+ urlPrefix: "https://degenscore.com/beacon/",
517
+ system: platform.PlatformSystem.web3,
518
+ },
519
+ ],
520
+ [
521
+ platform.Platform.webacy,
522
+ {
523
+ color: "#000000",
524
+ icon: "icons/icon-webacy.svg",
525
+ label: "Webacy",
526
+ urlPrefix: "https://dapp.webacy.com/",
527
+ system: platform.PlatformSystem.web3,
528
+ },
529
+ ],
530
+ [
531
+ platform.Platform.firefly,
532
+ {
533
+ color: "#1A183D",
534
+ icon: "icons/icon-firefly.svg",
535
+ label: "Firefly",
536
+ urlPrefix: "https://firefly.social/",
537
+ system: platform.PlatformSystem.web3,
538
+ },
539
+ ],
540
+ [
541
+ platform.Platform.solana,
542
+ {
543
+ color: "#9945FF",
544
+ icon: "icons/icon-solana.svg",
545
+ label: "Solana",
546
+ urlPrefix: "https://solscan.io/address/",
547
+ editUrlPrefix: "https://www.sns.id/domain?domain={name}",
548
+ system: platform.PlatformSystem.web3,
549
+ },
550
+ ],
551
+ [
552
+ platform.Platform.sns,
553
+ {
554
+ color: "#6363E1",
555
+ icon: "icons/icon-sns.svg",
556
+ label: "SNS",
557
+ description: "Solana Name Service (SNS and .sol domain)",
558
+ urlPrefix: "https://www.sns.id/search?search=",
559
+ registerlink: "https://www.sns.id/search?search={name}",
560
+ editUrlPrefix: "https://www.sns.id/domain?domain={name}",
561
+ system: platform.PlatformSystem.web3,
562
+ },
563
+ ],
564
+ [
565
+ platform.Platform.mstdnjp,
566
+ {
567
+ color: "#595aff",
568
+ icon: "icons/icon-mastodon.svg",
569
+ label: "mstdn.jp",
570
+ urlPrefix: "https://mstdn.jp/@",
571
+ system: platform.PlatformSystem.web3,
572
+ },
573
+ ],
574
+ [
575
+ platform.Platform.lobsters,
576
+ {
577
+ color: "#ac130d",
578
+ icon: "icons/icon-lobsters.svg",
579
+ label: "Lobsters",
580
+ urlPrefix: "https://lobste.rs/~",
581
+ system: platform.PlatformSystem.web2,
582
+ },
583
+ ],
584
+ [
585
+ platform.Platform.hackernews,
586
+ {
587
+ color: "#ff6600",
588
+ icon: "icons/icon-hackernews.svg",
589
+ label: "Hacker News",
590
+ urlPrefix: "https://news.ycombinator.com/user?id=",
591
+ system: platform.PlatformSystem.web2,
592
+ },
593
+ ],
594
+ [
595
+ platform.Platform.crossbell,
596
+ {
597
+ color: "#FFCF55",
598
+ icon: "icons/icon-crossbell.svg",
599
+ label: "Crossbell",
600
+ urlPrefix: "https://crossbell.io/@",
601
+ registerlink: "https://crossbell.io",
602
+ system: platform.PlatformSystem.web3,
603
+ },
604
+ ],
605
+ [
606
+ platform.Platform.minds,
607
+ {
608
+ color: "#f7d354",
609
+ icon: "icons/icon-minds.svg",
610
+ label: "Minds",
611
+ urlPrefix: "https://www.minds.com/",
612
+ system: platform.PlatformSystem.web2,
613
+ },
614
+ ],
615
+ [
616
+ platform.Platform.paragraph,
617
+ {
618
+ color: "#2563eb",
619
+ icon: "icons/icon-paragraph.svg",
620
+ label: "Paragraph",
621
+ urlPrefix: "https://paragraph.xyz/",
622
+ system: platform.PlatformSystem.web3,
623
+ },
624
+ ],
625
+ [
626
+ platform.Platform.genome,
627
+ {
628
+ color: "#6DD85D",
629
+ icon: "icons/icon-gnosis.svg",
630
+ label: "Genome",
631
+ urlPrefix: "https://genomedomains.com/name/",
632
+ registerlink: "https://space.id/tld/14/domains?query={name}",
633
+ system: platform.PlatformSystem.web3,
634
+ },
635
+ ],
636
+ [
637
+ platform.Platform.gnosis,
638
+ {
639
+ color: "#1c352a",
640
+ icon: "icons/icon-gnosis.svg",
641
+ label: "Gnosis",
642
+ urlPrefix: "https://gnosisscan.io/address/",
643
+ system: platform.PlatformSystem.web3,
644
+ },
645
+ ],
646
+ [
647
+ platform.Platform.clusters,
648
+ {
649
+ color: "#f0555d",
650
+ icon: "icons/icon-clusters.svg",
651
+ label: "Clusters",
652
+ urlPrefix: "https://clusters.xyz/",
653
+ registerlink: "https://clusters.xyz/register/{name}",
654
+ system: platform.PlatformSystem.web3,
655
+ },
656
+ ],
657
+ [
658
+ platform.Platform.guild,
659
+ {
660
+ color: "#6062eb",
661
+ icon: "icons/icon-guild.svg",
662
+ label: "Guild",
663
+ urlPrefix: "https://guild.xyz/",
664
+ system: platform.PlatformSystem.web2,
665
+ },
666
+ ],
667
+ [
668
+ platform.Platform.ton,
669
+ {
670
+ color: "#0098EA",
671
+ icon: "icons/icon-ton.svg",
672
+ label: "TON",
673
+ urlPrefix: "https://tonscan.org/address/",
674
+ system: platform.PlatformSystem.web3,
675
+ },
676
+ ],
677
+ [
678
+ platform.Platform.snapshot,
679
+ {
680
+ color: "#ffb503",
681
+ icon: "icons/icon-snapshot.svg",
682
+ label: "Snapshot",
683
+ urlPrefix: "https://snapshot.org/",
684
+ system: platform.PlatformSystem.web3,
685
+ },
686
+ ],
687
+ [
688
+ platform.Platform.coingecko,
689
+ {
690
+ color: "#4BCC00",
691
+ icon: "icons/icon-coingecko.svg",
692
+ label: "CoinGecko",
693
+ urlPrefix: "https://www.coingecko.com/en/coins/",
694
+ system: platform.PlatformSystem.web2,
695
+ },
696
+ ],
697
+ [
698
+ platform.Platform.gitcoin,
699
+ {
700
+ color: "#4A47D3",
701
+ icon: "icons/icon-gitcoin.svg",
702
+ label: "Gitcoin Passport",
703
+ urlPrefix: "https://passport.gitcoin.co/",
704
+ system: platform.PlatformSystem.web3,
705
+ },
706
+ ],
707
+ [
708
+ platform.Platform.humanpassport,
709
+ {
710
+ color: "#006b57",
711
+ icon: "icons/icon-humanpassport.svg",
712
+ label: "Human Passport",
713
+ urlPrefix: "https://passport.human.tech/",
714
+ system: platform.PlatformSystem.web3,
715
+ },
716
+ ],
717
+ [
718
+ platform.Platform.talent,
719
+ {
720
+ color: "#715AE4",
721
+ icon: "icons/icon-talent.svg",
722
+ label: "Talent",
723
+ urlPrefix: "https://passport.talentprotocol.com/profile/",
724
+ system: platform.PlatformSystem.web3,
725
+ },
726
+ ],
727
+ [
728
+ platform.Platform.doge,
729
+ {
730
+ color: "#dfc66d",
731
+ icon: "icons/icon-doge.svg",
732
+ label: "Dogecoin",
733
+ urlPrefix: "https://dogechain.info/address/",
734
+ system: platform.PlatformSystem.web3,
735
+ },
736
+ ],
737
+ [
738
+ platform.Platform.bsc,
739
+ {
740
+ color: "#f0b90b",
741
+ icon: "icons/icon-bsc.svg",
742
+ label: "Binance Smart Chain",
743
+ urlPrefix: "https://bscscan.com/address/",
744
+ system: platform.PlatformSystem.web3,
745
+ },
746
+ ],
747
+ [
748
+ platform.Platform.aptos,
749
+ {
750
+ color: "#6fe0b2",
751
+ icon: "icons/icon-aptos.svg",
752
+ label: "Aptos",
753
+ urlPrefix: "https://explorer.aptoslabs.com/account/",
754
+ system: platform.PlatformSystem.web3,
755
+ },
756
+ ],
757
+ [
758
+ platform.Platform.near,
759
+ {
760
+ color: "#000000",
761
+ icon: "icons/icon-near.svg",
762
+ label: "NEAR Protocol",
763
+ urlPrefix: "https://nearblocks.io/address/",
764
+ registerlink: "https://app.mynearwallet.com/create/?name={name}",
765
+ system: platform.PlatformSystem.web3,
766
+ },
767
+ ],
768
+ [
769
+ platform.Platform.stacks,
770
+ {
771
+ color: "#725DF6",
772
+ icon: "icons/icon-stacks.svg",
773
+ label: "Stacks",
774
+ urlPrefix: "https://explorer.hiro.so/address/",
775
+ system: platform.PlatformSystem.web3,
776
+ },
777
+ ],
778
+ [
779
+ platform.Platform.cosmos,
780
+ {
781
+ color: "#000000",
782
+ icon: "icons/icon-cosmos.svg",
783
+ label: "Cosmos",
784
+ urlPrefix: "https://www.mintscan.io/cosmos/account/",
785
+ system: platform.PlatformSystem.web3,
786
+ },
787
+ ],
788
+ [
789
+ platform.Platform.zeta,
790
+ {
791
+ color: "#005741",
792
+ icon: "icons/icon-zeta.svg",
793
+ label: "Zeta Name Service",
794
+ urlPrefix: "https://explorer.zetachain.com/address/",
795
+ registerlink: "https://space.id/tld/11/domains?query={name}",
796
+ system: platform.PlatformSystem.web3,
797
+ },
798
+ ],
799
+ [
800
+ platform.Platform.mode,
801
+ {
802
+ color: "#E5FD52",
803
+ icon: "icons/icon-mode.svg",
804
+ label: "Mode Name Service",
805
+ urlPrefix: "https://explorer.mode.network/address/",
806
+ registerlink: "https://space.id/tld/6/domains?query={name}",
807
+ system: platform.PlatformSystem.web3,
808
+ },
809
+ ],
810
+ [
811
+ platform.Platform.arbitrum,
812
+ {
813
+ color: "#2949d4",
814
+ icon: "icons/icon-arbitrum.svg",
815
+ label: ".arb Name Service",
816
+ urlPrefix: "https://arbiscan.io/address/",
817
+ registerlink: "https://space.id/tld/2/domains?query={name}",
818
+ system: platform.PlatformSystem.web3,
819
+ },
820
+ ],
821
+ [
822
+ platform.Platform.scroll,
823
+ {
824
+ color: "#b78544",
825
+ icon: "icons/icon-scroll.svg",
826
+ label: "Scroll",
827
+ urlPrefix: "https://scrollscan.com/address/",
828
+ system: platform.PlatformSystem.web3,
829
+ },
830
+ ],
831
+ [
832
+ platform.Platform.taiko,
833
+ {
834
+ color: "#E81899",
835
+ icon: "icons/icon-taiko.svg",
836
+ label: "DotTaiko Name Service",
837
+ urlPrefix: "https://taikoscan.io/address/",
838
+ registerlink: "https://space.id/tld/16/domains?query={name}",
839
+ system: platform.PlatformSystem.web3,
840
+ },
841
+ ],
842
+ [
843
+ platform.Platform.mint,
844
+ {
845
+ color: "#00A57C",
846
+ icon: "icons/icon-mint.svg",
847
+ label: "Mint Name Service",
848
+ urlPrefix: "https://explorer.mintchain.io/address/",
849
+ registerlink: "https://space.id/tld/18/domains?query={name}",
850
+ system: platform.PlatformSystem.web3,
851
+ },
852
+ ],
853
+ [
854
+ platform.Platform.zkfair,
855
+ {
856
+ color: "#D43F36",
857
+ icon: "icons/icon-zkfair.svg",
858
+ label: "zkFair",
859
+ urlPrefix: "https://scan.zkfair.io/address/",
860
+ registerlink: "https://space.id/tld/8/domains?query={name}",
861
+ system: platform.PlatformSystem.web3,
862
+ },
863
+ ],
864
+ [
865
+ platform.Platform.manta,
866
+ {
867
+ color: "#0091ff",
868
+ icon: "icons/icon-manta.svg",
869
+ label: "Manta Name Service",
870
+ urlPrefix: "https://pacific-explorer.manta.network/address/",
871
+ registerlink: "https://space.id/tld/3/domains?query={name}",
872
+ system: platform.PlatformSystem.web3,
873
+ },
874
+ ],
875
+ [
876
+ platform.Platform.lightlink,
877
+ {
878
+ color: "#00BFFF",
879
+ icon: "icons/icon-lightlink.svg",
880
+ label: "LightLink Name Service",
881
+ urlPrefix: "https://phoenix.lightlink.io/address/",
882
+ registerlink: "https://space.id/tld/9/domains?query={name}",
883
+ system: platform.PlatformSystem.web3,
884
+ },
885
+ ],
886
+ [
887
+ platform.Platform.merlin,
888
+ {
889
+ color: "#5A32A3",
890
+ icon: "icons/icon-merlin.svg",
891
+ label: "Merlin Name Service",
892
+ urlPrefix: "https://scan.merlinchain.io/address/",
893
+ registerlink: "https://space.id/tld/12/domains?query={name}",
894
+ system: platform.PlatformSystem.web3,
895
+ },
896
+ ],
897
+ [
898
+ platform.Platform.alienx,
899
+ {
900
+ color: "#D5F462",
901
+ icon: "icons/icon-alienx.svg",
902
+ label: "AlienX Name Service",
903
+ urlPrefix: "https://explorer.alienxchain.io/address/",
904
+ registerlink: "https://space.id/tld/17/domains?query={name}",
905
+ system: platform.PlatformSystem.web3,
906
+ },
907
+ ],
908
+ [
909
+ platform.Platform.edgeless,
910
+ {
911
+ color: "#a0eb67",
912
+ icon: "icons/icon-edgeless.svg",
913
+ label: "Edgeless",
914
+ urlPrefix: "https://explorer.edgeless.network/address/",
915
+ registerlink: "",
916
+ system: platform.PlatformSystem.web3,
917
+ },
918
+ ],
919
+ [
920
+ platform.Platform.tomo,
921
+ {
922
+ color: "#DE3A7E",
923
+ icon: "icons/icon-tomo.svg",
924
+ label: "Tomo Name Service",
925
+ registerlink: "https://space.id/tld/10/domains?query={name}",
926
+ system: platform.PlatformSystem.web3,
927
+ },
928
+ ],
929
+ [
930
+ platform.Platform.ailayer,
931
+ {
932
+ color: "#A283FF",
933
+ icon: "icons/icon-ailayer.svg",
934
+ label: "AILayer Name Service",
935
+ urlPrefix: "https://mainnet-explorer.ailayer.xyz/address/",
936
+ registerlink: "https://space.id/tld/19/domains?query={name}",
937
+ system: platform.PlatformSystem.web3,
938
+ },
939
+ ],
940
+ [
941
+ platform.Platform.philand,
942
+ {
943
+ color: "#8080F7",
944
+ icon: "icons/icon-phi.svg",
945
+ label: "Phi",
946
+ urlPrefix: "https://land.philand.xyz/",
947
+ system: platform.PlatformSystem.web3,
948
+ },
949
+ ],
950
+ [
951
+ platform.Platform.efp,
952
+ {
953
+ color: "#FFE067",
954
+ icon: "icons/icon-efp.svg",
955
+ label: "Ethereum Follow Protocol",
956
+ urlPrefix: "https://ethfollow.xyz/",
957
+ system: platform.PlatformSystem.web3,
958
+ },
959
+ ],
960
+ [
961
+ platform.Platform.gravity,
962
+ {
963
+ color: "#FFAC43",
964
+ icon: "icons/icon-gravity.svg",
965
+ label: "Gravity Name Service",
966
+ registerlink: "https://space.id/tld/23/domains?query={name}",
967
+ system: platform.PlatformSystem.web3,
968
+ },
969
+ ],
970
+ ]);
971
+ /**
972
+ * Get Platform data by key
973
+ * @param platform - Platform
974
+ * @returns Platform data or default
975
+ * @public
976
+ */
977
+ function getPlatformData(platform) {
978
+ return PLATFORM_DATA.get(platform) || DEFAULT_PLATFORM;
979
+ }
980
+
981
+ exports.DEFAULT_PLATFORM = DEFAULT_PLATFORM;
982
+ exports.PLATFORM_DATA = PLATFORM_DATA;
983
+ exports.getPlatformData = getPlatformData;