essential-eth 0.4.9-beta.4 → 0.4.11

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 (49) hide show
  1. package/lib/cjs/classes/Contract.js +3 -8
  2. package/lib/cjs/classes/utils/fetchers.d.ts +3 -3
  3. package/lib/cjs/classes/utils/fetchers.js +21 -3
  4. package/lib/cjs/index.d.ts +3 -2
  5. package/lib/cjs/index.js +5 -26
  6. package/lib/cjs/providers/JsonRpcProvider.d.ts +36 -6
  7. package/lib/cjs/providers/JsonRpcProvider.js +56 -28
  8. package/lib/cjs/providers/test/rpc-urls.d.ts +10 -0
  9. package/lib/cjs/providers/test/rpc-urls.js +13 -0
  10. package/lib/cjs/providers/utils/chains-info.d.ts +23 -1
  11. package/lib/cjs/providers/utils/chains-info.js +69 -3
  12. package/lib/cjs/shared/tiny-big/tiny-big.d.ts +6 -0
  13. package/lib/cjs/shared/tiny-big/tiny-big.js +6 -0
  14. package/lib/cjs/types/Block.types.d.ts +1 -0
  15. package/lib/cjs/utils/ether-to-gwei.d.ts +26 -0
  16. package/lib/cjs/utils/ether-to-gwei.js +34 -0
  17. package/lib/cjs/utils/ether-to-wei.d.ts +4 -2
  18. package/lib/cjs/utils/ether-to-wei.js +4 -2
  19. package/lib/cjs/utils/gwei-to-ether.d.ts +26 -0
  20. package/lib/cjs/utils/gwei-to-ether.js +34 -0
  21. package/lib/cjs/utils/is-address.d.ts +19 -0
  22. package/lib/cjs/utils/is-address.js +19 -0
  23. package/lib/cjs/utils/to-checksum-address.d.ts +2 -2
  24. package/lib/cjs/utils/to-checksum-address.js +2 -2
  25. package/lib/cjs/utils/wei-to-ether.d.ts +12 -12
  26. package/lib/cjs/utils/wei-to-ether.js +11 -11
  27. package/lib/esm/classes/Contract.js +3 -8
  28. package/lib/esm/classes/utils/fetchers.d.ts +3 -3
  29. package/lib/esm/classes/utils/fetchers.js +21 -3
  30. package/lib/esm/index.d.ts +3 -2
  31. package/lib/esm/index.js +3 -2
  32. package/lib/esm/providers/JsonRpcProvider.d.ts +7 -5
  33. package/lib/esm/providers/JsonRpcProvider.js +27 -27
  34. package/lib/esm/providers/test/rpc-urls.d.ts +10 -0
  35. package/lib/esm/providers/test/rpc-urls.js +10 -0
  36. package/lib/esm/providers/utils/chains-info.d.ts +23 -1
  37. package/lib/esm/providers/utils/chains-info.js +69 -3
  38. package/lib/esm/types/Block.types.d.ts +1 -0
  39. package/lib/esm/utils/ether-to-gwei.d.ts +3 -0
  40. package/lib/esm/utils/ether-to-gwei.js +7 -0
  41. package/lib/esm/utils/gwei-to-ether.d.ts +3 -0
  42. package/lib/esm/utils/gwei-to-ether.js +7 -0
  43. package/lib/esm/utils/wei-to-ether.d.ts +1 -1
  44. package/package.json +8 -12
  45. package/readme.md +112 -9
  46. package/lib/cjs/utils/index.d.ts +0 -5
  47. package/lib/cjs/utils/index.js +0 -11
  48. package/lib/esm/utils/index.d.ts +0 -5
  49. package/lib/esm/utils/index.js +0 -5
@@ -45,6 +45,7 @@ declare const _default: {
45
45
  "51": string[];
46
46
  "52": string[];
47
47
  "53": string[];
48
+ "54": string[];
48
49
  "55": string[];
49
50
  "56": string[];
50
51
  "57": string[];
@@ -98,9 +99,11 @@ declare const _default: {
98
99
  "127": string[];
99
100
  "128": string[];
100
101
  "137": string[];
102
+ "141": string[];
101
103
  "142": string[];
102
104
  "162": string[];
103
105
  "163": string[];
106
+ "168": string[];
104
107
  "170": string[];
105
108
  "172": string[];
106
109
  "186": string[];
@@ -109,7 +112,10 @@ declare const _default: {
109
112
  "199": string[];
110
113
  "200": string[];
111
114
  "211": string[];
115
+ "218": string[];
112
116
  "222": string[];
117
+ "225": string[];
118
+ "226": string[];
113
119
  "246": string[];
114
120
  "250": string[];
115
121
  "256": string[];
@@ -117,6 +123,7 @@ declare const _default: {
117
123
  "262": string[];
118
124
  "269": string[];
119
125
  "288": string[];
126
+ "300": string[];
120
127
  "321": string[];
121
128
  "322": string[];
122
129
  "333": string[];
@@ -145,6 +152,7 @@ declare const _default: {
145
152
  "721": string[];
146
153
  "777": string[];
147
154
  "787": string[];
155
+ "788": string[];
148
156
  "803": string[];
149
157
  "820": string[];
150
158
  "821": string[];
@@ -162,6 +170,7 @@ declare const _default: {
162
170
  "999": string[];
163
171
  "1001": string[];
164
172
  "1007": string[];
173
+ "1008": string[];
165
174
  "1010": string[];
166
175
  "1012": string[];
167
176
  "1022": string[];
@@ -180,14 +189,19 @@ declare const _default: {
180
189
  "1280": string[];
181
190
  "1284": string[];
182
191
  "1285": string[];
192
+ "1286": string[];
183
193
  "1287": string[];
184
194
  "1288": string[];
195
+ "1337": string[];
185
196
  "1618": string[];
186
197
  "1620": string[];
187
198
  "1657": string[];
199
+ "1688": string[];
188
200
  "1856": string[];
189
201
  "1898": string[];
202
+ "1984": string[];
190
203
  "1987": string[];
204
+ "2001": string[];
191
205
  "2020": string[];
192
206
  "2021": string[];
193
207
  "2022": string[];
@@ -195,7 +209,10 @@ declare const _default: {
195
209
  "2100": string[];
196
210
  "2101": string[];
197
211
  "2213": string[];
212
+ "2221": string[];
198
213
  "2559": string[];
214
+ "3000": string[];
215
+ "3001": string[];
199
216
  "3331": string[];
200
217
  "3333": string[];
201
218
  "3334": string[];
@@ -205,12 +222,14 @@ declare const _default: {
205
222
  "3966": string[];
206
223
  "3967": string[];
207
224
  "4002": string[];
225
+ "4102": string[];
208
226
  "4689": string[];
209
227
  "4690": string[];
210
228
  "4918": string[];
211
229
  "5197": string[];
212
230
  "5315": string[];
213
231
  "5700": string[];
232
+ "5777": string[];
214
233
  "5851": string[];
215
234
  "5869": string[];
216
235
  "6626": string[];
@@ -243,6 +262,7 @@ declare const _default: {
243
262
  "16000": string[];
244
263
  "16001": string[];
245
264
  "19845": string[];
265
+ "21337": string[];
246
266
  "21816": string[];
247
267
  "24484": string[];
248
268
  "24734": string[];
@@ -259,6 +279,7 @@ declare const _default: {
259
279
  "43113": string[];
260
280
  "43114": string[];
261
281
  "44787": string[];
282
+ "45000": string[];
262
283
  "47805": string[];
263
284
  "49797": string[];
264
285
  "53935": string[];
@@ -300,10 +321,10 @@ declare const _default: {
300
321
  "110006": string[];
301
322
  "110007": string[];
302
323
  "110008": string[];
324
+ "200101": string[];
303
325
  "200625": string[];
304
326
  "201018": string[];
305
327
  "201030": string[];
306
- "210309": string[];
307
328
  "210425": string[];
308
329
  "234666": string[];
309
330
  "246529": string[];
@@ -319,6 +340,7 @@ declare const _default: {
319
340
  "1313114": string[];
320
341
  "1313500": string[];
321
342
  "1337702": string[];
343
+ "2203181": string[];
322
344
  "7762959": string[];
323
345
  "11155111": string[];
324
346
  "13371337": string[];
@@ -141,6 +141,9 @@ export default {
141
141
  "53": [
142
142
  "tcet"
143
143
  ],
144
+ "54": [
145
+ "OP"
146
+ ],
144
147
  "55": [
145
148
  "ZYX"
146
149
  ],
@@ -300,6 +303,9 @@ export default {
300
303
  "137": [
301
304
  "MATIC"
302
305
  ],
306
+ "141": [
307
+ "OPtest"
308
+ ],
303
309
  "142": [
304
310
  "dax"
305
311
  ],
@@ -309,6 +315,9 @@ export default {
309
315
  "163": [
310
316
  "pht"
311
317
  ],
318
+ "168": [
319
+ "aioz"
320
+ ],
312
321
  "170": [
313
322
  "hoosmartchain"
314
323
  ],
@@ -333,9 +342,18 @@ export default {
333
342
  "211": [
334
343
  "EDI"
335
344
  ],
345
+ "218": [
346
+ "SO1-old"
347
+ ],
336
348
  "222": [
337
349
  "ASK"
338
350
  ],
351
+ "225": [
352
+ "LA"
353
+ ],
354
+ "226": [
355
+ "TLA"
356
+ ],
339
357
  "246": [
340
358
  "ewt"
341
359
  ],
@@ -357,6 +375,9 @@ export default {
357
375
  "288": [
358
376
  "Boba"
359
377
  ],
378
+ "300": [
379
+ "ogc"
380
+ ],
360
381
  "321": [
361
382
  "kcs"
362
383
  ],
@@ -441,6 +462,9 @@ export default {
441
462
  "787": [
442
463
  "aca"
443
464
  ],
465
+ "788": [
466
+ "taero"
467
+ ],
444
468
  "803": [
445
469
  "haic"
446
470
  ],
@@ -492,6 +516,9 @@ export default {
492
516
  "1007": [
493
517
  "tnew"
494
518
  ],
519
+ "1008": [
520
+ "eun"
521
+ ],
495
522
  "1010": [
496
523
  "EVC"
497
524
  ],
@@ -546,12 +573,18 @@ export default {
546
573
  "1285": [
547
574
  "mriver"
548
575
  ],
576
+ "1286": [
577
+ "mrock-old"
578
+ ],
549
579
  "1287": [
550
580
  "mbase"
551
581
  ],
552
582
  "1288": [
553
583
  "mrock"
554
584
  ],
585
+ "1337": [
586
+ "cennz-old"
587
+ ],
555
588
  "1618": [
556
589
  "cate"
557
590
  ],
@@ -561,15 +594,24 @@ export default {
561
594
  "1657": [
562
595
  "bta"
563
596
  ],
597
+ "1688": [
598
+ "LUDAN"
599
+ ],
564
600
  "1856": [
565
601
  "tsf"
566
602
  ],
567
603
  "1898": [
568
604
  "boya"
569
605
  ],
606
+ "1984": [
607
+ "euntest"
608
+ ],
570
609
  "1987": [
571
610
  "egem"
572
611
  ],
612
+ "2001": [
613
+ "milkAda"
614
+ ],
573
615
  "2020": [
574
616
  "420"
575
617
  ],
@@ -591,9 +633,18 @@ export default {
591
633
  "2213": [
592
634
  "evanesco"
593
635
  ],
636
+ "2221": [
637
+ "kava"
638
+ ],
594
639
  "2559": [
595
640
  "ktoc"
596
641
  ],
642
+ "3000": [
643
+ "cennz-r"
644
+ ],
645
+ "3001": [
646
+ "cennz-n"
647
+ ],
597
648
  "3331": [
598
649
  "zcrbeach"
599
650
  ],
@@ -621,6 +672,9 @@ export default {
621
672
  "4002": [
622
673
  "tftm"
623
674
  ],
675
+ "4102": [
676
+ "aioz-testnet"
677
+ ],
624
678
  "4689": [
625
679
  "iotex-mainnet"
626
680
  ],
@@ -639,6 +693,9 @@ export default {
639
693
  "5700": [
640
694
  "tsys"
641
695
  ],
696
+ "5777": [
697
+ "dgcc"
698
+ ],
642
699
  "5851": [
643
700
  "Ontology Testnet"
644
701
  ],
@@ -735,6 +792,9 @@ export default {
735
792
  "19845": [
736
793
  "btcix"
737
794
  ],
795
+ "21337": [
796
+ "cennz-a"
797
+ ],
738
798
  "21816": [
739
799
  "oml"
740
800
  ],
@@ -783,6 +843,9 @@ export default {
783
843
  "44787": [
784
844
  "ALFA"
785
845
  ],
846
+ "45000": [
847
+ "autobahn"
848
+ ],
786
849
  "47805": [
787
850
  "REI"
788
851
  ],
@@ -906,6 +969,9 @@ export default {
906
969
  "110008": [
907
970
  "qkc-d-s7"
908
971
  ],
972
+ "200101": [
973
+ "milkTAda"
974
+ ],
909
975
  "200625": [
910
976
  "aka"
911
977
  ],
@@ -915,9 +981,6 @@ export default {
915
981
  "201030": [
916
982
  "alayadev"
917
983
  ],
918
- "210309": [
919
- "platondev"
920
- ],
921
984
  "210425": [
922
985
  "platon"
923
986
  ],
@@ -963,6 +1026,9 @@ export default {
963
1026
  "1337702": [
964
1027
  "kintsugi"
965
1028
  ],
1029
+ "2203181": [
1030
+ "platondev"
1031
+ ],
966
1032
  "7762959": [
967
1033
  "music"
968
1034
  ],
@@ -45,3 +45,4 @@ export interface RPCBlock {
45
45
  transactionsRoot: string;
46
46
  uncles: unknown[];
47
47
  }
48
+ export declare type BlockTag = 'latest' | 'earliest' | 'pending' | number | string;
@@ -0,0 +1,3 @@
1
+ import Big from 'big.js';
2
+ import { TinyBig } from '../shared/tiny-big/tiny-big';
3
+ export declare function etherToGwei(etherQuantity: string | number | TinyBig | Big): TinyBig;
@@ -0,0 +1,7 @@
1
+ import { tinyBig } from '../shared/tiny-big/tiny-big';
2
+ import { validateType } from '../shared/validate-type';
3
+ export function etherToGwei(etherQuantity) {
4
+ validateType(etherQuantity, ['string', 'number', 'object']);
5
+ const result = tinyBig(etherQuantity).times('1000000000');
6
+ return tinyBig(result);
7
+ }
@@ -0,0 +1,3 @@
1
+ import Big from 'big.js';
2
+ import { TinyBig } from './../shared/tiny-big/tiny-big';
3
+ export declare function gweiToEther(gweiQuantity: string | number | TinyBig | Big): TinyBig;
@@ -0,0 +1,7 @@
1
+ import { tinyBig } from '../shared/tiny-big/tiny-big';
2
+ import { validateType } from '../shared/validate-type';
3
+ export function gweiToEther(gweiQuantity) {
4
+ validateType(gweiQuantity, ['string', 'number', 'object']);
5
+ const result = tinyBig(gweiQuantity).div('1000000000');
6
+ return tinyBig(result);
7
+ }
@@ -1,3 +1,3 @@
1
1
  import Big from 'big.js';
2
- import { TinyBig } from './../shared/tiny-big/tiny-big';
2
+ import { TinyBig } from '../shared/tiny-big/tiny-big';
3
3
  export declare function weiToEther(weiQuantity: string | number | TinyBig | Big): TinyBig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "essential-eth",
3
3
  "description": "Ultralight JS library for Ethereum utilities",
4
- "version": "0.4.9-beta.4",
4
+ "version": "0.4.11",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
7
7
  "main": "./lib/cjs/index.js",
@@ -22,11 +22,9 @@
22
22
  "tsc:esm": "tsc -p tsconfig.json",
23
23
  "tsc:cjs": "tsc -p tsconfig-cjs.json",
24
24
  "build": "rm -rf lib && npm run compile",
25
- "prepublishOnly": "npm run build && npm run build:website && npm run build:website:new-version",
25
+ "prepublishOnly": "npm run build",
26
26
  "jest": "jest",
27
27
  "build:chains-info": "npx ts-node scripts/fetch-chains-info.ts # used in getNetwork()",
28
- "build:website": "sh scripts/build-website.sh",
29
- "build:website:new-version": "typedoc --options typedoc/options-new-version.js",
30
28
  "pre-commit": "sh scripts/pre-commit.sh"
31
29
  },
32
30
  "devDependencies": {
@@ -38,9 +36,8 @@
38
36
  "@types/jest-dev-server": "^5.0.0",
39
37
  "@types/node": "^16.10.1",
40
38
  "@types/prettier": "^2.4.4",
41
- "@types/supertest": "^2.0.11",
42
- "@typescript-eslint/eslint-plugin": "^5.17.0",
43
- "@typescript-eslint/parser": "^5.17.0",
39
+ "@typescript-eslint/eslint-plugin": "^5.18.0",
40
+ "@typescript-eslint/parser": "^5.18.0",
44
41
  "body-parser": "^1.19.0",
45
42
  "dotenv": "^16.0.0",
46
43
  "eslint": "^8.12.0",
@@ -50,15 +47,14 @@
50
47
  "husky": "^4.3.0",
51
48
  "jest": "^27.5.1",
52
49
  "jest-dev-server": "^6.0.3",
53
- "just-omit": "^1.2.0",
50
+ "just-omit": "^2.0.1",
54
51
  "lint-staged": "^12.3.7",
55
52
  "npm-run-all": "^4.1.5",
56
- "prettier": "^2.6.1",
53
+ "prettier": "^2.6.2",
57
54
  "prettier-plugin-organize-imports": "^2.3.4",
58
- "supertest": "^6.1.6",
59
55
  "ts-jest": "^27.1.4",
60
56
  "ts-node": "^10.2.1",
61
- "typedoc": "^0.22.12",
57
+ "typedoc": "^0.22.13",
62
58
  "typescript": "^4.6.3",
63
59
  "web3": "^1.7.1"
64
60
  },
@@ -70,7 +66,7 @@
70
66
  },
71
67
  "husky": {
72
68
  "hooks": {
73
- "pre-commit": "lint-staged && run-p pre-commit test build:website build:chains-info"
69
+ "pre-commit": "lint-staged && run-p pre-commit test build:chains-info"
74
70
  }
75
71
  },
76
72
  "lint-staged": {
package/readme.md CHANGED
@@ -1,18 +1,18 @@
1
1
  <p align="center">
2
- <a><img src="https://blog.ethereum.org/img/2018/08/grants_eth_logo.png" title="Logo" height="400"/></a>
2
+ <a><img src="https://user-images.githubusercontent.com/3408480/161474132-ae95d289-2298-46f1-b48d-9c02d88f7e38.png" title="Logo" height="400" /></a>
3
3
  </p>
4
4
  <p align="center">
5
5
  <b>
6
6
  Essential Eth
7
7
  </b>
8
- <br>
9
- <i>Ultralight Ethereum utilities for JS and TS</i>
10
- <br>
8
+ <br/>
9
+ <i>A replacement for ethers & web3 that's 50x smaller</i>
10
+ <br/>
11
11
  </p>
12
12
 
13
13
  ---
14
14
 
15
- <br>
15
+ <br/>
16
16
 
17
17
  ## Why you should replace Ethers.js and web3
18
18
 
@@ -26,7 +26,7 @@
26
26
 
27
27
  ---
28
28
 
29
- <br>
29
+ <br/>
30
30
 
31
31
  - ⚡️ A replacement for `web3` and `ethers`
32
32
  - 🏎 [The TINIEST code size possible](https://bundlephobia.com/package/essential-eth)
@@ -126,6 +126,56 @@ weiToEther('1000000000000000000').toNumber();
126
126
 
127
127
  <br/>
128
128
 
129
+ #### `gweiToEther`
130
+
131
+ ```typescript
132
+ gweiToEther(gweiQuantity: string | number | TinyBig | Big): TinyBig
133
+ ```
134
+
135
+ <details>
136
+ <summary>View Example</summary>
137
+
138
+ ```typescript
139
+ import { gweiToEther } from 'essential-eth';
140
+
141
+ gweiToEther(1000000000).toString();
142
+ // "1"
143
+
144
+ gweiToEther(1000000000).toNumber();
145
+ // 1
146
+ gweiToEther('1000000000').toNumber();
147
+ // 1
148
+ ```
149
+
150
+ </details>
151
+
152
+ <br/>
153
+
154
+ #### `etherToGwei`
155
+
156
+ ```typescript
157
+ etherToGwei(etherQuantity: string | number | TinyBig | Big): TinyBig
158
+ ```
159
+
160
+ <details>
161
+ <summary>View Example</summary>
162
+
163
+ ```typescript
164
+ import { etherToGwei } from 'essential-eth';
165
+
166
+ etherToGwei(0.000000001).toString();
167
+ // "1"
168
+
169
+ etherToGwei(0.000000001).toNumber();
170
+ // 1
171
+ etherToGwei('0.000000001').toNumber();
172
+ // 1
173
+ ```
174
+
175
+ </details>
176
+
177
+ <br/>
178
+
129
179
  #### `toChecksumAddress`
130
180
 
131
181
  ```typescript
@@ -188,12 +238,65 @@ const essentialEth = new JsonRpcProvider(
188
238
  const essentialEth = new JsonRpcProvider();
189
239
  ```
190
240
 
241
+ #### `getGasPrice`
242
+
243
+ Returns the current gas price in gwei
244
+
245
+ ```typescript
246
+ // Same as ethers.providers.getGasPrice
247
+ getGasPrice(): Promise<TinyBig>
248
+ ```
249
+
250
+ <details>
251
+ <summary>View Example</summary>
252
+
253
+ ```typescript
254
+ import { JsonRpcProvider } from 'essential-eth';
255
+
256
+ const provider = new JsonRpcProvider('https://free-eth-node.com/api/eth');
257
+ provider.getGasPrice().toNumber();
258
+ /*
259
+ 39695942769
260
+ */
261
+ ```
262
+
263
+ </details>
264
+
265
+ <br/>
266
+
267
+ #### `getBalance`
268
+
269
+ Returns the balance of an address at a given block
270
+
271
+ ```typescript
272
+ // Same API as ethers.providers.getBalance
273
+ // Same API as web3.eth.getBalance
274
+ getBalance(address: string, blockTag?: BlockTag): Promise<TinyBig>
275
+ ```
276
+
277
+ <details>
278
+ <summary>View Example</summary>
279
+
280
+ ```typescript
281
+ import { JsonRpcProvider } from 'essential-eth';
282
+
283
+ const provider = new JsonRpcProvider();
284
+ await provider
285
+ .getBalance('0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8')
286
+ .then((balance) => console.log(balance.toString()));
287
+ // "28798127851528138"
288
+ ```
289
+
290
+ </details>
291
+
292
+ <br/>
293
+
191
294
  #### `getNetwork`
192
295
 
193
- Returns a [Network](src/types/Network.types.ts)
296
+ Returns a Network
194
297
 
195
298
  ```typescript
196
- // Same API as ethers getNetwork
299
+ // Same API as ethers.providers.getNetwork
197
300
  getNetwork(): Promise<Network>
198
301
  ```
199
302
 
@@ -224,7 +327,7 @@ xdaiProvider.getNetwork();
224
327
 
225
328
  #### `getBlock`
226
329
 
227
- Returns a [Block](src/types/Block.types.ts)
330
+ Returns a Block
228
331
 
229
332
  ```typescript
230
333
  // Same API as web3.eth.getBlock
@@ -1,5 +0,0 @@
1
- import { etherToWei } from './ether-to-wei';
2
- import { isAddress } from './is-address';
3
- import { toChecksumAddress } from './to-checksum-address';
4
- import { weiToEther } from './wei-to-ether';
5
- export { etherToWei, isAddress, toChecksumAddress, weiToEther };
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.weiToEther = exports.toChecksumAddress = exports.isAddress = exports.etherToWei = void 0;
4
- const ether_to_wei_1 = require("./ether-to-wei");
5
- Object.defineProperty(exports, "etherToWei", { enumerable: true, get: function () { return ether_to_wei_1.etherToWei; } });
6
- const is_address_1 = require("./is-address");
7
- Object.defineProperty(exports, "isAddress", { enumerable: true, get: function () { return is_address_1.isAddress; } });
8
- const to_checksum_address_1 = require("./to-checksum-address");
9
- Object.defineProperty(exports, "toChecksumAddress", { enumerable: true, get: function () { return to_checksum_address_1.toChecksumAddress; } });
10
- const wei_to_ether_1 = require("./wei-to-ether");
11
- Object.defineProperty(exports, "weiToEther", { enumerable: true, get: function () { return wei_to_ether_1.weiToEther; } });
@@ -1,5 +0,0 @@
1
- import { etherToWei } from './ether-to-wei';
2
- import { isAddress } from './is-address';
3
- import { toChecksumAddress } from './to-checksum-address';
4
- import { weiToEther } from './wei-to-ether';
5
- export { etherToWei, isAddress, toChecksumAddress, weiToEther };
@@ -1,5 +0,0 @@
1
- import { etherToWei } from './ether-to-wei';
2
- import { isAddress } from './is-address';
3
- import { toChecksumAddress } from './to-checksum-address';
4
- import { weiToEther } from './wei-to-ether';
5
- export { etherToWei, isAddress, toChecksumAddress, weiToEther };