essential-eth 0.5.12 → 0.5.13-next.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.
Files changed (208) hide show
  1. package/dist/cjs/classes/Contract.d.ts +11 -0
  2. package/{lib → dist}/cjs/classes/Contract.js +0 -0
  3. package/{lib/esm → dist/cjs}/classes/test/Contract/crv-abi.d.ts +2 -2
  4. package/{lib → dist}/cjs/classes/test/Contract/crv-abi.js +0 -0
  5. package/{lib/esm → dist/cjs}/classes/test/Contract/ens-abi.d.ts +2 -2
  6. package/{lib → dist}/cjs/classes/test/Contract/ens-abi.js +0 -0
  7. package/{lib/esm → dist/cjs}/classes/test/Contract/fei-abi.d.ts +2 -2
  8. package/{lib → dist}/cjs/classes/test/Contract/fei-abi.js +0 -0
  9. package/{lib/esm → dist/cjs}/classes/test/Contract/foo-abi.d.ts +2 -2
  10. package/{lib → dist}/cjs/classes/test/Contract/foo-abi.js +0 -0
  11. package/{lib/esm → dist/cjs}/classes/test/Contract/uniswap-abi.d.ts +2 -2
  12. package/{lib → dist}/cjs/classes/test/Contract/uniswap-abi.js +0 -0
  13. package/dist/cjs/classes/utils/clean-block.d.ts +3 -0
  14. package/{lib → dist}/cjs/classes/utils/clean-block.js +0 -0
  15. package/dist/cjs/classes/utils/clean-log.d.ts +2 -0
  16. package/{lib → dist}/cjs/classes/utils/clean-log.js +0 -0
  17. package/dist/cjs/classes/utils/clean-transaction-receipt.d.ts +2 -0
  18. package/{lib → dist}/cjs/classes/utils/clean-transaction-receipt.js +0 -0
  19. package/dist/cjs/classes/utils/clean-transaction.d.ts +2 -0
  20. package/{lib → dist}/cjs/classes/utils/clean-transaction.js +0 -0
  21. package/{lib → dist}/cjs/classes/utils/encode-decode-transaction.d.ts +4 -16
  22. package/{lib → dist}/cjs/classes/utils/encode-decode-transaction.js +0 -0
  23. package/dist/cjs/classes/utils/fetchers.d.ts +9 -0
  24. package/{lib → dist}/cjs/classes/utils/fetchers.js +0 -0
  25. package/dist/cjs/classes/utils/hex-to-decimal.d.ts +1 -0
  26. package/{lib → dist}/cjs/classes/utils/hex-to-decimal.js +0 -0
  27. package/{lib → dist}/cjs/classes/utils/prepare-transaction.d.ts +2 -6
  28. package/{lib → dist}/cjs/classes/utils/prepare-transaction.js +0 -0
  29. package/{lib/esm → dist/cjs}/index.d.ts +25 -25
  30. package/{lib → dist}/cjs/index.js +0 -0
  31. package/dist/cjs/index.umd.js +2 -0
  32. package/dist/cjs/index.umd.js.map +1 -0
  33. package/{lib/esm → dist/cjs}/logger/logger.d.ts +11 -11
  34. package/{lib → dist}/cjs/logger/logger.js +0 -0
  35. package/dist/cjs/logger/package-version.d.ts +1 -0
  36. package/{lib → dist}/cjs/logger/package-version.js +1 -1
  37. package/dist/cjs/providers/BaseProvider.d.ts +24 -0
  38. package/{lib → dist}/cjs/providers/BaseProvider.js +0 -0
  39. package/{lib → dist}/cjs/providers/FallthroughProvider.d.ts +11 -24
  40. package/{lib → dist}/cjs/providers/FallthroughProvider.js +0 -0
  41. package/dist/cjs/providers/JsonRpcProvider.d.ts +7 -0
  42. package/{lib → dist}/cjs/providers/JsonRpcProvider.js +0 -0
  43. package/{lib/esm → dist/cjs}/providers/test/rpc-urls.d.ts +11 -11
  44. package/{lib → dist}/cjs/providers/test/rpc-urls.js +0 -0
  45. package/{lib/esm → dist/cjs}/providers/utils/chains-info.d.ts +467 -467
  46. package/{lib → dist}/cjs/providers/utils/chains-info.js +0 -0
  47. package/dist/cjs/shared/tiny-big/helpers.d.ts +1 -0
  48. package/{lib → dist}/cjs/shared/tiny-big/helpers.js +0 -0
  49. package/dist/cjs/shared/tiny-big/tiny-big.d.ts +10 -0
  50. package/{lib → dist}/cjs/shared/tiny-big/tiny-big.js +0 -0
  51. package/{lib/esm → dist/cjs}/shared/validate-type.d.ts +3 -3
  52. package/{lib → dist}/cjs/shared/validate-type.js +0 -0
  53. package/{lib → dist}/cjs/types/Block.types.d.ts +40 -41
  54. package/{lib → dist}/cjs/types/Block.types.js +0 -0
  55. package/{lib/esm → dist/cjs}/types/Contract.types.d.ts +24 -24
  56. package/{lib → dist}/cjs/types/Contract.types.js +0 -0
  57. package/{lib → dist}/cjs/types/Filter.types.d.ts +12 -16
  58. package/{lib → dist}/cjs/types/Filter.types.js +0 -0
  59. package/{lib → dist}/cjs/types/Network.types.d.ts +5 -8
  60. package/{lib → dist}/cjs/types/Network.types.js +0 -0
  61. package/{lib → dist}/cjs/types/Transaction.types.d.ts +113 -123
  62. package/{lib → dist}/cjs/types/Transaction.types.js +0 -0
  63. package/dist/cjs/utils/bytes.d.ts +40 -0
  64. package/{lib → dist}/cjs/utils/bytes.js +0 -0
  65. package/dist/cjs/utils/compute-address.d.ts +1 -0
  66. package/{lib → dist}/cjs/utils/compute-address.js +0 -0
  67. package/dist/cjs/utils/compute-public-key.d.ts +2 -0
  68. package/{lib → dist}/cjs/utils/compute-public-key.js +0 -0
  69. package/dist/cjs/utils/ether-to-gwei.d.ts +3 -0
  70. package/{lib → dist}/cjs/utils/ether-to-gwei.js +0 -0
  71. package/dist/cjs/utils/ether-to-wei.d.ts +3 -0
  72. package/{lib → dist}/cjs/utils/ether-to-wei.js +0 -0
  73. package/dist/cjs/utils/gwei-to-ether.d.ts +3 -0
  74. package/{lib → dist}/cjs/utils/gwei-to-ether.js +0 -0
  75. package/dist/cjs/utils/hash-message.d.ts +2 -0
  76. package/{lib → dist}/cjs/utils/hash-message.js +0 -0
  77. package/dist/cjs/utils/is-address.d.ts +1 -0
  78. package/{lib → dist}/cjs/utils/is-address.js +0 -0
  79. package/dist/cjs/utils/keccak256.d.ts +2 -0
  80. package/{lib → dist}/cjs/utils/keccak256.js +0 -0
  81. package/dist/cjs/utils/solidity-keccak256.d.ts +2 -0
  82. package/{lib → dist}/cjs/utils/solidity-keccak256.js +0 -0
  83. package/dist/cjs/utils/split-signature.d.ts +2 -0
  84. package/{lib → dist}/cjs/utils/split-signature.js +0 -0
  85. package/dist/cjs/utils/to-checksum-address.d.ts +1 -0
  86. package/{lib → dist}/cjs/utils/to-checksum-address.js +0 -0
  87. package/dist/cjs/utils/to-utf8-bytes.d.ts +1 -0
  88. package/{lib → dist}/cjs/utils/to-utf8-bytes.js +0 -0
  89. package/dist/cjs/utils/wei-to-ether.d.ts +3 -0
  90. package/{lib → dist}/cjs/utils/wei-to-ether.js +0 -0
  91. package/{lib → dist}/esm/classes/Contract.d.ts +0 -0
  92. package/{lib → dist}/esm/classes/Contract.js +0 -0
  93. package/{lib/cjs → dist/esm}/classes/test/Contract/crv-abi.d.ts +0 -0
  94. package/{lib → dist}/esm/classes/test/Contract/crv-abi.js +0 -0
  95. package/{lib/cjs → dist/esm}/classes/test/Contract/ens-abi.d.ts +0 -0
  96. package/{lib → dist}/esm/classes/test/Contract/ens-abi.js +0 -0
  97. package/{lib/cjs → dist/esm}/classes/test/Contract/fei-abi.d.ts +0 -0
  98. package/{lib → dist}/esm/classes/test/Contract/fei-abi.js +0 -0
  99. package/{lib/cjs → dist/esm}/classes/test/Contract/foo-abi.d.ts +0 -0
  100. package/{lib → dist}/esm/classes/test/Contract/foo-abi.js +0 -0
  101. package/{lib/cjs → dist/esm}/classes/test/Contract/uniswap-abi.d.ts +0 -0
  102. package/{lib → dist}/esm/classes/test/Contract/uniswap-abi.js +0 -0
  103. package/{lib → dist}/esm/classes/utils/clean-block.d.ts +0 -0
  104. package/{lib → dist}/esm/classes/utils/clean-block.js +0 -0
  105. package/{lib → dist}/esm/classes/utils/clean-log.d.ts +0 -0
  106. package/{lib → dist}/esm/classes/utils/clean-log.js +0 -0
  107. package/{lib → dist}/esm/classes/utils/clean-transaction-receipt.d.ts +0 -0
  108. package/{lib → dist}/esm/classes/utils/clean-transaction-receipt.js +0 -0
  109. package/{lib → dist}/esm/classes/utils/clean-transaction.d.ts +0 -0
  110. package/{lib → dist}/esm/classes/utils/clean-transaction.js +0 -0
  111. package/{lib → dist}/esm/classes/utils/encode-decode-transaction.d.ts +0 -0
  112. package/{lib → dist}/esm/classes/utils/encode-decode-transaction.js +0 -0
  113. package/{lib → dist}/esm/classes/utils/fetchers.d.ts +0 -0
  114. package/{lib → dist}/esm/classes/utils/fetchers.js +0 -0
  115. package/{lib → dist}/esm/classes/utils/hex-to-decimal.d.ts +0 -0
  116. package/{lib → dist}/esm/classes/utils/hex-to-decimal.js +0 -0
  117. package/{lib → dist}/esm/classes/utils/prepare-transaction.d.ts +0 -0
  118. package/{lib → dist}/esm/classes/utils/prepare-transaction.js +0 -0
  119. package/{lib/cjs → dist/esm}/index.d.ts +0 -0
  120. package/{lib → dist}/esm/index.js +0 -0
  121. package/{lib/cjs → dist/esm}/logger/logger.d.ts +0 -0
  122. package/{lib → dist}/esm/logger/logger.js +0 -0
  123. package/dist/esm/logger/package-version.d.ts +1 -0
  124. package/dist/esm/logger/package-version.js +1 -0
  125. package/{lib → dist}/esm/providers/BaseProvider.d.ts +0 -0
  126. package/{lib → dist}/esm/providers/BaseProvider.js +0 -0
  127. package/{lib → dist}/esm/providers/FallthroughProvider.d.ts +0 -0
  128. package/{lib → dist}/esm/providers/FallthroughProvider.js +0 -0
  129. package/{lib → dist}/esm/providers/JsonRpcProvider.d.ts +0 -0
  130. package/{lib → dist}/esm/providers/JsonRpcProvider.js +0 -0
  131. package/{lib/cjs → dist/esm}/providers/test/rpc-urls.d.ts +0 -0
  132. package/{lib → dist}/esm/providers/test/rpc-urls.js +0 -0
  133. package/{lib/cjs → dist/esm}/providers/utils/chains-info.d.ts +0 -0
  134. package/{lib → dist}/esm/providers/utils/chains-info.js +0 -0
  135. package/{lib → dist}/esm/shared/tiny-big/helpers.d.ts +0 -0
  136. package/{lib → dist}/esm/shared/tiny-big/helpers.js +0 -0
  137. package/{lib → dist}/esm/shared/tiny-big/tiny-big.d.ts +0 -0
  138. package/{lib → dist}/esm/shared/tiny-big/tiny-big.js +0 -0
  139. package/{lib/cjs → dist/esm}/shared/validate-type.d.ts +0 -0
  140. package/{lib → dist}/esm/shared/validate-type.js +0 -0
  141. package/{lib → dist}/esm/types/Block.types.d.ts +0 -0
  142. package/{lib → dist}/esm/types/Block.types.js +0 -0
  143. package/{lib/cjs → dist/esm}/types/Contract.types.d.ts +0 -0
  144. package/{lib → dist}/esm/types/Contract.types.js +0 -0
  145. package/{lib → dist}/esm/types/Filter.types.d.ts +0 -0
  146. package/{lib → dist}/esm/types/Filter.types.js +0 -0
  147. package/{lib → dist}/esm/types/Network.types.d.ts +0 -0
  148. package/{lib → dist}/esm/types/Network.types.js +0 -0
  149. package/{lib → dist}/esm/types/Transaction.types.d.ts +0 -0
  150. package/{lib → dist}/esm/types/Transaction.types.js +0 -0
  151. package/{lib → dist}/esm/utils/bytes.d.ts +0 -0
  152. package/{lib → dist}/esm/utils/bytes.js +0 -0
  153. package/{lib → dist}/esm/utils/compute-address.d.ts +0 -0
  154. package/{lib → dist}/esm/utils/compute-address.js +0 -0
  155. package/{lib → dist}/esm/utils/compute-public-key.d.ts +0 -0
  156. package/{lib → dist}/esm/utils/compute-public-key.js +0 -0
  157. package/{lib → dist}/esm/utils/ether-to-gwei.d.ts +0 -0
  158. package/{lib → dist}/esm/utils/ether-to-gwei.js +0 -0
  159. package/{lib → dist}/esm/utils/ether-to-wei.d.ts +0 -0
  160. package/{lib → dist}/esm/utils/ether-to-wei.js +0 -0
  161. package/{lib → dist}/esm/utils/gwei-to-ether.d.ts +0 -0
  162. package/{lib → dist}/esm/utils/gwei-to-ether.js +0 -0
  163. package/{lib → dist}/esm/utils/hash-message.d.ts +0 -0
  164. package/{lib → dist}/esm/utils/hash-message.js +0 -0
  165. package/{lib → dist}/esm/utils/is-address.d.ts +0 -0
  166. package/{lib → dist}/esm/utils/is-address.js +0 -0
  167. package/{lib → dist}/esm/utils/keccak256.d.ts +0 -0
  168. package/{lib → dist}/esm/utils/keccak256.js +0 -0
  169. package/{lib → dist}/esm/utils/solidity-keccak256.d.ts +0 -0
  170. package/{lib → dist}/esm/utils/solidity-keccak256.js +0 -0
  171. package/{lib → dist}/esm/utils/split-signature.d.ts +0 -0
  172. package/{lib → dist}/esm/utils/split-signature.js +0 -0
  173. package/{lib → dist}/esm/utils/to-checksum-address.d.ts +0 -0
  174. package/{lib → dist}/esm/utils/to-checksum-address.js +0 -0
  175. package/{lib → dist}/esm/utils/to-utf8-bytes.d.ts +0 -0
  176. package/{lib → dist}/esm/utils/to-utf8-bytes.js +0 -0
  177. package/{lib → dist}/esm/utils/wei-to-ether.d.ts +0 -0
  178. package/{lib → dist}/esm/utils/wei-to-ether.js +0 -0
  179. package/package.json +25 -13
  180. package/readme.md +70 -51
  181. package/lib/cjs/classes/Contract.d.ts +0 -78
  182. package/lib/cjs/classes/utils/clean-block.d.ts +0 -121
  183. package/lib/cjs/classes/utils/clean-log.d.ts +0 -9
  184. package/lib/cjs/classes/utils/clean-transaction-receipt.d.ts +0 -14
  185. package/lib/cjs/classes/utils/clean-transaction.d.ts +0 -14
  186. package/lib/cjs/classes/utils/fetchers.d.ts +0 -39
  187. package/lib/cjs/classes/utils/hex-to-decimal.d.ts +0 -18
  188. package/lib/cjs/logger/package-version.d.ts +0 -1
  189. package/lib/cjs/providers/BaseProvider.d.ts +0 -353
  190. package/lib/cjs/providers/JsonRpcProvider.d.ts +0 -33
  191. package/lib/cjs/shared/tiny-big/helpers.d.ts +0 -17
  192. package/lib/cjs/shared/tiny-big/tiny-big.d.ts +0 -58
  193. package/lib/cjs/utils/bytes.d.ts +0 -289
  194. package/lib/cjs/utils/compute-address.d.ts +0 -17
  195. package/lib/cjs/utils/compute-public-key.d.ts +0 -18
  196. package/lib/cjs/utils/ether-to-gwei.d.ts +0 -27
  197. package/lib/cjs/utils/ether-to-wei.d.ts +0 -27
  198. package/lib/cjs/utils/gwei-to-ether.d.ts +0 -27
  199. package/lib/cjs/utils/hash-message.d.ts +0 -14
  200. package/lib/cjs/utils/is-address.d.ts +0 -24
  201. package/lib/cjs/utils/keccak256.d.ts +0 -16
  202. package/lib/cjs/utils/solidity-keccak256.d.ts +0 -39
  203. package/lib/cjs/utils/split-signature.d.ts +0 -24
  204. package/lib/cjs/utils/to-checksum-address.d.ts +0 -17
  205. package/lib/cjs/utils/to-utf8-bytes.d.ts +0 -15
  206. package/lib/cjs/utils/wei-to-ether.d.ts +0 -27
  207. package/lib/esm/logger/package-version.d.ts +0 -1
  208. package/lib/esm/logger/package-version.js +0 -1
package/readme.md CHANGED
@@ -26,12 +26,20 @@
26
26
 
27
27
  <br/>
28
28
 
29
- - 🏆️ <sub><sup>[smallest code size possible](https://bundlephobia.com/package/essential-eth)</sup></sub>
30
- - ʦ Fully typed with TypeScript (also works with JavaScript)
31
- - 🧪 Tested to match both `web3` and `ethers`
32
- - - ⚡️ Near-identical API to `ethers`
29
+ - 🐜️ [tiny](https://bundlephobia.com/package/essential-eth)
30
+ - 🔐 Strongly written TypeScript
31
+ - 🧪 Matches both `ethers` and `web3`
32
+ - ⚡️ Near-identical API to `ethers`
33
+ - ⚡️ Similar but improved API to `web3`
34
+ - 🙌 Works for all EVM chains
35
+ - 💎 Ethereum
36
+ - 🟣 Polygon
37
+ - 🔴 Optimism
38
+ - 🔵 Arbitrum
39
+ - [Many more](src/providers/utils/chains-info.ts)
40
+ - 🧪 Strongly tested
33
41
  - 🌲 Tree-shaking and no side-effects
34
- - 🙌 Supports multiple JS versions (CommonJS and ESM)
42
+ - 🙌 All common JS versions (CommonJS, ESM, & UMD)
35
43
  - ✅ Node 18, 16, 14, & 12
36
44
  - ✅ Web
37
45
 
@@ -104,12 +112,23 @@
104
112
  ## Install
105
113
 
106
114
  ```sh
107
- npm install --save essential-eth # TypeScript types load automatically
115
+ npm install --save essential-eth # TypeScript included
108
116
 
109
117
  # or yarn
110
- yarn add essential-eth # TypeScript types load automatically
118
+ yarn add essential-eth # TypeScript included
111
119
  ```
112
120
 
121
+ Browsers:
122
+
123
+ <!-- ⛔️ AUTO-GENERATED-CONTENT:START (UNPKG_SCRIPT_TAG) -->
124
+
125
+ ```html
126
+ <!-- index.html -->
127
+ <script src="https://unpkg.com/essential-eth@0.5.13-next.2"></script>
128
+ ```
129
+
130
+ <!-- ⛔️ AUTO-GENERATED-CONTENT:END (UNPKG_SCRIPT_TAG) -->
131
+
113
132
  <br/>
114
133
 
115
134
  ## 🛠 Utils
@@ -123,7 +142,7 @@ const { etherToWei } = require('essential-eth');
123
142
 
124
143
  <!-- ⛔️ AUTO-GENERATED-CONTENT:START (FUNCTIONS) -->
125
144
 
126
- #### [`arrayify`](https://essential-eth.vercel.app/docs/api/modules#arrayify)
145
+ #### [`arrayify`](https://eeth.dev/docs/api/modules#arrayify)
127
146
 
128
147
  ```typescript
129
148
  arrayify(value: number | BytesLike | Hexable, options: DataOptions): Uint8Array
@@ -155,7 +174,7 @@ arrayify('0x1', { hexPad: 'right' });
155
174
 
156
175
  <br/>
157
176
 
158
- #### [`computeAddress`](https://essential-eth.vercel.app/docs/api/modules#computeaddress)
177
+ #### [`computeAddress`](https://eeth.dev/docs/api/modules#computeaddress)
159
178
 
160
179
  ```typescript
161
180
  computeAddress(key: string): string
@@ -186,7 +205,7 @@ computeAddress(
186
205
 
187
206
  <br/>
188
207
 
189
- #### [`computePublicKey`](https://essential-eth.vercel.app/docs/api/modules#computepublickey)
208
+ #### [`computePublicKey`](https://eeth.dev/docs/api/modules#computepublickey)
190
209
 
191
210
  ```typescript
192
211
  computePublicKey(privKey: BytesLike): string
@@ -218,7 +237,7 @@ computePublicKey([
218
237
 
219
238
  <br/>
220
239
 
221
- #### [`concat`](https://essential-eth.vercel.app/docs/api/modules#concat)
240
+ #### [`concat`](https://eeth.dev/docs/api/modules#concat)
222
241
 
223
242
  ```typescript
224
243
  concat(arrayOfBytesLike: Array<BytesLikeWithNumber>): Uint8Array
@@ -240,7 +259,7 @@ concat([0, 1]);
240
259
 
241
260
  <br/>
242
261
 
243
- #### [`etherToGwei`](https://essential-eth.vercel.app/docs/api/modules#ethertogwei)
262
+ #### [`etherToGwei`](https://eeth.dev/docs/api/modules#ethertogwei)
244
263
 
245
264
  ```typescript
246
265
  etherToGwei(etherQuantity: string | number | TinyBig | Big): TinyBig
@@ -271,7 +290,7 @@ etherToGwei(1000).toNumber();
271
290
 
272
291
  <br/>
273
292
 
274
- #### [`etherToWei`](https://essential-eth.vercel.app/docs/api/modules#ethertowei)
293
+ #### [`etherToWei`](https://eeth.dev/docs/api/modules#ethertowei)
275
294
 
276
295
  ```typescript
277
296
  etherToWei(etherQuantity: string | number | TinyBig | Big): TinyBig
@@ -302,7 +321,7 @@ etherToWei(1000).toNumber();
302
321
 
303
322
  <br/>
304
323
 
305
- #### [`gweiToEther`](https://essential-eth.vercel.app/docs/api/modules#gweitoether)
324
+ #### [`gweiToEther`](https://eeth.dev/docs/api/modules#gweitoether)
306
325
 
307
326
  ```typescript
308
327
  gweiToEther(gweiQuantity: string | number | TinyBig | Big): TinyBig
@@ -333,7 +352,7 @@ gweiToEther(1000000000000).toNumber();
333
352
 
334
353
  <br/>
335
354
 
336
- #### [`hashMessage`](https://essential-eth.vercel.app/docs/api/modules#hashmessage)
355
+ #### [`hashMessage`](https://eeth.dev/docs/api/modules#hashmessage)
337
356
 
338
357
  ```typescript
339
358
  hashMessage(message: string | Bytes): string
@@ -355,7 +374,7 @@ hashMessage('Hello World');
355
374
 
356
375
  <br/>
357
376
 
358
- #### [`hexConcat`](https://essential-eth.vercel.app/docs/api/modules#hexconcat)
377
+ #### [`hexConcat`](https://eeth.dev/docs/api/modules#hexconcat)
359
378
 
360
379
  ```typescript
361
380
  hexConcat(items: Array<BytesLike>): string
@@ -377,7 +396,7 @@ hexConcat([[2, 4, 0, 1], 9, '0x2934', '0x3947']);
377
396
 
378
397
  <br/>
379
398
 
380
- #### [`hexDataLength`](https://essential-eth.vercel.app/docs/api/modules#hexdatalength)
399
+ #### [`hexDataLength`](https://eeth.dev/docs/api/modules#hexdatalength)
381
400
 
382
401
  ```typescript
383
402
  hexDataLength(data: BytesLike): undefined
@@ -404,7 +423,7 @@ hexDataLength('0x3925');
404
423
 
405
424
  <br/>
406
425
 
407
- #### [`hexDataSlice`](https://essential-eth.vercel.app/docs/api/modules#hexdataslice)
426
+ #### [`hexDataSlice`](https://eeth.dev/docs/api/modules#hexdataslice)
408
427
 
409
428
  ```typescript
410
429
  hexDataSlice(data: BytesLikeWithNumber, offset: number, endOffset: number): string
@@ -426,7 +445,7 @@ hexDataSlice([20, 6, 48], 0, 2);
426
445
 
427
446
  <br/>
428
447
 
429
- #### [`hexStripZeros`](https://essential-eth.vercel.app/docs/api/modules#hexstripzeros)
448
+ #### [`hexStripZeros`](https://eeth.dev/docs/api/modules#hexstripzeros)
430
449
 
431
450
  ```typescript
432
451
  hexStripZeros(value: BytesLike): string
@@ -448,7 +467,7 @@ hexStripZeros([0, 0, 0, 48]);
448
467
 
449
468
  <br/>
450
469
 
451
- #### [`hexValue`](https://essential-eth.vercel.app/docs/api/modules#hexvalue)
470
+ #### [`hexValue`](https://eeth.dev/docs/api/modules#hexvalue)
452
471
 
453
472
  ```typescript
454
473
  hexValue(value: number | bigint | BytesLike | Hexable): string
@@ -475,7 +494,7 @@ hexValue([9, 4, 19, 4]);
475
494
 
476
495
  <br/>
477
496
 
478
- #### [`hexZeroPad`](https://essential-eth.vercel.app/docs/api/modules#hexzeropad)
497
+ #### [`hexZeroPad`](https://eeth.dev/docs/api/modules#hexzeropad)
479
498
 
480
499
  ```typescript
481
500
  hexZeroPad(value: BytesLikeWithNumber, length: number): string
@@ -507,7 +526,7 @@ hexZeroPad('12345', 1);
507
526
 
508
527
  <br/>
509
528
 
510
- #### [`hexlify`](https://essential-eth.vercel.app/docs/api/modules#hexlify)
529
+ #### [`hexlify`](https://eeth.dev/docs/api/modules#hexlify)
511
530
 
512
531
  ```typescript
513
532
  hexlify(value: number | bigint | BytesLike | Hexable, options: DataOptions): string
@@ -534,7 +553,7 @@ hexlify(14);
534
553
 
535
554
  <br/>
536
555
 
537
- #### [`isAddress`](https://essential-eth.vercel.app/docs/api/modules#isaddress)
556
+ #### [`isAddress`](https://eeth.dev/docs/api/modules#isaddress)
538
557
 
539
558
  ```typescript
540
559
  isAddress(address: string): boolean
@@ -567,7 +586,7 @@ isAddress('vitalik.eth');
567
586
 
568
587
  <br/>
569
588
 
570
- #### [`isBytes`](https://essential-eth.vercel.app/docs/api/modules#isbytes)
589
+ #### [`isBytes`](https://eeth.dev/docs/api/modules#isbytes)
571
590
 
572
591
  ```typescript
573
592
  isBytes(value: any): value
@@ -599,7 +618,7 @@ isBytes(new Uint8Array(1));
599
618
 
600
619
  <br/>
601
620
 
602
- #### [`isBytesLike`](https://essential-eth.vercel.app/docs/api/modules#isbyteslike)
621
+ #### [`isBytesLike`](https://eeth.dev/docs/api/modules#isbyteslike)
603
622
 
604
623
  ```typescript
605
624
  isBytesLike(value: any): value
@@ -631,7 +650,7 @@ isBytesLike(new Uint8Array(1));
631
650
 
632
651
  <br/>
633
652
 
634
- #### [`isHexString`](https://essential-eth.vercel.app/docs/api/modules#ishexstring)
653
+ #### [`isHexString`](https://eeth.dev/docs/api/modules#ishexstring)
635
654
 
636
655
  ```typescript
637
656
  isHexString(value: any, length: number): boolean
@@ -659,7 +678,7 @@ isHexString('0x4924', 4);
659
678
 
660
679
  <br/>
661
680
 
662
- #### [`jsonRpcProvider`](https://essential-eth.vercel.app/docs/api/modules#jsonrpcprovider)
681
+ #### [`jsonRpcProvider`](https://eeth.dev/docs/api/modules#jsonrpcprovider)
663
682
 
664
683
  ```typescript
665
684
  jsonRpcProvider(rpcUrl: string): JsonRpcProvider
@@ -685,7 +704,7 @@ jsonRpcProvider()
685
704
 
686
705
  <br/>
687
706
 
688
- #### [`keccak256`](https://essential-eth.vercel.app/docs/api/modules#keccak256)
707
+ #### [`keccak256`](https://eeth.dev/docs/api/modules#keccak256)
689
708
 
690
709
  ```typescript
691
710
  keccak256(data: BytesLike): string
@@ -710,7 +729,7 @@ keccak256('0x123');
710
729
 
711
730
  <br/>
712
731
 
713
- #### [`pack`](https://essential-eth.vercel.app/docs/api/modules#pack)
732
+ #### [`pack`](https://eeth.dev/docs/api/modules#pack)
714
733
 
715
734
  ```typescript
716
735
  pack(types: Array<string>, values: Array<any>): string
@@ -734,7 +753,7 @@ pack(types, values);
734
753
 
735
754
  <br/>
736
755
 
737
- #### [`solidityKeccak256`](https://essential-eth.vercel.app/docs/api/modules#soliditykeccak256)
756
+ #### [`solidityKeccak256`](https://eeth.dev/docs/api/modules#soliditykeccak256)
738
757
 
739
758
  ```typescript
740
759
  solidityKeccak256(types: Array<string>, values: Array<any>): string
@@ -768,7 +787,7 @@ solidityKeccak256(types, values);
768
787
 
769
788
  <br/>
770
789
 
771
- #### [`splitSignature`](https://essential-eth.vercel.app/docs/api/modules#splitsignature)
790
+ #### [`splitSignature`](https://eeth.dev/docs/api/modules#splitsignature)
772
791
 
773
792
  ```typescript
774
793
  splitSignature(signature: SignatureLike): Signature
@@ -799,7 +818,7 @@ splitSignature(signature);
799
818
 
800
819
  <br/>
801
820
 
802
- #### [`stripZeros`](https://essential-eth.vercel.app/docs/api/modules#stripzeros)
821
+ #### [`stripZeros`](https://eeth.dev/docs/api/modules#stripzeros)
803
822
 
804
823
  ```typescript
805
824
  stripZeros(value: BytesLike): Uint8Array
@@ -822,7 +841,7 @@ stripZeros('0x00002834');
822
841
 
823
842
  <br/>
824
843
 
825
- #### [`tinyBig`](https://essential-eth.vercel.app/docs/api/modules#tinybig)
844
+ #### [`tinyBig`](https://eeth.dev/docs/api/modules#tinybig)
826
845
 
827
846
  ```typescript
828
847
  tinyBig(value: string | number | TinyBig | Big): TinyBig
@@ -844,7 +863,7 @@ tinyBig(10).times(3).toNumber();
844
863
 
845
864
  <br/>
846
865
 
847
- #### [`toChecksumAddress`](https://essential-eth.vercel.app/docs/api/modules#tochecksumaddress)
866
+ #### [`toChecksumAddress`](https://eeth.dev/docs/api/modules#tochecksumaddress)
848
867
 
849
868
  ```typescript
850
869
  toChecksumAddress(address: string): string
@@ -870,7 +889,7 @@ Similar to ["toChecksumAddress" in web3.js](https://web3js.readthedocs.io/en/v1.
870
889
 
871
890
  <br/>
872
891
 
873
- #### [`toUtf8Bytes`](https://essential-eth.vercel.app/docs/api/modules#toutf8bytes)
892
+ #### [`toUtf8Bytes`](https://eeth.dev/docs/api/modules#toutf8bytes)
874
893
 
875
894
  ```typescript
876
895
  toUtf8Bytes(data: string): Uint8Array
@@ -895,7 +914,7 @@ toUtf8Bytes('ethereum');
895
914
 
896
915
  <br/>
897
916
 
898
- #### [`weiToEther`](https://essential-eth.vercel.app/docs/api/modules#weitoether)
917
+ #### [`weiToEther`](https://eeth.dev/docs/api/modules#weitoether)
899
918
 
900
919
  ```typescript
901
920
  weiToEther(weiQuantity: string | number | TinyBig | Big): TinyBig
@@ -926,7 +945,7 @@ weiToEther(1000000000000000000000).toNumber();
926
945
 
927
946
  <br/>
928
947
 
929
- #### [`zeroPad`](https://essential-eth.vercel.app/docs/api/modules#zeropad)
948
+ #### [`zeroPad`](https://eeth.dev/docs/api/modules#zeropad)
930
949
 
931
950
  ```typescript
932
951
  zeroPad(value: BytesLike, length: number): Uint8Array
@@ -995,7 +1014,7 @@ provider.getGasPrice().toNumber();
995
1014
 
996
1015
  <!-- ⛔️ AUTO-GENERATED-CONTENT:START (PROVIDER) -->
997
1016
 
998
- #### [`call`](https://essential-eth.vercel.app/docs/api/classes/JsonRpcProvider#call)
1017
+ #### [`call`](https://eeth.dev/docs/api/classes/JsonRpcProvider#call)
999
1018
 
1000
1019
  ```typescript
1001
1020
  provider.call(transaction: TransactionRequest, blockTag?: BlockTag): Promise<string>
@@ -1021,7 +1040,7 @@ await provider.call({
1021
1040
 
1022
1041
  <br/>
1023
1042
 
1024
- #### [`estimateGas`](https://essential-eth.vercel.app/docs/api/classes/JsonRpcProvider#estimategas)
1043
+ #### [`estimateGas`](https://eeth.dev/docs/api/classes/JsonRpcProvider#estimategas)
1025
1044
 
1026
1045
  ```typescript
1027
1046
  provider.estimateGas(transaction: TransactionRequest): Promise<TinyBig>
@@ -1049,7 +1068,7 @@ await provider.estimateGas({
1049
1068
 
1050
1069
  <br/>
1051
1070
 
1052
- #### [`getBalance`](https://essential-eth.vercel.app/docs/api/classes/JsonRpcProvider#getbalance)
1071
+ #### [`getBalance`](https://eeth.dev/docs/api/classes/JsonRpcProvider#getbalance)
1053
1072
 
1054
1073
  ```typescript
1055
1074
  provider.getBalance(address: string, blockTag?: BlockTag): Promise<TinyBig>
@@ -1072,7 +1091,7 @@ await provider.getBalance('0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8');
1072
1091
 
1073
1092
  <br/>
1074
1093
 
1075
- #### [`getBlock`](https://essential-eth.vercel.app/docs/api/classes/JsonRpcProvider#getblock)
1094
+ #### [`getBlock`](https://eeth.dev/docs/api/classes/JsonRpcProvider#getblock)
1076
1095
 
1077
1096
  ```typescript
1078
1097
  provider.getBlock(timeFrame?: BlockTag, returnTransactionObjects?: boolean): Promise<BlockResponse>
@@ -1123,7 +1142,7 @@ await provider.getBlock(14879862);
1123
1142
 
1124
1143
  <br/>
1125
1144
 
1126
- #### [`getBlockNumber`](https://essential-eth.vercel.app/docs/api/classes/JsonRpcProvider#getblocknumber)
1145
+ #### [`getBlockNumber`](https://eeth.dev/docs/api/classes/JsonRpcProvider#getblocknumber)
1127
1146
 
1128
1147
  ```typescript
1129
1148
  provider.getBlockNumber(): Promise<number>
@@ -1146,7 +1165,7 @@ await provider.getBlockNumber();
1146
1165
 
1147
1166
  <br/>
1148
1167
 
1149
- #### [`getCode`](https://essential-eth.vercel.app/docs/api/classes/JsonRpcProvider#getcode)
1168
+ #### [`getCode`](https://eeth.dev/docs/api/classes/JsonRpcProvider#getcode)
1150
1169
 
1151
1170
  ```typescript
1152
1171
  provider.getCode(address: string, blockTag?: BlockTag): Promise<string>
@@ -1172,7 +1191,7 @@ await jsonRpcProvider().getCode(
1172
1191
 
1173
1192
  <br/>
1174
1193
 
1175
- #### [`getGasPrice`](https://essential-eth.vercel.app/docs/api/classes/JsonRpcProvider#getgasprice)
1194
+ #### [`getGasPrice`](https://eeth.dev/docs/api/classes/JsonRpcProvider#getgasprice)
1176
1195
 
1177
1196
  ```typescript
1178
1197
  provider.getGasPrice(): Promise<TinyBig>
@@ -1195,7 +1214,7 @@ await provider.getGasPrice();
1195
1214
 
1196
1215
  <br/>
1197
1216
 
1198
- #### [`getLogs`](https://essential-eth.vercel.app/docs/api/classes/JsonRpcProvider#getlogs)
1217
+ #### [`getLogs`](https://eeth.dev/docs/api/classes/JsonRpcProvider#getlogs)
1199
1218
 
1200
1219
  ```typescript
1201
1220
  provider.getLogs(filter: Filter | FilterByBlockHash): Promise<Array<Log>>
@@ -1245,7 +1264,7 @@ provider.getLogs({
1245
1264
 
1246
1265
  <br/>
1247
1266
 
1248
- #### [`getNetwork`](https://essential-eth.vercel.app/docs/api/classes/JsonRpcProvider#getnetwork)
1267
+ #### [`getNetwork`](https://eeth.dev/docs/api/classes/JsonRpcProvider#getnetwork)
1249
1268
 
1250
1269
  ```typescript
1251
1270
  provider.getNetwork(): Promise<Network>
@@ -1273,7 +1292,7 @@ jsonRpcProvider('https://free-eth-node.com/api/MATIC').getNetwork();
1273
1292
 
1274
1293
  <br/>
1275
1294
 
1276
- #### [`getTransaction`](https://essential-eth.vercel.app/docs/api/classes/JsonRpcProvider#gettransaction)
1295
+ #### [`getTransaction`](https://eeth.dev/docs/api/classes/JsonRpcProvider#gettransaction)
1277
1296
 
1278
1297
  ```typescript
1279
1298
  provider.getTransaction(transactionHash: string): Promise<TransactionResponse>
@@ -1319,7 +1338,7 @@ await provider.getTransaction(
1319
1338
 
1320
1339
  <br/>
1321
1340
 
1322
- #### [`getTransactionCount`](https://essential-eth.vercel.app/docs/api/classes/JsonRpcProvider#gettransactioncount)
1341
+ #### [`getTransactionCount`](https://eeth.dev/docs/api/classes/JsonRpcProvider#gettransactioncount)
1323
1342
 
1324
1343
  ```typescript
1325
1344
  provider.getTransactionCount(address: string, blockTag?: BlockTag): Promise<number>
@@ -1360,7 +1379,7 @@ await provider.getTransactionCount(
1360
1379
 
1361
1380
  <br/>
1362
1381
 
1363
- #### [`getTransactionReceipt`](https://essential-eth.vercel.app/docs/api/classes/JsonRpcProvider#gettransactionreceipt)
1382
+ #### [`getTransactionReceipt`](https://eeth.dev/docs/api/classes/JsonRpcProvider#gettransactionreceipt)
1364
1383
 
1365
1384
  ```typescript
1366
1385
  provider.getTransactionReceipt(transactionHash: string): Promise<TransactionReceipt>
@@ -1495,7 +1514,7 @@ const contract = new Contract(contractAddress, abi, provider);
1495
1514
 
1496
1515
  #### `contractFunctionName(args)`
1497
1516
 
1498
- Any function on a contract. Returns are the same as `ethers.js`, except that instead of BigNumber, `essential-eth` always returns a [`TinyBig`](https://essential-eth.vercel.app/classes/TinyBig.html)
1517
+ Any function on a contract. Returns are the same as `ethers.js`, except that instead of BigNumber, `essential-eth` always returns a [`TinyBig`](https://eeth.dev/classes/TinyBig.html)
1499
1518
 
1500
1519
  <br/>
1501
1520
  <br/>
@@ -1528,5 +1547,5 @@ Note: In `web3.js`, almost every method or function can be passed a callback. `e
1528
1547
 
1529
1548
  ### Miscellaneous
1530
1549
 
1531
- - [📓 View full docs](https://essential-eth.vercel.app)
1550
+ - [📓 View full docs](https://eeth.dev)
1532
1551
  - [📓 View changelog (by looking at releases diff)](https://github.com/dawsbot/essential-eth/releases)
@@ -1,78 +0,0 @@
1
- import type { JsonRpcProvider } from '../providers/JsonRpcProvider';
2
- import type { ContractInterface } from '../types/Contract.types';
3
- export declare class BaseContract {
4
- /**
5
- * The URL to your Eth node. Consider POKT or Infura
6
- */
7
- private readonly _address;
8
- private readonly _provider;
9
- /**
10
- * @param addressOrName The ethereum address of the smart-contract
11
- * @param contractInterface The JSON ABI of the smart-contract (like http://api.etherscan.io/api?module=contract&action=getabi&address=0x090d4613473dee047c3f2706764f49e0821d256e&format=raw)
12
- * @param signerOrProvider An instantiated essential-eth provider
13
- * @example
14
- */
15
- constructor(addressOrName: string, contractInterface: ContractInterface, signerOrProvider: JsonRpcProvider);
16
- }
17
- /**
18
- * Applies the unique contract's methods to the instantiated Contract in the constructor based-upon the provided ABI
19
- *
20
- * @param object
21
- * @param name
22
- * @param value
23
- * @example
24
- */
25
- export declare function defineReadOnly<T>(object: T, name: string, value: any): void;
26
- /**
27
- * @alpha
28
- * Only accepts ABIS in JSON format. This allows for stronger typing and assurances of data-types
29
- * Only read-only function calls currently supported.
30
- * @example
31
- * ```typescript
32
- * import { Contract, JsonRpcProvider } from 'essential-eth';
33
- * // UNI airdrop contract
34
- * const contractAddress = '0x090D4613473dEE047c3f2706764f49E0821D256e';
35
- * const provider = new JsonRpcProvider();
36
- *
37
- * const JSONABI = [
38
- * {
39
- * inputs: [
40
- * {
41
- * internalType: 'uint256',
42
- * name: 'index',
43
- * type: 'uint256',
44
- * },
45
- * ],
46
- * name: 'isClaimed',
47
- * outputs: [
48
- * {
49
- * internalType: 'bool',
50
- * name: '',
51
- * type: 'bool',
52
- * },
53
- * ],
54
- * stateMutability: 'view',
55
- * type: 'function',
56
- * },
57
- * ]
58
- *
59
- * const contract = new Contract(
60
- * contractAddress,
61
- * JSONABI,
62
- * provider,
63
- * );
64
- *
65
- * (async () => {
66
- * // prints boolean as to whether index 0 has claimed airdrop or not
67
- * console.log(await contract.isClaimed(0));
68
- * })()
69
- *
70
- *
71
- * ```
72
- */
73
- export declare class Contract extends BaseContract {
74
- /**
75
- * The function names on any given contract. Like "isClaimed", "merkleRoot", etc.
76
- */
77
- readonly [key: string]: any;
78
- }
@@ -1,121 +0,0 @@
1
- import type { BlockResponse } from '../..';
2
- import type { RPCBlock } from '../../types/Block.types';
3
- /**
4
- * Converts RPC block response to more JS-friendly format
5
- *
6
- * @param block the RPCBlock to clean
7
- * @param returnTransactionObjects whether or not to return the transactions specified in this block
8
- * @returns a cleaned block
9
- * @example
10
- * ```js
11
- * const rpcBlock = {
12
- * number: '0x40f9de',
13
- * hash: '0x4cbaa942e48a91108f38e2a250f6dbaff7fffe3027f5ebf76701929eed2b2970',
14
- * parentHash: '0xc8de1e513f74cbc5cc77e2a39e4cada6504469a5d0e87200b708319c1e9ef154',
15
- * sha3Uncles: '0x04d250716296c9662314b37c112e5ce8b1c9ad7fd7820a39482a3688a2078f2b',
16
- * logsBloom: '0x0000400004000000040010100200000000000000000000000000000000000000001000000001000000000000000000000004010000000000000a800000000000040000000001000400000000000000000000000000000000000002000000000000000000000004000040000000800000000001000000000000000000000000000000000000000001000000000004200000000000000000000000000124400000000000000200100020000000000000000080000000000080001000000000000000000081000000000000000000008000000020000100000000200020100800000000000000000008002000000080001000020c00000000000000200000000000',
17
- * transactionsRoot: '0xfc79f4f620cb69861ac67ceee5e1ddf3e45da95be230d4064be234f1ee491aa5',
18
- * stateRoot: '0xfa5ef7e368997d70670b0ea3172aabefc2dee285786ce69c7165d8d854f8b292',
19
- * receiptsRoot: '0x7fa0679e88fef8a8f7f5865dc4e6000ddcc267b14d2904948e3b1576a18a3bbd',
20
- * miner: '0x1b7a75ef070ff49e6b9491a26403d799f2099ebd',
21
- * difficulty: '0x47ede14fcbe635706e',
22
- * totalDifficulty: '0x139e1de9b8404dedc5d30959',
23
- * extraData: '0xce018c495249532d62613031656132',
24
- * size: '0xb4f',
25
- * gasLimit: '0x67c280',
26
- * gasUsed: '0x56e2d',
27
- * timestamp: '0x62648dc2',
28
- * transactions: [
29
- * '0xd53800afc69e55cc7a64b927803b46a5b4c5ddccbaafb6b32fe0ec883739b825',
30
- * '0x4b8b07f35a1f911a80a0ffeebe3d3c41cd393b4d5e1ce0a408026705913d6760',
31
- * '0xa50eac0ea8005cb1e4b95be4e64c24035d9c41adb164c49477c3169870f02fb1',
32
- * '0x413e5293786f8b63e73adf0b74ab56067da4b564d01936b88b138d48cc414a42',
33
- * '0xd4e4969365d144b0b987632dca36ba9e272254bdc687245987a57666d6afa148'
34
- * ],
35
- * uncles: [
36
- * '0x36cd3869fd17a285b984dea8b705d34096e1fbdfe48df69ae530fbe921ba83fa'
37
- * ],
38
- * minimumGasPrice: '0x387ee40',
39
- * bitcoinMergedMiningHeader: '0x0040502d717ae205da048b0ffb8e110603564d8677ca8bd3a54601000000000000000000e722e86bfebcae00bffb46c663fa0241b63a27f0c98fa710e421d5cc1afa2448d08d6462d9f809172f5e30aa',
40
- * bitcoinMergedMiningCoinbaseTransaction: '0x00000000000001003f8757a906f0159f882f0968788a2e396b7bf8090e1b926fb2bb46789ac32d55082aca4e0800000000000000002b6a2952534b424c4f434b3a831a30935da1bd1e8631942fc7fa78f7a7b11d51ca39a1684d91a81f0040f9de00000000',
41
- * bitcoinMergedMiningMerkleProof: '0xb53111a4e11bc19bf90268485d1b957d908ebc6a4cd9862aca3fc6ed3dcf3240b14c316de8521369d55dbfeb2b0116bcc10f40e999c4885e1bd2a08691bdea1c43862d590390a227a379d5677b958f1a23eecc16ac590ad675b8a4cea0c10da3ef597acb9ca1fe0a21fc408f09e0c7169d83aca8ddd636d8cc155f922e1d36c74b7cc11e9ee98dd1bf2100a55d59630c65da3db1575d58f165c5753c1779df90efcff9017b73cc32f4c87178bd0eae6a6dd0357047be70d6c4af17fcef097e80a9f1751447f4eee3831fc79f2d894934694149bcb99840a525f5128215eca6b54642af452ee7568a9281f40560afffd35725df31b98155d7813dea12e42f2a8052c7d98bcf62c9cdc66c40fb12b729b685a31aec4970ea5316640691ae5eb616808656a2bde4e9f5920ff178bf9d1f84e96a0d0bd048a3a8ca0d60970d02aacf7ecfb6e7feaec5c4a764873531cfd630e9430840cfe8b88154da25d6b94b706fe678d0efc1ecafed5a1f539e34552bea65622513b663e17e121f3c4548942584',
42
- * hashForMergedMining: '0x831a30935da1bd1e8631942fc7fa78f7a7b11d51ca39a1684d91a81f0040f9de',
43
- * paidFees: '0x1fb451615b58',
44
- * cumulativeDifficulty: '0x8fdbe015f7248cf993'
45
- * };
46
- * const returnTransactionObjects = false;
47
- *
48
- * await cleanBlock(rpcBlock, returnTransactionObjects);
49
- * // {
50
- * // number: 4258270,
51
- * // hash: '0x4cbaa942e48a91108f38e2a250f6dbaff7fffe3027f5ebf76701929eed2b2970',
52
- * // parentHash: '0xc8de1e513f74cbc5cc77e2a39e4cada6504469a5d0e87200b708319c1e9ef154',
53
- * // sha3Uncles: '0x04d250716296c9662314b37c112e5ce8b1c9ad7fd7820a39482a3688a2078f2b',
54
- * // logsBloom: '0x0000400004000000040010100200000000000000000000000000000000000000001000000001000000000000000000000004010000000000000a800000000000040000000001000400000000000000000000000000000000000002000000000000000000000004000040000000800000000001000000000000000000000000000000000000000001000000000004200000000000000000000000000124400000000000000200100020000000000000000080000000000080001000000000000000000081000000000000000000008000000020000100000000200020100800000000000000000008002000000080001000020c00000000000000200000000000',
55
- * // transactionsRoot: '0xfc79f4f620cb69861ac67ceee5e1ddf3e45da95be230d4064be234f1ee491aa5',
56
- * // stateRoot: '0xfa5ef7e368997d70670b0ea3172aabefc2dee285786ce69c7165d8d854f8b292',
57
- * // receiptsRoot: '0x7fa0679e88fef8a8f7f5865dc4e6000ddcc267b14d2904948e3b1576a18a3bbd',
58
- * // miner: '0x1b7A75Ef070Ff49E6B9491a26403D799f2099EbD',
59
- * // difficulty: Big {
60
- * // s: 1,
61
- * // e: 21,
62
- * // c: [Array],
63
- * // constructor: [Function],
64
- * // padAndChop: [Function (anonymous)]
65
- * // },
66
- * // totalDifficulty: Big {
67
- * // s: 1,
68
- * // e: 27,
69
- * // c: [Array],
70
- * // constructor: [Function],
71
- * // padAndChop: [Function (anonymous)]
72
- * // },
73
- * // extraData: '0xce018c495249532d62613031656132',
74
- * // size: Big {
75
- * // s: 1,
76
- * // e: 3,
77
- * // c: [Array],
78
- * // constructor: [Function],
79
- * // padAndChop: [Function (anonymous)]
80
- * // },
81
- * // gasLimit: Big {
82
- * // s: 1,
83
- * // e: 6,
84
- * // c: [Array],
85
- * // constructor: [Function],
86
- * // padAndChop: [Function (anonymous)]
87
- * // },
88
- * // gasUsed: Big {
89
- * // s: 1,
90
- * // e: 5,
91
- * // c: [Array],
92
- * // constructor: [Function],
93
- * // padAndChop: [Function (anonymous)]
94
- * // },
95
- * // timestamp: Big {
96
- * // s: 1,
97
- * // e: 9,
98
- * // c: [Array],
99
- * // constructor: [Function],
100
- * // padAndChop: [Function (anonymous)]
101
- * // },
102
- * // transactions: [
103
- * // '0xd53800afc69e55cc7a64b927803b46a5b4c5ddccbaafb6b32fe0ec883739b825',
104
- * // '0x4b8b07f35a1f911a80a0ffeebe3d3c41cd393b4d5e1ce0a408026705913d6760',
105
- * // '0xa50eac0ea8005cb1e4b95be4e64c24035d9c41adb164c49477c3169870f02fb1',
106
- * // '0x413e5293786f8b63e73adf0b74ab56067da4b564d01936b88b138d48cc414a42',
107
- * // '0xd4e4969365d144b0b987632dca36ba9e272254bdc687245987a57666d6afa148'
108
- * // ],
109
- * // uncles: [
110
- * // '0x36cd3869fd17a285b984dea8b705d34096e1fbdfe48df69ae530fbe921ba83fa'
111
- * // ],
112
- * // minimumGasPrice: '0x387ee40',
113
- * // bitcoinMergedMiningHeader: '0x0040502d717ae205da048b0ffb8e110603564d8677ca8bd3a54601000000000000000000e722e86bfebcae00bffb46c663fa0241b63a27f0c98fa710e421d5cc1afa2448d08d6462d9f809172f5e30aa',
114
- * // bitcoinMergedMiningCoinbaseTransaction: '0x00000000000001003f8757a906f0159f882f0968788a2e396b7bf8090e1b926fb2bb46789ac32d55082aca4e0800000000000000002b6a2952534b424c4f434b3a831a30935da1bd1e8631942fc7fa78f7a7b11d51ca39a1684d91a81f0040f9de00000000',
115
- * // bitcoinMergedMiningMerkleProof: '0xb53111a4e11bc19bf90268485d1b957d908ebc6a4cd9862aca3fc6ed3dcf3240b14c316de8521369d55dbfeb2b0116bcc10f40e999c4885e1bd2a08691bdea1c43862d590390a227a379d5677b958f1a23eecc16ac590ad675b8a4cea0c10da3ef597acb9ca1fe0a21fc408f09e0c7169d83aca8ddd636d8cc155f922e1d36c74b7cc11e9ee98dd1bf2100a55d59630c65da3db1575d58f165c5753c1779df90efcff9017b73cc32f4c87178bd0eae6a6dd0357047be70d6c4af17fcef097e80a9f1751447f4eee3831fc79f2d894934694149bcb99840a525f5128215eca6b54642af452ee7568a9281f40560afffd35725df31b98155d7813dea12e42f2a8052c7d98bcf62c9cdc66c40fb12b729b685a31aec4970ea5316640691ae5eb616808656a2bde4e9f5920ff178bf9d1f84e96a0d0bd048a3a8ca0d60970d02aacf7ecfb6e7feaec5c4a764873531cfd630e9430840cfe8b88154da25d6b94b706fe678d0efc1ecafed5a1f539e34552bea65622513b663e17e121f3c4548942584',
116
- * // hashForMergedMining: '0x831a30935da1bd1e8631942fc7fa78f7a7b11d51ca39a1684d91a81f0040f9de',
117
- * // paidFees: '0x1fb451615b58',
118
- * // cumulativeDifficulty: '0x8fdbe015f7248cf993'
119
- * // }
120
- */
121
- export declare function cleanBlock(block: RPCBlock, returnTransactionObjects: boolean): BlockResponse;
@@ -1,9 +0,0 @@
1
- import type { Log, RPCLog } from './../../types/Transaction.types';
2
- /**
3
- * Converts RPC log receipt response to more JS-friendly format
4
- *
5
- * @param log the log to clean
6
- * @param receiptLog if the log is part of a transaction receipt. Used to remove certain keys from log
7
- * @example
8
- */
9
- export declare function cleanLog(log: RPCLog, receiptLog: boolean): Log;