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