essential-eth 0.4.9-beta.1 → 0.4.9-beta.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 (499) hide show
  1. package/dist/cjs/classes/Contract.d.ts +71 -0
  2. package/dist/cjs/classes/Contract.js +133 -0
  3. package/dist/cjs/classes/test/Contract/crv-abi.d.ts +2 -0
  4. package/dist/cjs/classes/test/Contract/crv-abi.js +488 -0
  5. package/dist/cjs/classes/test/Contract/ens-abi.d.ts +2 -0
  6. package/dist/cjs/classes/test/Contract/ens-abi.js +453 -0
  7. package/dist/cjs/classes/test/Contract/fei-abi.d.ts +2 -0
  8. package/dist/cjs/classes/test/Contract/fei-abi.js +526 -0
  9. package/dist/cjs/classes/test/Contract/foo-abi.d.ts +2 -0
  10. package/dist/cjs/classes/test/Contract/foo-abi.js +42 -0
  11. package/dist/cjs/classes/test/Contract/uniswap-abi.d.ts +2 -0
  12. package/dist/cjs/classes/test/Contract/uniswap-abi.js +121 -0
  13. package/dist/cjs/classes/utils/clean-block.d.ts +6 -0
  14. package/dist/cjs/classes/utils/clean-block.js +46 -0
  15. package/dist/cjs/classes/utils/clean-transaction.d.ts +5 -0
  16. package/dist/cjs/classes/utils/clean-transaction.js +38 -0
  17. package/dist/cjs/classes/utils/encode-decode-transaction.d.ts +3 -0
  18. package/dist/cjs/classes/utils/encode-decode-transaction.js +113 -0
  19. package/dist/cjs/classes/utils/fetchers.d.ts +9 -0
  20. package/dist/cjs/classes/utils/fetchers.js +33 -0
  21. package/{src/classes/utils/hex-to-decimal.ts → dist/cjs/classes/utils/hex-to-decimal.d.ts} +1 -3
  22. package/dist/cjs/classes/utils/hex-to-decimal.js +11 -0
  23. package/{src/index.ts → dist/cjs/index.d.ts} +2 -20
  24. package/dist/cjs/index.js +26 -0
  25. package/dist/cjs/providers/JsonRpcProvider.d.ts +23 -0
  26. package/dist/cjs/providers/JsonRpcProvider.js +94 -0
  27. package/dist/cjs/providers/utils/chains-info.d.ts +360 -0
  28. package/dist/cjs/providers/utils/chains-info.js +1081 -0
  29. package/dist/cjs/shared/tiny-big/helpers.d.ts +1 -0
  30. package/dist/cjs/shared/tiny-big/helpers.js +71 -0
  31. package/dist/cjs/shared/tiny-big/tiny-big.d.ts +19 -0
  32. package/dist/cjs/shared/tiny-big/tiny-big.js +41 -0
  33. package/dist/cjs/shared/validate-type.d.ts +3 -0
  34. package/dist/cjs/shared/validate-type.js +9 -0
  35. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -0
  36. package/dist/cjs/types/Block.types.d.ts +47 -0
  37. package/dist/cjs/types/Block.types.js +2 -0
  38. package/dist/cjs/types/Contract.types.d.ts +24 -0
  39. package/dist/cjs/types/Contract.types.js +2 -0
  40. package/dist/cjs/types/Network.types.d.ts +8 -0
  41. package/dist/cjs/types/Network.types.js +2 -0
  42. package/dist/cjs/types/Transaction.types.d.ts +34 -0
  43. package/dist/cjs/types/Transaction.types.js +2 -0
  44. package/{src/utils/ether-to-wei.ts → dist/cjs/utils/ether-to-wei.d.ts} +2 -10
  45. package/dist/cjs/utils/ether-to-wei.js +32 -0
  46. package/{src/utils/index.ts → dist/cjs/utils/index.d.ts} +0 -1
  47. package/dist/cjs/utils/index.js +11 -0
  48. package/dist/cjs/utils/is-address.d.ts +5 -0
  49. package/dist/cjs/utils/is-address.js +20 -0
  50. package/dist/cjs/utils/to-checksum-address.d.ts +17 -0
  51. package/dist/cjs/utils/to-checksum-address.js +46 -0
  52. package/{src/utils/wei-to-ether.ts → dist/cjs/utils/wei-to-ether.d.ts} +1 -8
  53. package/dist/cjs/utils/wei-to-ether.js +34 -0
  54. package/dist/esm/classes/Contract.d.ts +11 -0
  55. package/dist/esm/classes/Contract.js +70 -0
  56. package/dist/esm/classes/test/Contract/crv-abi.d.ts +2 -0
  57. package/dist/esm/classes/test/Contract/crv-abi.js +470 -0
  58. package/dist/esm/classes/test/Contract/ens-abi.d.ts +2 -0
  59. package/dist/esm/classes/test/Contract/ens-abi.js +435 -0
  60. package/dist/esm/classes/test/Contract/fei-abi.d.ts +2 -0
  61. package/dist/esm/classes/test/Contract/fei-abi.js +521 -0
  62. package/dist/esm/classes/test/Contract/foo-abi.d.ts +2 -0
  63. package/dist/esm/classes/test/Contract/foo-abi.js +33 -0
  64. package/dist/esm/classes/test/Contract/uniswap-abi.d.ts +2 -0
  65. package/dist/esm/classes/test/Contract/uniswap-abi.js +116 -0
  66. package/dist/esm/classes/utils/clean-block.d.ts +3 -0
  67. package/dist/esm/classes/utils/clean-block.js +35 -0
  68. package/dist/esm/classes/utils/clean-transaction.d.ts +2 -0
  69. package/dist/esm/classes/utils/clean-transaction.js +29 -0
  70. package/dist/esm/classes/utils/encode-decode-transaction.d.ts +3 -0
  71. package/dist/esm/classes/utils/encode-decode-transaction.js +98 -0
  72. package/dist/esm/classes/utils/fetchers.d.ts +9 -0
  73. package/dist/esm/classes/utils/fetchers.js +25 -0
  74. package/dist/esm/classes/utils/hex-to-decimal.d.ts +1 -0
  75. package/dist/esm/classes/utils/hex-to-decimal.js +3 -0
  76. package/dist/esm/index.d.ts +9 -0
  77. package/dist/esm/index.js +5 -0
  78. package/dist/esm/providers/JsonRpcProvider.d.ts +10 -0
  79. package/dist/esm/providers/JsonRpcProvider.js +74 -0
  80. package/dist/esm/providers/utils/chains-info.d.ts +360 -0
  81. package/dist/esm/providers/utils/chains-info.js +1077 -0
  82. package/dist/esm/shared/tiny-big/helpers.d.ts +1 -0
  83. package/dist/esm/shared/tiny-big/helpers.js +58 -0
  84. package/dist/esm/shared/tiny-big/tiny-big.d.ts +8 -0
  85. package/dist/esm/shared/tiny-big/tiny-big.js +22 -0
  86. package/dist/esm/shared/validate-type.d.ts +3 -0
  87. package/dist/esm/shared/validate-type.js +5 -0
  88. package/dist/esm/tsconfig.tsbuildinfo +1 -0
  89. package/dist/esm/types/Block.types.d.ts +47 -0
  90. package/dist/esm/types/Block.types.js +1 -0
  91. package/dist/esm/types/Contract.types.d.ts +24 -0
  92. package/dist/esm/types/Contract.types.js +1 -0
  93. package/dist/esm/types/Network.types.d.ts +5 -0
  94. package/dist/esm/types/Network.types.js +1 -0
  95. package/dist/esm/types/Transaction.types.d.ts +34 -0
  96. package/dist/esm/types/Transaction.types.js +1 -0
  97. package/dist/esm/utils/ether-to-wei.d.ts +3 -0
  98. package/dist/esm/utils/ether-to-wei.js +7 -0
  99. package/dist/esm/utils/index.d.ts +5 -0
  100. package/dist/esm/utils/index.js +5 -0
  101. package/dist/esm/utils/is-address.d.ts +1 -0
  102. package/dist/esm/utils/is-address.js +12 -0
  103. package/dist/esm/utils/to-checksum-address.d.ts +1 -0
  104. package/dist/esm/utils/to-checksum-address.js +25 -0
  105. package/dist/esm/utils/wei-to-ether.d.ts +3 -0
  106. package/dist/esm/utils/wei-to-ether.js +7 -0
  107. package/package.json +4 -1
  108. package/..eslintrc.js.un~ +0 -0
  109. package/..npmignore.un~ +0 -0
  110. package/.env +0 -1
  111. package/.eslintignore +0 -4
  112. package/.eslintrc.js +0 -34
  113. package/.gitattributes +0 -1
  114. package/.github/workflows/.test.yml.un~ +0 -0
  115. package/.github/workflows/test.yml +0 -29
  116. package/.package.json.un~ +0 -0
  117. package/.prettierignore +0 -7
  118. package/.travis.yml +0 -5
  119. package/jest.config.js +0 -9
  120. package/scripts/build-website.sh +0 -4
  121. package/scripts/bump-minor.sh +0 -4
  122. package/scripts/bump-patch.sh +0 -4
  123. package/scripts/fetch-chains-info.ts +0 -70
  124. package/scripts/pre-commit.sh +0 -5
  125. package/src/classes/Contract.ts +0 -161
  126. package/src/classes/test/Contract/crv-abi.ts +0 -488
  127. package/src/classes/test/Contract/crv.test.ts +0 -56
  128. package/src/classes/test/Contract/ens-abi.ts +0 -452
  129. package/src/classes/test/Contract/ens.test.ts +0 -39
  130. package/src/classes/test/Contract/fei-abi.ts +0 -526
  131. package/src/classes/test/Contract/fei.test.ts +0 -86
  132. package/src/classes/test/Contract/foo-abi.ts +0 -42
  133. package/src/classes/test/Contract/foo.test.ts +0 -33
  134. package/src/classes/test/Contract/uni.test.ts +0 -72
  135. package/src/classes/test/Contract/uniswap-abi.ts +0 -121
  136. package/src/classes/utils/clean-block.ts +0 -49
  137. package/src/classes/utils/clean-transaction.ts +0 -35
  138. package/src/classes/utils/encode-decode-transaction.ts +0 -126
  139. package/src/classes/utils/fetchers.ts +0 -27
  140. package/src/providers/JsonRpcProvider.ts +0 -94
  141. package/src/providers/test/get-block.test.ts +0 -63
  142. package/src/providers/test/get-network.test.ts +0 -34
  143. package/src/providers/utils/chains-info.ts +0 -1079
  144. package/src/shared/tiny-big/helpers.test.ts +0 -30
  145. package/src/shared/tiny-big/helpers.ts +0 -89
  146. package/src/shared/tiny-big/tiny-big.test.ts +0 -10
  147. package/src/shared/tiny-big/tiny-big.ts +0 -36
  148. package/src/shared/validate-type.ts +0 -20
  149. package/src/types/.Contract.types.ts.un~ +0 -0
  150. package/src/types/Block.types.ts +0 -50
  151. package/src/types/Contract.types.ts +0 -67
  152. package/src/types/Network.types.ts +0 -8
  153. package/src/types/Transaction.types.ts +0 -35
  154. package/src/utils/is-address.ts +0 -16
  155. package/src/utils/tests/ether-to-wei.test.ts +0 -65
  156. package/src/utils/tests/is-address.test.ts +0 -52
  157. package/src/utils/tests/to-checksum-address.test.ts +0 -43
  158. package/src/utils/tests/wei-to-ether.test.ts +0 -72
  159. package/src/utils/to-checksum-address.ts +0 -47
  160. package/test/global-setup.js +0 -8
  161. package/test/global-teardown.js +0 -5
  162. package/test/jest.setup-after-env.js +0 -1
  163. package/test/server.js +0 -24
  164. package/tsconfig-cjs.json +0 -8
  165. package/tsconfig.json +0 -25
  166. package/typedoc/options-new-version.js +0 -8
  167. package/typedoc/options.js +0 -9
  168. package/types/just-omit.d.ts +0 -1
  169. package/website/.nojekyll +0 -1
  170. package/website/assets/highlight.css +0 -71
  171. package/website/assets/icons.css +0 -1043
  172. package/website/assets/icons.png +0 -0
  173. package/website/assets/icons@2x.png +0 -0
  174. package/website/assets/main.js +0 -52
  175. package/website/assets/search.js +0 -1
  176. package/website/assets/style.css +0 -1413
  177. package/website/assets/widgets.png +0 -0
  178. package/website/assets/widgets@2x.png +0 -0
  179. package/website/classes/Contract.html +0 -13
  180. package/website/classes/JsonRpcProvider.html +0 -8
  181. package/website/classes/TinyBig.html +0 -161
  182. package/website/index.html +0 -207
  183. package/website/interfaces/Block.html +0 -1
  184. package/website/interfaces/JSONABIArgument.html +0 -1
  185. package/website/interfaces/Network.html +0 -3
  186. package/website/interfaces/Transaction.html +0 -1
  187. package/website/modules.html +0 -32
  188. package/website/versions/0.1.2/assets/highlight.css +0 -57
  189. package/website/versions/0.1.2/assets/icons.css +0 -1043
  190. package/website/versions/0.1.2/assets/icons.png +0 -0
  191. package/website/versions/0.1.2/assets/icons@2x.png +0 -0
  192. package/website/versions/0.1.2/assets/main.js +0 -52
  193. package/website/versions/0.1.2/assets/search.js +0 -1
  194. package/website/versions/0.1.2/assets/style.css +0 -1341
  195. package/website/versions/0.1.2/assets/widgets.png +0 -0
  196. package/website/versions/0.1.2/assets/widgets@2x.png +0 -0
  197. package/website/versions/0.1.2/classes/TinyBig.html +0 -4
  198. package/website/versions/0.1.2/index.html +0 -20
  199. package/website/versions/0.1.2/modules.html +0 -23
  200. package/website/versions/0.1.3/assets/highlight.css +0 -64
  201. package/website/versions/0.1.3/assets/icons.css +0 -1043
  202. package/website/versions/0.1.3/assets/icons.png +0 -0
  203. package/website/versions/0.1.3/assets/icons@2x.png +0 -0
  204. package/website/versions/0.1.3/assets/main.js +0 -52
  205. package/website/versions/0.1.3/assets/search.js +0 -1
  206. package/website/versions/0.1.3/assets/style.css +0 -1341
  207. package/website/versions/0.1.3/assets/widgets.png +0 -0
  208. package/website/versions/0.1.3/assets/widgets@2x.png +0 -0
  209. package/website/versions/0.1.3/classes/TinyBig.html +0 -4
  210. package/website/versions/0.1.3/index.html +0 -53
  211. package/website/versions/0.1.3/modules.html +0 -23
  212. package/website/versions/0.1.4/assets/highlight.css +0 -64
  213. package/website/versions/0.1.4/assets/icons.css +0 -1043
  214. package/website/versions/0.1.4/assets/icons.png +0 -0
  215. package/website/versions/0.1.4/assets/icons@2x.png +0 -0
  216. package/website/versions/0.1.4/assets/main.js +0 -52
  217. package/website/versions/0.1.4/assets/search.js +0 -1
  218. package/website/versions/0.1.4/assets/style.css +0 -1341
  219. package/website/versions/0.1.4/assets/widgets.png +0 -0
  220. package/website/versions/0.1.4/assets/widgets@2x.png +0 -0
  221. package/website/versions/0.1.4/classes/EssentialEth.html +0 -1
  222. package/website/versions/0.1.4/classes/TinyBig.html +0 -4
  223. package/website/versions/0.1.4/index.html +0 -58
  224. package/website/versions/0.1.4/modules.html +0 -23
  225. package/website/versions/0.2.0/assets/highlight.css +0 -64
  226. package/website/versions/0.2.0/assets/icons.css +0 -1043
  227. package/website/versions/0.2.0/assets/icons.png +0 -0
  228. package/website/versions/0.2.0/assets/icons@2x.png +0 -0
  229. package/website/versions/0.2.0/assets/main.js +0 -52
  230. package/website/versions/0.2.0/assets/search.js +0 -1
  231. package/website/versions/0.2.0/assets/style.css +0 -1341
  232. package/website/versions/0.2.0/assets/widgets.png +0 -0
  233. package/website/versions/0.2.0/assets/widgets@2x.png +0 -0
  234. package/website/versions/0.2.0/classes/EssentialEth.html +0 -5
  235. package/website/versions/0.2.0/classes/TinyBig.html +0 -146
  236. package/website/versions/0.2.0/index.html +0 -89
  237. package/website/versions/0.2.0/modules.html +0 -25
  238. package/website/versions/0.2.1/assets/highlight.css +0 -64
  239. package/website/versions/0.2.1/assets/icons.css +0 -1043
  240. package/website/versions/0.2.1/assets/icons.png +0 -0
  241. package/website/versions/0.2.1/assets/icons@2x.png +0 -0
  242. package/website/versions/0.2.1/assets/main.js +0 -52
  243. package/website/versions/0.2.1/assets/search.js +0 -1
  244. package/website/versions/0.2.1/assets/style.css +0 -1341
  245. package/website/versions/0.2.1/assets/widgets.png +0 -0
  246. package/website/versions/0.2.1/assets/widgets@2x.png +0 -0
  247. package/website/versions/0.2.1/classes/EssentialEth.html +0 -5
  248. package/website/versions/0.2.1/classes/TinyBig.html +0 -146
  249. package/website/versions/0.2.1/index.html +0 -96
  250. package/website/versions/0.2.1/modules.html +0 -29
  251. package/website/versions/0.2.2/assets/highlight.css +0 -64
  252. package/website/versions/0.2.2/assets/icons.css +0 -1043
  253. package/website/versions/0.2.2/assets/icons.png +0 -0
  254. package/website/versions/0.2.2/assets/icons@2x.png +0 -0
  255. package/website/versions/0.2.2/assets/main.js +0 -52
  256. package/website/versions/0.2.2/assets/search.js +0 -1
  257. package/website/versions/0.2.2/assets/style.css +0 -1341
  258. package/website/versions/0.2.2/assets/widgets.png +0 -0
  259. package/website/versions/0.2.2/assets/widgets@2x.png +0 -0
  260. package/website/versions/0.2.2/classes/EssentialEth.html +0 -5
  261. package/website/versions/0.2.2/classes/TinyBig.html +0 -146
  262. package/website/versions/0.2.2/index.html +0 -96
  263. package/website/versions/0.2.2/modules.html +0 -29
  264. package/website/versions/0.3.0/.nojekyll +0 -1
  265. package/website/versions/0.3.0/assets/highlight.css +0 -71
  266. package/website/versions/0.3.0/assets/icons.css +0 -1043
  267. package/website/versions/0.3.0/assets/icons.png +0 -0
  268. package/website/versions/0.3.0/assets/icons@2x.png +0 -0
  269. package/website/versions/0.3.0/assets/main.js +0 -52
  270. package/website/versions/0.3.0/assets/search.js +0 -1
  271. package/website/versions/0.3.0/assets/style.css +0 -1384
  272. package/website/versions/0.3.0/assets/widgets.png +0 -0
  273. package/website/versions/0.3.0/assets/widgets@2x.png +0 -0
  274. package/website/versions/0.3.0/classes/Contract.html +0 -15
  275. package/website/versions/0.3.0/classes/TinyBig.html +0 -156
  276. package/website/versions/0.3.0/index.html +0 -123
  277. package/website/versions/0.3.0/modules.html +0 -32
  278. package/website/versions/0.3.1/.nojekyll +0 -1
  279. package/website/versions/0.3.1/assets/highlight.css +0 -71
  280. package/website/versions/0.3.1/assets/icons.css +0 -1043
  281. package/website/versions/0.3.1/assets/icons.png +0 -0
  282. package/website/versions/0.3.1/assets/icons@2x.png +0 -0
  283. package/website/versions/0.3.1/assets/main.js +0 -52
  284. package/website/versions/0.3.1/assets/search.js +0 -1
  285. package/website/versions/0.3.1/assets/style.css +0 -1384
  286. package/website/versions/0.3.1/assets/widgets.png +0 -0
  287. package/website/versions/0.3.1/assets/widgets@2x.png +0 -0
  288. package/website/versions/0.3.1/classes/Contract.html +0 -15
  289. package/website/versions/0.3.1/classes/TinyBig.html +0 -156
  290. package/website/versions/0.3.1/index.html +0 -123
  291. package/website/versions/0.3.1/modules.html +0 -32
  292. package/website/versions/0.3.2/.nojekyll +0 -1
  293. package/website/versions/0.3.2/assets/highlight.css +0 -71
  294. package/website/versions/0.3.2/assets/icons.css +0 -1043
  295. package/website/versions/0.3.2/assets/icons.png +0 -0
  296. package/website/versions/0.3.2/assets/icons@2x.png +0 -0
  297. package/website/versions/0.3.2/assets/main.js +0 -52
  298. package/website/versions/0.3.2/assets/search.js +0 -1
  299. package/website/versions/0.3.2/assets/style.css +0 -1384
  300. package/website/versions/0.3.2/assets/widgets.png +0 -0
  301. package/website/versions/0.3.2/assets/widgets@2x.png +0 -0
  302. package/website/versions/0.3.2/classes/Contract.html +0 -15
  303. package/website/versions/0.3.2/classes/JsonRpcProvider.html +0 -5
  304. package/website/versions/0.3.2/classes/TinyBig.html +0 -156
  305. package/website/versions/0.3.2/index.html +0 -123
  306. package/website/versions/0.3.2/modules.html +0 -32
  307. package/website/versions/0.3.3/.nojekyll +0 -1
  308. package/website/versions/0.3.3/assets/highlight.css +0 -71
  309. package/website/versions/0.3.3/assets/icons.css +0 -1043
  310. package/website/versions/0.3.3/assets/icons.png +0 -0
  311. package/website/versions/0.3.3/assets/icons@2x.png +0 -0
  312. package/website/versions/0.3.3/assets/main.js +0 -52
  313. package/website/versions/0.3.3/assets/search.js +0 -1
  314. package/website/versions/0.3.3/assets/style.css +0 -1384
  315. package/website/versions/0.3.3/assets/widgets.png +0 -0
  316. package/website/versions/0.3.3/assets/widgets@2x.png +0 -0
  317. package/website/versions/0.3.3/classes/Contract.html +0 -15
  318. package/website/versions/0.3.3/classes/JsonRpcProvider.html +0 -5
  319. package/website/versions/0.3.3/classes/TinyBig.html +0 -156
  320. package/website/versions/0.3.3/index.html +0 -123
  321. package/website/versions/0.3.3/interfaces/Block.html +0 -1
  322. package/website/versions/0.3.3/interfaces/Transaction.html +0 -1
  323. package/website/versions/0.3.3/modules.html +0 -32
  324. package/website/versions/0.4.0/.nojekyll +0 -1
  325. package/website/versions/0.4.0/assets/highlight.css +0 -71
  326. package/website/versions/0.4.0/assets/icons.css +0 -1043
  327. package/website/versions/0.4.0/assets/icons.png +0 -0
  328. package/website/versions/0.4.0/assets/icons@2x.png +0 -0
  329. package/website/versions/0.4.0/assets/main.js +0 -52
  330. package/website/versions/0.4.0/assets/search.js +0 -1
  331. package/website/versions/0.4.0/assets/style.css +0 -1384
  332. package/website/versions/0.4.0/assets/widgets.png +0 -0
  333. package/website/versions/0.4.0/assets/widgets@2x.png +0 -0
  334. package/website/versions/0.4.0/classes/Contract.html +0 -15
  335. package/website/versions/0.4.0/classes/JsonRpcProvider.html +0 -6
  336. package/website/versions/0.4.0/classes/TinyBig.html +0 -156
  337. package/website/versions/0.4.0/index.html +0 -148
  338. package/website/versions/0.4.0/interfaces/Block.html +0 -1
  339. package/website/versions/0.4.0/interfaces/Transaction.html +0 -1
  340. package/website/versions/0.4.0/modules.html +0 -32
  341. package/website/versions/0.4.1/.nojekyll +0 -1
  342. package/website/versions/0.4.1/assets/highlight.css +0 -71
  343. package/website/versions/0.4.1/assets/icons.css +0 -1043
  344. package/website/versions/0.4.1/assets/icons.png +0 -0
  345. package/website/versions/0.4.1/assets/icons@2x.png +0 -0
  346. package/website/versions/0.4.1/assets/main.js +0 -52
  347. package/website/versions/0.4.1/assets/search.js +0 -1
  348. package/website/versions/0.4.1/assets/style.css +0 -1384
  349. package/website/versions/0.4.1/assets/widgets.png +0 -0
  350. package/website/versions/0.4.1/assets/widgets@2x.png +0 -0
  351. package/website/versions/0.4.1/classes/Contract.html +0 -15
  352. package/website/versions/0.4.1/classes/JsonRpcProvider.html +0 -6
  353. package/website/versions/0.4.1/classes/TinyBig.html +0 -156
  354. package/website/versions/0.4.1/index.html +0 -148
  355. package/website/versions/0.4.1/interfaces/Block.html +0 -1
  356. package/website/versions/0.4.1/interfaces/Transaction.html +0 -1
  357. package/website/versions/0.4.1/modules.html +0 -32
  358. package/website/versions/0.4.2/.nojekyll +0 -1
  359. package/website/versions/0.4.2/assets/highlight.css +0 -71
  360. package/website/versions/0.4.2/assets/icons.css +0 -1043
  361. package/website/versions/0.4.2/assets/icons.png +0 -0
  362. package/website/versions/0.4.2/assets/icons@2x.png +0 -0
  363. package/website/versions/0.4.2/assets/main.js +0 -52
  364. package/website/versions/0.4.2/assets/search.js +0 -1
  365. package/website/versions/0.4.2/assets/style.css +0 -1384
  366. package/website/versions/0.4.2/assets/widgets.png +0 -0
  367. package/website/versions/0.4.2/assets/widgets@2x.png +0 -0
  368. package/website/versions/0.4.2/classes/Contract.html +0 -15
  369. package/website/versions/0.4.2/classes/JsonRpcProvider.html +0 -8
  370. package/website/versions/0.4.2/classes/TinyBig.html +0 -156
  371. package/website/versions/0.4.2/index.html +0 -199
  372. package/website/versions/0.4.2/interfaces/Block.html +0 -1
  373. package/website/versions/0.4.2/interfaces/Transaction.html +0 -1
  374. package/website/versions/0.4.2/modules.html +0 -34
  375. package/website/versions/0.4.3/.nojekyll +0 -1
  376. package/website/versions/0.4.3/assets/highlight.css +0 -71
  377. package/website/versions/0.4.3/assets/icons.css +0 -1043
  378. package/website/versions/0.4.3/assets/icons.png +0 -0
  379. package/website/versions/0.4.3/assets/icons@2x.png +0 -0
  380. package/website/versions/0.4.3/assets/main.js +0 -52
  381. package/website/versions/0.4.3/assets/search.js +0 -1
  382. package/website/versions/0.4.3/assets/style.css +0 -1384
  383. package/website/versions/0.4.3/assets/widgets.png +0 -0
  384. package/website/versions/0.4.3/assets/widgets@2x.png +0 -0
  385. package/website/versions/0.4.3/classes/Contract.html +0 -15
  386. package/website/versions/0.4.3/classes/JsonRpcProvider.html +0 -8
  387. package/website/versions/0.4.3/classes/TinyBig.html +0 -159
  388. package/website/versions/0.4.3/index.html +0 -199
  389. package/website/versions/0.4.3/interfaces/Block.html +0 -1
  390. package/website/versions/0.4.3/interfaces/Transaction.html +0 -1
  391. package/website/versions/0.4.3/modules.html +0 -34
  392. package/website/versions/0.4.6/.nojekyll +0 -1
  393. package/website/versions/0.4.6/assets/highlight.css +0 -71
  394. package/website/versions/0.4.6/assets/icons.css +0 -1043
  395. package/website/versions/0.4.6/assets/icons.png +0 -0
  396. package/website/versions/0.4.6/assets/icons@2x.png +0 -0
  397. package/website/versions/0.4.6/assets/main.js +0 -52
  398. package/website/versions/0.4.6/assets/search.js +0 -1
  399. package/website/versions/0.4.6/assets/style.css +0 -1413
  400. package/website/versions/0.4.6/assets/widgets.png +0 -0
  401. package/website/versions/0.4.6/assets/widgets@2x.png +0 -0
  402. package/website/versions/0.4.6/classes/Contract.html +0 -15
  403. package/website/versions/0.4.6/classes/JsonRpcProvider.html +0 -8
  404. package/website/versions/0.4.6/classes/TinyBig.html +0 -159
  405. package/website/versions/0.4.6/index.html +0 -207
  406. package/website/versions/0.4.6/interfaces/Block.html +0 -1
  407. package/website/versions/0.4.6/interfaces/Transaction.html +0 -1
  408. package/website/versions/0.4.6/modules.html +0 -34
  409. package/website/versions/0.4.8/.nojekyll +0 -1
  410. package/website/versions/0.4.8/assets/highlight.css +0 -71
  411. package/website/versions/0.4.8/assets/icons.css +0 -1043
  412. package/website/versions/0.4.8/assets/icons.png +0 -0
  413. package/website/versions/0.4.8/assets/icons@2x.png +0 -0
  414. package/website/versions/0.4.8/assets/main.js +0 -52
  415. package/website/versions/0.4.8/assets/search.js +0 -1
  416. package/website/versions/0.4.8/assets/style.css +0 -1413
  417. package/website/versions/0.4.8/assets/widgets.png +0 -0
  418. package/website/versions/0.4.8/assets/widgets@2x.png +0 -0
  419. package/website/versions/0.4.8/classes/Contract.html +0 -15
  420. package/website/versions/0.4.8/classes/JsonRpcProvider.html +0 -8
  421. package/website/versions/0.4.8/classes/TinyBig.html +0 -161
  422. package/website/versions/0.4.8/index.html +0 -207
  423. package/website/versions/0.4.8/interfaces/Block.html +0 -1
  424. package/website/versions/0.4.8/interfaces/Transaction.html +0 -1
  425. package/website/versions/0.4.8/modules.html +0 -34
  426. package/website/versions/0.4.9-beta.0/.nojekyll +0 -1
  427. package/website/versions/0.4.9-beta.0/assets/highlight.css +0 -71
  428. package/website/versions/0.4.9-beta.0/assets/icons.css +0 -1043
  429. package/website/versions/0.4.9-beta.0/assets/icons.png +0 -0
  430. package/website/versions/0.4.9-beta.0/assets/icons@2x.png +0 -0
  431. package/website/versions/0.4.9-beta.0/assets/main.js +0 -52
  432. package/website/versions/0.4.9-beta.0/assets/search.js +0 -1
  433. package/website/versions/0.4.9-beta.0/assets/style.css +0 -1413
  434. package/website/versions/0.4.9-beta.0/assets/widgets.png +0 -0
  435. package/website/versions/0.4.9-beta.0/assets/widgets@2x.png +0 -0
  436. package/website/versions/0.4.9-beta.0/classes/Contract.html +0 -13
  437. package/website/versions/0.4.9-beta.0/classes/JsonRpcProvider.html +0 -8
  438. package/website/versions/0.4.9-beta.0/classes/TinyBig.html +0 -161
  439. package/website/versions/0.4.9-beta.0/index.html +0 -207
  440. package/website/versions/0.4.9-beta.0/interfaces/Block.html +0 -1
  441. package/website/versions/0.4.9-beta.0/interfaces/JSONABIArgument.html +0 -1
  442. package/website/versions/0.4.9-beta.0/interfaces/Network.html +0 -3
  443. package/website/versions/0.4.9-beta.0/interfaces/Transaction.html +0 -1
  444. package/website/versions/0.4.9-beta.0/modules.html +0 -32
  445. package/website/versions/0.4.9-beta.1/.nojekyll +0 -1
  446. package/website/versions/0.4.9-beta.1/assets/highlight.css +0 -71
  447. package/website/versions/0.4.9-beta.1/assets/icons.css +0 -1043
  448. package/website/versions/0.4.9-beta.1/assets/icons.png +0 -0
  449. package/website/versions/0.4.9-beta.1/assets/icons@2x.png +0 -0
  450. package/website/versions/0.4.9-beta.1/assets/main.js +0 -52
  451. package/website/versions/0.4.9-beta.1/assets/search.js +0 -1
  452. package/website/versions/0.4.9-beta.1/assets/style.css +0 -1413
  453. package/website/versions/0.4.9-beta.1/assets/widgets.png +0 -0
  454. package/website/versions/0.4.9-beta.1/assets/widgets@2x.png +0 -0
  455. package/website/versions/0.4.9-beta.1/classes/Contract.html +0 -13
  456. package/website/versions/0.4.9-beta.1/classes/JsonRpcProvider.html +0 -8
  457. package/website/versions/0.4.9-beta.1/classes/TinyBig.html +0 -161
  458. package/website/versions/0.4.9-beta.1/index.html +0 -207
  459. package/website/versions/0.4.9-beta.1/interfaces/Block.html +0 -1
  460. package/website/versions/0.4.9-beta.1/interfaces/JSONABIArgument.html +0 -1
  461. package/website/versions/0.4.9-beta.1/interfaces/Network.html +0 -3
  462. package/website/versions/0.4.9-beta.1/interfaces/Transaction.html +0 -1
  463. package/website/versions/0.4.9-beta.1/modules.html +0 -32
  464. package/website/versions/versions/0.1.2/assets/highlight.css +0 -57
  465. package/website/versions/versions/0.1.2/assets/icons.css +0 -1043
  466. package/website/versions/versions/0.1.2/assets/icons.png +0 -0
  467. package/website/versions/versions/0.1.2/assets/icons@2x.png +0 -0
  468. package/website/versions/versions/0.1.2/assets/main.js +0 -52
  469. package/website/versions/versions/0.1.2/assets/search.js +0 -1
  470. package/website/versions/versions/0.1.2/assets/style.css +0 -1341
  471. package/website/versions/versions/0.1.2/assets/widgets.png +0 -0
  472. package/website/versions/versions/0.1.2/assets/widgets@2x.png +0 -0
  473. package/website/versions/versions/0.1.2/classes/TinyBig.html +0 -4
  474. package/website/versions/versions/0.1.2/index.html +0 -20
  475. package/website/versions/versions/0.1.2/modules.html +0 -23
  476. package/website/versions/versions/0.1.3/assets/highlight.css +0 -64
  477. package/website/versions/versions/0.1.3/assets/icons.css +0 -1043
  478. package/website/versions/versions/0.1.3/assets/icons.png +0 -0
  479. package/website/versions/versions/0.1.3/assets/icons@2x.png +0 -0
  480. package/website/versions/versions/0.1.3/assets/main.js +0 -52
  481. package/website/versions/versions/0.1.3/assets/search.js +0 -1
  482. package/website/versions/versions/0.1.3/assets/style.css +0 -1341
  483. package/website/versions/versions/0.1.3/assets/widgets.png +0 -0
  484. package/website/versions/versions/0.1.3/assets/widgets@2x.png +0 -0
  485. package/website/versions/versions/0.1.3/classes/TinyBig.html +0 -4
  486. package/website/versions/versions/0.1.3/index.html +0 -53
  487. package/website/versions/versions/0.1.3/modules.html +0 -23
  488. package/website/versions/versions/0.1.4/assets/highlight.css +0 -64
  489. package/website/versions/versions/0.1.4/assets/icons.css +0 -1043
  490. package/website/versions/versions/0.1.4/assets/icons.png +0 -0
  491. package/website/versions/versions/0.1.4/assets/icons@2x.png +0 -0
  492. package/website/versions/versions/0.1.4/assets/main.js +0 -52
  493. package/website/versions/versions/0.1.4/assets/search.js +0 -1
  494. package/website/versions/versions/0.1.4/assets/style.css +0 -1341
  495. package/website/versions/versions/0.1.4/assets/widgets.png +0 -0
  496. package/website/versions/versions/0.1.4/assets/widgets@2x.png +0 -0
  497. package/website/versions/versions/0.1.4/classes/TinyBig.html +0 -4
  498. package/website/versions/versions/0.1.4/index.html +0 -58
  499. package/website/versions/versions/0.1.4/modules.html +0 -23
@@ -1,34 +0,0 @@
1
- <!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>essential-eth - v0.4.6</title><meta name="description" content="Documentation for essential-eth - v0.4.6"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script async src="assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">essential-eth - v0.4.6</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><h1>essential-eth - v0.4.6</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Classes</h3><ul class="tsd-index-list"><li class="tsd-kind-class"><a href="classes/Contract.html" class="tsd-kind-icon">Contract</a></li><li class="tsd-kind-class"><a href="classes/JsonRpcProvider.html" class="tsd-kind-icon">Json<wbr/>Rpc<wbr/>Provider</a></li><li class="tsd-kind-class"><a href="classes/TinyBig.html" class="tsd-kind-icon">Tiny<wbr/>Big</a></li></ul></section><section class="tsd-index-section "><h3>Interfaces</h3><ul class="tsd-index-list"><li class="tsd-kind-interface"><a href="interfaces/Block.html" class="tsd-kind-icon">Block</a></li><li class="tsd-kind-interface"><a href="interfaces/Transaction.html" class="tsd-kind-icon">Transaction</a></li></ul></section><section class="tsd-index-section "><h3>Type aliases</h3><ul class="tsd-index-list"><li class="tsd-kind-type-alias"><a href="modules.html#ContractTypes" class="tsd-kind-icon">Contract<wbr/>Types</a></li><li class="tsd-kind-type-alias"><a href="modules.html#JSONABI" class="tsd-kind-icon">JSONABI</a></li><li class="tsd-kind-type-alias"><a href="modules.html#JSONABIArgument" class="tsd-kind-icon">JSONABIArgument</a></li><li class="tsd-kind-type-alias"><a href="modules.html#Network" class="tsd-kind-icon">Network</a></li></ul></section><section class="tsd-index-section "><h3>Functions</h3><ul class="tsd-index-list"><li class="tsd-kind-function"><a href="modules.html#etherToWei" class="tsd-kind-icon">ether<wbr/>To<wbr/>Wei</a></li><li class="tsd-kind-function"><a href="modules.html#isAddress" class="tsd-kind-icon">is<wbr/>Address</a></li><li class="tsd-kind-function"><a href="modules.html#jsonRpcProvider" class="tsd-kind-icon">json<wbr/>Rpc<wbr/>Provider</a></li><li class="tsd-kind-function"><a href="modules.html#tinyBig" class="tsd-kind-icon">tiny<wbr/>Big</a></li><li class="tsd-kind-function"><a href="modules.html#toChecksumAddress" class="tsd-kind-icon">to<wbr/>Checksum<wbr/>Address</a></li><li class="tsd-kind-function"><a href="modules.html#weiToEther" class="tsd-kind-icon">wei<wbr/>To<wbr/>Ether</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Type aliases</h2><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="ContractTypes" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Contract<wbr/>Types<a href="#ContractTypes" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Contract<wbr/>Types<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;bool&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes1&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes2&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes3&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes4&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes5&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes6&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes7&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes8&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes9&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes10&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes11&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes12&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes13&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes14&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes15&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes16&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes17&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes18&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes19&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes20&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes21&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes22&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes23&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes24&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes25&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes26&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes27&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes28&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes29&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes30&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes31&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes32&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes32[]&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;address&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;address payable&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;address[4]&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;address[100]&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;uint256&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;uint256[100]&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;uint8&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;uint32&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/4ec9984/src/types/Contract.types.ts#L1">src/types/Contract.types.ts:1</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="JSONABI" class="tsd-anchor"></a><h3 class="tsd-anchor-link">JSONABI<a href="#JSONABI" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">JSONABI<span class="tsd-signature-symbol">:</span> <a href="modules.html#JSONABIArgument" class="tsd-signature-type" data-tsd-kind="Type alias">JSONABIArgument</a><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/4ec9984/src/types/Contract.types.ts#L67">src/types/Contract.types.ts:67</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="JSONABIArgument" class="tsd-anchor"></a><h3 class="tsd-anchor-link">JSONABIArgument<a href="#JSONABIArgument" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">JSONABIArgument<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>anonymous<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol">; </span>constant<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>gas<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>inputs<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>indexed<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>internalType<span class="tsd-signature-symbol">?: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>outputs<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">{ </span>internalType<span class="tsd-signature-symbol">?: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>payable<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>stateMutability<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">&quot;view&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;nonpayable&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;function&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;event&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;constructor&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;error&quot;</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/4ec9984/src/types/Contract.types.ts#L47">src/types/Contract.types.ts:47</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> anonymous<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">false</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> constant<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> gas<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>inputs<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>indexed<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>internalType<span class="tsd-signature-symbol">?: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> name<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> outputs<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">{ </span>internalType<span class="tsd-signature-symbol">?: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> payable<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> state<wbr/>Mutability<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">&quot;view&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;nonpayable&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;function&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;event&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;constructor&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;error&quot;</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="Network" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Network<a href="#Network" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Network<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>chainId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>ensAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/4ec9984/src/types/Network.types.ts#L4">src/types/Network.types.ts:4</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
2
- <p>A trimmed version of <a href="https://chainid.network/chains.json">https://chainid.network/chains.json</a></p>
3
- </div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>chain<wbr/>Id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>ens<wbr/>Address<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span></h5></li><li class="tsd-parameter"><h5>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li></ul></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Functions</h2><section class="tsd-panel tsd-member tsd-kind-function"><a id="etherToWei" class="tsd-anchor"></a><h3 class="tsd-anchor-link">ether<wbr/>To<wbr/>Wei<a href="#etherToWei" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">ether<wbr/>To<wbr/>Wei<span class="tsd-signature-symbol">(</span>etherQuantity<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Big</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/4ec9984/src/utils/ether-to-wei.ts#L26">src/utils/ether-to-wei.ts:26</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
4
- <p>Similar to <a href="https://docs.ethers.io/v4/api-utils.html#ether-strings-and-wei">&quot;parseEther&quot; in ethers.js</a></p>
5
- </div><div><p>Similar to <a href="https://web3js.readthedocs.io/en/v1.2.11/web3-utils.html?highlight=towei#towei">&quot;toWei&quot; in web3</a></p>
6
- </div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-javascript"><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-2">&#39;1000&#39;</span><span class="hl-1">).</span><span class="hl-0">toString</span><span class="hl-1">()</span><br/><span class="hl-3">// &#39;1000000000000000000000&#39;</span><br/><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-4">1000</span><span class="hl-1">).</span><span class="hl-0">toString</span><span class="hl-1">()</span><br/><span class="hl-3">// &#39;1000000000000000000000&#39;</span>
7
- </code></pre>
8
- </dd><dt>example</dt><dd><pre><code class="language-javascript"><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-2">&#39;1000&#39;</span><span class="hl-1">).</span><span class="hl-0">toNumber</span><span class="hl-1">()</span><br/><span class="hl-3">// 1000000000000000000000</span><br/><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-4">1000</span><span class="hl-1">).</span><span class="hl-0">toNumber</span><span class="hl-1">()</span><br/><span class="hl-3">// 1000000000000000000000</span>
9
- </code></pre>
10
- </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>etherQuantity: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Big</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="isAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link">is<wbr/>Address<a href="#isAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">is<wbr/>Address<span class="tsd-signature-symbol">(</span>address<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/4ec9984/src/utils/is-address.ts#L8">src/utils/is-address.ts:8</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
11
- <p>Returns a boolean as to whether the input is a valid address.
12
- Does NOT support ICAP addresses</p>
13
- </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>address: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="jsonRpcProvider" class="tsd-anchor"></a><h3 class="tsd-anchor-link">json<wbr/>Rpc<wbr/>Provider<a href="#jsonRpcProvider" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">json<wbr/>Rpc<wbr/>Provider<span class="tsd-signature-symbol">(</span>rpcUrl<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/JsonRpcProvider.html" class="tsd-signature-type" data-tsd-kind="Class">JsonRpcProvider</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/4ec9984/src/providers/JsonRpcProvider.ts#L67">src/providers/JsonRpcProvider.ts:67</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
14
- <p>Helper function to avoid &quot;new&quot;</p>
15
- </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> rpcUrl: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="classes/JsonRpcProvider.html" class="tsd-signature-type" data-tsd-kind="Class">JsonRpcProvider</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="tinyBig" class="tsd-anchor"></a><h3 class="tsd-anchor-link">tiny<wbr/>Big<a href="#tinyBig" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">tiny<wbr/>Big<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Big</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/4ec9984/src/shared/tiny-big/tiny-big.ts#L34">src/shared/tiny-big/tiny-big.ts:34</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
16
- <p>Helper factory function so that you don&#39;t have to type &quot;new&quot; when instantiating a new TinyBig</p>
17
- </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Big</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="toChecksumAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Checksum<wbr/>Address<a href="#toChecksumAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">to<wbr/>Checksum<wbr/>Address<span class="tsd-signature-symbol">(</span>address<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/4ec9984/src/utils/to-checksum-address.ts#L20">src/utils/to-checksum-address.ts:20</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
18
- <p>Returns an Ethereum address in proper mixed-case checksum.
19
- Does NOT support ICAP</p>
20
- </div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-javascript"><span class="hl-0">toChecksumAddress</span><span class="hl-1">(</span><span class="hl-2">&#39;0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359&#39;</span><span class="hl-1">);</span><br/><span class="hl-3">// &#39;0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359&#39;</span>
21
- </code></pre>
22
- <p>Similar to <a href="https://docs.ethers.io/v4/api-utils.html#utils-getaddress">&quot;getAddress&quot; in ethers.js</a></p>
23
- <p>Similar to <a href="https://web3js.readthedocs.io/en/v1.2.11/web3-utils.html#tochecksumaddress">&quot;toChecksumAddress&quot; in web3</a></p>
24
- </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>address: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
25
- <p>An Ethereum address. Mixed, lower, and uppercase are all valid</p>
26
- </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="weiToEther" class="tsd-anchor"></a><h3 class="tsd-anchor-link">wei<wbr/>To<wbr/>Ether<a href="#weiToEther" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">wei<wbr/>To<wbr/>Ether<span class="tsd-signature-symbol">(</span>weiQuantity<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Big</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/4ec9984/src/utils/wei-to-ether.ts#L29">src/utils/wei-to-ether.ts:29</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
27
- <p>Convert from Ether to Wei</p>
28
- </div><div><p>Similar to <a href="https://docs.ethers.io/v4/api-utils.html#ether-strings-and-wei">&quot;formatEther&quot; in ethers.js</a></p>
29
- <p>Similar to <a href="https://web3js.readthedocs.io/en/v1.2.11/web3-utils.html#fromwei">&quot;fromWei&quot; in web3</a></p>
30
- </div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-javascript"><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-2">&#39;1000&#39;</span><span class="hl-1">).</span><span class="hl-0">toString</span><span class="hl-1">()</span><br/><span class="hl-3">// &#39;1000000000000000000000&#39;</span><br/><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-4">1000</span><span class="hl-1">).</span><span class="hl-0">toString</span><span class="hl-1">()</span><br/><span class="hl-2">&#39;1000000000000000000000&#39;</span>
31
- </code></pre>
32
- </dd><dt>example</dt><dd><pre><code class="language-javascript"><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-2">&#39;1000&#39;</span><span class="hl-1">).</span><span class="hl-0">toNumber</span><span class="hl-1">()</span><br/><span class="hl-3">// 1000000000000000000000</span><br/><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-4">1000</span><span class="hl-1">).</span><span class="hl-0">toNumber</span><span class="hl-1">()</span><br/><span class="hl-3">// 1000000000000000000000</span>
33
- </code></pre>
34
- </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>weiQuantity: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Big</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="modules.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="tsd-kind-class"><a href="classes/Contract.html" class="tsd-kind-icon">Contract</a></li><li class="tsd-kind-class"><a href="classes/JsonRpcProvider.html" class="tsd-kind-icon">Json<wbr/>Rpc<wbr/>Provider</a></li><li class="tsd-kind-class"><a href="classes/TinyBig.html" class="tsd-kind-icon">Tiny<wbr/>Big</a></li><li class="tsd-kind-interface"><a href="interfaces/Block.html" class="tsd-kind-icon">Block</a></li><li class="tsd-kind-interface"><a href="interfaces/Transaction.html" class="tsd-kind-icon">Transaction</a></li><li class="tsd-kind-type-alias"><a href="modules.html#ContractTypes" class="tsd-kind-icon">Contract<wbr/>Types</a></li><li class="tsd-kind-type-alias"><a href="modules.html#JSONABI" class="tsd-kind-icon">JSONABI</a></li><li class="tsd-kind-type-alias"><a href="modules.html#JSONABIArgument" class="tsd-kind-icon">JSONABIArgument</a></li><li class="tsd-kind-type-alias"><a href="modules.html#Network" class="tsd-kind-icon">Network</a></li><li class="tsd-kind-function"><a href="modules.html#etherToWei" class="tsd-kind-icon">ether<wbr/>To<wbr/>Wei</a></li><li class="tsd-kind-function"><a href="modules.html#isAddress" class="tsd-kind-icon">is<wbr/>Address</a></li><li class="tsd-kind-function"><a href="modules.html#jsonRpcProvider" class="tsd-kind-icon">json<wbr/>Rpc<wbr/>Provider</a></li><li class="tsd-kind-function"><a href="modules.html#tinyBig" class="tsd-kind-icon">tiny<wbr/>Big</a></li><li class="tsd-kind-function"><a href="modules.html#toChecksumAddress" class="tsd-kind-icon">to<wbr/>Checksum<wbr/>Address</a></li><li class="tsd-kind-function"><a href="modules.html#weiToEther" class="tsd-kind-icon">wei<wbr/>To<wbr/>Ether</a></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="assets/main.js"></script></body></html>
@@ -1 +0,0 @@
1
- TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
@@ -1,71 +0,0 @@
1
- :root {
2
- --light-hl-0: #8250DF;
3
- --dark-hl-0: #D2A8FF;
4
- --light-hl-1: #24292F;
5
- --dark-hl-1: #C9D1D9;
6
- --light-hl-2: #0A3069;
7
- --dark-hl-2: #A5D6FF;
8
- --light-hl-3: #6E7781;
9
- --dark-hl-3: #8B949E;
10
- --light-hl-4: #0550AE;
11
- --dark-hl-4: #79C0FF;
12
- --light-hl-5: #CF222E;
13
- --dark-hl-5: #FF7B72;
14
- --light-hl-6: #953800;
15
- --dark-hl-6: #FFA657;
16
- --light-code-background: #F5F5F5;
17
- --dark-code-background: #0d1117;
18
- }
19
-
20
- @media (prefers-color-scheme: light) { :root {
21
- --hl-0: var(--light-hl-0);
22
- --hl-1: var(--light-hl-1);
23
- --hl-2: var(--light-hl-2);
24
- --hl-3: var(--light-hl-3);
25
- --hl-4: var(--light-hl-4);
26
- --hl-5: var(--light-hl-5);
27
- --hl-6: var(--light-hl-6);
28
- --code-background: var(--light-code-background);
29
- } }
30
-
31
- @media (prefers-color-scheme: dark) { :root {
32
- --hl-0: var(--dark-hl-0);
33
- --hl-1: var(--dark-hl-1);
34
- --hl-2: var(--dark-hl-2);
35
- --hl-3: var(--dark-hl-3);
36
- --hl-4: var(--dark-hl-4);
37
- --hl-5: var(--dark-hl-5);
38
- --hl-6: var(--dark-hl-6);
39
- --code-background: var(--dark-code-background);
40
- } }
41
-
42
- body.light {
43
- --hl-0: var(--light-hl-0);
44
- --hl-1: var(--light-hl-1);
45
- --hl-2: var(--light-hl-2);
46
- --hl-3: var(--light-hl-3);
47
- --hl-4: var(--light-hl-4);
48
- --hl-5: var(--light-hl-5);
49
- --hl-6: var(--light-hl-6);
50
- --code-background: var(--light-code-background);
51
- }
52
-
53
- body.dark {
54
- --hl-0: var(--dark-hl-0);
55
- --hl-1: var(--dark-hl-1);
56
- --hl-2: var(--dark-hl-2);
57
- --hl-3: var(--dark-hl-3);
58
- --hl-4: var(--dark-hl-4);
59
- --hl-5: var(--dark-hl-5);
60
- --hl-6: var(--dark-hl-6);
61
- --code-background: var(--dark-code-background);
62
- }
63
-
64
- .hl-0 { color: var(--hl-0); }
65
- .hl-1 { color: var(--hl-1); }
66
- .hl-2 { color: var(--hl-2); }
67
- .hl-3 { color: var(--hl-3); }
68
- .hl-4 { color: var(--hl-4); }
69
- .hl-5 { color: var(--hl-5); }
70
- .hl-6 { color: var(--hl-6); }
71
- pre, code { background: var(--code-background); }