@xylabs/eth-address 2.9.3 → 2.10.0

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 (59) hide show
  1. package/dist/EthAddress.d.mts +22 -0
  2. package/dist/{types/EthAddress.d.ts → EthAddress.d.ts} +5 -4
  3. package/dist/EthAddress.js +107 -0
  4. package/dist/EthAddress.js.map +1 -0
  5. package/dist/EthAddress.mjs +81 -0
  6. package/dist/EthAddress.mjs.map +1 -0
  7. package/dist/ellipsize.d.mts +3 -0
  8. package/dist/ellipsize.d.ts +3 -0
  9. package/dist/ellipsize.js +35 -0
  10. package/dist/ellipsize.js.map +1 -0
  11. package/dist/ellipsize.mjs +10 -0
  12. package/dist/ellipsize.mjs.map +1 -0
  13. package/dist/index.d.mts +4 -0
  14. package/dist/index.d.ts +4 -0
  15. package/dist/index.js +113 -0
  16. package/dist/index.js.map +1 -0
  17. package/dist/index.mjs +83 -0
  18. package/dist/index.mjs.map +1 -0
  19. package/dist/padHex.d.mts +3 -0
  20. package/dist/{types/padHex.d.ts → padHex.d.ts} +1 -1
  21. package/dist/padHex.js +42 -0
  22. package/dist/padHex.js.map +1 -0
  23. package/dist/padHex.mjs +17 -0
  24. package/dist/padHex.mjs.map +1 -0
  25. package/package.json +32 -18
  26. package/tsup.config.ts +14 -0
  27. package/dist/cjs/EthAddress.js +0 -60
  28. package/dist/cjs/EthAddress.js.map +0 -1
  29. package/dist/cjs/ellipsize.js +0 -10
  30. package/dist/cjs/ellipsize.js.map +0 -1
  31. package/dist/cjs/index.js +0 -7
  32. package/dist/cjs/index.js.map +0 -1
  33. package/dist/cjs/padHex.js +0 -17
  34. package/dist/cjs/padHex.js.map +0 -1
  35. package/dist/docs.json +0 -1086
  36. package/dist/esm/EthAddress.js +0 -56
  37. package/dist/esm/EthAddress.js.map +0 -1
  38. package/dist/esm/ellipsize.js +0 -6
  39. package/dist/esm/ellipsize.js.map +0 -1
  40. package/dist/esm/index.js +0 -4
  41. package/dist/esm/index.js.map +0 -1
  42. package/dist/esm/padHex.js +0 -14
  43. package/dist/esm/padHex.js.map +0 -1
  44. package/dist/types/EthAddress.d.ts.map +0 -1
  45. package/dist/types/ellipsize.d.ts +0 -2
  46. package/dist/types/ellipsize.d.ts.map +0 -1
  47. package/dist/types/index.d.ts +0 -4
  48. package/dist/types/index.d.ts.map +0 -1
  49. package/dist/types/padHex.d.ts.map +0 -1
  50. package/docs/assets/highlight.css +0 -50
  51. package/docs/assets/main.js +0 -58
  52. package/docs/assets/search.js +0 -1
  53. package/docs/assets/style.css +0 -1367
  54. package/docs/classes/EthAddress.html +0 -221
  55. package/docs/functions/ellipsize.html +0 -55
  56. package/docs/functions/isEthAddress.html +0 -56
  57. package/docs/functions/padHex.html +0 -55
  58. package/docs/index.html +0 -85
  59. package/docs/modules.html +0 -51
package/dist/docs.json DELETED
@@ -1,1086 +0,0 @@
1
- {
2
- "id": 0,
3
- "name": "@xylabs/eth-address",
4
- "variant": "project",
5
- "kind": 1,
6
- "flags": {},
7
- "children": [
8
- {
9
- "id": 10,
10
- "name": "EthAddress",
11
- "variant": "declaration",
12
- "kind": 128,
13
- "flags": {},
14
- "children": [
15
- {
16
- "id": 20,
17
- "name": "constructor",
18
- "variant": "declaration",
19
- "kind": 512,
20
- "flags": {
21
- "isPrivate": true
22
- },
23
- "sources": [
24
- {
25
- "fileName": "EthAddress.ts",
26
- "line": 16,
27
- "character": 2,
28
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L16"
29
- }
30
- ],
31
- "signatures": [
32
- {
33
- "id": 21,
34
- "name": "new EthAddress",
35
- "variant": "signature",
36
- "kind": 16384,
37
- "flags": {},
38
- "sources": [
39
- {
40
- "fileName": "EthAddress.ts",
41
- "line": 16,
42
- "character": 2,
43
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L16"
44
- }
45
- ],
46
- "parameters": [
47
- {
48
- "id": 22,
49
- "name": "address",
50
- "variant": "param",
51
- "kind": 32768,
52
- "flags": {},
53
- "type": {
54
- "type": "reference",
55
- "target": {
56
- "sourceFileName": "../../node_modules/@types/bn.js/index.d.ts",
57
- "qualifiedName": "BN"
58
- },
59
- "name": "BN",
60
- "package": "@types/bn.js"
61
- }
62
- }
63
- ],
64
- "type": {
65
- "type": "reference",
66
- "target": 10,
67
- "name": "EthAddress",
68
- "package": "@xylabs/eth-address"
69
- }
70
- }
71
- ]
72
- },
73
- {
74
- "id": 24,
75
- "name": "address",
76
- "variant": "declaration",
77
- "kind": 1024,
78
- "flags": {
79
- "isPrivate": true
80
- },
81
- "sources": [
82
- {
83
- "fileName": "EthAddress.ts",
84
- "line": 14,
85
- "character": 10,
86
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L14"
87
- }
88
- ],
89
- "type": {
90
- "type": "reference",
91
- "target": {
92
- "sourceFileName": "../../node_modules/@types/bn.js/index.d.ts",
93
- "qualifiedName": "BN"
94
- },
95
- "name": "BN",
96
- "package": "@types/bn.js"
97
- }
98
- },
99
- {
100
- "id": 23,
101
- "name": "type",
102
- "variant": "declaration",
103
- "kind": 1024,
104
- "flags": {
105
- "isPublic": true
106
- },
107
- "sources": [
108
- {
109
- "fileName": "EthAddress.ts",
110
- "line": 12,
111
- "character": 9,
112
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L12"
113
- }
114
- ],
115
- "type": {
116
- "type": "intrinsic",
117
- "name": "string"
118
- },
119
- "defaultValue": "EthAddress.type"
120
- },
121
- {
122
- "id": 11,
123
- "name": "type",
124
- "variant": "declaration",
125
- "kind": 1024,
126
- "flags": {
127
- "isStatic": true
128
- },
129
- "sources": [
130
- {
131
- "fileName": "EthAddress.ts",
132
- "line": 10,
133
- "character": 9,
134
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L10"
135
- }
136
- ],
137
- "type": {
138
- "type": "intrinsic",
139
- "name": "string"
140
- },
141
- "defaultValue": "'EthAddress'"
142
- },
143
- {
144
- "id": 25,
145
- "name": "equals",
146
- "variant": "declaration",
147
- "kind": 2048,
148
- "flags": {
149
- "isPublic": true
150
- },
151
- "sources": [
152
- {
153
- "fileName": "EthAddress.ts",
154
- "line": 33,
155
- "character": 9,
156
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L33"
157
- }
158
- ],
159
- "signatures": [
160
- {
161
- "id": 26,
162
- "name": "equals",
163
- "variant": "signature",
164
- "kind": 4096,
165
- "flags": {},
166
- "sources": [
167
- {
168
- "fileName": "EthAddress.ts",
169
- "line": 33,
170
- "character": 2,
171
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L33"
172
- }
173
- ],
174
- "parameters": [
175
- {
176
- "id": 27,
177
- "name": "address",
178
- "variant": "param",
179
- "kind": 32768,
180
- "flags": {
181
- "isOptional": true
182
- },
183
- "type": {
184
- "type": "union",
185
- "types": [
186
- {
187
- "type": "literal",
188
- "value": null
189
- },
190
- {
191
- "type": "intrinsic",
192
- "name": "string"
193
- },
194
- {
195
- "type": "reference",
196
- "target": 10,
197
- "name": "EthAddress",
198
- "package": "@xylabs/eth-address"
199
- }
200
- ]
201
- }
202
- }
203
- ],
204
- "type": {
205
- "type": "intrinsic",
206
- "name": "boolean"
207
- }
208
- }
209
- ]
210
- },
211
- {
212
- "id": 28,
213
- "name": "toBigNumber",
214
- "variant": "declaration",
215
- "kind": 2048,
216
- "flags": {
217
- "isPublic": true
218
- },
219
- "sources": [
220
- {
221
- "fileName": "EthAddress.ts",
222
- "line": 46,
223
- "character": 9,
224
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L46"
225
- }
226
- ],
227
- "signatures": [
228
- {
229
- "id": 29,
230
- "name": "toBigNumber",
231
- "variant": "signature",
232
- "kind": 4096,
233
- "flags": {},
234
- "sources": [
235
- {
236
- "fileName": "EthAddress.ts",
237
- "line": 46,
238
- "character": 2,
239
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L46"
240
- }
241
- ],
242
- "type": {
243
- "type": "reference",
244
- "target": {
245
- "sourceFileName": "../../node_modules/@types/bn.js/index.d.ts",
246
- "qualifiedName": "BN"
247
- },
248
- "name": "BN",
249
- "package": "@types/bn.js"
250
- }
251
- }
252
- ]
253
- },
254
- {
255
- "id": 30,
256
- "name": "toHex",
257
- "variant": "declaration",
258
- "kind": 2048,
259
- "flags": {
260
- "isPublic": true
261
- },
262
- "sources": [
263
- {
264
- "fileName": "EthAddress.ts",
265
- "line": 50,
266
- "character": 9,
267
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L50"
268
- }
269
- ],
270
- "signatures": [
271
- {
272
- "id": 31,
273
- "name": "toHex",
274
- "variant": "signature",
275
- "kind": 4096,
276
- "flags": {},
277
- "sources": [
278
- {
279
- "fileName": "EthAddress.ts",
280
- "line": 50,
281
- "character": 2,
282
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L50"
283
- }
284
- ],
285
- "type": {
286
- "type": "intrinsic",
287
- "name": "string"
288
- }
289
- }
290
- ]
291
- },
292
- {
293
- "id": 32,
294
- "name": "toJSON",
295
- "variant": "declaration",
296
- "kind": 2048,
297
- "flags": {
298
- "isPublic": true
299
- },
300
- "sources": [
301
- {
302
- "fileName": "EthAddress.ts",
303
- "line": 54,
304
- "character": 9,
305
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L54"
306
- }
307
- ],
308
- "signatures": [
309
- {
310
- "id": 33,
311
- "name": "toJSON",
312
- "variant": "signature",
313
- "kind": 4096,
314
- "flags": {},
315
- "sources": [
316
- {
317
- "fileName": "EthAddress.ts",
318
- "line": 54,
319
- "character": 2,
320
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L54"
321
- }
322
- ],
323
- "type": {
324
- "type": "intrinsic",
325
- "name": "string"
326
- }
327
- }
328
- ]
329
- },
330
- {
331
- "id": 34,
332
- "name": "toLowerCaseString",
333
- "variant": "declaration",
334
- "kind": 2048,
335
- "flags": {
336
- "isPublic": true
337
- },
338
- "sources": [
339
- {
340
- "fileName": "EthAddress.ts",
341
- "line": 58,
342
- "character": 9,
343
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L58"
344
- }
345
- ],
346
- "signatures": [
347
- {
348
- "id": 35,
349
- "name": "toLowerCaseString",
350
- "variant": "signature",
351
- "kind": 4096,
352
- "flags": {},
353
- "sources": [
354
- {
355
- "fileName": "EthAddress.ts",
356
- "line": 58,
357
- "character": 2,
358
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L58"
359
- }
360
- ],
361
- "type": {
362
- "type": "intrinsic",
363
- "name": "string"
364
- }
365
- }
366
- ]
367
- },
368
- {
369
- "id": 36,
370
- "name": "toShortString",
371
- "variant": "declaration",
372
- "kind": 2048,
373
- "flags": {
374
- "isPublic": true
375
- },
376
- "sources": [
377
- {
378
- "fileName": "EthAddress.ts",
379
- "line": 62,
380
- "character": 9,
381
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L62"
382
- }
383
- ],
384
- "signatures": [
385
- {
386
- "id": 37,
387
- "name": "toShortString",
388
- "variant": "signature",
389
- "kind": 4096,
390
- "flags": {},
391
- "sources": [
392
- {
393
- "fileName": "EthAddress.ts",
394
- "line": 62,
395
- "character": 2,
396
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L62"
397
- }
398
- ],
399
- "parameters": [
400
- {
401
- "id": 38,
402
- "name": "length",
403
- "variant": "param",
404
- "kind": 32768,
405
- "flags": {},
406
- "type": {
407
- "type": "intrinsic",
408
- "name": "number"
409
- },
410
- "defaultValue": "2"
411
- }
412
- ],
413
- "type": {
414
- "type": "intrinsic",
415
- "name": "string"
416
- }
417
- }
418
- ]
419
- },
420
- {
421
- "id": 39,
422
- "name": "toString",
423
- "variant": "declaration",
424
- "kind": 2048,
425
- "flags": {
426
- "isPublic": true
427
- },
428
- "sources": [
429
- {
430
- "fileName": "EthAddress.ts",
431
- "line": 66,
432
- "character": 9,
433
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L66"
434
- }
435
- ],
436
- "signatures": [
437
- {
438
- "id": 40,
439
- "name": "toString",
440
- "variant": "signature",
441
- "kind": 4096,
442
- "flags": {},
443
- "sources": [
444
- {
445
- "fileName": "EthAddress.ts",
446
- "line": 66,
447
- "character": 2,
448
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L66"
449
- }
450
- ],
451
- "type": {
452
- "type": "intrinsic",
453
- "name": "string"
454
- }
455
- }
456
- ]
457
- },
458
- {
459
- "id": 12,
460
- "name": "fromString",
461
- "variant": "declaration",
462
- "kind": 2048,
463
- "flags": {
464
- "isStatic": true
465
- },
466
- "sources": [
467
- {
468
- "fileName": "EthAddress.ts",
469
- "line": 20,
470
- "character": 9,
471
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L20"
472
- }
473
- ],
474
- "signatures": [
475
- {
476
- "id": 13,
477
- "name": "fromString",
478
- "variant": "signature",
479
- "kind": 4096,
480
- "flags": {},
481
- "sources": [
482
- {
483
- "fileName": "EthAddress.ts",
484
- "line": 20,
485
- "character": 2,
486
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L20"
487
- }
488
- ],
489
- "parameters": [
490
- {
491
- "id": 14,
492
- "name": "value",
493
- "variant": "param",
494
- "kind": 32768,
495
- "flags": {
496
- "isOptional": true
497
- },
498
- "type": {
499
- "type": "intrinsic",
500
- "name": "string"
501
- }
502
- },
503
- {
504
- "id": 15,
505
- "name": "base",
506
- "variant": "param",
507
- "kind": 32768,
508
- "flags": {},
509
- "type": {
510
- "type": "intrinsic",
511
- "name": "number"
512
- },
513
- "defaultValue": "16"
514
- }
515
- ],
516
- "type": {
517
- "type": "union",
518
- "types": [
519
- {
520
- "type": "intrinsic",
521
- "name": "undefined"
522
- },
523
- {
524
- "type": "reference",
525
- "target": 10,
526
- "name": "EthAddress",
527
- "package": "@xylabs/eth-address"
528
- }
529
- ]
530
- }
531
- }
532
- ]
533
- },
534
- {
535
- "id": 16,
536
- "name": "parse",
537
- "variant": "declaration",
538
- "kind": 2048,
539
- "flags": {
540
- "isStatic": true
541
- },
542
- "sources": [
543
- {
544
- "fileName": "EthAddress.ts",
545
- "line": 27,
546
- "character": 9,
547
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L27"
548
- }
549
- ],
550
- "signatures": [
551
- {
552
- "id": 17,
553
- "name": "parse",
554
- "variant": "signature",
555
- "kind": 4096,
556
- "flags": {},
557
- "sources": [
558
- {
559
- "fileName": "EthAddress.ts",
560
- "line": 27,
561
- "character": 2,
562
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L27"
563
- }
564
- ],
565
- "parameters": [
566
- {
567
- "id": 18,
568
- "name": "value",
569
- "variant": "param",
570
- "kind": 32768,
571
- "flags": {},
572
- "type": {
573
- "type": "intrinsic",
574
- "name": "unknown"
575
- }
576
- },
577
- {
578
- "id": 19,
579
- "name": "base",
580
- "variant": "param",
581
- "kind": 32768,
582
- "flags": {
583
- "isOptional": true
584
- },
585
- "type": {
586
- "type": "intrinsic",
587
- "name": "number"
588
- }
589
- }
590
- ],
591
- "type": {
592
- "type": "union",
593
- "types": [
594
- {
595
- "type": "intrinsic",
596
- "name": "undefined"
597
- },
598
- {
599
- "type": "reference",
600
- "target": 10,
601
- "name": "EthAddress",
602
- "package": "@xylabs/eth-address"
603
- }
604
- ]
605
- }
606
- }
607
- ]
608
- }
609
- ],
610
- "groups": [
611
- {
612
- "title": "Constructors",
613
- "children": [
614
- 20
615
- ]
616
- },
617
- {
618
- "title": "Properties",
619
- "children": [
620
- 24,
621
- 23,
622
- 11
623
- ]
624
- },
625
- {
626
- "title": "Methods",
627
- "children": [
628
- 25,
629
- 28,
630
- 30,
631
- 32,
632
- 34,
633
- 36,
634
- 39,
635
- 12,
636
- 16
637
- ]
638
- }
639
- ],
640
- "sources": [
641
- {
642
- "fileName": "EthAddress.ts",
643
- "line": 9,
644
- "character": 13,
645
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L9"
646
- }
647
- ]
648
- },
649
- {
650
- "id": 1,
651
- "name": "ellipsize",
652
- "variant": "declaration",
653
- "kind": 64,
654
- "flags": {},
655
- "sources": [
656
- {
657
- "fileName": "ellipsize.ts",
658
- "line": 1,
659
- "character": 13,
660
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/ellipsize.ts#L1"
661
- }
662
- ],
663
- "signatures": [
664
- {
665
- "id": 2,
666
- "name": "ellipsize",
667
- "variant": "signature",
668
- "kind": 4096,
669
- "flags": {},
670
- "sources": [
671
- {
672
- "fileName": "ellipsize.ts",
673
- "line": 1,
674
- "character": 25,
675
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/ellipsize.ts#L1"
676
- }
677
- ],
678
- "parameters": [
679
- {
680
- "id": 3,
681
- "name": "value",
682
- "variant": "param",
683
- "kind": 32768,
684
- "flags": {},
685
- "type": {
686
- "type": "intrinsic",
687
- "name": "string"
688
- }
689
- },
690
- {
691
- "id": 4,
692
- "name": "length",
693
- "variant": "param",
694
- "kind": 32768,
695
- "flags": {},
696
- "type": {
697
- "type": "intrinsic",
698
- "name": "number"
699
- },
700
- "defaultValue": "2"
701
- }
702
- ],
703
- "type": {
704
- "type": "intrinsic",
705
- "name": "string"
706
- }
707
- }
708
- ]
709
- },
710
- {
711
- "id": 5,
712
- "name": "isEthAddress",
713
- "variant": "declaration",
714
- "kind": 64,
715
- "flags": {},
716
- "sources": [
717
- {
718
- "fileName": "EthAddress.ts",
719
- "line": 7,
720
- "character": 13,
721
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L7"
722
- }
723
- ],
724
- "signatures": [
725
- {
726
- "id": 6,
727
- "name": "isEthAddress",
728
- "variant": "signature",
729
- "kind": 4096,
730
- "flags": {},
731
- "sources": [
732
- {
733
- "fileName": "EthAddress.ts",
734
- "line": 7,
735
- "character": 28,
736
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L7"
737
- }
738
- ],
739
- "parameters": [
740
- {
741
- "id": 7,
742
- "name": "obj",
743
- "variant": "param",
744
- "kind": 32768,
745
- "flags": {},
746
- "type": {
747
- "type": "reflection",
748
- "declaration": {
749
- "id": 8,
750
- "name": "__type",
751
- "variant": "declaration",
752
- "kind": 65536,
753
- "flags": {},
754
- "children": [
755
- {
756
- "id": 9,
757
- "name": "type",
758
- "variant": "declaration",
759
- "kind": 1024,
760
- "flags": {},
761
- "sources": [
762
- {
763
- "fileName": "EthAddress.ts",
764
- "line": 7,
765
- "character": 36,
766
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L7"
767
- }
768
- ],
769
- "type": {
770
- "type": "intrinsic",
771
- "name": "string"
772
- }
773
- }
774
- ],
775
- "groups": [
776
- {
777
- "title": "Properties",
778
- "children": [
779
- 9
780
- ]
781
- }
782
- ],
783
- "sources": [
784
- {
785
- "fileName": "EthAddress.ts",
786
- "line": 7,
787
- "character": 34,
788
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/EthAddress.ts#L7"
789
- }
790
- ]
791
- }
792
- }
793
- }
794
- ],
795
- "type": {
796
- "type": "intrinsic",
797
- "name": "boolean"
798
- }
799
- }
800
- ]
801
- },
802
- {
803
- "id": 41,
804
- "name": "padHex",
805
- "variant": "declaration",
806
- "kind": 64,
807
- "flags": {},
808
- "sources": [
809
- {
810
- "fileName": "padHex.ts",
811
- "line": 1,
812
- "character": 6,
813
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/padHex.ts#L1"
814
- }
815
- ],
816
- "signatures": [
817
- {
818
- "id": 42,
819
- "name": "padHex",
820
- "variant": "signature",
821
- "kind": 4096,
822
- "flags": {},
823
- "sources": [
824
- {
825
- "fileName": "padHex.ts",
826
- "line": 1,
827
- "character": 15,
828
- "url": "https://github.com/xylabs/sdk-js/blob/de632cf/packages/eth-address/src/padHex.ts#L1"
829
- }
830
- ],
831
- "parameters": [
832
- {
833
- "id": 43,
834
- "name": "hex",
835
- "variant": "param",
836
- "kind": 32768,
837
- "flags": {},
838
- "type": {
839
- "type": "intrinsic",
840
- "name": "string"
841
- }
842
- },
843
- {
844
- "id": 44,
845
- "name": "byteCount",
846
- "variant": "param",
847
- "kind": 32768,
848
- "flags": {
849
- "isOptional": true
850
- },
851
- "type": {
852
- "type": "intrinsic",
853
- "name": "number"
854
- }
855
- }
856
- ],
857
- "type": {
858
- "type": "intrinsic",
859
- "name": "string"
860
- }
861
- }
862
- ]
863
- }
864
- ],
865
- "groups": [
866
- {
867
- "title": "Classes",
868
- "children": [
869
- 10
870
- ]
871
- },
872
- {
873
- "title": "Functions",
874
- "children": [
875
- 1,
876
- 5,
877
- 41
878
- ]
879
- }
880
- ],
881
- "packageName": "@xylabs/eth-address",
882
- "readme": [
883
- {
884
- "kind": "text",
885
- "text": "[![logo][]](https://xylabs.com)\n\n# @xylabs/sdk-js\n\n[![main-build][]][main-build-link]\n[![beta-build][]][beta-build-link]\n[![npm-badge][]][npm-link]\n[![bch-badge][]][bch-link]\n[![codacy-badge][]][codacy-link]\n[![codeclimate-badge][]][codeclimate-link]\n[![snyk-badge][]][snyk-link]\n\n## Table of Contents\n\n- [Description](#description)\n- [Install](#install)\n- [Scripts](#scripts)\n- [Maintainers](#maintainers)\n- [License](#license)\n- [Credits](#credits)\n\n## Description\n\nSDK for base code for Typescript and Javascript Libraries.\n\n## Install\n\nUsing npm:\n\n"
886
- },
887
- {
888
- "kind": "code",
889
- "text": "```sh\nnpm i --save @xylabs/sdk-js\n```"
890
- },
891
- {
892
- "kind": "text",
893
- "text": "\n\nUsing yarn:\n\n"
894
- },
895
- {
896
- "kind": "code",
897
- "text": "```sh\nyarn add @xylabs/sdk-js\n```"
898
- },
899
- {
900
- "kind": "text",
901
- "text": "\n\n## Scripts\n\nSee [ts-scripts](https://github.com/xylabs/ts-scripts/blob/main/README.md)\nfor list of shared scripts.\n\n## Maintainers\n\n- [Arie Trouw](https://github.com/arietrouw) (<https://arietrouw.com>)\n\n## License\n\nSee the [LICENSE](LICENSE) file for license details\n\n## Credits\n\n[Made with 🔥 and ❄️ by XY Labs](https://xylabs.com)\n\n[logo]: https://cdn.xy.company/img/brand/XYPersistentCompany_Logo_Icon_Colored.svg\n[main-build]: https://github.com/xylabs/sdk-js/actions/workflows/build-main.yml/badge.svg\n[main-build-link]: https://github.com/xylabs/sdk-js/actions/workflows/build-main.yml\n[beta-build]: https://github.com/xylabs/sdk-js/actions/workflows/build-beta.yml/badge.svg\n[beta-build-link]: https://github.com/xylabs/sdk-js/actions/workflows/build-beta.yml\n[npm-badge]: https://img.shields.io/npm/v/@xylabs/sdk-js.svg\n[npm-link]: https://www.npmjs.com/package/@xylabs/sdk-js\n[bch-badge]: https://bettercodehub.com/edge/badge/xylabs/sdk-js?branch=main\n[bch-link]: https://bettercodehub.com/results/xylabs/sdk-js\n[codacy-badge]: https://app.codacy.com/project/badge/Grade/c8e15e14f37741c18cfb47ac7245c698\n[codacy-link]: https://www.codacy.com/gh/xylabs/sdk-js/dashboard?utm_source=github.com&utm_medium=referral&utm_content=xylabs/sdk-js&utm_campaign=Badge_Grade\n[codeclimate-badge]: https://api.codeclimate.com/v1/badges/c5eb068f806f0b047ea7/maintainability\n[codeclimate-link]: https://codeclimate.com/github/xylabs/sdk-js/maintainability\n[snyk-badge]: https://snyk.io/test/github/xylabs/sdk-js/badge.svg?targetFile=package.json\n[snyk-link]: https://snyk.io/test/github/xylabs/sdk-js?targetFile=package.json"
902
- }
903
- ],
904
- "symbolIdMap": {
905
- "0": {
906
- "sourceFileName": "src/index.ts",
907
- "qualifiedName": ""
908
- },
909
- "1": {
910
- "sourceFileName": "src/ellipsize.ts",
911
- "qualifiedName": "ellipsize"
912
- },
913
- "2": {
914
- "sourceFileName": "src/ellipsize.ts",
915
- "qualifiedName": "ellipsize"
916
- },
917
- "3": {
918
- "sourceFileName": "src/ellipsize.ts",
919
- "qualifiedName": "value"
920
- },
921
- "4": {
922
- "sourceFileName": "src/ellipsize.ts",
923
- "qualifiedName": "length"
924
- },
925
- "5": {
926
- "sourceFileName": "src/EthAddress.ts",
927
- "qualifiedName": "isEthAddress"
928
- },
929
- "6": {
930
- "sourceFileName": "src/EthAddress.ts",
931
- "qualifiedName": "isEthAddress"
932
- },
933
- "7": {
934
- "sourceFileName": "src/EthAddress.ts",
935
- "qualifiedName": "obj"
936
- },
937
- "8": {
938
- "sourceFileName": "src/EthAddress.ts",
939
- "qualifiedName": "__type"
940
- },
941
- "9": {
942
- "sourceFileName": "src/EthAddress.ts",
943
- "qualifiedName": "__type.type"
944
- },
945
- "10": {
946
- "sourceFileName": "src/EthAddress.ts",
947
- "qualifiedName": "EthAddress"
948
- },
949
- "11": {
950
- "sourceFileName": "src/EthAddress.ts",
951
- "qualifiedName": "EthAddress.type"
952
- },
953
- "12": {
954
- "sourceFileName": "src/EthAddress.ts",
955
- "qualifiedName": "EthAddress.fromString"
956
- },
957
- "13": {
958
- "sourceFileName": "src/EthAddress.ts",
959
- "qualifiedName": "EthAddress.fromString"
960
- },
961
- "14": {
962
- "sourceFileName": "src/EthAddress.ts",
963
- "qualifiedName": "value"
964
- },
965
- "15": {
966
- "sourceFileName": "src/EthAddress.ts",
967
- "qualifiedName": "base"
968
- },
969
- "16": {
970
- "sourceFileName": "src/EthAddress.ts",
971
- "qualifiedName": "EthAddress.parse"
972
- },
973
- "17": {
974
- "sourceFileName": "src/EthAddress.ts",
975
- "qualifiedName": "EthAddress.parse"
976
- },
977
- "18": {
978
- "sourceFileName": "src/EthAddress.ts",
979
- "qualifiedName": "value"
980
- },
981
- "19": {
982
- "sourceFileName": "src/EthAddress.ts",
983
- "qualifiedName": "base"
984
- },
985
- "20": {
986
- "sourceFileName": "src/EthAddress.ts",
987
- "qualifiedName": "EthAddress.__constructor"
988
- },
989
- "21": {
990
- "sourceFileName": "src/EthAddress.ts",
991
- "qualifiedName": "EthAddress"
992
- },
993
- "22": {
994
- "sourceFileName": "src/EthAddress.ts",
995
- "qualifiedName": "address"
996
- },
997
- "23": {
998
- "sourceFileName": "src/EthAddress.ts",
999
- "qualifiedName": "EthAddress.type"
1000
- },
1001
- "24": {
1002
- "sourceFileName": "src/EthAddress.ts",
1003
- "qualifiedName": "EthAddress.address"
1004
- },
1005
- "25": {
1006
- "sourceFileName": "src/EthAddress.ts",
1007
- "qualifiedName": "EthAddress.equals"
1008
- },
1009
- "26": {
1010
- "sourceFileName": "src/EthAddress.ts",
1011
- "qualifiedName": "EthAddress.equals"
1012
- },
1013
- "27": {
1014
- "sourceFileName": "src/EthAddress.ts",
1015
- "qualifiedName": "address"
1016
- },
1017
- "28": {
1018
- "sourceFileName": "src/EthAddress.ts",
1019
- "qualifiedName": "EthAddress.toBigNumber"
1020
- },
1021
- "29": {
1022
- "sourceFileName": "src/EthAddress.ts",
1023
- "qualifiedName": "EthAddress.toBigNumber"
1024
- },
1025
- "30": {
1026
- "sourceFileName": "src/EthAddress.ts",
1027
- "qualifiedName": "EthAddress.toHex"
1028
- },
1029
- "31": {
1030
- "sourceFileName": "src/EthAddress.ts",
1031
- "qualifiedName": "EthAddress.toHex"
1032
- },
1033
- "32": {
1034
- "sourceFileName": "src/EthAddress.ts",
1035
- "qualifiedName": "EthAddress.toJSON"
1036
- },
1037
- "33": {
1038
- "sourceFileName": "src/EthAddress.ts",
1039
- "qualifiedName": "EthAddress.toJSON"
1040
- },
1041
- "34": {
1042
- "sourceFileName": "src/EthAddress.ts",
1043
- "qualifiedName": "EthAddress.toLowerCaseString"
1044
- },
1045
- "35": {
1046
- "sourceFileName": "src/EthAddress.ts",
1047
- "qualifiedName": "EthAddress.toLowerCaseString"
1048
- },
1049
- "36": {
1050
- "sourceFileName": "src/EthAddress.ts",
1051
- "qualifiedName": "EthAddress.toShortString"
1052
- },
1053
- "37": {
1054
- "sourceFileName": "src/EthAddress.ts",
1055
- "qualifiedName": "EthAddress.toShortString"
1056
- },
1057
- "38": {
1058
- "sourceFileName": "src/EthAddress.ts",
1059
- "qualifiedName": "length"
1060
- },
1061
- "39": {
1062
- "sourceFileName": "src/EthAddress.ts",
1063
- "qualifiedName": "EthAddress.toString"
1064
- },
1065
- "40": {
1066
- "sourceFileName": "src/EthAddress.ts",
1067
- "qualifiedName": "EthAddress.toString"
1068
- },
1069
- "41": {
1070
- "sourceFileName": "src/padHex.ts",
1071
- "qualifiedName": "padHex"
1072
- },
1073
- "42": {
1074
- "sourceFileName": "src/padHex.ts",
1075
- "qualifiedName": "padHex"
1076
- },
1077
- "43": {
1078
- "sourceFileName": "src/padHex.ts",
1079
- "qualifiedName": "hex"
1080
- },
1081
- "44": {
1082
- "sourceFileName": "src/padHex.ts",
1083
- "qualifiedName": "byteCount"
1084
- }
1085
- }
1086
- }