quantumcoin 6.14.1

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 (1301) hide show
  1. package/CHANGELOG.md +442 -0
  2. package/FUNDING.json +10 -0
  3. package/LICENSE.md +21 -0
  4. package/README.md +140 -0
  5. package/SECURITY.md +34 -0
  6. package/dist/README.md +22 -0
  7. package/dist/quantumcoin.js +26252 -0
  8. package/dist/quantumcoin.js.map +1 -0
  9. package/dist/quantumcoin.min.js +1 -0
  10. package/dist/quantumcoin.umd.js +26453 -0
  11. package/dist/quantumcoin.umd.js.map +1 -0
  12. package/dist/quantumcoin.umd.min.js +1 -0
  13. package/dist/wordlists-extra.js +1500 -0
  14. package/dist/wordlists-extra.js.map +1 -0
  15. package/dist/wordlists-extra.min.js +1 -0
  16. package/lib.commonjs/README.md +16 -0
  17. package/lib.commonjs/_version.d.ts +5 -0
  18. package/lib.commonjs/_version.d.ts.map +1 -0
  19. package/lib.commonjs/_version.js +9 -0
  20. package/lib.commonjs/_version.js.map +1 -0
  21. package/lib.commonjs/abi/abi-coder.d.ts +61 -0
  22. package/lib.commonjs/abi/abi-coder.d.ts.map +1 -0
  23. package/lib.commonjs/abi/abi-coder.js +210 -0
  24. package/lib.commonjs/abi/abi-coder.js.map +1 -0
  25. package/lib.commonjs/abi/bytes32.d.ts +15 -0
  26. package/lib.commonjs/abi/bytes32.d.ts.map +1 -0
  27. package/lib.commonjs/abi/bytes32.js +45 -0
  28. package/lib.commonjs/abi/bytes32.js.map +1 -0
  29. package/lib.commonjs/abi/coders/abstract-coder.d.ts +124 -0
  30. package/lib.commonjs/abi/coders/abstract-coder.d.ts.map +1 -0
  31. package/lib.commonjs/abi/coders/abstract-coder.js +472 -0
  32. package/lib.commonjs/abi/coders/abstract-coder.js.map +1 -0
  33. package/lib.commonjs/abi/coders/address.d.ts +13 -0
  34. package/lib.commonjs/abi/coders/address.d.ts.map +1 -0
  35. package/lib.commonjs/abi/coders/address.js +33 -0
  36. package/lib.commonjs/abi/coders/address.js.map +1 -0
  37. package/lib.commonjs/abi/coders/anonymous.d.ts +15 -0
  38. package/lib.commonjs/abi/coders/anonymous.d.ts.map +1 -0
  39. package/lib.commonjs/abi/coders/anonymous.js +27 -0
  40. package/lib.commonjs/abi/coders/anonymous.js.map +1 -0
  41. package/lib.commonjs/abi/coders/array.d.ts +25 -0
  42. package/lib.commonjs/abi/coders/array.d.ts.map +1 -0
  43. package/lib.commonjs/abi/coders/array.js +165 -0
  44. package/lib.commonjs/abi/coders/array.js.map +1 -0
  45. package/lib.commonjs/abi/coders/boolean.d.ts +13 -0
  46. package/lib.commonjs/abi/coders/boolean.d.ts.map +1 -0
  47. package/lib.commonjs/abi/coders/boolean.js +25 -0
  48. package/lib.commonjs/abi/coders/boolean.js.map +1 -0
  49. package/lib.commonjs/abi/coders/bytes.d.ts +19 -0
  50. package/lib.commonjs/abi/coders/bytes.d.ts.map +1 -0
  51. package/lib.commonjs/abi/coders/bytes.js +39 -0
  52. package/lib.commonjs/abi/coders/bytes.js.map +1 -0
  53. package/lib.commonjs/abi/coders/fixed-bytes.d.ts +15 -0
  54. package/lib.commonjs/abi/coders/fixed-bytes.d.ts.map +1 -0
  55. package/lib.commonjs/abi/coders/fixed-bytes.js +32 -0
  56. package/lib.commonjs/abi/coders/fixed-bytes.js.map +1 -0
  57. package/lib.commonjs/abi/coders/null.d.ts +12 -0
  58. package/lib.commonjs/abi/coders/null.d.ts.map +1 -0
  59. package/lib.commonjs/abi/coders/null.js +28 -0
  60. package/lib.commonjs/abi/coders/null.js.map +1 -0
  61. package/lib.commonjs/abi/coders/number.d.ts +16 -0
  62. package/lib.commonjs/abi/coders/number.d.ts.map +1 -0
  63. package/lib.commonjs/abi/coders/number.js +49 -0
  64. package/lib.commonjs/abi/coders/number.js.map +1 -0
  65. package/lib.commonjs/abi/coders/string.d.ts +13 -0
  66. package/lib.commonjs/abi/coders/string.d.ts.map +1 -0
  67. package/lib.commonjs/abi/coders/string.js +25 -0
  68. package/lib.commonjs/abi/coders/string.js.map +1 -0
  69. package/lib.commonjs/abi/coders/tuple.d.ts +16 -0
  70. package/lib.commonjs/abi/coders/tuple.d.ts.map +1 -0
  71. package/lib.commonjs/abi/coders/tuple.js +67 -0
  72. package/lib.commonjs/abi/coders/tuple.js.map +1 -0
  73. package/lib.commonjs/abi/fragments.d.ts +466 -0
  74. package/lib.commonjs/abi/fragments.d.ts.map +1 -0
  75. package/lib.commonjs/abi/fragments.js +1331 -0
  76. package/lib.commonjs/abi/fragments.js.map +1 -0
  77. package/lib.commonjs/abi/index.d.ts +18 -0
  78. package/lib.commonjs/abi/index.d.ts.map +1 -0
  79. package/lib.commonjs/abi/index.js +40 -0
  80. package/lib.commonjs/abi/index.js.map +1 -0
  81. package/lib.commonjs/abi/interface.d.ts +382 -0
  82. package/lib.commonjs/abi/interface.d.ts.map +1 -0
  83. package/lib.commonjs/abi/interface.js +1110 -0
  84. package/lib.commonjs/abi/interface.js.map +1 -0
  85. package/lib.commonjs/abi/typed.d.ts +570 -0
  86. package/lib.commonjs/abi/typed.d.ts.map +1 -0
  87. package/lib.commonjs/abi/typed.js +606 -0
  88. package/lib.commonjs/abi/typed.js.map +1 -0
  89. package/lib.commonjs/address/address.d.ts +56 -0
  90. package/lib.commonjs/address/address.d.ts.map +1 -0
  91. package/lib.commonjs/address/address.js +161 -0
  92. package/lib.commonjs/address/address.js.map +1 -0
  93. package/lib.commonjs/address/checks.d.ts +81 -0
  94. package/lib.commonjs/address/checks.d.ts.map +1 -0
  95. package/lib.commonjs/address/checks.js +120 -0
  96. package/lib.commonjs/address/checks.js.map +1 -0
  97. package/lib.commonjs/address/contract-address.d.ts +48 -0
  98. package/lib.commonjs/address/contract-address.d.ts.map +1 -0
  99. package/lib.commonjs/address/contract-address.js +74 -0
  100. package/lib.commonjs/address/contract-address.js.map +1 -0
  101. package/lib.commonjs/address/index.d.ts +49 -0
  102. package/lib.commonjs/address/index.d.ts.map +1 -0
  103. package/lib.commonjs/address/index.js +29 -0
  104. package/lib.commonjs/address/index.js.map +1 -0
  105. package/lib.commonjs/constants/addresses.d.ts +7 -0
  106. package/lib.commonjs/constants/addresses.d.ts.map +1 -0
  107. package/lib.commonjs/constants/addresses.js +10 -0
  108. package/lib.commonjs/constants/addresses.js.map +1 -0
  109. package/lib.commonjs/constants/hashes.d.ts +7 -0
  110. package/lib.commonjs/constants/hashes.d.ts.map +1 -0
  111. package/lib.commonjs/constants/hashes.js +10 -0
  112. package/lib.commonjs/constants/hashes.js.map +1 -0
  113. package/lib.commonjs/constants/index.d.ts +10 -0
  114. package/lib.commonjs/constants/index.d.ts.map +1 -0
  115. package/lib.commonjs/constants/index.js +22 -0
  116. package/lib.commonjs/constants/index.js.map +1 -0
  117. package/lib.commonjs/constants/numbers.d.ts +31 -0
  118. package/lib.commonjs/constants/numbers.d.ts.map +1 -0
  119. package/lib.commonjs/constants/numbers.js +34 -0
  120. package/lib.commonjs/constants/numbers.js.map +1 -0
  121. package/lib.commonjs/constants/strings.d.ts +13 -0
  122. package/lib.commonjs/constants/strings.d.ts.map +1 -0
  123. package/lib.commonjs/constants/strings.js +17 -0
  124. package/lib.commonjs/constants/strings.js.map +1 -0
  125. package/lib.commonjs/contract/contract.d.ts +168 -0
  126. package/lib.commonjs/contract/contract.d.ts.map +1 -0
  127. package/lib.commonjs/contract/contract.js +960 -0
  128. package/lib.commonjs/contract/contract.js.map +1 -0
  129. package/lib.commonjs/contract/factory.d.ts +62 -0
  130. package/lib.commonjs/contract/factory.d.ts.map +1 -0
  131. package/lib.commonjs/contract/factory.js +116 -0
  132. package/lib.commonjs/contract/factory.js.map +1 -0
  133. package/lib.commonjs/contract/index.d.ts +13 -0
  134. package/lib.commonjs/contract/index.d.ts.map +1 -0
  135. package/lib.commonjs/contract/index.js +24 -0
  136. package/lib.commonjs/contract/index.js.map +1 -0
  137. package/lib.commonjs/contract/types.d.ts +193 -0
  138. package/lib.commonjs/contract/types.d.ts.map +1 -0
  139. package/lib.commonjs/contract/types.js +6 -0
  140. package/lib.commonjs/contract/types.js.map +1 -0
  141. package/lib.commonjs/contract/wrappers.d.ts +143 -0
  142. package/lib.commonjs/contract/wrappers.d.ts.map +1 -0
  143. package/lib.commonjs/contract/wrappers.js +186 -0
  144. package/lib.commonjs/contract/wrappers.js.map +1 -0
  145. package/lib.commonjs/crypto/crypto-browser.d.ts +15 -0
  146. package/lib.commonjs/crypto/crypto-browser.d.ts.map +1 -0
  147. package/lib.commonjs/crypto/crypto-browser.js +55 -0
  148. package/lib.commonjs/crypto/crypto-browser.js.map +1 -0
  149. package/lib.commonjs/crypto/crypto.d.ts +2 -0
  150. package/lib.commonjs/crypto/crypto.d.ts.map +1 -0
  151. package/lib.commonjs/crypto/crypto.js +9 -0
  152. package/lib.commonjs/crypto/crypto.js.map +1 -0
  153. package/lib.commonjs/crypto/hmac.d.ts +25 -0
  154. package/lib.commonjs/crypto/hmac.d.ts.map +1 -0
  155. package/lib.commonjs/crypto/hmac.js +51 -0
  156. package/lib.commonjs/crypto/hmac.js.map +1 -0
  157. package/lib.commonjs/crypto/index.d.ts +25 -0
  158. package/lib.commonjs/crypto/index.d.ts.map +1 -0
  159. package/lib.commonjs/crypto/index.js +49 -0
  160. package/lib.commonjs/crypto/index.js.map +1 -0
  161. package/lib.commonjs/crypto/keccak.d.ts +35 -0
  162. package/lib.commonjs/crypto/keccak.d.ts.map +1 -0
  163. package/lib.commonjs/crypto/keccak.js +52 -0
  164. package/lib.commonjs/crypto/keccak.js.map +1 -0
  165. package/lib.commonjs/crypto/pbkdf2.d.ts +35 -0
  166. package/lib.commonjs/crypto/pbkdf2.d.ts.map +1 -0
  167. package/lib.commonjs/crypto/pbkdf2.js +53 -0
  168. package/lib.commonjs/crypto/pbkdf2.js.map +1 -0
  169. package/lib.commonjs/crypto/random.d.ts +14 -0
  170. package/lib.commonjs/crypto/random.d.ts.map +1 -0
  171. package/lib.commonjs/crypto/random.js +38 -0
  172. package/lib.commonjs/crypto/random.js.map +1 -0
  173. package/lib.commonjs/crypto/ripemd160.d.ts +25 -0
  174. package/lib.commonjs/crypto/ripemd160.d.ts.map +1 -0
  175. package/lib.commonjs/crypto/ripemd160.js +42 -0
  176. package/lib.commonjs/crypto/ripemd160.js.map +1 -0
  177. package/lib.commonjs/crypto/scrypt.d.ts +82 -0
  178. package/lib.commonjs/crypto/scrypt.d.ts.map +1 -0
  179. package/lib.commonjs/crypto/scrypt.js +104 -0
  180. package/lib.commonjs/crypto/scrypt.js.map +1 -0
  181. package/lib.commonjs/crypto/sha2.d.ts +47 -0
  182. package/lib.commonjs/crypto/sha2.d.ts.map +1 -0
  183. package/lib.commonjs/crypto/sha2.js +76 -0
  184. package/lib.commonjs/crypto/sha2.js.map +1 -0
  185. package/lib.commonjs/crypto/signature.d.ts +158 -0
  186. package/lib.commonjs/crypto/signature.d.ts.map +1 -0
  187. package/lib.commonjs/crypto/signature.js +305 -0
  188. package/lib.commonjs/crypto/signature.js.map +1 -0
  189. package/lib.commonjs/crypto/signing-key.d.ts +122 -0
  190. package/lib.commonjs/crypto/signing-key.d.ts.map +1 -0
  191. package/lib.commonjs/crypto/signing-key.js +170 -0
  192. package/lib.commonjs/crypto/signing-key.js.map +1 -0
  193. package/lib.commonjs/hash/authorization.d.ts +18 -0
  194. package/lib.commonjs/hash/authorization.d.ts.map +1 -0
  195. package/lib.commonjs/hash/authorization.js +30 -0
  196. package/lib.commonjs/hash/authorization.js.map +1 -0
  197. package/lib.commonjs/hash/id.d.ts +13 -0
  198. package/lib.commonjs/hash/id.d.ts.map +1 -0
  199. package/lib.commonjs/hash/id.js +21 -0
  200. package/lib.commonjs/hash/id.js.map +1 -0
  201. package/lib.commonjs/hash/index.d.ts +15 -0
  202. package/lib.commonjs/hash/index.d.ts.map +1 -0
  203. package/lib.commonjs/hash/index.js +30 -0
  204. package/lib.commonjs/hash/index.js.map +1 -0
  205. package/lib.commonjs/hash/message.d.ts +36 -0
  206. package/lib.commonjs/hash/message.d.ts.map +1 -0
  207. package/lib.commonjs/hash/message.js +56 -0
  208. package/lib.commonjs/hash/message.js.map +1 -0
  209. package/lib.commonjs/hash/namehash.d.ts +20 -0
  210. package/lib.commonjs/hash/namehash.d.ts.map +1 -0
  211. package/lib.commonjs/hash/namehash.js +91 -0
  212. package/lib.commonjs/hash/namehash.js.map +1 -0
  213. package/lib.commonjs/hash/solidity.d.ts +31 -0
  214. package/lib.commonjs/hash/solidity.d.ts.map +1 -0
  215. package/lib.commonjs/hash/solidity.js +109 -0
  216. package/lib.commonjs/hash/solidity.js.map +1 -0
  217. package/lib.commonjs/hash/typed-data.d.ts +150 -0
  218. package/lib.commonjs/hash/typed-data.d.ts.map +1 -0
  219. package/lib.commonjs/hash/typed-data.js +524 -0
  220. package/lib.commonjs/hash/typed-data.js.map +1 -0
  221. package/lib.commonjs/index.d.ts +11 -0
  222. package/lib.commonjs/index.d.ts.map +1 -0
  223. package/lib.commonjs/index.js +15 -0
  224. package/lib.commonjs/index.js.map +1 -0
  225. package/lib.commonjs/package.json +12 -0
  226. package/lib.commonjs/providers/abstract-provider.d.ts +451 -0
  227. package/lib.commonjs/providers/abstract-provider.d.ts.map +1 -0
  228. package/lib.commonjs/providers/abstract-provider.js +1409 -0
  229. package/lib.commonjs/providers/abstract-provider.js.map +1 -0
  230. package/lib.commonjs/providers/abstract-signer.d.ts +69 -0
  231. package/lib.commonjs/providers/abstract-signer.d.ts.map +1 -0
  232. package/lib.commonjs/providers/abstract-signer.js +249 -0
  233. package/lib.commonjs/providers/abstract-signer.js.map +1 -0
  234. package/lib.commonjs/providers/community.d.ts +29 -0
  235. package/lib.commonjs/providers/community.d.ts.map +1 -0
  236. package/lib.commonjs/providers/community.js +40 -0
  237. package/lib.commonjs/providers/community.js.map +1 -0
  238. package/lib.commonjs/providers/contracts.d.ts +36 -0
  239. package/lib.commonjs/providers/contracts.d.ts.map +1 -0
  240. package/lib.commonjs/providers/contracts.js +3 -0
  241. package/lib.commonjs/providers/contracts.js.map +1 -0
  242. package/lib.commonjs/providers/default-provider.d.ts +49 -0
  243. package/lib.commonjs/providers/default-provider.d.ts.map +1 -0
  244. package/lib.commonjs/providers/default-provider.js +200 -0
  245. package/lib.commonjs/providers/default-provider.js.map +1 -0
  246. package/lib.commonjs/providers/ens-resolver.d.ts +147 -0
  247. package/lib.commonjs/providers/ens-resolver.d.ts.map +1 -0
  248. package/lib.commonjs/providers/ens-resolver.js +502 -0
  249. package/lib.commonjs/providers/ens-resolver.js.map +1 -0
  250. package/lib.commonjs/providers/format.d.ts +15 -0
  251. package/lib.commonjs/providers/format.d.ts.map +1 -0
  252. package/lib.commonjs/providers/format.js +298 -0
  253. package/lib.commonjs/providers/format.js.map +1 -0
  254. package/lib.commonjs/providers/formatting.d.ts +318 -0
  255. package/lib.commonjs/providers/formatting.d.ts.map +1 -0
  256. package/lib.commonjs/providers/formatting.js +10 -0
  257. package/lib.commonjs/providers/formatting.js.map +1 -0
  258. package/lib.commonjs/providers/index.d.ts +50 -0
  259. package/lib.commonjs/providers/index.d.ts.map +1 -0
  260. package/lib.commonjs/providers/index.js +84 -0
  261. package/lib.commonjs/providers/index.js.map +1 -0
  262. package/lib.commonjs/providers/network.d.ts +99 -0
  263. package/lib.commonjs/providers/network.d.ts.map +1 -0
  264. package/lib.commonjs/providers/network.js +367 -0
  265. package/lib.commonjs/providers/network.js.map +1 -0
  266. package/lib.commonjs/providers/pagination.d.ts +6 -0
  267. package/lib.commonjs/providers/pagination.d.ts.map +1 -0
  268. package/lib.commonjs/providers/pagination.js +3 -0
  269. package/lib.commonjs/providers/pagination.js.map +1 -0
  270. package/lib.commonjs/providers/plugin-fallback.d.ts +13 -0
  271. package/lib.commonjs/providers/plugin-fallback.d.ts.map +1 -0
  272. package/lib.commonjs/providers/plugin-fallback.js +31 -0
  273. package/lib.commonjs/providers/plugin-fallback.js.map +1 -0
  274. package/lib.commonjs/providers/plugins-network.d.ts +170 -0
  275. package/lib.commonjs/providers/plugins-network.d.ts.map +1 -0
  276. package/lib.commonjs/providers/plugins-network.js +216 -0
  277. package/lib.commonjs/providers/plugins-network.js.map +1 -0
  278. package/lib.commonjs/providers/provider-alchemy.d.ts +50 -0
  279. package/lib.commonjs/providers/provider-alchemy.d.ts.map +1 -0
  280. package/lib.commonjs/providers/provider-alchemy.js +151 -0
  281. package/lib.commonjs/providers/provider-alchemy.js.map +1 -0
  282. package/lib.commonjs/providers/provider-ankr.d.ts +61 -0
  283. package/lib.commonjs/providers/provider-ankr.d.ts.map +1 -0
  284. package/lib.commonjs/providers/provider-ankr.js +137 -0
  285. package/lib.commonjs/providers/provider-ankr.js.map +1 -0
  286. package/lib.commonjs/providers/provider-blockscout.d.ts +59 -0
  287. package/lib.commonjs/providers/provider-blockscout.d.ts.map +1 -0
  288. package/lib.commonjs/providers/provider-blockscout.js +145 -0
  289. package/lib.commonjs/providers/provider-blockscout.js.map +1 -0
  290. package/lib.commonjs/providers/provider-browser.d.ts +108 -0
  291. package/lib.commonjs/providers/provider-browser.d.ts.map +1 -0
  292. package/lib.commonjs/providers/provider-browser.js +204 -0
  293. package/lib.commonjs/providers/provider-browser.js.map +1 -0
  294. package/lib.commonjs/providers/provider-chainstack.d.ts +46 -0
  295. package/lib.commonjs/providers/provider-chainstack.d.ts.map +1 -0
  296. package/lib.commonjs/providers/provider-chainstack.js +102 -0
  297. package/lib.commonjs/providers/provider-chainstack.js.map +1 -0
  298. package/lib.commonjs/providers/provider-cloudflare.d.ts +14 -0
  299. package/lib.commonjs/providers/provider-cloudflare.d.ts.map +1 -0
  300. package/lib.commonjs/providers/provider-cloudflare.js +26 -0
  301. package/lib.commonjs/providers/provider-cloudflare.js.map +1 -0
  302. package/lib.commonjs/providers/provider-etherscan.d.ts +147 -0
  303. package/lib.commonjs/providers/provider-etherscan.d.ts.map +1 -0
  304. package/lib.commonjs/providers/provider-etherscan.js +587 -0
  305. package/lib.commonjs/providers/provider-etherscan.js.map +1 -0
  306. package/lib.commonjs/providers/provider-fallback.d.ts +115 -0
  307. package/lib.commonjs/providers/provider-fallback.d.ts.map +1 -0
  308. package/lib.commonjs/providers/provider-fallback.js +624 -0
  309. package/lib.commonjs/providers/provider-fallback.js.map +1 -0
  310. package/lib.commonjs/providers/provider-infura.d.ts +101 -0
  311. package/lib.commonjs/providers/provider-infura.d.ts.map +1 -0
  312. package/lib.commonjs/providers/provider-infura.js +206 -0
  313. package/lib.commonjs/providers/provider-infura.js.map +1 -0
  314. package/lib.commonjs/providers/provider-ipcsocket-browser.d.ts +3 -0
  315. package/lib.commonjs/providers/provider-ipcsocket-browser.d.ts.map +1 -0
  316. package/lib.commonjs/providers/provider-ipcsocket-browser.js +6 -0
  317. package/lib.commonjs/providers/provider-ipcsocket-browser.js.map +1 -0
  318. package/lib.commonjs/providers/provider-ipcsocket.d.ts +21 -0
  319. package/lib.commonjs/providers/provider-ipcsocket.d.ts.map +1 -0
  320. package/lib.commonjs/providers/provider-ipcsocket.js +72 -0
  321. package/lib.commonjs/providers/provider-ipcsocket.js.map +1 -0
  322. package/lib.commonjs/providers/provider-jsonrpc.d.ts +361 -0
  323. package/lib.commonjs/providers/provider-jsonrpc.d.ts.map +1 -0
  324. package/lib.commonjs/providers/provider-jsonrpc.js +980 -0
  325. package/lib.commonjs/providers/provider-jsonrpc.js.map +1 -0
  326. package/lib.commonjs/providers/provider-pocket.d.ts +54 -0
  327. package/lib.commonjs/providers/provider-pocket.d.ts.map +1 -0
  328. package/lib.commonjs/providers/provider-pocket.js +109 -0
  329. package/lib.commonjs/providers/provider-pocket.js.map +1 -0
  330. package/lib.commonjs/providers/provider-quicknode.d.ts +59 -0
  331. package/lib.commonjs/providers/provider-quicknode.d.ts.map +1 -0
  332. package/lib.commonjs/providers/provider-quicknode.js +163 -0
  333. package/lib.commonjs/providers/provider-quicknode.js.map +1 -0
  334. package/lib.commonjs/providers/provider-socket.d.ts +113 -0
  335. package/lib.commonjs/providers/provider-socket.d.ts.map +1 -0
  336. package/lib.commonjs/providers/provider-socket.js +309 -0
  337. package/lib.commonjs/providers/provider-socket.js.map +1 -0
  338. package/lib.commonjs/providers/provider-websocket.d.ts +37 -0
  339. package/lib.commonjs/providers/provider-websocket.d.ts.map +1 -0
  340. package/lib.commonjs/providers/provider-websocket.js +80 -0
  341. package/lib.commonjs/providers/provider-websocket.js.map +1 -0
  342. package/lib.commonjs/providers/provider.d.ts +1223 -0
  343. package/lib.commonjs/providers/provider.d.ts.map +1 -0
  344. package/lib.commonjs/providers/provider.js +1321 -0
  345. package/lib.commonjs/providers/provider.js.map +1 -0
  346. package/lib.commonjs/providers/signer-noncemanager.d.ts +38 -0
  347. package/lib.commonjs/providers/signer-noncemanager.d.ts.map +1 -0
  348. package/lib.commonjs/providers/signer-noncemanager.js +78 -0
  349. package/lib.commonjs/providers/signer-noncemanager.js.map +1 -0
  350. package/lib.commonjs/providers/signer.d.ts +131 -0
  351. package/lib.commonjs/providers/signer.d.ts.map +1 -0
  352. package/lib.commonjs/providers/signer.js +3 -0
  353. package/lib.commonjs/providers/signer.js.map +1 -0
  354. package/lib.commonjs/providers/subscriber-connection.d.ts +25 -0
  355. package/lib.commonjs/providers/subscriber-connection.d.ts.map +1 -0
  356. package/lib.commonjs/providers/subscriber-connection.js +56 -0
  357. package/lib.commonjs/providers/subscriber-connection.js.map +1 -0
  358. package/lib.commonjs/providers/subscriber-filterid.d.ts +64 -0
  359. package/lib.commonjs/providers/subscriber-filterid.d.ts.map +1 -0
  360. package/lib.commonjs/providers/subscriber-filterid.js +180 -0
  361. package/lib.commonjs/providers/subscriber-filterid.js.map +1 -0
  362. package/lib.commonjs/providers/subscriber-polling.d.ts +100 -0
  363. package/lib.commonjs/providers/subscriber-polling.d.ts.map +1 -0
  364. package/lib.commonjs/providers/subscriber-polling.js +303 -0
  365. package/lib.commonjs/providers/subscriber-polling.js.map +1 -0
  366. package/lib.commonjs/providers/ws-browser.d.ts +3 -0
  367. package/lib.commonjs/providers/ws-browser.d.ts.map +1 -0
  368. package/lib.commonjs/providers/ws-browser.js +19 -0
  369. package/lib.commonjs/providers/ws-browser.js.map +1 -0
  370. package/lib.commonjs/providers/ws.d.ts +2 -0
  371. package/lib.commonjs/providers/ws.d.ts.map +1 -0
  372. package/lib.commonjs/providers/ws.js +6 -0
  373. package/lib.commonjs/providers/ws.js.map +1 -0
  374. package/lib.commonjs/quantumcoin.d.ts +22 -0
  375. package/lib.commonjs/quantumcoin.d.ts.map +1 -0
  376. package/lib.commonjs/quantumcoin.js +215 -0
  377. package/lib.commonjs/quantumcoin.js.map +1 -0
  378. package/lib.commonjs/transaction/accesslist.d.ts +6 -0
  379. package/lib.commonjs/transaction/accesslist.d.ts.map +1 -0
  380. package/lib.commonjs/transaction/accesslist.js +41 -0
  381. package/lib.commonjs/transaction/accesslist.js.map +1 -0
  382. package/lib.commonjs/transaction/address.d.ts +15 -0
  383. package/lib.commonjs/transaction/address.d.ts.map +1 -0
  384. package/lib.commonjs/transaction/address.js +30 -0
  385. package/lib.commonjs/transaction/address.js.map +1 -0
  386. package/lib.commonjs/transaction/authorization.d.ts +3 -0
  387. package/lib.commonjs/transaction/authorization.d.ts.map +1 -0
  388. package/lib.commonjs/transaction/authorization.js +16 -0
  389. package/lib.commonjs/transaction/authorization.js.map +1 -0
  390. package/lib.commonjs/transaction/index.d.ts +40 -0
  391. package/lib.commonjs/transaction/index.d.ts.map +1 -0
  392. package/lib.commonjs/transaction/index.js +19 -0
  393. package/lib.commonjs/transaction/index.js.map +1 -0
  394. package/lib.commonjs/transaction/transaction.d.ts +400 -0
  395. package/lib.commonjs/transaction/transaction.d.ts.map +1 -0
  396. package/lib.commonjs/transaction/transaction.js +1148 -0
  397. package/lib.commonjs/transaction/transaction.js.map +1 -0
  398. package/lib.commonjs/utils/base58.d.ts +23 -0
  399. package/lib.commonjs/utils/base58.d.ts.map +1 -0
  400. package/lib.commonjs/utils/base58.js +68 -0
  401. package/lib.commonjs/utils/base58.js.map +1 -0
  402. package/lib.commonjs/utils/base64-browser.d.ts +4 -0
  403. package/lib.commonjs/utils/base64-browser.d.ts.map +1 -0
  404. package/lib.commonjs/utils/base64-browser.js +24 -0
  405. package/lib.commonjs/utils/base64-browser.js.map +1 -0
  406. package/lib.commonjs/utils/base64.d.ts +40 -0
  407. package/lib.commonjs/utils/base64.d.ts.map +1 -0
  408. package/lib.commonjs/utils/base64.js +58 -0
  409. package/lib.commonjs/utils/base64.js.map +1 -0
  410. package/lib.commonjs/utils/data.d.ts +93 -0
  411. package/lib.commonjs/utils/data.d.ts.map +1 -0
  412. package/lib.commonjs/utils/data.js +184 -0
  413. package/lib.commonjs/utils/data.js.map +1 -0
  414. package/lib.commonjs/utils/errors.d.ts +512 -0
  415. package/lib.commonjs/utils/errors.d.ts.map +1 -0
  416. package/lib.commonjs/utils/errors.js +235 -0
  417. package/lib.commonjs/utils/errors.js.map +1 -0
  418. package/lib.commonjs/utils/events.d.ts +77 -0
  419. package/lib.commonjs/utils/events.d.ts.map +1 -0
  420. package/lib.commonjs/utils/events.js +46 -0
  421. package/lib.commonjs/utils/events.js.map +1 -0
  422. package/lib.commonjs/utils/fetch.d.ts +363 -0
  423. package/lib.commonjs/utils/fetch.d.ts.map +1 -0
  424. package/lib.commonjs/utils/fetch.js +858 -0
  425. package/lib.commonjs/utils/fetch.js.map +1 -0
  426. package/lib.commonjs/utils/fixednumber.d.ts +252 -0
  427. package/lib.commonjs/utils/fixednumber.d.ts.map +1 -0
  428. package/lib.commonjs/utils/fixednumber.js +530 -0
  429. package/lib.commonjs/utils/fixednumber.js.map +1 -0
  430. package/lib.commonjs/utils/geturl-browser.d.ts +4 -0
  431. package/lib.commonjs/utils/geturl-browser.d.ts.map +1 -0
  432. package/lib.commonjs/utils/geturl-browser.js +67 -0
  433. package/lib.commonjs/utils/geturl-browser.js.map +1 -0
  434. package/lib.commonjs/utils/geturl.d.ts +10 -0
  435. package/lib.commonjs/utils/geturl.d.ts.map +1 -0
  436. package/lib.commonjs/utils/geturl.js +120 -0
  437. package/lib.commonjs/utils/geturl.js.map +1 -0
  438. package/lib.commonjs/utils/index.d.ts +30 -0
  439. package/lib.commonjs/utils/index.d.ts.map +1 -0
  440. package/lib.commonjs/utils/index.js +78 -0
  441. package/lib.commonjs/utils/index.js.map +1 -0
  442. package/lib.commonjs/utils/maths.d.ts +66 -0
  443. package/lib.commonjs/utils/maths.d.ts.map +1 -0
  444. package/lib.commonjs/utils/maths.js +229 -0
  445. package/lib.commonjs/utils/maths.js.map +1 -0
  446. package/lib.commonjs/utils/properties.d.ts +23 -0
  447. package/lib.commonjs/utils/properties.d.ts.map +1 -0
  448. package/lib.commonjs/utils/properties.js +59 -0
  449. package/lib.commonjs/utils/properties.js.map +1 -0
  450. package/lib.commonjs/utils/rlp-decode.d.ts +6 -0
  451. package/lib.commonjs/utils/rlp-decode.d.ts.map +1 -0
  452. package/lib.commonjs/utils/rlp-decode.js +83 -0
  453. package/lib.commonjs/utils/rlp-decode.js.map +1 -0
  454. package/lib.commonjs/utils/rlp-encode.d.ts +6 -0
  455. package/lib.commonjs/utils/rlp-encode.d.ts.map +1 -0
  456. package/lib.commonjs/utils/rlp-encode.js +53 -0
  457. package/lib.commonjs/utils/rlp-encode.js.map +1 -0
  458. package/lib.commonjs/utils/rlp.d.ts +17 -0
  459. package/lib.commonjs/utils/rlp.d.ts.map +1 -0
  460. package/lib.commonjs/utils/rlp.js +14 -0
  461. package/lib.commonjs/utils/rlp.js.map +1 -0
  462. package/lib.commonjs/utils/units.d.ts +24 -0
  463. package/lib.commonjs/utils/units.d.ts.map +1 -0
  464. package/lib.commonjs/utils/units.js +90 -0
  465. package/lib.commonjs/utils/units.js.map +1 -0
  466. package/lib.commonjs/utils/utf8.d.ts +96 -0
  467. package/lib.commonjs/utils/utf8.d.ts.map +1 -0
  468. package/lib.commonjs/utils/utf8.js +227 -0
  469. package/lib.commonjs/utils/utf8.js.map +1 -0
  470. package/lib.commonjs/utils/uuid.d.ts +8 -0
  471. package/lib.commonjs/utils/uuid.d.ts.map +1 -0
  472. package/lib.commonjs/utils/uuid.js +34 -0
  473. package/lib.commonjs/utils/uuid.js.map +1 -0
  474. package/lib.commonjs/wallet/base-wallet.d.ts +57 -0
  475. package/lib.commonjs/wallet/base-wallet.d.ts.map +1 -0
  476. package/lib.commonjs/wallet/base-wallet.js +127 -0
  477. package/lib.commonjs/wallet/base-wallet.js.map +1 -0
  478. package/lib.commonjs/wallet/hdwallet.d.ts +248 -0
  479. package/lib.commonjs/wallet/hdwallet.d.ts.map +1 -0
  480. package/lib.commonjs/wallet/hdwallet.js +506 -0
  481. package/lib.commonjs/wallet/hdwallet.js.map +1 -0
  482. package/lib.commonjs/wallet/index.d.ts +27 -0
  483. package/lib.commonjs/wallet/index.d.ts.map +1 -0
  484. package/lib.commonjs/wallet/index.js +43 -0
  485. package/lib.commonjs/wallet/index.js.map +1 -0
  486. package/lib.commonjs/wallet/json-crowdsale.d.ts +27 -0
  487. package/lib.commonjs/wallet/json-crowdsale.d.ts.map +1 -0
  488. package/lib.commonjs/wallet/json-crowdsale.js +60 -0
  489. package/lib.commonjs/wallet/json-crowdsale.js.map +1 -0
  490. package/lib.commonjs/wallet/json-keystore.d.ts +89 -0
  491. package/lib.commonjs/wallet/json-keystore.d.ts.map +1 -0
  492. package/lib.commonjs/wallet/json-keystore.js +295 -0
  493. package/lib.commonjs/wallet/json-keystore.js.map +1 -0
  494. package/lib.commonjs/wallet/mnemonic.d.ts +65 -0
  495. package/lib.commonjs/wallet/mnemonic.d.ts.map +1 -0
  496. package/lib.commonjs/wallet/mnemonic.js +169 -0
  497. package/lib.commonjs/wallet/mnemonic.js.map +1 -0
  498. package/lib.commonjs/wallet/utils.d.ts +8 -0
  499. package/lib.commonjs/wallet/utils.d.ts.map +1 -0
  500. package/lib.commonjs/wallet/utils.js +149 -0
  501. package/lib.commonjs/wallet/utils.js.map +1 -0
  502. package/lib.commonjs/wallet/wallet.d.ts +71 -0
  503. package/lib.commonjs/wallet/wallet.d.ts.map +1 -0
  504. package/lib.commonjs/wallet/wallet.js +148 -0
  505. package/lib.commonjs/wallet/wallet.js.map +1 -0
  506. package/lib.commonjs/wordlists/bit-reader.d.ts +5 -0
  507. package/lib.commonjs/wordlists/bit-reader.d.ts.map +1 -0
  508. package/lib.commonjs/wordlists/bit-reader.js +36 -0
  509. package/lib.commonjs/wordlists/bit-reader.js.map +1 -0
  510. package/lib.commonjs/wordlists/decode-owl.d.ts +9 -0
  511. package/lib.commonjs/wordlists/decode-owl.d.ts.map +1 -0
  512. package/lib.commonjs/wordlists/decode-owl.js +60 -0
  513. package/lib.commonjs/wordlists/decode-owl.js.map +1 -0
  514. package/lib.commonjs/wordlists/decode-owla.d.ts +5 -0
  515. package/lib.commonjs/wordlists/decode-owla.d.ts.map +1 -0
  516. package/lib.commonjs/wordlists/decode-owla.js +32 -0
  517. package/lib.commonjs/wordlists/decode-owla.js.map +1 -0
  518. package/lib.commonjs/wordlists/generation/encode-latin.d.ts +25 -0
  519. package/lib.commonjs/wordlists/generation/encode-latin.d.ts.map +1 -0
  520. package/lib.commonjs/wordlists/generation/encode-latin.js +351 -0
  521. package/lib.commonjs/wordlists/generation/encode-latin.js.map +1 -0
  522. package/lib.commonjs/wordlists/index.d.ts +25 -0
  523. package/lib.commonjs/wordlists/index.d.ts.map +1 -0
  524. package/lib.commonjs/wordlists/index.js +33 -0
  525. package/lib.commonjs/wordlists/index.js.map +1 -0
  526. package/lib.commonjs/wordlists/lang-cz.d.ts +23 -0
  527. package/lib.commonjs/wordlists/lang-cz.d.ts.map +1 -0
  528. package/lib.commonjs/wordlists/lang-cz.js +35 -0
  529. package/lib.commonjs/wordlists/lang-cz.js.map +1 -0
  530. package/lib.commonjs/wordlists/lang-en.d.ts +23 -0
  531. package/lib.commonjs/wordlists/lang-en.d.ts.map +1 -0
  532. package/lib.commonjs/wordlists/lang-en.js +35 -0
  533. package/lib.commonjs/wordlists/lang-en.js.map +1 -0
  534. package/lib.commonjs/wordlists/lang-es.d.ts +23 -0
  535. package/lib.commonjs/wordlists/lang-es.d.ts.map +1 -0
  536. package/lib.commonjs/wordlists/lang-es.js +36 -0
  537. package/lib.commonjs/wordlists/lang-es.js.map +1 -0
  538. package/lib.commonjs/wordlists/lang-fr.d.ts +23 -0
  539. package/lib.commonjs/wordlists/lang-fr.d.ts.map +1 -0
  540. package/lib.commonjs/wordlists/lang-fr.js +36 -0
  541. package/lib.commonjs/wordlists/lang-fr.js.map +1 -0
  542. package/lib.commonjs/wordlists/lang-it.d.ts +23 -0
  543. package/lib.commonjs/wordlists/lang-it.d.ts.map +1 -0
  544. package/lib.commonjs/wordlists/lang-it.js +35 -0
  545. package/lib.commonjs/wordlists/lang-it.js.map +1 -0
  546. package/lib.commonjs/wordlists/lang-ja.d.ts +27 -0
  547. package/lib.commonjs/wordlists/lang-ja.d.ts.map +1 -0
  548. package/lib.commonjs/wordlists/lang-ja.js +158 -0
  549. package/lib.commonjs/wordlists/lang-ja.js.map +1 -0
  550. package/lib.commonjs/wordlists/lang-ko.d.ts +25 -0
  551. package/lib.commonjs/wordlists/lang-ko.d.ts.map +1 -0
  552. package/lib.commonjs/wordlists/lang-ko.js +93 -0
  553. package/lib.commonjs/wordlists/lang-ko.js.map +1 -0
  554. package/lib.commonjs/wordlists/lang-pt.d.ts +23 -0
  555. package/lib.commonjs/wordlists/lang-pt.d.ts.map +1 -0
  556. package/lib.commonjs/wordlists/lang-pt.js +35 -0
  557. package/lib.commonjs/wordlists/lang-pt.js.map +1 -0
  558. package/lib.commonjs/wordlists/lang-zh.d.ts +32 -0
  559. package/lib.commonjs/wordlists/lang-zh.d.ts.map +1 -0
  560. package/lib.commonjs/wordlists/lang-zh.js +96 -0
  561. package/lib.commonjs/wordlists/lang-zh.js.map +1 -0
  562. package/lib.commonjs/wordlists/wordlist-owl.d.ts +32 -0
  563. package/lib.commonjs/wordlists/wordlist-owl.d.ts.map +1 -0
  564. package/lib.commonjs/wordlists/wordlist-owl.js +70 -0
  565. package/lib.commonjs/wordlists/wordlist-owl.js.map +1 -0
  566. package/lib.commonjs/wordlists/wordlist-owla.d.ts +30 -0
  567. package/lib.commonjs/wordlists/wordlist-owla.d.ts.map +1 -0
  568. package/lib.commonjs/wordlists/wordlist-owla.js +40 -0
  569. package/lib.commonjs/wordlists/wordlist-owla.js.map +1 -0
  570. package/lib.commonjs/wordlists/wordlist.d.ts +47 -0
  571. package/lib.commonjs/wordlists/wordlist.d.ts.map +1 -0
  572. package/lib.commonjs/wordlists/wordlist.js +46 -0
  573. package/lib.commonjs/wordlists/wordlist.js.map +1 -0
  574. package/lib.commonjs/wordlists/wordlists-browser.d.ts +3 -0
  575. package/lib.commonjs/wordlists/wordlists-browser.d.ts.map +1 -0
  576. package/lib.commonjs/wordlists/wordlists-browser.js +8 -0
  577. package/lib.commonjs/wordlists/wordlists-browser.js.map +1 -0
  578. package/lib.commonjs/wordlists/wordlists-extra.d.ts +9 -0
  579. package/lib.commonjs/wordlists/wordlists-extra.d.ts.map +1 -0
  580. package/lib.commonjs/wordlists/wordlists-extra.js +20 -0
  581. package/lib.commonjs/wordlists/wordlists-extra.js.map +1 -0
  582. package/lib.commonjs/wordlists/wordlists.d.ts +16 -0
  583. package/lib.commonjs/wordlists/wordlists.d.ts.map +1 -0
  584. package/lib.commonjs/wordlists/wordlists.js +38 -0
  585. package/lib.commonjs/wordlists/wordlists.js.map +1 -0
  586. package/lib.esm/README.md +16 -0
  587. package/lib.esm/_version.d.ts +5 -0
  588. package/lib.esm/_version.d.ts.map +1 -0
  589. package/lib.esm/_version.js +6 -0
  590. package/lib.esm/_version.js.map +1 -0
  591. package/lib.esm/abi/abi-coder.d.ts +61 -0
  592. package/lib.esm/abi/abi-coder.d.ts.map +1 -0
  593. package/lib.esm/abi/abi-coder.js +206 -0
  594. package/lib.esm/abi/abi-coder.js.map +1 -0
  595. package/lib.esm/abi/bytes32.d.ts +15 -0
  596. package/lib.esm/abi/bytes32.d.ts.map +1 -0
  597. package/lib.esm/abi/bytes32.js +40 -0
  598. package/lib.esm/abi/bytes32.js.map +1 -0
  599. package/lib.esm/abi/coders/abstract-coder.d.ts +124 -0
  600. package/lib.esm/abi/coders/abstract-coder.d.ts.map +1 -0
  601. package/lib.esm/abi/coders/abstract-coder.js +466 -0
  602. package/lib.esm/abi/coders/abstract-coder.js.map +1 -0
  603. package/lib.esm/abi/coders/address.d.ts +13 -0
  604. package/lib.esm/abi/coders/address.d.ts.map +1 -0
  605. package/lib.esm/abi/coders/address.js +29 -0
  606. package/lib.esm/abi/coders/address.js.map +1 -0
  607. package/lib.esm/abi/coders/anonymous.d.ts +15 -0
  608. package/lib.esm/abi/coders/anonymous.d.ts.map +1 -0
  609. package/lib.esm/abi/coders/anonymous.js +23 -0
  610. package/lib.esm/abi/coders/anonymous.js.map +1 -0
  611. package/lib.esm/abi/coders/array.d.ts +25 -0
  612. package/lib.esm/abi/coders/array.d.ts.map +1 -0
  613. package/lib.esm/abi/coders/array.js +159 -0
  614. package/lib.esm/abi/coders/array.js.map +1 -0
  615. package/lib.esm/abi/coders/boolean.d.ts +13 -0
  616. package/lib.esm/abi/coders/boolean.d.ts.map +1 -0
  617. package/lib.esm/abi/coders/boolean.js +21 -0
  618. package/lib.esm/abi/coders/boolean.js.map +1 -0
  619. package/lib.esm/abi/coders/bytes.d.ts +19 -0
  620. package/lib.esm/abi/coders/bytes.d.ts.map +1 -0
  621. package/lib.esm/abi/coders/bytes.js +34 -0
  622. package/lib.esm/abi/coders/bytes.js.map +1 -0
  623. package/lib.esm/abi/coders/fixed-bytes.d.ts +15 -0
  624. package/lib.esm/abi/coders/fixed-bytes.d.ts.map +1 -0
  625. package/lib.esm/abi/coders/fixed-bytes.js +28 -0
  626. package/lib.esm/abi/coders/fixed-bytes.js.map +1 -0
  627. package/lib.esm/abi/coders/null.d.ts +12 -0
  628. package/lib.esm/abi/coders/null.d.ts.map +1 -0
  629. package/lib.esm/abi/coders/null.js +24 -0
  630. package/lib.esm/abi/coders/null.js.map +1 -0
  631. package/lib.esm/abi/coders/number.d.ts +16 -0
  632. package/lib.esm/abi/coders/number.d.ts.map +1 -0
  633. package/lib.esm/abi/coders/number.js +45 -0
  634. package/lib.esm/abi/coders/number.js.map +1 -0
  635. package/lib.esm/abi/coders/string.d.ts +13 -0
  636. package/lib.esm/abi/coders/string.d.ts.map +1 -0
  637. package/lib.esm/abi/coders/string.js +21 -0
  638. package/lib.esm/abi/coders/string.js.map +1 -0
  639. package/lib.esm/abi/coders/tuple.d.ts +16 -0
  640. package/lib.esm/abi/coders/tuple.d.ts.map +1 -0
  641. package/lib.esm/abi/coders/tuple.js +63 -0
  642. package/lib.esm/abi/coders/tuple.js.map +1 -0
  643. package/lib.esm/abi/fragments.d.ts +466 -0
  644. package/lib.esm/abi/fragments.d.ts.map +1 -0
  645. package/lib.esm/abi/fragments.js +1319 -0
  646. package/lib.esm/abi/fragments.js.map +1 -0
  647. package/lib.esm/abi/index.d.ts +18 -0
  648. package/lib.esm/abi/index.d.ts.map +1 -0
  649. package/lib.esm/abi/index.js +17 -0
  650. package/lib.esm/abi/index.js.map +1 -0
  651. package/lib.esm/abi/interface.d.ts +382 -0
  652. package/lib.esm/abi/interface.d.ts.map +1 -0
  653. package/lib.esm/abi/interface.js +1101 -0
  654. package/lib.esm/abi/interface.js.map +1 -0
  655. package/lib.esm/abi/typed.d.ts +570 -0
  656. package/lib.esm/abi/typed.d.ts.map +1 -0
  657. package/lib.esm/abi/typed.js +602 -0
  658. package/lib.esm/abi/typed.js.map +1 -0
  659. package/lib.esm/address/address.d.ts +56 -0
  660. package/lib.esm/address/address.d.ts.map +1 -0
  661. package/lib.esm/address/address.js +156 -0
  662. package/lib.esm/address/address.js.map +1 -0
  663. package/lib.esm/address/checks.d.ts +81 -0
  664. package/lib.esm/address/checks.d.ts.map +1 -0
  665. package/lib.esm/address/checks.js +114 -0
  666. package/lib.esm/address/checks.js.map +1 -0
  667. package/lib.esm/address/contract-address.d.ts +48 -0
  668. package/lib.esm/address/contract-address.d.ts.map +1 -0
  669. package/lib.esm/address/contract-address.js +69 -0
  670. package/lib.esm/address/contract-address.js.map +1 -0
  671. package/lib.esm/address/index.d.ts +49 -0
  672. package/lib.esm/address/index.d.ts.map +1 -0
  673. package/lib.esm/address/index.js +19 -0
  674. package/lib.esm/address/index.js.map +1 -0
  675. package/lib.esm/constants/addresses.d.ts +7 -0
  676. package/lib.esm/constants/addresses.d.ts.map +1 -0
  677. package/lib.esm/constants/addresses.js +7 -0
  678. package/lib.esm/constants/addresses.js.map +1 -0
  679. package/lib.esm/constants/hashes.d.ts +7 -0
  680. package/lib.esm/constants/hashes.d.ts.map +1 -0
  681. package/lib.esm/constants/hashes.js +7 -0
  682. package/lib.esm/constants/hashes.js.map +1 -0
  683. package/lib.esm/constants/index.d.ts +10 -0
  684. package/lib.esm/constants/index.d.ts.map +1 -0
  685. package/lib.esm/constants/index.js +10 -0
  686. package/lib.esm/constants/index.js.map +1 -0
  687. package/lib.esm/constants/numbers.d.ts +31 -0
  688. package/lib.esm/constants/numbers.d.ts.map +1 -0
  689. package/lib.esm/constants/numbers.js +31 -0
  690. package/lib.esm/constants/numbers.js.map +1 -0
  691. package/lib.esm/constants/strings.d.ts +13 -0
  692. package/lib.esm/constants/strings.d.ts.map +1 -0
  693. package/lib.esm/constants/strings.js +14 -0
  694. package/lib.esm/constants/strings.js.map +1 -0
  695. package/lib.esm/contract/contract.d.ts +168 -0
  696. package/lib.esm/contract/contract.d.ts.map +1 -0
  697. package/lib.esm/contract/contract.js +953 -0
  698. package/lib.esm/contract/contract.js.map +1 -0
  699. package/lib.esm/contract/factory.d.ts +62 -0
  700. package/lib.esm/contract/factory.d.ts.map +1 -0
  701. package/lib.esm/contract/factory.js +112 -0
  702. package/lib.esm/contract/factory.js.map +1 -0
  703. package/lib.esm/contract/index.d.ts +13 -0
  704. package/lib.esm/contract/index.d.ts.map +1 -0
  705. package/lib.esm/contract/index.js +12 -0
  706. package/lib.esm/contract/index.js.map +1 -0
  707. package/lib.esm/contract/types.d.ts +193 -0
  708. package/lib.esm/contract/types.d.ts.map +1 -0
  709. package/lib.esm/contract/types.js +5 -0
  710. package/lib.esm/contract/types.js.map +1 -0
  711. package/lib.esm/contract/wrappers.d.ts +143 -0
  712. package/lib.esm/contract/wrappers.d.ts.map +1 -0
  713. package/lib.esm/contract/wrappers.js +177 -0
  714. package/lib.esm/contract/wrappers.js.map +1 -0
  715. package/lib.esm/crypto/crypto-browser.d.ts +15 -0
  716. package/lib.esm/crypto/crypto-browser.d.ts.map +1 -0
  717. package/lib.esm/crypto/crypto-browser.js +48 -0
  718. package/lib.esm/crypto/crypto-browser.js.map +1 -0
  719. package/lib.esm/crypto/crypto.d.ts +2 -0
  720. package/lib.esm/crypto/crypto.d.ts.map +1 -0
  721. package/lib.esm/crypto/crypto.js +2 -0
  722. package/lib.esm/crypto/crypto.js.map +1 -0
  723. package/lib.esm/crypto/hmac.d.ts +25 -0
  724. package/lib.esm/crypto/hmac.d.ts.map +1 -0
  725. package/lib.esm/crypto/hmac.js +47 -0
  726. package/lib.esm/crypto/hmac.js.map +1 -0
  727. package/lib.esm/crypto/index.d.ts +25 -0
  728. package/lib.esm/crypto/index.d.ts.map +1 -0
  729. package/lib.esm/crypto/index.js +36 -0
  730. package/lib.esm/crypto/index.js.map +1 -0
  731. package/lib.esm/crypto/keccak.d.ts +35 -0
  732. package/lib.esm/crypto/keccak.d.ts.map +1 -0
  733. package/lib.esm/crypto/keccak.js +48 -0
  734. package/lib.esm/crypto/keccak.js.map +1 -0
  735. package/lib.esm/crypto/pbkdf2.d.ts +35 -0
  736. package/lib.esm/crypto/pbkdf2.d.ts.map +1 -0
  737. package/lib.esm/crypto/pbkdf2.js +49 -0
  738. package/lib.esm/crypto/pbkdf2.js.map +1 -0
  739. package/lib.esm/crypto/random.d.ts +14 -0
  740. package/lib.esm/crypto/random.d.ts.map +1 -0
  741. package/lib.esm/crypto/random.js +34 -0
  742. package/lib.esm/crypto/random.js.map +1 -0
  743. package/lib.esm/crypto/ripemd160.d.ts +25 -0
  744. package/lib.esm/crypto/ripemd160.d.ts.map +1 -0
  745. package/lib.esm/crypto/ripemd160.js +38 -0
  746. package/lib.esm/crypto/ripemd160.js.map +1 -0
  747. package/lib.esm/crypto/scrypt.d.ts +82 -0
  748. package/lib.esm/crypto/scrypt.d.ts.map +1 -0
  749. package/lib.esm/crypto/scrypt.js +99 -0
  750. package/lib.esm/crypto/scrypt.js.map +1 -0
  751. package/lib.esm/crypto/sha2.d.ts +47 -0
  752. package/lib.esm/crypto/sha2.d.ts.map +1 -0
  753. package/lib.esm/crypto/sha2.js +71 -0
  754. package/lib.esm/crypto/sha2.js.map +1 -0
  755. package/lib.esm/crypto/signature.d.ts +158 -0
  756. package/lib.esm/crypto/signature.d.ts.map +1 -0
  757. package/lib.esm/crypto/signature.js +301 -0
  758. package/lib.esm/crypto/signature.js.map +1 -0
  759. package/lib.esm/crypto/signing-key.d.ts +122 -0
  760. package/lib.esm/crypto/signing-key.d.ts.map +1 -0
  761. package/lib.esm/crypto/signing-key.js +166 -0
  762. package/lib.esm/crypto/signing-key.js.map +1 -0
  763. package/lib.esm/hash/authorization.d.ts +18 -0
  764. package/lib.esm/hash/authorization.d.ts.map +1 -0
  765. package/lib.esm/hash/authorization.js +25 -0
  766. package/lib.esm/hash/authorization.js.map +1 -0
  767. package/lib.esm/hash/id.d.ts +13 -0
  768. package/lib.esm/hash/id.d.ts.map +1 -0
  769. package/lib.esm/hash/id.js +17 -0
  770. package/lib.esm/hash/id.js.map +1 -0
  771. package/lib.esm/hash/index.d.ts +15 -0
  772. package/lib.esm/hash/index.d.ts.map +1 -0
  773. package/lib.esm/hash/index.js +13 -0
  774. package/lib.esm/hash/index.js.map +1 -0
  775. package/lib.esm/hash/message.d.ts +36 -0
  776. package/lib.esm/hash/message.d.ts.map +1 -0
  777. package/lib.esm/hash/message.js +51 -0
  778. package/lib.esm/hash/message.js.map +1 -0
  779. package/lib.esm/hash/namehash.d.ts +20 -0
  780. package/lib.esm/hash/namehash.d.ts.map +1 -0
  781. package/lib.esm/hash/namehash.js +84 -0
  782. package/lib.esm/hash/namehash.js.map +1 -0
  783. package/lib.esm/hash/solidity.d.ts +31 -0
  784. package/lib.esm/hash/solidity.d.ts.map +1 -0
  785. package/lib.esm/hash/solidity.js +103 -0
  786. package/lib.esm/hash/solidity.js.map +1 -0
  787. package/lib.esm/hash/typed-data.d.ts +150 -0
  788. package/lib.esm/hash/typed-data.d.ts.map +1 -0
  789. package/lib.esm/hash/typed-data.js +519 -0
  790. package/lib.esm/hash/typed-data.js.map +1 -0
  791. package/lib.esm/index.d.ts +11 -0
  792. package/lib.esm/index.d.ts.map +1 -0
  793. package/lib.esm/index.js +11 -0
  794. package/lib.esm/index.js.map +1 -0
  795. package/lib.esm/package.json +12 -0
  796. package/lib.esm/providers/abstract-provider.d.ts +451 -0
  797. package/lib.esm/providers/abstract-provider.d.ts.map +1 -0
  798. package/lib.esm/providers/abstract-provider.js +1404 -0
  799. package/lib.esm/providers/abstract-provider.js.map +1 -0
  800. package/lib.esm/providers/abstract-signer.d.ts +69 -0
  801. package/lib.esm/providers/abstract-signer.d.ts.map +1 -0
  802. package/lib.esm/providers/abstract-signer.js +244 -0
  803. package/lib.esm/providers/abstract-signer.js.map +1 -0
  804. package/lib.esm/providers/community.d.ts +29 -0
  805. package/lib.esm/providers/community.d.ts.map +1 -0
  806. package/lib.esm/providers/community.js +36 -0
  807. package/lib.esm/providers/community.js.map +1 -0
  808. package/lib.esm/providers/contracts.d.ts +36 -0
  809. package/lib.esm/providers/contracts.d.ts.map +1 -0
  810. package/lib.esm/providers/contracts.js +2 -0
  811. package/lib.esm/providers/contracts.js.map +1 -0
  812. package/lib.esm/providers/default-provider.d.ts +49 -0
  813. package/lib.esm/providers/default-provider.d.ts.map +1 -0
  814. package/lib.esm/providers/default-provider.js +196 -0
  815. package/lib.esm/providers/default-provider.js.map +1 -0
  816. package/lib.esm/providers/ens-resolver.d.ts +147 -0
  817. package/lib.esm/providers/ens-resolver.d.ts.map +1 -0
  818. package/lib.esm/providers/ens-resolver.js +496 -0
  819. package/lib.esm/providers/ens-resolver.js.map +1 -0
  820. package/lib.esm/providers/format.d.ts +15 -0
  821. package/lib.esm/providers/format.d.ts.map +1 -0
  822. package/lib.esm/providers/format.js +283 -0
  823. package/lib.esm/providers/format.js.map +1 -0
  824. package/lib.esm/providers/formatting.d.ts +318 -0
  825. package/lib.esm/providers/formatting.d.ts.map +1 -0
  826. package/lib.esm/providers/formatting.js +9 -0
  827. package/lib.esm/providers/formatting.js.map +1 -0
  828. package/lib.esm/providers/index.d.ts +50 -0
  829. package/lib.esm/providers/index.d.ts.map +1 -0
  830. package/lib.esm/providers/index.js +40 -0
  831. package/lib.esm/providers/index.js.map +1 -0
  832. package/lib.esm/providers/network.d.ts +99 -0
  833. package/lib.esm/providers/network.d.ts.map +1 -0
  834. package/lib.esm/providers/network.js +363 -0
  835. package/lib.esm/providers/network.js.map +1 -0
  836. package/lib.esm/providers/pagination.d.ts +6 -0
  837. package/lib.esm/providers/pagination.d.ts.map +1 -0
  838. package/lib.esm/providers/pagination.js +2 -0
  839. package/lib.esm/providers/pagination.js.map +1 -0
  840. package/lib.esm/providers/plugin-fallback.d.ts +13 -0
  841. package/lib.esm/providers/plugin-fallback.d.ts.map +1 -0
  842. package/lib.esm/providers/plugin-fallback.js +26 -0
  843. package/lib.esm/providers/plugin-fallback.js.map +1 -0
  844. package/lib.esm/providers/plugins-network.d.ts +170 -0
  845. package/lib.esm/providers/plugins-network.d.ts.map +1 -0
  846. package/lib.esm/providers/plugins-network.js +208 -0
  847. package/lib.esm/providers/plugins-network.js.map +1 -0
  848. package/lib.esm/providers/provider-alchemy.d.ts +50 -0
  849. package/lib.esm/providers/provider-alchemy.d.ts.map +1 -0
  850. package/lib.esm/providers/provider-alchemy.js +147 -0
  851. package/lib.esm/providers/provider-alchemy.js.map +1 -0
  852. package/lib.esm/providers/provider-ankr.d.ts +61 -0
  853. package/lib.esm/providers/provider-ankr.d.ts.map +1 -0
  854. package/lib.esm/providers/provider-ankr.js +133 -0
  855. package/lib.esm/providers/provider-ankr.js.map +1 -0
  856. package/lib.esm/providers/provider-blockscout.d.ts +59 -0
  857. package/lib.esm/providers/provider-blockscout.d.ts.map +1 -0
  858. package/lib.esm/providers/provider-blockscout.js +141 -0
  859. package/lib.esm/providers/provider-blockscout.js.map +1 -0
  860. package/lib.esm/providers/provider-browser.d.ts +108 -0
  861. package/lib.esm/providers/provider-browser.d.ts.map +1 -0
  862. package/lib.esm/providers/provider-browser.js +200 -0
  863. package/lib.esm/providers/provider-browser.js.map +1 -0
  864. package/lib.esm/providers/provider-chainstack.d.ts +46 -0
  865. package/lib.esm/providers/provider-chainstack.d.ts.map +1 -0
  866. package/lib.esm/providers/provider-chainstack.js +98 -0
  867. package/lib.esm/providers/provider-chainstack.js.map +1 -0
  868. package/lib.esm/providers/provider-cloudflare.d.ts +14 -0
  869. package/lib.esm/providers/provider-cloudflare.d.ts.map +1 -0
  870. package/lib.esm/providers/provider-cloudflare.js +22 -0
  871. package/lib.esm/providers/provider-cloudflare.js.map +1 -0
  872. package/lib.esm/providers/provider-etherscan.d.ts +147 -0
  873. package/lib.esm/providers/provider-etherscan.d.ts.map +1 -0
  874. package/lib.esm/providers/provider-etherscan.js +584 -0
  875. package/lib.esm/providers/provider-etherscan.js.map +1 -0
  876. package/lib.esm/providers/provider-fallback.d.ts +115 -0
  877. package/lib.esm/providers/provider-fallback.d.ts.map +1 -0
  878. package/lib.esm/providers/provider-fallback.js +620 -0
  879. package/lib.esm/providers/provider-fallback.js.map +1 -0
  880. package/lib.esm/providers/provider-infura.d.ts +101 -0
  881. package/lib.esm/providers/provider-infura.d.ts.map +1 -0
  882. package/lib.esm/providers/provider-infura.js +201 -0
  883. package/lib.esm/providers/provider-infura.js.map +1 -0
  884. package/lib.esm/providers/provider-ipcsocket-browser.d.ts +3 -0
  885. package/lib.esm/providers/provider-ipcsocket-browser.d.ts.map +1 -0
  886. package/lib.esm/providers/provider-ipcsocket-browser.js +3 -0
  887. package/lib.esm/providers/provider-ipcsocket-browser.js.map +1 -0
  888. package/lib.esm/providers/provider-ipcsocket.d.ts +21 -0
  889. package/lib.esm/providers/provider-ipcsocket.d.ts.map +1 -0
  890. package/lib.esm/providers/provider-ipcsocket.js +68 -0
  891. package/lib.esm/providers/provider-ipcsocket.js.map +1 -0
  892. package/lib.esm/providers/provider-jsonrpc.d.ts +361 -0
  893. package/lib.esm/providers/provider-jsonrpc.d.ts.map +1 -0
  894. package/lib.esm/providers/provider-jsonrpc.js +973 -0
  895. package/lib.esm/providers/provider-jsonrpc.js.map +1 -0
  896. package/lib.esm/providers/provider-pocket.d.ts +54 -0
  897. package/lib.esm/providers/provider-pocket.d.ts.map +1 -0
  898. package/lib.esm/providers/provider-pocket.js +105 -0
  899. package/lib.esm/providers/provider-pocket.js.map +1 -0
  900. package/lib.esm/providers/provider-quicknode.d.ts +59 -0
  901. package/lib.esm/providers/provider-quicknode.d.ts.map +1 -0
  902. package/lib.esm/providers/provider-quicknode.js +159 -0
  903. package/lib.esm/providers/provider-quicknode.js.map +1 -0
  904. package/lib.esm/providers/provider-socket.d.ts +113 -0
  905. package/lib.esm/providers/provider-socket.d.ts.map +1 -0
  906. package/lib.esm/providers/provider-socket.js +301 -0
  907. package/lib.esm/providers/provider-socket.js.map +1 -0
  908. package/lib.esm/providers/provider-websocket.d.ts +37 -0
  909. package/lib.esm/providers/provider-websocket.d.ts.map +1 -0
  910. package/lib.esm/providers/provider-websocket.js +76 -0
  911. package/lib.esm/providers/provider-websocket.js.map +1 -0
  912. package/lib.esm/providers/provider.d.ts +1223 -0
  913. package/lib.esm/providers/provider.d.ts.map +1 -0
  914. package/lib.esm/providers/provider.js +1312 -0
  915. package/lib.esm/providers/provider.js.map +1 -0
  916. package/lib.esm/providers/signer-noncemanager.d.ts +38 -0
  917. package/lib.esm/providers/signer-noncemanager.d.ts.map +1 -0
  918. package/lib.esm/providers/signer-noncemanager.js +74 -0
  919. package/lib.esm/providers/signer-noncemanager.js.map +1 -0
  920. package/lib.esm/providers/signer.d.ts +131 -0
  921. package/lib.esm/providers/signer.d.ts.map +1 -0
  922. package/lib.esm/providers/signer.js +2 -0
  923. package/lib.esm/providers/signer.js.map +1 -0
  924. package/lib.esm/providers/subscriber-connection.d.ts +25 -0
  925. package/lib.esm/providers/subscriber-connection.d.ts.map +1 -0
  926. package/lib.esm/providers/subscriber-connection.js +52 -0
  927. package/lib.esm/providers/subscriber-connection.js.map +1 -0
  928. package/lib.esm/providers/subscriber-filterid.d.ts +64 -0
  929. package/lib.esm/providers/subscriber-filterid.d.ts.map +1 -0
  930. package/lib.esm/providers/subscriber-filterid.js +174 -0
  931. package/lib.esm/providers/subscriber-filterid.js.map +1 -0
  932. package/lib.esm/providers/subscriber-polling.d.ts +100 -0
  933. package/lib.esm/providers/subscriber-polling.d.ts.map +1 -0
  934. package/lib.esm/providers/subscriber-polling.js +293 -0
  935. package/lib.esm/providers/subscriber-polling.js.map +1 -0
  936. package/lib.esm/providers/ws-browser.d.ts +3 -0
  937. package/lib.esm/providers/ws-browser.d.ts.map +1 -0
  938. package/lib.esm/providers/ws-browser.js +16 -0
  939. package/lib.esm/providers/ws-browser.js.map +1 -0
  940. package/lib.esm/providers/ws.d.ts +2 -0
  941. package/lib.esm/providers/ws.d.ts.map +1 -0
  942. package/lib.esm/providers/ws.js +2 -0
  943. package/lib.esm/providers/ws.js.map +1 -0
  944. package/lib.esm/quantumcoin.d.ts +22 -0
  945. package/lib.esm/quantumcoin.d.ts.map +1 -0
  946. package/lib.esm/quantumcoin.js +16 -0
  947. package/lib.esm/quantumcoin.js.map +1 -0
  948. package/lib.esm/transaction/accesslist.d.ts +6 -0
  949. package/lib.esm/transaction/accesslist.d.ts.map +1 -0
  950. package/lib.esm/transaction/accesslist.js +37 -0
  951. package/lib.esm/transaction/accesslist.js.map +1 -0
  952. package/lib.esm/transaction/address.d.ts +15 -0
  953. package/lib.esm/transaction/address.d.ts.map +1 -0
  954. package/lib.esm/transaction/address.js +25 -0
  955. package/lib.esm/transaction/address.js.map +1 -0
  956. package/lib.esm/transaction/authorization.d.ts +3 -0
  957. package/lib.esm/transaction/authorization.d.ts.map +1 -0
  958. package/lib.esm/transaction/authorization.js +12 -0
  959. package/lib.esm/transaction/authorization.js.map +1 -0
  960. package/lib.esm/transaction/index.d.ts +40 -0
  961. package/lib.esm/transaction/index.d.ts.map +1 -0
  962. package/lib.esm/transaction/index.js +11 -0
  963. package/lib.esm/transaction/index.js.map +1 -0
  964. package/lib.esm/transaction/transaction.d.ts +400 -0
  965. package/lib.esm/transaction/transaction.d.ts.map +1 -0
  966. package/lib.esm/transaction/transaction.js +1144 -0
  967. package/lib.esm/transaction/transaction.js.map +1 -0
  968. package/lib.esm/utils/base58.d.ts +23 -0
  969. package/lib.esm/utils/base58.d.ts.map +1 -0
  970. package/lib.esm/utils/base58.js +63 -0
  971. package/lib.esm/utils/base58.js.map +1 -0
  972. package/lib.esm/utils/base64-browser.d.ts +4 -0
  973. package/lib.esm/utils/base64-browser.d.ts.map +1 -0
  974. package/lib.esm/utils/base64-browser.js +19 -0
  975. package/lib.esm/utils/base64-browser.js.map +1 -0
  976. package/lib.esm/utils/base64.d.ts +40 -0
  977. package/lib.esm/utils/base64.d.ts.map +1 -0
  978. package/lib.esm/utils/base64.js +53 -0
  979. package/lib.esm/utils/base64.js.map +1 -0
  980. package/lib.esm/utils/data.d.ts +93 -0
  981. package/lib.esm/utils/data.d.ts.map +1 -0
  982. package/lib.esm/utils/data.js +170 -0
  983. package/lib.esm/utils/data.js.map +1 -0
  984. package/lib.esm/utils/errors.d.ts +512 -0
  985. package/lib.esm/utils/errors.d.ts.map +1 -0
  986. package/lib.esm/utils/errors.js +224 -0
  987. package/lib.esm/utils/errors.js.map +1 -0
  988. package/lib.esm/utils/events.d.ts +77 -0
  989. package/lib.esm/utils/events.d.ts.map +1 -0
  990. package/lib.esm/utils/events.js +42 -0
  991. package/lib.esm/utils/events.js.map +1 -0
  992. package/lib.esm/utils/fetch.d.ts +363 -0
  993. package/lib.esm/utils/fetch.d.ts.map +1 -0
  994. package/lib.esm/utils/fetch.js +852 -0
  995. package/lib.esm/utils/fetch.js.map +1 -0
  996. package/lib.esm/utils/fixednumber.d.ts +252 -0
  997. package/lib.esm/utils/fixednumber.d.ts.map +1 -0
  998. package/lib.esm/utils/fixednumber.js +526 -0
  999. package/lib.esm/utils/fixednumber.js.map +1 -0
  1000. package/lib.esm/utils/geturl-browser.d.ts +4 -0
  1001. package/lib.esm/utils/geturl-browser.d.ts.map +1 -0
  1002. package/lib.esm/utils/geturl-browser.js +62 -0
  1003. package/lib.esm/utils/geturl-browser.js.map +1 -0
  1004. package/lib.esm/utils/geturl.d.ts +10 -0
  1005. package/lib.esm/utils/geturl.d.ts.map +1 -0
  1006. package/lib.esm/utils/geturl.js +114 -0
  1007. package/lib.esm/utils/geturl.js.map +1 -0
  1008. package/lib.esm/utils/index.d.ts +30 -0
  1009. package/lib.esm/utils/index.d.ts.map +1 -0
  1010. package/lib.esm/utils/index.js +22 -0
  1011. package/lib.esm/utils/index.js.map +1 -0
  1012. package/lib.esm/utils/maths.d.ts +66 -0
  1013. package/lib.esm/utils/maths.d.ts.map +1 -0
  1014. package/lib.esm/utils/maths.js +215 -0
  1015. package/lib.esm/utils/maths.js.map +1 -0
  1016. package/lib.esm/utils/properties.d.ts +23 -0
  1017. package/lib.esm/utils/properties.d.ts.map +1 -0
  1018. package/lib.esm/utils/properties.js +54 -0
  1019. package/lib.esm/utils/properties.js.map +1 -0
  1020. package/lib.esm/utils/rlp-decode.d.ts +6 -0
  1021. package/lib.esm/utils/rlp-decode.d.ts.map +1 -0
  1022. package/lib.esm/utils/rlp-decode.js +79 -0
  1023. package/lib.esm/utils/rlp-decode.js.map +1 -0
  1024. package/lib.esm/utils/rlp-encode.d.ts +6 -0
  1025. package/lib.esm/utils/rlp-encode.d.ts.map +1 -0
  1026. package/lib.esm/utils/rlp-encode.js +49 -0
  1027. package/lib.esm/utils/rlp-encode.js.map +1 -0
  1028. package/lib.esm/utils/rlp.d.ts +17 -0
  1029. package/lib.esm/utils/rlp.d.ts.map +1 -0
  1030. package/lib.esm/utils/rlp.js +9 -0
  1031. package/lib.esm/utils/rlp.js.map +1 -0
  1032. package/lib.esm/utils/units.d.ts +24 -0
  1033. package/lib.esm/utils/units.d.ts.map +1 -0
  1034. package/lib.esm/utils/units.js +83 -0
  1035. package/lib.esm/utils/units.js.map +1 -0
  1036. package/lib.esm/utils/utf8.d.ts +96 -0
  1037. package/lib.esm/utils/utf8.d.ts.map +1 -0
  1038. package/lib.esm/utils/utf8.js +221 -0
  1039. package/lib.esm/utils/utf8.js.map +1 -0
  1040. package/lib.esm/utils/uuid.d.ts +8 -0
  1041. package/lib.esm/utils/uuid.d.ts.map +1 -0
  1042. package/lib.esm/utils/uuid.js +30 -0
  1043. package/lib.esm/utils/uuid.js.map +1 -0
  1044. package/lib.esm/wallet/base-wallet.d.ts +57 -0
  1045. package/lib.esm/wallet/base-wallet.d.ts.map +1 -0
  1046. package/lib.esm/wallet/base-wallet.js +123 -0
  1047. package/lib.esm/wallet/base-wallet.js.map +1 -0
  1048. package/lib.esm/wallet/hdwallet.d.ts +248 -0
  1049. package/lib.esm/wallet/hdwallet.d.ts.map +1 -0
  1050. package/lib.esm/wallet/hdwallet.js +499 -0
  1051. package/lib.esm/wallet/hdwallet.js.map +1 -0
  1052. package/lib.esm/wallet/index.d.ts +27 -0
  1053. package/lib.esm/wallet/index.d.ts.map +1 -0
  1054. package/lib.esm/wallet/index.js +25 -0
  1055. package/lib.esm/wallet/index.js.map +1 -0
  1056. package/lib.esm/wallet/json-crowdsale.d.ts +27 -0
  1057. package/lib.esm/wallet/json-crowdsale.d.ts.map +1 -0
  1058. package/lib.esm/wallet/json-crowdsale.js +55 -0
  1059. package/lib.esm/wallet/json-crowdsale.js.map +1 -0
  1060. package/lib.esm/wallet/json-keystore.d.ts +89 -0
  1061. package/lib.esm/wallet/json-keystore.d.ts.map +1 -0
  1062. package/lib.esm/wallet/json-keystore.js +287 -0
  1063. package/lib.esm/wallet/json-keystore.js.map +1 -0
  1064. package/lib.esm/wallet/mnemonic.d.ts +65 -0
  1065. package/lib.esm/wallet/mnemonic.d.ts.map +1 -0
  1066. package/lib.esm/wallet/mnemonic.js +165 -0
  1067. package/lib.esm/wallet/mnemonic.js.map +1 -0
  1068. package/lib.esm/wallet/utils.d.ts +8 -0
  1069. package/lib.esm/wallet/utils.d.ts.map +1 -0
  1070. package/lib.esm/wallet/utils.js +142 -0
  1071. package/lib.esm/wallet/utils.js.map +1 -0
  1072. package/lib.esm/wallet/wallet.d.ts +71 -0
  1073. package/lib.esm/wallet/wallet.d.ts.map +1 -0
  1074. package/lib.esm/wallet/wallet.js +144 -0
  1075. package/lib.esm/wallet/wallet.js.map +1 -0
  1076. package/lib.esm/wordlists/bit-reader.d.ts +5 -0
  1077. package/lib.esm/wordlists/bit-reader.d.ts.map +1 -0
  1078. package/lib.esm/wordlists/bit-reader.js +32 -0
  1079. package/lib.esm/wordlists/bit-reader.js.map +1 -0
  1080. package/lib.esm/wordlists/decode-owl.d.ts +9 -0
  1081. package/lib.esm/wordlists/decode-owl.d.ts.map +1 -0
  1082. package/lib.esm/wordlists/decode-owl.js +55 -0
  1083. package/lib.esm/wordlists/decode-owl.js.map +1 -0
  1084. package/lib.esm/wordlists/decode-owla.d.ts +5 -0
  1085. package/lib.esm/wordlists/decode-owla.d.ts.map +1 -0
  1086. package/lib.esm/wordlists/decode-owla.js +28 -0
  1087. package/lib.esm/wordlists/decode-owla.js.map +1 -0
  1088. package/lib.esm/wordlists/generation/encode-latin.d.ts +25 -0
  1089. package/lib.esm/wordlists/generation/encode-latin.d.ts.map +1 -0
  1090. package/lib.esm/wordlists/generation/encode-latin.js +344 -0
  1091. package/lib.esm/wordlists/generation/encode-latin.js.map +1 -0
  1092. package/lib.esm/wordlists/index.d.ts +25 -0
  1093. package/lib.esm/wordlists/index.d.ts.map +1 -0
  1094. package/lib.esm/wordlists/index.js +25 -0
  1095. package/lib.esm/wordlists/index.js.map +1 -0
  1096. package/lib.esm/wordlists/lang-cz.d.ts +23 -0
  1097. package/lib.esm/wordlists/lang-cz.d.ts.map +1 -0
  1098. package/lib.esm/wordlists/lang-cz.js +31 -0
  1099. package/lib.esm/wordlists/lang-cz.js.map +1 -0
  1100. package/lib.esm/wordlists/lang-en.d.ts +23 -0
  1101. package/lib.esm/wordlists/lang-en.d.ts.map +1 -0
  1102. package/lib.esm/wordlists/lang-en.js +31 -0
  1103. package/lib.esm/wordlists/lang-en.js.map +1 -0
  1104. package/lib.esm/wordlists/lang-es.d.ts +23 -0
  1105. package/lib.esm/wordlists/lang-es.d.ts.map +1 -0
  1106. package/lib.esm/wordlists/lang-es.js +32 -0
  1107. package/lib.esm/wordlists/lang-es.js.map +1 -0
  1108. package/lib.esm/wordlists/lang-fr.d.ts +23 -0
  1109. package/lib.esm/wordlists/lang-fr.d.ts.map +1 -0
  1110. package/lib.esm/wordlists/lang-fr.js +32 -0
  1111. package/lib.esm/wordlists/lang-fr.js.map +1 -0
  1112. package/lib.esm/wordlists/lang-it.d.ts +23 -0
  1113. package/lib.esm/wordlists/lang-it.d.ts.map +1 -0
  1114. package/lib.esm/wordlists/lang-it.js +31 -0
  1115. package/lib.esm/wordlists/lang-it.js.map +1 -0
  1116. package/lib.esm/wordlists/lang-ja.d.ts +27 -0
  1117. package/lib.esm/wordlists/lang-ja.d.ts.map +1 -0
  1118. package/lib.esm/wordlists/lang-ja.js +154 -0
  1119. package/lib.esm/wordlists/lang-ja.js.map +1 -0
  1120. package/lib.esm/wordlists/lang-ko.d.ts +25 -0
  1121. package/lib.esm/wordlists/lang-ko.d.ts.map +1 -0
  1122. package/lib.esm/wordlists/lang-ko.js +89 -0
  1123. package/lib.esm/wordlists/lang-ko.js.map +1 -0
  1124. package/lib.esm/wordlists/lang-pt.d.ts +23 -0
  1125. package/lib.esm/wordlists/lang-pt.d.ts.map +1 -0
  1126. package/lib.esm/wordlists/lang-pt.js +31 -0
  1127. package/lib.esm/wordlists/lang-pt.js.map +1 -0
  1128. package/lib.esm/wordlists/lang-zh.d.ts +32 -0
  1129. package/lib.esm/wordlists/lang-zh.d.ts.map +1 -0
  1130. package/lib.esm/wordlists/lang-zh.js +92 -0
  1131. package/lib.esm/wordlists/lang-zh.js.map +1 -0
  1132. package/lib.esm/wordlists/wordlist-owl.d.ts +32 -0
  1133. package/lib.esm/wordlists/wordlist-owl.d.ts.map +1 -0
  1134. package/lib.esm/wordlists/wordlist-owl.js +66 -0
  1135. package/lib.esm/wordlists/wordlist-owl.js.map +1 -0
  1136. package/lib.esm/wordlists/wordlist-owla.d.ts +30 -0
  1137. package/lib.esm/wordlists/wordlist-owla.d.ts.map +1 -0
  1138. package/lib.esm/wordlists/wordlist-owla.js +36 -0
  1139. package/lib.esm/wordlists/wordlist-owla.js.map +1 -0
  1140. package/lib.esm/wordlists/wordlist.d.ts +47 -0
  1141. package/lib.esm/wordlists/wordlist.d.ts.map +1 -0
  1142. package/lib.esm/wordlists/wordlist.js +42 -0
  1143. package/lib.esm/wordlists/wordlist.js.map +1 -0
  1144. package/lib.esm/wordlists/wordlists-browser.d.ts +3 -0
  1145. package/lib.esm/wordlists/wordlists-browser.d.ts.map +1 -0
  1146. package/lib.esm/wordlists/wordlists-browser.js +5 -0
  1147. package/lib.esm/wordlists/wordlists-browser.js.map +1 -0
  1148. package/lib.esm/wordlists/wordlists-extra.d.ts +9 -0
  1149. package/lib.esm/wordlists/wordlists-extra.d.ts.map +1 -0
  1150. package/lib.esm/wordlists/wordlists-extra.js +9 -0
  1151. package/lib.esm/wordlists/wordlists-extra.js.map +1 -0
  1152. package/lib.esm/wordlists/wordlists.d.ts +16 -0
  1153. package/lib.esm/wordlists/wordlists.d.ts.map +1 -0
  1154. package/lib.esm/wordlists/wordlists.js +35 -0
  1155. package/lib.esm/wordlists/wordlists.js.map +1 -0
  1156. package/package.json +126 -0
  1157. package/rollup.config.mjs +50 -0
  1158. package/src.ts/_version.ts +6 -0
  1159. package/src.ts/abi/abi-coder.ts +237 -0
  1160. package/src.ts/abi/bytes32.ts +45 -0
  1161. package/src.ts/abi/coders/abstract-coder.ts +541 -0
  1162. package/src.ts/abi/coders/address.ts +36 -0
  1163. package/src.ts/abi/coders/anonymous.ts +29 -0
  1164. package/src.ts/abi/coders/array.ts +199 -0
  1165. package/src.ts/abi/coders/boolean.ts +27 -0
  1166. package/src.ts/abi/coders/bytes.ts +43 -0
  1167. package/src.ts/abi/coders/fixed-bytes.ts +37 -0
  1168. package/src.ts/abi/coders/null.ts +28 -0
  1169. package/src.ts/abi/coders/number.ts +63 -0
  1170. package/src.ts/abi/coders/string.ts +29 -0
  1171. package/src.ts/abi/coders/tuple.ts +69 -0
  1172. package/src.ts/abi/fragments.ts +1617 -0
  1173. package/src.ts/abi/index.ts +41 -0
  1174. package/src.ts/abi/interface.ts +1271 -0
  1175. package/src.ts/abi/typed.ts +796 -0
  1176. package/src.ts/address/address.ts +173 -0
  1177. package/src.ts/address/checks.ts +123 -0
  1178. package/src.ts/address/contract-address.ts +80 -0
  1179. package/src.ts/address/index.ts +57 -0
  1180. package/src.ts/constants/addresses.ts +8 -0
  1181. package/src.ts/constants/hashes.ts +7 -0
  1182. package/src.ts/constants/index.ts +16 -0
  1183. package/src.ts/constants/numbers.ts +35 -0
  1184. package/src.ts/constants/strings.ts +16 -0
  1185. package/src.ts/contract/contract.ts +1120 -0
  1186. package/src.ts/contract/factory.ts +143 -0
  1187. package/src.ts/contract/index.ts +31 -0
  1188. package/src.ts/contract/types.ts +236 -0
  1189. package/src.ts/contract/wrappers.ts +225 -0
  1190. package/src.ts/crypto/crypto-browser.ts +64 -0
  1191. package/src.ts/crypto/crypto.ts +4 -0
  1192. package/src.ts/crypto/hmac.ts +51 -0
  1193. package/src.ts/crypto/index.ts +59 -0
  1194. package/src.ts/crypto/keccak.ts +54 -0
  1195. package/src.ts/crypto/pbkdf2.ts +55 -0
  1196. package/src.ts/crypto/random.ts +36 -0
  1197. package/src.ts/crypto/ripemd160.ts +43 -0
  1198. package/src.ts/crypto/scrypt.ts +114 -0
  1199. package/src.ts/crypto/sha2.ts +78 -0
  1200. package/src.ts/crypto/signature.ts +363 -0
  1201. package/src.ts/crypto/signing-key.ts +196 -0
  1202. package/src.ts/hash/authorization.ts +38 -0
  1203. package/src.ts/hash/id.ts +17 -0
  1204. package/src.ts/hash/index.ts +18 -0
  1205. package/src.ts/hash/message.ts +51 -0
  1206. package/src.ts/hash/namehash.ts +101 -0
  1207. package/src.ts/hash/solidity.ts +117 -0
  1208. package/src.ts/hash/typed-data.ts +658 -0
  1209. package/src.ts/index.ts +12 -0
  1210. package/src.ts/providers/abstract-provider.ts +1761 -0
  1211. package/src.ts/providers/abstract-signer.ts +314 -0
  1212. package/src.ts/providers/community.ts +49 -0
  1213. package/src.ts/providers/contracts.ts +42 -0
  1214. package/src.ts/providers/default-provider.ts +202 -0
  1215. package/src.ts/providers/ens-resolver.ts +606 -0
  1216. package/src.ts/providers/format.ts +320 -0
  1217. package/src.ts/providers/formatting.ts +418 -0
  1218. package/src.ts/providers/index.ts +135 -0
  1219. package/src.ts/providers/network.ts +435 -0
  1220. package/src.ts/providers/pagination.ts +8 -0
  1221. package/src.ts/providers/plugin-fallback.ts +35 -0
  1222. package/src.ts/providers/plugins-network.ts +281 -0
  1223. package/src.ts/providers/provider-alchemy.ts +166 -0
  1224. package/src.ts/providers/provider-ankr.ts +153 -0
  1225. package/src.ts/providers/provider-blockscout.ts +167 -0
  1226. package/src.ts/providers/provider-browser.ts +334 -0
  1227. package/src.ts/providers/provider-chainstack.ts +113 -0
  1228. package/src.ts/providers/provider-cloudflare.ts +24 -0
  1229. package/src.ts/providers/provider-etherscan.ts +671 -0
  1230. package/src.ts/providers/provider-fallback.ts +801 -0
  1231. package/src.ts/providers/provider-infura.ts +220 -0
  1232. package/src.ts/providers/provider-ipcsocket-browser.ts +3 -0
  1233. package/src.ts/providers/provider-ipcsocket.ts +81 -0
  1234. package/src.ts/providers/provider-jsonrpc.ts +1335 -0
  1235. package/src.ts/providers/provider-pocket.ts +121 -0
  1236. package/src.ts/providers/provider-quicknode.ts +177 -0
  1237. package/src.ts/providers/provider-socket.ts +352 -0
  1238. package/src.ts/providers/provider-websocket.ts +103 -0
  1239. package/src.ts/providers/provider.ts +2136 -0
  1240. package/src.ts/providers/signer-noncemanager.ts +98 -0
  1241. package/src.ts/providers/signer.ts +166 -0
  1242. package/src.ts/providers/subscriber-connection.ts +74 -0
  1243. package/src.ts/providers/subscriber-filterid.ts +199 -0
  1244. package/src.ts/providers/subscriber-polling.ts +321 -0
  1245. package/src.ts/providers/ws-browser.ts +11 -0
  1246. package/src.ts/providers/ws.ts +3 -0
  1247. package/src.ts/quantumcoin.ts +221 -0
  1248. package/src.ts/thirdparty.d.ts +16 -0
  1249. package/src.ts/transaction/accesslist.ts +43 -0
  1250. package/src.ts/transaction/address.ts +28 -0
  1251. package/src.ts/transaction/authorization.ts +14 -0
  1252. package/src.ts/transaction/index.ts +51 -0
  1253. package/src.ts/transaction/transaction.ts +1379 -0
  1254. package/src.ts/utils/base58.ts +73 -0
  1255. package/src.ts/utils/base64-browser.ts +25 -0
  1256. package/src.ts/utils/base64.ts +56 -0
  1257. package/src.ts/utils/data.ts +199 -0
  1258. package/src.ts/utils/errors.ts +793 -0
  1259. package/src.ts/utils/events.ts +105 -0
  1260. package/src.ts/utils/fetch.ts +970 -0
  1261. package/src.ts/utils/fixednumber.ts +643 -0
  1262. package/src.ts/utils/geturl-browser.ts +81 -0
  1263. package/src.ts/utils/geturl.ts +134 -0
  1264. package/src.ts/utils/index.ts +95 -0
  1265. package/src.ts/utils/maths.ts +240 -0
  1266. package/src.ts/utils/properties.ts +60 -0
  1267. package/src.ts/utils/rlp-decode.ts +104 -0
  1268. package/src.ts/utils/rlp-encode.ts +64 -0
  1269. package/src.ts/utils/rlp.ts +20 -0
  1270. package/src.ts/utils/test.txt +0 -0
  1271. package/src.ts/utils/units.ts +91 -0
  1272. package/src.ts/utils/utf8.ts +325 -0
  1273. package/src.ts/utils/uuid.ts +36 -0
  1274. package/src.ts/wallet/base-wallet.ts +160 -0
  1275. package/src.ts/wallet/hdwallet.ts +586 -0
  1276. package/src.ts/wallet/index.ts +47 -0
  1277. package/src.ts/wallet/json-crowdsale.ts +74 -0
  1278. package/src.ts/wallet/json-keystore.ts +389 -0
  1279. package/src.ts/wallet/mnemonic.ts +203 -0
  1280. package/src.ts/wallet/utils.ts +147 -0
  1281. package/src.ts/wallet/wallet.ts +163 -0
  1282. package/src.ts/wordlists/bit-reader.ts +35 -0
  1283. package/src.ts/wordlists/decode-owl.ts +58 -0
  1284. package/src.ts/wordlists/decode-owla.ts +33 -0
  1285. package/src.ts/wordlists/generation/encode-latin.ts +370 -0
  1286. package/src.ts/wordlists/index.ts +26 -0
  1287. package/src.ts/wordlists/lang-cz.ts +33 -0
  1288. package/src.ts/wordlists/lang-en.ts +33 -0
  1289. package/src.ts/wordlists/lang-es.ts +35 -0
  1290. package/src.ts/wordlists/lang-fr.ts +34 -0
  1291. package/src.ts/wordlists/lang-it.ts +33 -0
  1292. package/src.ts/wordlists/lang-ja.ts +181 -0
  1293. package/src.ts/wordlists/lang-ko.ts +104 -0
  1294. package/src.ts/wordlists/lang-pt.ts +34 -0
  1295. package/src.ts/wordlists/lang-zh.ts +112 -0
  1296. package/src.ts/wordlists/wordlist-owl.ts +77 -0
  1297. package/src.ts/wordlists/wordlist-owla.ts +41 -0
  1298. package/src.ts/wordlists/wordlist.ts +59 -0
  1299. package/src.ts/wordlists/wordlists-browser.ts +8 -0
  1300. package/src.ts/wordlists/wordlists-extra.ts +9 -0
  1301. package/src.ts/wordlists/wordlists.ts +38 -0
@@ -0,0 +1,1312 @@
1
+ //import { resolveAddress } from "@ethersproject/address";
2
+ import { defineProperties, getBigInt, getNumber, hexlify, isBytesLike, resolveProperties, assert, assertArgument, isError, makeError } from "../utils/index.js";
3
+ import { accessListify } from "../transaction/index.js";
4
+ const BN_0 = BigInt(0);
5
+ // -----------------------
6
+ function getValue(value) {
7
+ if (value == null) {
8
+ return null;
9
+ }
10
+ return value;
11
+ }
12
+ function toJson(value) {
13
+ if (value == null) {
14
+ return null;
15
+ }
16
+ return value.toString();
17
+ }
18
+ // @TODO? <T extends FeeData = { }> implements Required<T>
19
+ /**
20
+ * A **FeeData** wraps all the fee-related values associated with
21
+ * the network.
22
+ */
23
+ export class FeeData {
24
+ /**
25
+ * The gas price for legacy networks.
26
+ */
27
+ gasPrice;
28
+ /**
29
+ * The maximum fee to pay per gas.
30
+ *
31
+ * The base fee per gas is defined by the network and based on
32
+ * congestion, increasing the cost during times of heavy load
33
+ * and lowering when less busy.
34
+ *
35
+ * The actual fee per gas will be the base fee for the block
36
+ * and the priority fee, up to the max fee per gas.
37
+ *
38
+ * This will be ``null`` on legacy networks (i.e. [pre-EIP-1559](link-eip-1559))
39
+ */
40
+ maxFeePerGas;
41
+ /**
42
+ * The additional amout to pay per gas to encourage a validator
43
+ * to include the transaction.
44
+ *
45
+ * The purpose of this is to compensate the validator for the
46
+ * adjusted risk for including a given transaction.
47
+ *
48
+ * This will be ``null`` on legacy networks (i.e. [pre-EIP-1559](link-eip-1559))
49
+ */
50
+ maxPriorityFeePerGas;
51
+ /**
52
+ * Creates a new FeeData for %%gasPrice%%, %%maxFeePerGas%% and
53
+ * %%maxPriorityFeePerGas%%.
54
+ */
55
+ constructor(gasPrice, maxFeePerGas, maxPriorityFeePerGas) {
56
+ defineProperties(this, {
57
+ gasPrice: getValue(gasPrice),
58
+ maxFeePerGas: getValue(maxFeePerGas),
59
+ maxPriorityFeePerGas: getValue(maxPriorityFeePerGas)
60
+ });
61
+ }
62
+ /**
63
+ * Returns a JSON-friendly value.
64
+ */
65
+ toJSON() {
66
+ const { gasPrice, maxFeePerGas, maxPriorityFeePerGas } = this;
67
+ return {
68
+ _type: "FeeData",
69
+ gasPrice: toJson(gasPrice),
70
+ maxFeePerGas: toJson(maxFeePerGas),
71
+ maxPriorityFeePerGas: toJson(maxPriorityFeePerGas),
72
+ };
73
+ }
74
+ }
75
+ ;
76
+ /**
77
+ * Returns a copy of %%req%% with all properties coerced to their strict
78
+ * types.
79
+ */
80
+ export function copyRequest(req) {
81
+ const result = {};
82
+ // These could be addresses, ENS names or Addressables
83
+ if (req.to) {
84
+ result.to = req.to;
85
+ }
86
+ if (req.from) {
87
+ result.from = req.from;
88
+ }
89
+ if (req.data) {
90
+ result.data = hexlify(req.data);
91
+ }
92
+ const bigIntKeys = "chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);
93
+ for (const key of bigIntKeys) {
94
+ if (!(key in req) || req[key] == null) {
95
+ continue;
96
+ }
97
+ result[key] = getBigInt(req[key], `request.${key}`);
98
+ }
99
+ const numberKeys = "type,nonce".split(/,/);
100
+ for (const key of numberKeys) {
101
+ if (!(key in req) || req[key] == null) {
102
+ continue;
103
+ }
104
+ result[key] = getNumber(req[key], `request.${key}`);
105
+ }
106
+ if (req.accessList) {
107
+ result.accessList = accessListify(req.accessList);
108
+ }
109
+ if (req.authorizationList) {
110
+ result.authorizationList = req.authorizationList.slice();
111
+ }
112
+ if ("blockTag" in req) {
113
+ result.blockTag = req.blockTag;
114
+ }
115
+ if ("enableCcipRead" in req) {
116
+ result.enableCcipRead = !!req.enableCcipRead;
117
+ }
118
+ if ("customData" in req) {
119
+ result.customData = req.customData;
120
+ }
121
+ if ("blobVersionedHashes" in req && req.blobVersionedHashes) {
122
+ result.blobVersionedHashes = req.blobVersionedHashes.slice();
123
+ }
124
+ if ("kzg" in req) {
125
+ result.kzg = req.kzg;
126
+ }
127
+ if ("blobs" in req && req.blobs) {
128
+ result.blobs = req.blobs.map((b) => {
129
+ if (isBytesLike(b)) {
130
+ return hexlify(b);
131
+ }
132
+ return Object.assign({}, b);
133
+ });
134
+ }
135
+ return result;
136
+ }
137
+ /**
138
+ * A **Block** represents the data associated with a full block on
139
+ * Ethereum.
140
+ */
141
+ export class Block {
142
+ /**
143
+ * The provider connected to the block used to fetch additional details
144
+ * if necessary.
145
+ */
146
+ provider;
147
+ /**
148
+ * The block number, sometimes called the block height. This is a
149
+ * sequential number that is one higher than the parent block.
150
+ */
151
+ number;
152
+ /**
153
+ * The block hash.
154
+ *
155
+ * This hash includes all properties, so can be safely used to identify
156
+ * an exact set of block properties.
157
+ */
158
+ hash;
159
+ /**
160
+ * The timestamp for this block, which is the number of seconds since
161
+ * epoch that this block was included.
162
+ */
163
+ timestamp;
164
+ /**
165
+ * The block hash of the parent block.
166
+ */
167
+ parentHash;
168
+ /**
169
+ * The hash tree root of the parent beacon block for the given
170
+ * execution block. See [[link-eip-4788]].
171
+ */
172
+ parentBeaconBlockRoot;
173
+ /**
174
+ * The nonce.
175
+ *
176
+ * On legacy networks, this is the random number inserted which
177
+ * permitted the difficulty target to be reached.
178
+ */
179
+ nonce;
180
+ /**
181
+ * The difficulty target.
182
+ *
183
+ * On legacy networks, this is the proof-of-work target required
184
+ * for a block to meet the protocol rules to be included.
185
+ *
186
+ * On modern networks, this is a random number arrived at using
187
+ * randao. @TODO: Find links?
188
+ */
189
+ difficulty;
190
+ /**
191
+ * The total gas limit for this block.
192
+ */
193
+ gasLimit;
194
+ /**
195
+ * The total gas used in this block.
196
+ */
197
+ gasUsed;
198
+ /**
199
+ * The root hash for the global state after applying changes
200
+ * in this block.
201
+ */
202
+ stateRoot;
203
+ /**
204
+ * The hash of the transaction receipts trie.
205
+ */
206
+ receiptsRoot;
207
+ /**
208
+ * The total amount of blob gas consumed by the transactions
209
+ * within the block. See [[link-eip-4844]].
210
+ */
211
+ blobGasUsed;
212
+ /**
213
+ * The running total of blob gas consumed in excess of the
214
+ * target, prior to the block. See [[link-eip-4844]].
215
+ */
216
+ excessBlobGas;
217
+ /**
218
+ * The miner coinbase address, wihch receives any subsidies for
219
+ * including this block.
220
+ */
221
+ miner;
222
+ /**
223
+ * The latest RANDAO mix of the post beacon state of
224
+ * the previous block.
225
+ */
226
+ prevRandao;
227
+ /**
228
+ * Any extra data the validator wished to include.
229
+ */
230
+ extraData;
231
+ /**
232
+ * The base fee per gas that all transactions in this block were
233
+ * charged.
234
+ *
235
+ * This adjusts after each block, depending on how congested the network
236
+ * is.
237
+ */
238
+ baseFeePerGas;
239
+ #transactions;
240
+ /**
241
+ * Create a new **Block** object.
242
+ *
243
+ * This should generally not be necessary as the unless implementing a
244
+ * low-level library.
245
+ */
246
+ constructor(block, provider) {
247
+ this.#transactions = block.transactions.map((tx) => {
248
+ if (typeof (tx) !== "string") {
249
+ return new TransactionResponse(tx, provider);
250
+ }
251
+ return tx;
252
+ });
253
+ defineProperties(this, {
254
+ provider,
255
+ hash: getValue(block.hash),
256
+ number: block.number,
257
+ timestamp: block.timestamp,
258
+ parentHash: block.parentHash,
259
+ parentBeaconBlockRoot: block.parentBeaconBlockRoot,
260
+ nonce: block.nonce,
261
+ difficulty: block.difficulty,
262
+ gasLimit: block.gasLimit,
263
+ gasUsed: block.gasUsed,
264
+ blobGasUsed: block.blobGasUsed,
265
+ excessBlobGas: block.excessBlobGas,
266
+ miner: block.miner,
267
+ prevRandao: getValue(block.prevRandao),
268
+ extraData: block.extraData,
269
+ baseFeePerGas: getValue(block.baseFeePerGas),
270
+ stateRoot: block.stateRoot,
271
+ receiptsRoot: block.receiptsRoot,
272
+ });
273
+ }
274
+ /**
275
+ * Returns the list of transaction hashes, in the order
276
+ * they were executed within the block.
277
+ */
278
+ get transactions() {
279
+ return this.#transactions.map((tx) => {
280
+ if (typeof (tx) === "string") {
281
+ return tx;
282
+ }
283
+ return tx.hash;
284
+ });
285
+ }
286
+ /**
287
+ * Returns the complete transactions, in the order they
288
+ * were executed within the block.
289
+ *
290
+ * This is only available for blocks which prefetched
291
+ * transactions, by passing ``true`` to %%prefetchTxs%%
292
+ * into [[Provider-getBlock]].
293
+ */
294
+ get prefetchedTransactions() {
295
+ const txs = this.#transactions.slice();
296
+ // Doesn't matter...
297
+ if (txs.length === 0) {
298
+ return [];
299
+ }
300
+ // Make sure we prefetched the transactions
301
+ assert(typeof (txs[0]) === "object", "transactions were not prefetched with block request", "UNSUPPORTED_OPERATION", {
302
+ operation: "transactionResponses()"
303
+ });
304
+ return txs;
305
+ }
306
+ /**
307
+ * Returns a JSON-friendly value.
308
+ */
309
+ toJSON() {
310
+ const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, prevRandao, nonce, number, parentHash, parentBeaconBlockRoot, stateRoot, receiptsRoot, timestamp, transactions } = this;
311
+ return {
312
+ _type: "Block",
313
+ baseFeePerGas: toJson(baseFeePerGas),
314
+ difficulty: toJson(difficulty),
315
+ extraData,
316
+ gasLimit: toJson(gasLimit),
317
+ gasUsed: toJson(gasUsed),
318
+ blobGasUsed: toJson(this.blobGasUsed),
319
+ excessBlobGas: toJson(this.excessBlobGas),
320
+ hash, miner, prevRandao, nonce, number, parentHash, timestamp,
321
+ parentBeaconBlockRoot, stateRoot, receiptsRoot,
322
+ transactions,
323
+ };
324
+ }
325
+ [Symbol.iterator]() {
326
+ let index = 0;
327
+ const txs = this.transactions;
328
+ return {
329
+ next: () => {
330
+ if (index < this.length) {
331
+ return {
332
+ value: txs[index++], done: false
333
+ };
334
+ }
335
+ return { value: undefined, done: true };
336
+ }
337
+ };
338
+ }
339
+ /**
340
+ * The number of transactions in this block.
341
+ */
342
+ get length() { return this.#transactions.length; }
343
+ /**
344
+ * The [[link-js-date]] this block was included at.
345
+ */
346
+ get date() {
347
+ if (this.timestamp == null) {
348
+ return null;
349
+ }
350
+ return new Date(this.timestamp * 1000);
351
+ }
352
+ /**
353
+ * Get the transaction at %%indexe%% within this block.
354
+ */
355
+ async getTransaction(indexOrHash) {
356
+ // Find the internal value by its index or hash
357
+ let tx = undefined;
358
+ if (typeof (indexOrHash) === "number") {
359
+ tx = this.#transactions[indexOrHash];
360
+ }
361
+ else {
362
+ const hash = indexOrHash.toLowerCase();
363
+ for (const v of this.#transactions) {
364
+ if (typeof (v) === "string") {
365
+ if (v !== hash) {
366
+ continue;
367
+ }
368
+ tx = v;
369
+ break;
370
+ }
371
+ else {
372
+ if (v.hash !== hash) {
373
+ continue;
374
+ }
375
+ tx = v;
376
+ break;
377
+ }
378
+ }
379
+ }
380
+ if (tx == null) {
381
+ throw new Error("no such tx");
382
+ }
383
+ if (typeof (tx) === "string") {
384
+ return (await this.provider.getTransaction(tx));
385
+ }
386
+ else {
387
+ return tx;
388
+ }
389
+ }
390
+ /**
391
+ * If a **Block** was fetched with a request to include the transactions
392
+ * this will allow synchronous access to those transactions.
393
+ *
394
+ * If the transactions were not prefetched, this will throw.
395
+ */
396
+ getPrefetchedTransaction(indexOrHash) {
397
+ const txs = this.prefetchedTransactions;
398
+ if (typeof (indexOrHash) === "number") {
399
+ return txs[indexOrHash];
400
+ }
401
+ indexOrHash = indexOrHash.toLowerCase();
402
+ for (const tx of txs) {
403
+ if (tx.hash === indexOrHash) {
404
+ return tx;
405
+ }
406
+ }
407
+ assertArgument(false, "no matching transaction", "indexOrHash", indexOrHash);
408
+ }
409
+ /**
410
+ * Returns true if this block been mined. This provides a type guard
411
+ * for all properties on a [[MinedBlock]].
412
+ */
413
+ isMined() { return !!this.hash; }
414
+ /**
415
+ * Returns true if this block is an [[link-eip-2930]] block.
416
+ */
417
+ isLondon() {
418
+ return !!this.baseFeePerGas;
419
+ }
420
+ /**
421
+ * @_ignore:
422
+ */
423
+ orphanedEvent() {
424
+ if (!this.isMined()) {
425
+ throw new Error("");
426
+ }
427
+ return createOrphanedBlockFilter(this);
428
+ }
429
+ }
430
+ //////////////////////
431
+ // Log
432
+ /**
433
+ * A **Log** in Ethereum represents an event that has been included in a
434
+ * transaction using the ``LOG*`` opcodes, which are most commonly used by
435
+ * Solidity's emit for announcing events.
436
+ */
437
+ export class Log {
438
+ /**
439
+ * The provider connected to the log used to fetch additional details
440
+ * if necessary.
441
+ */
442
+ provider;
443
+ /**
444
+ * The transaction hash of the transaction this log occurred in. Use the
445
+ * [[Log-getTransaction]] to get the [[TransactionResponse]].
446
+ */
447
+ transactionHash;
448
+ /**
449
+ * The block hash of the block this log occurred in. Use the
450
+ * [[Log-getBlock]] to get the [[Block]].
451
+ */
452
+ blockHash;
453
+ /**
454
+ * The block number of the block this log occurred in. It is preferred
455
+ * to use the [[Block-hash]] when fetching the related [[Block]],
456
+ * since in the case of an orphaned block, the block at that height may
457
+ * have changed.
458
+ */
459
+ blockNumber;
460
+ /**
461
+ * If the **Log** represents a block that was removed due to an orphaned
462
+ * block, this will be true.
463
+ *
464
+ * This can only happen within an orphan event listener.
465
+ */
466
+ removed;
467
+ /**
468
+ * The address of the contract that emitted this log.
469
+ */
470
+ address;
471
+ /**
472
+ * The data included in this log when it was emitted.
473
+ */
474
+ data;
475
+ /**
476
+ * The indexed topics included in this log when it was emitted.
477
+ *
478
+ * All topics are included in the bloom filters, so they can be
479
+ * efficiently filtered using the [[Provider-getLogs]] method.
480
+ */
481
+ topics;
482
+ /**
483
+ * The index within the block this log occurred at. This is generally
484
+ * not useful to developers, but can be used with the various roots
485
+ * to proof inclusion within a block.
486
+ */
487
+ index;
488
+ /**
489
+ * The index within the transaction of this log.
490
+ */
491
+ transactionIndex;
492
+ /**
493
+ * @_ignore:
494
+ */
495
+ constructor(log, provider) {
496
+ this.provider = provider;
497
+ const topics = Object.freeze(log.topics.slice());
498
+ defineProperties(this, {
499
+ transactionHash: log.transactionHash,
500
+ blockHash: log.blockHash,
501
+ blockNumber: log.blockNumber,
502
+ removed: log.removed,
503
+ address: log.address,
504
+ data: log.data,
505
+ topics,
506
+ index: log.index,
507
+ transactionIndex: log.transactionIndex,
508
+ });
509
+ }
510
+ /**
511
+ * Returns a JSON-compatible object.
512
+ */
513
+ toJSON() {
514
+ const { address, blockHash, blockNumber, data, index, removed, topics, transactionHash, transactionIndex } = this;
515
+ return {
516
+ _type: "log",
517
+ address, blockHash, blockNumber, data, index,
518
+ removed, topics, transactionHash, transactionIndex
519
+ };
520
+ }
521
+ /**
522
+ * Returns the block that this log occurred in.
523
+ */
524
+ async getBlock() {
525
+ const block = await this.provider.getBlock(this.blockHash);
526
+ assert(!!block, "failed to find transaction", "UNKNOWN_ERROR", {});
527
+ return block;
528
+ }
529
+ /**
530
+ * Returns the transaction that this log occurred in.
531
+ */
532
+ async getTransaction() {
533
+ const tx = await this.provider.getTransaction(this.transactionHash);
534
+ assert(!!tx, "failed to find transaction", "UNKNOWN_ERROR", {});
535
+ return tx;
536
+ }
537
+ /**
538
+ * Returns the transaction receipt fot the transaction that this
539
+ * log occurred in.
540
+ */
541
+ async getTransactionReceipt() {
542
+ const receipt = await this.provider.getTransactionReceipt(this.transactionHash);
543
+ assert(!!receipt, "failed to find transaction receipt", "UNKNOWN_ERROR", {});
544
+ return receipt;
545
+ }
546
+ /**
547
+ * @_ignore:
548
+ */
549
+ removedEvent() {
550
+ return createRemovedLogFilter(this);
551
+ }
552
+ }
553
+ //////////////////////
554
+ // Transaction Receipt
555
+ /*
556
+ export interface LegacyTransactionReceipt {
557
+ byzantium: false;
558
+ status: null;
559
+ root: string;
560
+ }
561
+
562
+ export interface ByzantiumTransactionReceipt {
563
+ byzantium: true;
564
+ status: number;
565
+ root: null;
566
+ }
567
+ */
568
+ /**
569
+ * A **TransactionReceipt** includes additional information about a
570
+ * transaction that is only available after it has been mined.
571
+ */
572
+ export class TransactionReceipt {
573
+ /**
574
+ * The provider connected to the log used to fetch additional details
575
+ * if necessary.
576
+ */
577
+ provider;
578
+ /**
579
+ * The address the transaction was sent to.
580
+ */
581
+ to;
582
+ /**
583
+ * The sender of the transaction.
584
+ */
585
+ from;
586
+ /**
587
+ * The address of the contract if the transaction was directly
588
+ * responsible for deploying one.
589
+ *
590
+ * This is non-null **only** if the ``to`` is empty and the ``data``
591
+ * was successfully executed as initcode.
592
+ */
593
+ contractAddress;
594
+ /**
595
+ * The transaction hash.
596
+ */
597
+ hash;
598
+ /**
599
+ * The index of this transaction within the block transactions.
600
+ */
601
+ index;
602
+ /**
603
+ * The block hash of the [[Block]] this transaction was included in.
604
+ */
605
+ blockHash;
606
+ /**
607
+ * The block number of the [[Block]] this transaction was included in.
608
+ */
609
+ blockNumber;
610
+ /**
611
+ * The bloom filter bytes that represent all logs that occurred within
612
+ * this transaction. This is generally not useful for most developers,
613
+ * but can be used to validate the included logs.
614
+ */
615
+ logsBloom;
616
+ /**
617
+ * The actual amount of gas used by this transaction.
618
+ *
619
+ * When creating a transaction, the amount of gas that will be used can
620
+ * only be approximated, but the sender must pay the gas fee for the
621
+ * entire gas limit. After the transaction, the difference is refunded.
622
+ */
623
+ gasUsed;
624
+ /**
625
+ * The gas used for BLObs. See [[link-eip-4844]].
626
+ */
627
+ blobGasUsed;
628
+ /**
629
+ * The amount of gas used by all transactions within the block for this
630
+ * and all transactions with a lower ``index``.
631
+ *
632
+ * This is generally not useful for developers but can be used to
633
+ * validate certain aspects of execution.
634
+ */
635
+ cumulativeGasUsed;
636
+ /**
637
+ * The actual gas price used during execution.
638
+ *
639
+ * Due to the complexity of [[link-eip-1559]] this value can only
640
+ * be caluclated after the transaction has been mined, snce the base
641
+ * fee is protocol-enforced.
642
+ */
643
+ gasPrice;
644
+ /**
645
+ * The price paid per BLOB in gas. See [[link-eip-4844]].
646
+ */
647
+ blobGasPrice;
648
+ /**
649
+ * The [[link-eip-2718]] transaction type.
650
+ */
651
+ type;
652
+ //readonly byzantium!: boolean;
653
+ /**
654
+ * The status of this transaction, indicating success (i.e. ``1``) or
655
+ * a revert (i.e. ``0``).
656
+ *
657
+ * This is available in post-byzantium blocks, but some backends may
658
+ * backfill this value.
659
+ */
660
+ status;
661
+ /**
662
+ * The root hash of this transaction.
663
+ *
664
+ * This is no present and was only included in pre-byzantium blocks, but
665
+ * could be used to validate certain parts of the receipt.
666
+ */
667
+ root;
668
+ #logs;
669
+ /**
670
+ * @_ignore:
671
+ */
672
+ constructor(tx, provider) {
673
+ this.#logs = Object.freeze(tx.logs.map((log) => {
674
+ return new Log(log, provider);
675
+ }));
676
+ let gasPrice = BN_0;
677
+ if (tx.effectiveGasPrice != null) {
678
+ gasPrice = tx.effectiveGasPrice;
679
+ }
680
+ else if (tx.gasPrice != null) {
681
+ gasPrice = tx.gasPrice;
682
+ }
683
+ defineProperties(this, {
684
+ provider,
685
+ to: tx.to,
686
+ from: tx.from,
687
+ contractAddress: tx.contractAddress,
688
+ hash: tx.hash,
689
+ index: tx.index,
690
+ blockHash: tx.blockHash,
691
+ blockNumber: tx.blockNumber,
692
+ logsBloom: tx.logsBloom,
693
+ gasUsed: tx.gasUsed,
694
+ cumulativeGasUsed: tx.cumulativeGasUsed,
695
+ blobGasUsed: tx.blobGasUsed,
696
+ gasPrice,
697
+ blobGasPrice: tx.blobGasPrice,
698
+ type: tx.type,
699
+ //byzantium: tx.byzantium,
700
+ status: tx.status,
701
+ root: tx.root
702
+ });
703
+ }
704
+ /**
705
+ * The logs for this transaction.
706
+ */
707
+ get logs() { return this.#logs; }
708
+ /**
709
+ * Returns a JSON-compatible representation.
710
+ */
711
+ toJSON() {
712
+ const { to, from, contractAddress, hash, index, blockHash, blockNumber, logsBloom, logs, //byzantium,
713
+ status, root } = this;
714
+ return {
715
+ _type: "TransactionReceipt",
716
+ blockHash, blockNumber,
717
+ //byzantium,
718
+ contractAddress,
719
+ cumulativeGasUsed: toJson(this.cumulativeGasUsed),
720
+ from,
721
+ gasPrice: toJson(this.gasPrice),
722
+ blobGasUsed: toJson(this.blobGasUsed),
723
+ blobGasPrice: toJson(this.blobGasPrice),
724
+ gasUsed: toJson(this.gasUsed),
725
+ hash, index, logs, logsBloom, root, status, to
726
+ };
727
+ }
728
+ /**
729
+ * @_ignore:
730
+ */
731
+ get length() { return this.logs.length; }
732
+ [Symbol.iterator]() {
733
+ let index = 0;
734
+ return {
735
+ next: () => {
736
+ if (index < this.length) {
737
+ return { value: this.logs[index++], done: false };
738
+ }
739
+ return { value: undefined, done: true };
740
+ }
741
+ };
742
+ }
743
+ /**
744
+ * The total fee for this transaction, in wei.
745
+ */
746
+ get fee() {
747
+ return this.gasUsed * this.gasPrice;
748
+ }
749
+ /**
750
+ * Resolves to the block this transaction occurred in.
751
+ */
752
+ async getBlock() {
753
+ const block = await this.provider.getBlock(this.blockHash);
754
+ if (block == null) {
755
+ throw new Error("TODO");
756
+ }
757
+ return block;
758
+ }
759
+ /**
760
+ * Resolves to the transaction this transaction occurred in.
761
+ */
762
+ async getTransaction() {
763
+ const tx = await this.provider.getTransaction(this.hash);
764
+ if (tx == null) {
765
+ throw new Error("TODO");
766
+ }
767
+ return tx;
768
+ }
769
+ /**
770
+ * Resolves to the return value of the execution of this transaction.
771
+ *
772
+ * Support for this feature is limited, as it requires an archive node
773
+ * with the ``debug_`` or ``trace_`` API enabled.
774
+ */
775
+ async getResult() {
776
+ return (await this.provider.getTransactionResult(this.hash));
777
+ }
778
+ /**
779
+ * Resolves to the number of confirmations this transaction has.
780
+ */
781
+ async confirmations() {
782
+ return (await this.provider.getBlockNumber()) - this.blockNumber + 1;
783
+ }
784
+ /**
785
+ * @_ignore:
786
+ */
787
+ removedEvent() {
788
+ return createRemovedTransactionFilter(this);
789
+ }
790
+ /**
791
+ * @_ignore:
792
+ */
793
+ reorderedEvent(other) {
794
+ assert(!other || other.isMined(), "unmined 'other' transction cannot be orphaned", "UNSUPPORTED_OPERATION", { operation: "reorderedEvent(other)" });
795
+ return createReorderedTransactionFilter(this, other);
796
+ }
797
+ }
798
+ /**
799
+ * A **TransactionResponse** includes all properties about a transaction
800
+ * that was sent to the network, which may or may not be included in a
801
+ * block.
802
+ *
803
+ * The [[TransactionResponse-isMined]] can be used to check if the
804
+ * transaction has been mined as well as type guard that the otherwise
805
+ * possibly ``null`` properties are defined.
806
+ */
807
+ export class TransactionResponse {
808
+ /**
809
+ * The provider this is connected to, which will influence how its
810
+ * methods will resolve its async inspection methods.
811
+ */
812
+ provider;
813
+ /**
814
+ * The block number of the block that this transaction was included in.
815
+ *
816
+ * This is ``null`` for pending transactions.
817
+ */
818
+ blockNumber;
819
+ /**
820
+ * The blockHash of the block that this transaction was included in.
821
+ *
822
+ * This is ``null`` for pending transactions.
823
+ */
824
+ blockHash;
825
+ /**
826
+ * The index within the block that this transaction resides at.
827
+ */
828
+ index;
829
+ /**
830
+ * The transaction hash.
831
+ */
832
+ hash;
833
+ /**
834
+ * The [[link-eip-2718]] transaction envelope type. This is
835
+ * ``0`` for legacy transactions types.
836
+ */
837
+ type;
838
+ /**
839
+ * The receiver of this transaction.
840
+ *
841
+ * If ``null``, then the transaction is an initcode transaction.
842
+ * This means the result of executing the [[data]] will be deployed
843
+ * as a new contract on chain (assuming it does not revert) and the
844
+ * address may be computed using [[getCreateAddress]].
845
+ */
846
+ to;
847
+ /**
848
+ * The sender of this transaction. It is implicitly computed
849
+ * from the transaction pre-image hash (as the digest) and the
850
+ * [[signature]] using ecrecover.
851
+ */
852
+ from;
853
+ /**
854
+ * The nonce, which is used to prevent replay attacks and offer
855
+ * a method to ensure transactions from a given sender are explicitly
856
+ * ordered.
857
+ *
858
+ * When sending a transaction, this must be equal to the number of
859
+ * transactions ever sent by [[from]].
860
+ */
861
+ nonce;
862
+ /**
863
+ * The maximum units of gas this transaction can consume. If execution
864
+ * exceeds this, the entries transaction is reverted and the sender
865
+ * is charged for the full amount, despite not state changes being made.
866
+ */
867
+ gasLimit;
868
+ /**
869
+ * The gas price can have various values, depending on the network.
870
+ *
871
+ * In modern networks, for transactions that are included this is
872
+ * the //effective gas price// (the fee per gas that was actually
873
+ * charged), while for transactions that have not been included yet
874
+ * is the [[maxFeePerGas]].
875
+ *
876
+ * For legacy transactions, or transactions on legacy networks, this
877
+ * is the fee that will be charged per unit of gas the transaction
878
+ * consumes.
879
+ */
880
+ gasPrice;
881
+ /**
882
+ * The maximum priority fee (per unit of gas) to allow a
883
+ * validator to charge the sender. This is inclusive of the
884
+ * [[maxFeeFeePerGas]].
885
+ */
886
+ maxPriorityFeePerGas;
887
+ /**
888
+ * The maximum fee (per unit of gas) to allow this transaction
889
+ * to charge the sender.
890
+ */
891
+ maxFeePerGas;
892
+ /**
893
+ * The [[link-eip-4844]] max fee per BLOb gas.
894
+ */
895
+ maxFeePerBlobGas;
896
+ /**
897
+ * The data.
898
+ */
899
+ data;
900
+ /**
901
+ * The value, in wei. Use [[formatEther]] to format this value
902
+ * as ether.
903
+ */
904
+ value;
905
+ /**
906
+ * The chain ID.
907
+ */
908
+ chainId;
909
+ /**
910
+ * The signature.
911
+ */
912
+ signature;
913
+ /**
914
+ * The [[link-eip-2930]] access list for transaction types that
915
+ * support it, otherwise ``null``.
916
+ */
917
+ accessList;
918
+ /**
919
+ * The [[link-eip-4844]] BLOb versioned hashes.
920
+ */
921
+ blobVersionedHashes;
922
+ /**
923
+ * The [[link-eip-7702]] authorizations (if any).
924
+ */
925
+ authorizationList;
926
+ #startBlock;
927
+ /**
928
+ * @_ignore:
929
+ */
930
+ constructor(tx, provider) {
931
+ this.provider = provider;
932
+ this.blockNumber = (tx.blockNumber != null) ? tx.blockNumber : null;
933
+ this.blockHash = (tx.blockHash != null) ? tx.blockHash : null;
934
+ this.hash = tx.hash;
935
+ this.index = tx.index;
936
+ this.type = tx.type;
937
+ this.from = tx.from;
938
+ this.to = tx.to || null;
939
+ this.gasLimit = tx.gasLimit;
940
+ this.nonce = tx.nonce;
941
+ this.data = tx.data;
942
+ this.value = tx.value;
943
+ this.gasPrice = tx.gasPrice;
944
+ this.maxPriorityFeePerGas = (tx.maxPriorityFeePerGas != null) ? tx.maxPriorityFeePerGas : null;
945
+ this.maxFeePerGas = (tx.maxFeePerGas != null) ? tx.maxFeePerGas : null;
946
+ this.maxFeePerBlobGas = (tx.maxFeePerBlobGas != null) ? tx.maxFeePerBlobGas : null;
947
+ this.chainId = tx.chainId;
948
+ this.signature = tx.signature;
949
+ this.accessList = (tx.accessList != null) ? tx.accessList : null;
950
+ this.blobVersionedHashes = (tx.blobVersionedHashes != null) ? tx.blobVersionedHashes : null;
951
+ this.authorizationList = (tx.authorizationList != null) ? tx.authorizationList : null;
952
+ this.#startBlock = -1;
953
+ }
954
+ /**
955
+ * Returns a JSON-compatible representation of this transaction.
956
+ */
957
+ toJSON() {
958
+ const { blockNumber, blockHash, index, hash, type, to, from, nonce, data, signature, accessList, blobVersionedHashes } = this;
959
+ return {
960
+ _type: "TransactionResponse",
961
+ accessList, blockNumber, blockHash,
962
+ blobVersionedHashes,
963
+ chainId: toJson(this.chainId),
964
+ data, from,
965
+ gasLimit: toJson(this.gasLimit),
966
+ gasPrice: toJson(this.gasPrice),
967
+ hash,
968
+ maxFeePerGas: toJson(this.maxFeePerGas),
969
+ maxPriorityFeePerGas: toJson(this.maxPriorityFeePerGas),
970
+ maxFeePerBlobGas: toJson(this.maxFeePerBlobGas),
971
+ nonce, signature, to, index, type,
972
+ value: toJson(this.value),
973
+ };
974
+ }
975
+ /**
976
+ * Resolves to the Block that this transaction was included in.
977
+ *
978
+ * This will return null if the transaction has not been included yet.
979
+ */
980
+ async getBlock() {
981
+ let blockNumber = this.blockNumber;
982
+ if (blockNumber == null) {
983
+ const tx = await this.getTransaction();
984
+ if (tx) {
985
+ blockNumber = tx.blockNumber;
986
+ }
987
+ }
988
+ if (blockNumber == null) {
989
+ return null;
990
+ }
991
+ const block = this.provider.getBlock(blockNumber);
992
+ if (block == null) {
993
+ throw new Error("TODO");
994
+ }
995
+ return block;
996
+ }
997
+ /**
998
+ * Resolves to this transaction being re-requested from the
999
+ * provider. This can be used if you have an unmined transaction
1000
+ * and wish to get an up-to-date populated instance.
1001
+ */
1002
+ async getTransaction() {
1003
+ return this.provider.getTransaction(this.hash);
1004
+ }
1005
+ /**
1006
+ * Resolve to the number of confirmations this transaction has.
1007
+ */
1008
+ async confirmations() {
1009
+ if (this.blockNumber == null) {
1010
+ const { tx, blockNumber } = await resolveProperties({
1011
+ tx: this.getTransaction(),
1012
+ blockNumber: this.provider.getBlockNumber()
1013
+ });
1014
+ // Not mined yet...
1015
+ if (tx == null || tx.blockNumber == null) {
1016
+ return 0;
1017
+ }
1018
+ return blockNumber - tx.blockNumber + 1;
1019
+ }
1020
+ const blockNumber = await this.provider.getBlockNumber();
1021
+ return blockNumber - this.blockNumber + 1;
1022
+ }
1023
+ /**
1024
+ * Resolves once this transaction has been mined and has
1025
+ * %%confirms%% blocks including it (default: ``1``) with an
1026
+ * optional %%timeout%%.
1027
+ *
1028
+ * This can resolve to ``null`` only if %%confirms%% is ``0``
1029
+ * and the transaction has not been mined, otherwise this will
1030
+ * wait until enough confirmations have completed.
1031
+ */
1032
+ async wait(_confirms, _timeout) {
1033
+ const confirms = (_confirms == null) ? 1 : _confirms;
1034
+ const timeout = (_timeout == null) ? 0 : _timeout;
1035
+ let startBlock = this.#startBlock;
1036
+ let nextScan = -1;
1037
+ let stopScanning = (startBlock === -1) ? true : false;
1038
+ const checkReplacement = async () => {
1039
+ // Get the current transaction count for this sender
1040
+ if (stopScanning) {
1041
+ return null;
1042
+ }
1043
+ const { blockNumber, nonce } = await resolveProperties({
1044
+ blockNumber: this.provider.getBlockNumber(),
1045
+ nonce: this.provider.getTransactionCount(this.from)
1046
+ });
1047
+ // No transaction or our nonce has not been mined yet; but we
1048
+ // can start scanning later when we do start
1049
+ if (nonce < this.nonce) {
1050
+ startBlock = blockNumber;
1051
+ return;
1052
+ }
1053
+ // We were mined; no replacement
1054
+ if (stopScanning) {
1055
+ return null;
1056
+ }
1057
+ const mined = await this.getTransaction();
1058
+ if (mined && mined.blockNumber != null) {
1059
+ return;
1060
+ }
1061
+ // We were replaced; start scanning for that transaction
1062
+ // Starting to scan; look back a few extra blocks for safety
1063
+ if (nextScan === -1) {
1064
+ nextScan = startBlock - 3;
1065
+ if (nextScan < this.#startBlock) {
1066
+ nextScan = this.#startBlock;
1067
+ }
1068
+ }
1069
+ while (nextScan <= blockNumber) {
1070
+ // Get the next block to scan
1071
+ if (stopScanning) {
1072
+ return null;
1073
+ }
1074
+ const block = await this.provider.getBlock(nextScan, true);
1075
+ // This should not happen; but we'll try again shortly
1076
+ if (block == null) {
1077
+ return;
1078
+ }
1079
+ // We were mined; no replacement
1080
+ for (const hash of block) {
1081
+ if (hash === this.hash) {
1082
+ return;
1083
+ }
1084
+ }
1085
+ // Search for the transaction that replaced us
1086
+ for (let i = 0; i < block.length; i++) {
1087
+ const tx = await block.getTransaction(i);
1088
+ if (tx.from === this.from && tx.nonce === this.nonce) {
1089
+ // Get the receipt
1090
+ if (stopScanning) {
1091
+ return null;
1092
+ }
1093
+ const receipt = await this.provider.getTransactionReceipt(tx.hash);
1094
+ // This should not happen; but we'll try again shortly
1095
+ if (receipt == null) {
1096
+ return;
1097
+ }
1098
+ // We will retry this on the next block (this case could be optimized)
1099
+ if ((blockNumber - receipt.blockNumber + 1) < confirms) {
1100
+ return;
1101
+ }
1102
+ // The reason we were replaced
1103
+ let reason = "replaced";
1104
+ if (tx.data === this.data && tx.to === this.to && tx.value === this.value) {
1105
+ reason = "repriced";
1106
+ }
1107
+ else if (tx.data === "0x" && tx.from === tx.to && tx.value === BN_0) {
1108
+ reason = "cancelled";
1109
+ }
1110
+ assert(false, "transaction was replaced", "TRANSACTION_REPLACED", {
1111
+ cancelled: (reason === "replaced" || reason === "cancelled"),
1112
+ reason,
1113
+ replacement: tx.replaceableTransaction(startBlock),
1114
+ hash: tx.hash,
1115
+ receipt
1116
+ });
1117
+ }
1118
+ }
1119
+ nextScan++;
1120
+ }
1121
+ return;
1122
+ };
1123
+ const checkReceipt = (receipt) => {
1124
+ if (receipt == null || receipt.status !== 0) {
1125
+ return receipt;
1126
+ }
1127
+ assert(false, "transaction execution reverted", "CALL_EXCEPTION", {
1128
+ action: "sendTransaction",
1129
+ data: null, reason: null, invocation: null, revert: null,
1130
+ transaction: {
1131
+ to: receipt.to,
1132
+ from: receipt.from,
1133
+ data: "" // @TODO: in v7, split out sendTransaction properties
1134
+ }, receipt
1135
+ });
1136
+ };
1137
+ const receipt = await this.provider.getTransactionReceipt(this.hash);
1138
+ if (confirms === 0) {
1139
+ return checkReceipt(receipt);
1140
+ }
1141
+ if (receipt) {
1142
+ if ((await receipt.confirmations()) >= confirms) {
1143
+ return checkReceipt(receipt);
1144
+ }
1145
+ }
1146
+ else {
1147
+ // Check for a replacement; throws if a replacement was found
1148
+ await checkReplacement();
1149
+ // Allow null only when the confirms is 0
1150
+ if (confirms === 0) {
1151
+ return null;
1152
+ }
1153
+ }
1154
+ const waiter = new Promise((resolve, reject) => {
1155
+ // List of things to cancel when we have a result (one way or the other)
1156
+ const cancellers = [];
1157
+ const cancel = () => { cancellers.forEach((c) => c()); };
1158
+ // On cancel, stop scanning for replacements
1159
+ cancellers.push(() => { stopScanning = true; });
1160
+ // Set up any timeout requested
1161
+ if (timeout > 0) {
1162
+ const timer = setTimeout(() => {
1163
+ cancel();
1164
+ reject(makeError("wait for transaction timeout", "TIMEOUT"));
1165
+ }, timeout);
1166
+ cancellers.push(() => { clearTimeout(timer); });
1167
+ }
1168
+ const txListener = async (receipt) => {
1169
+ // Done; return it!
1170
+ if ((await receipt.confirmations()) >= confirms) {
1171
+ cancel();
1172
+ try {
1173
+ resolve(checkReceipt(receipt));
1174
+ }
1175
+ catch (error) {
1176
+ reject(error);
1177
+ }
1178
+ }
1179
+ };
1180
+ cancellers.push(() => { this.provider.off(this.hash, txListener); });
1181
+ this.provider.on(this.hash, txListener);
1182
+ // We support replacement detection; start checking
1183
+ if (startBlock >= 0) {
1184
+ const replaceListener = async () => {
1185
+ try {
1186
+ // Check for a replacement; this throws only if one is found
1187
+ await checkReplacement();
1188
+ }
1189
+ catch (error) {
1190
+ // We were replaced (with enough confirms); re-throw the error
1191
+ if (isError(error, "TRANSACTION_REPLACED")) {
1192
+ cancel();
1193
+ reject(error);
1194
+ return;
1195
+ }
1196
+ }
1197
+ // Rescheudle a check on the next block
1198
+ if (!stopScanning) {
1199
+ this.provider.once("block", replaceListener);
1200
+ }
1201
+ };
1202
+ cancellers.push(() => { this.provider.off("block", replaceListener); });
1203
+ this.provider.once("block", replaceListener);
1204
+ }
1205
+ });
1206
+ return await waiter;
1207
+ }
1208
+ /**
1209
+ * Returns ``true`` if this transaction has been included.
1210
+ *
1211
+ * This is effective only as of the time the TransactionResponse
1212
+ * was instantiated. To get up-to-date information, use
1213
+ * [[getTransaction]].
1214
+ *
1215
+ * This provides a Type Guard that this transaction will have
1216
+ * non-null property values for properties that are null for
1217
+ * unmined transactions.
1218
+ */
1219
+ isMined() {
1220
+ return (this.blockHash != null);
1221
+ }
1222
+ /**
1223
+ * Returns true if the transaction is a legacy (i.e. ``type == 0``)
1224
+ * transaction.
1225
+ *
1226
+ * This provides a Type Guard that this transaction will have
1227
+ * the ``null``-ness for hardfork-specific properties set correctly.
1228
+ */
1229
+ isLegacy() {
1230
+ return (this.type === 0);
1231
+ }
1232
+ /**
1233
+ * Returns true if the transaction is a Berlin (i.e. ``type == 1``)
1234
+ * transaction. See [[link-eip-2070]].
1235
+ *
1236
+ * This provides a Type Guard that this transaction will have
1237
+ * the ``null``-ness for hardfork-specific properties set correctly.
1238
+ */
1239
+ isBerlin() {
1240
+ return (this.type === 1);
1241
+ }
1242
+ /**
1243
+ * Returns true if the transaction is a London (i.e. ``type == 2``)
1244
+ * transaction. See [[link-eip-1559]].
1245
+ *
1246
+ * This provides a Type Guard that this transaction will have
1247
+ * the ``null``-ness for hardfork-specific properties set correctly.
1248
+ */
1249
+ isLondon() {
1250
+ return (this.type === 2);
1251
+ }
1252
+ /**
1253
+ * Returns true if hte transaction is a Cancun (i.e. ``type == 3``)
1254
+ * transaction. See [[link-eip-4844]].
1255
+ */
1256
+ isCancun() {
1257
+ return (this.type === 3);
1258
+ }
1259
+ /**
1260
+ * Returns a filter which can be used to listen for orphan events
1261
+ * that evict this transaction.
1262
+ */
1263
+ removedEvent() {
1264
+ assert(this.isMined(), "unmined transaction canot be orphaned", "UNSUPPORTED_OPERATION", { operation: "removeEvent()" });
1265
+ return createRemovedTransactionFilter(this);
1266
+ }
1267
+ /**
1268
+ * Returns a filter which can be used to listen for orphan events
1269
+ * that re-order this event against %%other%%.
1270
+ */
1271
+ reorderedEvent(other) {
1272
+ assert(this.isMined(), "unmined transaction canot be orphaned", "UNSUPPORTED_OPERATION", { operation: "removeEvent()" });
1273
+ assert(!other || other.isMined(), "unmined 'other' transaction canot be orphaned", "UNSUPPORTED_OPERATION", { operation: "removeEvent()" });
1274
+ return createReorderedTransactionFilter(this, other);
1275
+ }
1276
+ /**
1277
+ * Returns a new TransactionResponse instance which has the ability to
1278
+ * detect (and throw an error) if the transaction is replaced, which
1279
+ * will begin scanning at %%startBlock%%.
1280
+ *
1281
+ * This should generally not be used by developers and is intended
1282
+ * primarily for internal use. Setting an incorrect %%startBlock%% can
1283
+ * have devastating performance consequences if used incorrectly.
1284
+ */
1285
+ replaceableTransaction(startBlock) {
1286
+ assertArgument(Number.isInteger(startBlock) && startBlock >= 0, "invalid startBlock", "startBlock", startBlock);
1287
+ const tx = new TransactionResponse(this, this.provider);
1288
+ tx.#startBlock = startBlock;
1289
+ return tx;
1290
+ }
1291
+ }
1292
+ function createOrphanedBlockFilter(block) {
1293
+ return { orphan: "drop-block", hash: block.hash, number: block.number };
1294
+ }
1295
+ function createReorderedTransactionFilter(tx, other) {
1296
+ return { orphan: "reorder-transaction", tx, other };
1297
+ }
1298
+ function createRemovedTransactionFilter(tx) {
1299
+ return { orphan: "drop-transaction", tx };
1300
+ }
1301
+ function createRemovedLogFilter(log) {
1302
+ return { orphan: "drop-log", log: {
1303
+ transactionHash: log.transactionHash,
1304
+ blockHash: log.blockHash,
1305
+ blockNumber: log.blockNumber,
1306
+ address: log.address,
1307
+ data: log.data,
1308
+ topics: Object.freeze(log.topics.slice()),
1309
+ index: log.index
1310
+ } };
1311
+ }
1312
+ //# sourceMappingURL=provider.js.map