essential-eth 0.9.2-beta.7 โ†’ 0.9.2

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.
@@ -1 +1 @@
1
- export declare const version = "0.9.2-beta.7";
1
+ export declare const version = "0.9.2";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // Generated by genversion.
5
- exports.version = '0.9.2-beta.7';
5
+ exports.version = '0.9.2';
@@ -1 +1 @@
1
- export declare const version = "0.9.2-beta.7";
1
+ export declare const version = "0.9.2";
@@ -1 +1 @@
1
- export const version = '0.9.2-beta.7';
1
+ export const version = '0.9.2';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "essential-eth",
3
3
  "description": "Ultralight JS for Ethereum",
4
- "version": "0.9.2-beta.7",
4
+ "version": "0.9.2",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
7
7
  "type": "module",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "types": "./dist/esm/index.d.ts",
18
18
  "engines": {
19
- "node": ">=12"
19
+ "node": ">=14"
20
20
  },
21
21
  "files": [
22
22
  "dist/"
@@ -65,6 +65,7 @@
65
65
  "husky": "^7.0.4",
66
66
  "jest": "^27.5.1",
67
67
  "lint-staged": "^13.2.1",
68
+ "markdown-magic": "^2.6.1",
68
69
  "microbundle": "^0.15.1",
69
70
  "npm-run-all": "^4.1.5",
70
71
  "perf_hooks": "^0.0.1",
package/readme.md CHANGED
@@ -8,7 +8,7 @@
8
8
  ๐Ÿชถ Essential Eth ๐Ÿชถ
9
9
  </b>
10
10
  <br/>
11
- <i>An alternative for ethers & web3 that's 20x smaller</i>
11
+ <i>An alternative for ethers & web3 that's 10x smaller</i>
12
12
  <br/>
13
13
  </p>
14
14
 
@@ -40,7 +40,7 @@
40
40
  - ๐Ÿงช Strongly tested
41
41
  - ๐ŸŒฒ Tree-shaking and no side-effects
42
42
  - ๐Ÿ™Œ All common JS versions (CommonJS, ESM, & UMD)
43
- - โœ… Node 20, 18, 16, 14, & 12
43
+ - โœ… Node 20, 18, 16, & 14
44
44
  - โœ… Web
45
45
 
46
46
  <br/>
@@ -126,7 +126,7 @@ Browsers:
126
126
 
127
127
  ```html
128
128
  <!-- index.html -->
129
- <script src="https://unpkg.com/essential-eth@0.9.1"></script>
129
+ <script src="https://unpkg.com/essential-eth@0.9.2"></script>
130
130
  ```
131
131
 
132
132
  <!-- โ›”๏ธ AUTO-GENERATED-CONTENT:END (UNPKG_SCRIPT_TAG) -->
@@ -146,6 +146,8 @@ const { etherToWei } = require('essential-eth');
146
146
 
147
147
  #### [`arrayify`](https://eeth.dev/docs/api/modules#arrayify)
148
148
 
149
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+arrayify+}])
150
+
149
151
  ```typescript
150
152
  arrayify(value: number | BytesLike | Hexable, options: DataOptions): Uint8Array
151
153
  ```
@@ -178,6 +180,8 @@ arrayify('0x1', { hexPad: 'right' });
178
180
 
179
181
  #### [`computeAddress`](https://eeth.dev/docs/api/modules#computeaddress)
180
182
 
183
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+computeAddress+}])
184
+
181
185
  ```typescript
182
186
  computeAddress(key: string): string
183
187
  ```
@@ -209,6 +213,8 @@ computeAddress(
209
213
 
210
214
  #### [`computePublicKey`](https://eeth.dev/docs/api/modules#computepublickey)
211
215
 
216
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+computePublicKey+}])
217
+
212
218
  ```typescript
213
219
  computePublicKey(privKey: BytesLike): string
214
220
  ```
@@ -241,6 +247,8 @@ computePublicKey([
241
247
 
242
248
  #### [`concat`](https://eeth.dev/docs/api/modules#concat)
243
249
 
250
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+concat+}])
251
+
244
252
  ```typescript
245
253
  concat(arrayOfBytesLike: Array<BytesLikeWithNumber>): Uint8Array
246
254
  ```
@@ -263,6 +271,8 @@ concat([0, 1]);
263
271
 
264
272
  #### [`etherToGwei`](https://eeth.dev/docs/api/modules#ethertogwei)
265
273
 
274
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+etherToGwei+}])
275
+
266
276
  ```typescript
267
277
  etherToGwei(etherQuantity: string | number | TinyBig | Big): TinyBig
268
278
  ```
@@ -294,6 +304,8 @@ etherToGwei(1000).toNumber();
294
304
 
295
305
  #### [`etherToWei`](https://eeth.dev/docs/api/modules#ethertowei)
296
306
 
307
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+etherToWei+}])
308
+
297
309
  ```typescript
298
310
  etherToWei(etherQuantity: string | number | TinyBig | Big): TinyBig
299
311
  ```
@@ -325,6 +337,8 @@ etherToWei(1000).toNumber();
325
337
 
326
338
  #### [`gweiToEther`](https://eeth.dev/docs/api/modules#gweitoether)
327
339
 
340
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+gweiToEther+}])
341
+
328
342
  ```typescript
329
343
  gweiToEther(gweiQuantity: string | number | TinyBig | Big): TinyBig
330
344
  ```
@@ -356,6 +370,8 @@ gweiToEther(1000000000000).toNumber();
356
370
 
357
371
  #### [`hashMessage`](https://eeth.dev/docs/api/modules#hashmessage)
358
372
 
373
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+hashMessage+}])
374
+
359
375
  ```typescript
360
376
  hashMessage(message: string | Bytes): string
361
377
  ```
@@ -378,6 +394,8 @@ hashMessage('Hello World');
378
394
 
379
395
  #### [`hexConcat`](https://eeth.dev/docs/api/modules#hexconcat)
380
396
 
397
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+hexConcat+}])
398
+
381
399
  ```typescript
382
400
  hexConcat(items: Array<BytesLike>): string
383
401
  ```
@@ -400,6 +418,8 @@ hexConcat([[2, 4, 0, 1], 9, '0x2934', '0x3947']);
400
418
 
401
419
  #### [`hexDataLength`](https://eeth.dev/docs/api/modules#hexdatalength)
402
420
 
421
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+hexDataLength+}])
422
+
403
423
  ```typescript
404
424
  hexDataLength(data: BytesLike): undefined
405
425
  ```
@@ -427,6 +447,8 @@ hexDataLength('0x3925');
427
447
 
428
448
  #### [`hexDataSlice`](https://eeth.dev/docs/api/modules#hexdataslice)
429
449
 
450
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+hexDataSlice+}])
451
+
430
452
  ```typescript
431
453
  hexDataSlice(data: BytesLikeWithNumber, offset: number, endOffset: number): string
432
454
  ```
@@ -449,6 +471,8 @@ hexDataSlice([20, 6, 48], 0, 2);
449
471
 
450
472
  #### [`hexStripZeros`](https://eeth.dev/docs/api/modules#hexstripzeros)
451
473
 
474
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+hexStripZeros+}])
475
+
452
476
  ```typescript
453
477
  hexStripZeros(value: BytesLike): string
454
478
  ```
@@ -471,6 +495,8 @@ hexStripZeros([0, 0, 0, 48]);
471
495
 
472
496
  #### [`hexValue`](https://eeth.dev/docs/api/modules#hexvalue)
473
497
 
498
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+hexValue+}])
499
+
474
500
  ```typescript
475
501
  hexValue(value: number | bigint | BytesLike | Hexable): string
476
502
  ```
@@ -498,6 +524,8 @@ hexValue([9, 4, 19, 4]);
498
524
 
499
525
  #### [`hexZeroPad`](https://eeth.dev/docs/api/modules#hexzeropad)
500
526
 
527
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+hexZeroPad+}])
528
+
501
529
  ```typescript
502
530
  hexZeroPad(value: BytesLikeWithNumber, length: number): string
503
531
  ```
@@ -530,6 +558,8 @@ hexZeroPad('12345', 1);
530
558
 
531
559
  #### [`hexlify`](https://eeth.dev/docs/api/modules#hexlify)
532
560
 
561
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+hexlify+}])
562
+
533
563
  ```typescript
534
564
  hexlify(value: number | bigint | BytesLike | Hexable, options: DataOptions): string
535
565
  ```
@@ -557,6 +587,8 @@ hexlify(14);
557
587
 
558
588
  #### [`isAddress`](https://eeth.dev/docs/api/modules#isaddress)
559
589
 
590
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+isAddress+}])
591
+
560
592
  ```typescript
561
593
  isAddress(address: string): boolean
562
594
  ```
@@ -590,6 +622,8 @@ isAddress('vitalik.eth');
590
622
 
591
623
  #### [`isBytes`](https://eeth.dev/docs/api/modules#isbytes)
592
624
 
625
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+isBytes+}])
626
+
593
627
  ```typescript
594
628
  isBytes(value: any): value
595
629
  ```
@@ -622,6 +656,8 @@ isBytes(new Uint8Array(1));
622
656
 
623
657
  #### [`isBytesLike`](https://eeth.dev/docs/api/modules#isbyteslike)
624
658
 
659
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+isBytesLike+}])
660
+
625
661
  ```typescript
626
662
  isBytesLike(value: any): value
627
663
  ```
@@ -654,6 +690,8 @@ isBytesLike(new Uint8Array(1));
654
690
 
655
691
  #### [`isHexString`](https://eeth.dev/docs/api/modules#ishexstring)
656
692
 
693
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+isHexString+}])
694
+
657
695
  ```typescript
658
696
  isHexString(value: any, length: number): boolean
659
697
  ```
@@ -682,6 +720,8 @@ isHexString('0x4924', 4);
682
720
 
683
721
  #### [`jsonRpcProvider`](https://eeth.dev/docs/api/modules#jsonrpcprovider)
684
722
 
723
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+jsonRpcProvider+}])
724
+
685
725
  ```typescript
686
726
  jsonRpcProvider(rpcUrl: string): JsonRpcProvider
687
727
  ```
@@ -708,6 +748,8 @@ jsonRpcProvider()
708
748
 
709
749
  #### [`keccak256`](https://eeth.dev/docs/api/modules#keccak256)
710
750
 
751
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+keccak256+}])
752
+
711
753
  ```typescript
712
754
  keccak256(data: BytesLike): string
713
755
  ```
@@ -733,6 +775,8 @@ keccak256('0x123');
733
775
 
734
776
  #### [`pack`](https://eeth.dev/docs/api/modules#pack)
735
777
 
778
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+pack+}])
779
+
736
780
  ```typescript
737
781
  pack(types: Array<string>, values: Array<any>): string
738
782
  ```
@@ -757,6 +801,8 @@ pack(types, values);
757
801
 
758
802
  #### [`solidityKeccak256`](https://eeth.dev/docs/api/modules#soliditykeccak256)
759
803
 
804
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+solidityKeccak256+}])
805
+
760
806
  ```typescript
761
807
  solidityKeccak256(types: Array<string>, values: Array<any>): string
762
808
  ```
@@ -791,6 +837,8 @@ solidityKeccak256(types, values);
791
837
 
792
838
  #### [`splitSignature`](https://eeth.dev/docs/api/modules#splitsignature)
793
839
 
840
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+splitSignature+}])
841
+
794
842
  ```typescript
795
843
  splitSignature(signature: SignatureLike): Signature
796
844
  ```
@@ -822,6 +870,8 @@ splitSignature(signature);
822
870
 
823
871
  #### [`stripZeros`](https://eeth.dev/docs/api/modules#stripzeros)
824
872
 
873
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+stripZeros+}])
874
+
825
875
  ```typescript
826
876
  stripZeros(value: BytesLike): Uint8Array
827
877
  ```
@@ -845,6 +895,8 @@ stripZeros('0x00002834');
845
895
 
846
896
  #### [`tinyBig`](https://eeth.dev/docs/api/modules#tinybig)
847
897
 
898
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+tinyBig+}])
899
+
848
900
  ```typescript
849
901
  tinyBig(value: string | number | TinyBig | Big): TinyBig
850
902
  ```
@@ -867,6 +919,8 @@ tinyBig(10).times(3).toNumber();
867
919
 
868
920
  #### [`toChecksumAddress`](https://eeth.dev/docs/api/modules#tochecksumaddress)
869
921
 
922
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+toChecksumAddress+}])
923
+
870
924
  ```typescript
871
925
  toChecksumAddress(address: string): string
872
926
  ```
@@ -893,6 +947,8 @@ Similar to ["toChecksumAddress" in web3.js](https://web3js.readthedocs.io/en/v1.
893
947
 
894
948
  #### [`toUtf8Bytes`](https://eeth.dev/docs/api/modules#toutf8bytes)
895
949
 
950
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+toUtf8Bytes+}])
951
+
896
952
  ```typescript
897
953
  toUtf8Bytes(data: string): Uint8Array
898
954
  ```
@@ -918,6 +974,8 @@ toUtf8Bytes('ethereum');
918
974
 
919
975
  #### [`weiToEther`](https://eeth.dev/docs/api/modules#weitoether)
920
976
 
977
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+weiToEther+}])
978
+
921
979
  ```typescript
922
980
  weiToEther(weiQuantity: string | number | TinyBig | Big): TinyBig
923
981
  ```
@@ -949,6 +1007,8 @@ weiToEther(1000000000000000000000).toNumber();
949
1007
 
950
1008
  #### [`zeroPad`](https://eeth.dev/docs/api/modules#zeropad)
951
1009
 
1010
+ ![](https://deno.bundlejs.com/badge?q=essential-eth&treeshake=[{+zeroPad+}])
1011
+
952
1012
  ```typescript
953
1013
  zeroPad(value: BytesLike, length: number): Uint8Array
954
1014
  ```