@ozdao/prometheus-framework 0.1.63 → 0.1.67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (675) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +1 -1
  2. package/dist/_virtual/_commonjsHelpers.js +5 -3
  3. package/dist/_virtual/browser-ponyfill.cjs +1 -0
  4. package/dist/_virtual/browser-ponyfill.js +4 -0
  5. package/dist/_virtual/crc32.cjs +1 -0
  6. package/dist/_virtual/crc32.js +4 -0
  7. package/dist/_virtual/events.cjs +1 -0
  8. package/dist/_virtual/events.js +4 -0
  9. package/dist/_virtual/index.cjs +1 -0
  10. package/dist/_virtual/index.js +4 -0
  11. package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -0
  12. package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +557 -0
  13. package/dist/node_modules/@ethereumjs/rlp/dist/index.cjs +1 -0
  14. package/dist/node_modules/@ethereumjs/rlp/dist/index.js +164 -0
  15. package/dist/node_modules/@noble/curves/esm/_shortw_utils.cjs +1 -0
  16. package/dist/node_modules/@noble/curves/esm/_shortw_utils.js +19 -0
  17. package/dist/node_modules/@noble/curves/esm/abstract/curve.cjs +1 -0
  18. package/dist/node_modules/@noble/curves/esm/abstract/curve.js +88 -0
  19. package/dist/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -0
  20. package/dist/node_modules/@noble/curves/esm/abstract/modular.js +210 -0
  21. package/dist/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -0
  22. package/dist/node_modules/@noble/curves/esm/abstract/utils.js +178 -0
  23. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -0
  24. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.js +581 -0
  25. package/dist/node_modules/@noble/curves/esm/secp256k1.cjs +1 -0
  26. package/dist/node_modules/@noble/curves/esm/secp256k1.js +47 -0
  27. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
  28. package/dist/node_modules/@noble/hashes/esm/_assert.js +48 -0
  29. package/dist/node_modules/@noble/hashes/esm/_sha2.cjs +1 -0
  30. package/dist/node_modules/@noble/hashes/esm/_sha2.js +61 -0
  31. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -0
  32. package/dist/node_modules/@noble/hashes/esm/_u64.js +48 -0
  33. package/dist/node_modules/@noble/hashes/esm/crypto.cjs +1 -0
  34. package/dist/node_modules/@noble/hashes/esm/crypto.js +4 -0
  35. package/dist/node_modules/@noble/hashes/esm/hmac.cjs +1 -0
  36. package/dist/node_modules/@noble/hashes/esm/hmac.js +43 -0
  37. package/dist/node_modules/@noble/hashes/esm/pbkdf2.cjs +1 -0
  38. package/dist/node_modules/@noble/hashes/esm/pbkdf2.js +32 -0
  39. package/dist/node_modules/@noble/hashes/esm/scrypt.cjs +1 -0
  40. package/dist/node_modules/@noble/hashes/esm/scrypt.js +73 -0
  41. package/dist/node_modules/@noble/hashes/esm/sha256.cjs +1 -0
  42. package/dist/node_modules/@noble/hashes/esm/sha256.js +120 -0
  43. package/dist/node_modules/@noble/hashes/esm/sha3.cjs +1 -0
  44. package/dist/node_modules/@noble/hashes/esm/sha3.js +118 -0
  45. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -0
  46. package/dist/node_modules/@noble/hashes/esm/sha512.js +144 -0
  47. package/dist/node_modules/@noble/hashes/esm/utils.cjs +1 -0
  48. package/dist/node_modules/@noble/hashes/esm/utils.js +64 -0
  49. package/dist/node_modules/abitype/dist/chunk-NHABU752.cjs +1 -0
  50. package/dist/node_modules/abitype/dist/chunk-NHABU752.js +4 -0
  51. package/dist/node_modules/abitype/dist/chunk-WP7KDV47.cjs +1 -0
  52. package/dist/node_modules/abitype/dist/chunk-WP7KDV47.js +11 -0
  53. package/dist/node_modules/abitype/dist/index.cjs +2 -0
  54. package/dist/node_modules/abitype/dist/index.js +299 -0
  55. package/dist/node_modules/crc-32/crc32.cjs +1 -0
  56. package/dist/node_modules/crc-32/crc32.js +51 -0
  57. package/dist/node_modules/cross-fetch/dist/browser-ponyfill.cjs +2 -0
  58. package/dist/node_modules/cross-fetch/dist/browser-ponyfill.js +320 -0
  59. package/dist/node_modules/ethereum-cryptography/esm/aes.cjs +1 -0
  60. package/dist/node_modules/ethereum-cryptography/esm/aes.js +61 -0
  61. package/dist/node_modules/ethereum-cryptography/esm/keccak.cjs +1 -0
  62. package/dist/node_modules/ethereum-cryptography/esm/keccak.js +9 -0
  63. package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.cjs +1 -0
  64. package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.js +15 -0
  65. package/dist/node_modules/ethereum-cryptography/esm/random.cjs +1 -0
  66. package/dist/node_modules/ethereum-cryptography/esm/random.js +7 -0
  67. package/dist/node_modules/ethereum-cryptography/esm/scrypt.cjs +1 -0
  68. package/dist/node_modules/ethereum-cryptography/esm/scrypt.js +8 -0
  69. package/dist/node_modules/ethereum-cryptography/esm/secp256k1.cjs +1 -0
  70. package/dist/node_modules/ethereum-cryptography/esm/secp256k1.js +4 -0
  71. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -0
  72. package/dist/node_modules/ethereum-cryptography/esm/utils.js +35 -0
  73. package/dist/node_modules/events/events.cjs +1 -0
  74. package/dist/node_modules/events/events.js +229 -0
  75. package/dist/node_modules/isomorphic-ws/browser.cjs +1 -0
  76. package/dist/node_modules/isomorphic-ws/browser.js +6 -0
  77. package/dist/node_modules/setimmediate/setImmediate.cjs +1 -0
  78. package/dist/node_modules/setimmediate/setImmediate.js +99 -0
  79. package/dist/node_modules/web3/lib/esm/abi.cjs +1 -0
  80. package/dist/node_modules/web3/lib/esm/abi.js +24 -0
  81. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -0
  82. package/dist/node_modules/web3/lib/esm/accounts.js +101 -0
  83. package/dist/node_modules/web3/lib/esm/index.cjs +1 -0
  84. package/dist/node_modules/web3/lib/esm/index.js +76 -0
  85. package/dist/node_modules/web3/lib/esm/version.cjs +1 -0
  86. package/dist/node_modules/web3/lib/esm/version.js +4 -0
  87. package/dist/node_modules/web3/lib/esm/web3.cjs +1 -0
  88. package/dist/node_modules/web3/lib/esm/web3.js +89 -0
  89. package/dist/node_modules/web3-core/lib/esm/utils.cjs +1 -0
  90. package/dist/node_modules/web3-core/lib/esm/utils.js +14 -0
  91. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -0
  92. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +83 -0
  93. package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -0
  94. package/dist/node_modules/web3-core/lib/esm/web3_config.js +343 -0
  95. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -0
  96. package/dist/node_modules/web3-core/lib/esm/web3_context.js +227 -0
  97. package/dist/node_modules/web3-core/lib/esm/web3_event_emitter.cjs +1 -0
  98. package/dist/node_modules/web3-core/lib/esm/web3_event_emitter.js +39 -0
  99. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -0
  100. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +58 -0
  101. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -0
  102. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +240 -0
  103. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -0
  104. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +155 -0
  105. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -0
  106. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +111 -0
  107. package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -0
  108. package/dist/node_modules/web3-errors/lib/esm/error_codes.js +106 -0
  109. package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.cjs +1 -0
  110. package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.js +58 -0
  111. package/dist/node_modules/web3-errors/lib/esm/errors/connection_errors.cjs +1 -0
  112. package/dist/node_modules/web3-errors/lib/esm/errors/connection_errors.js +37 -0
  113. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -0
  114. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +49 -0
  115. package/dist/node_modules/web3-errors/lib/esm/errors/core_errors.cjs +1 -0
  116. package/dist/node_modules/web3-errors/lib/esm/errors/core_errors.js +16 -0
  117. package/dist/node_modules/web3-errors/lib/esm/errors/ens_errors.cjs +1 -0
  118. package/dist/node_modules/web3-errors/lib/esm/errors/ens_errors.js +16 -0
  119. package/dist/node_modules/web3-errors/lib/esm/errors/generic_errors.cjs +1 -0
  120. package/dist/node_modules/web3-errors/lib/esm/errors/generic_errors.js +49 -0
  121. package/dist/node_modules/web3-errors/lib/esm/errors/provider_errors.cjs +1 -0
  122. package/dist/node_modules/web3-errors/lib/esm/errors/provider_errors.js +28 -0
  123. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -0
  124. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +30 -0
  125. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_error_messages.cjs +1 -0
  126. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_error_messages.js +161 -0
  127. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs +1 -0
  128. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_errors.js +129 -0
  129. package/dist/node_modules/web3-errors/lib/esm/errors/schema_errors.cjs +1 -0
  130. package/dist/node_modules/web3-errors/lib/esm/errors/schema_errors.js +13 -0
  131. package/dist/node_modules/web3-errors/lib/esm/errors/signature_errors.cjs +1 -0
  132. package/dist/node_modules/web3-errors/lib/esm/errors/signature_errors.js +10 -0
  133. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +5 -0
  134. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +256 -0
  135. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -0
  136. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +76 -0
  137. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -0
  138. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +28 -0
  139. package/dist/node_modules/web3-eth/lib/esm/constants.cjs +1 -0
  140. package/dist/node_modules/web3-eth/lib/esm/constants.js +14 -0
  141. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -0
  142. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +413 -0
  143. package/dist/node_modules/web3-eth/lib/esm/schemas.cjs +1 -0
  144. package/dist/node_modules/web3-eth/lib/esm/schemas.js +570 -0
  145. package/dist/node_modules/web3-eth/lib/esm/utils/decode_signed_transaction.cjs +1 -0
  146. package/dist/node_modules/web3-eth/lib/esm/utils/decode_signed_transaction.js +31 -0
  147. package/dist/node_modules/web3-eth/lib/esm/utils/decoding.cjs +1 -0
  148. package/dist/node_modules/web3-eth/lib/esm/utils/decoding.js +34 -0
  149. package/dist/node_modules/web3-eth/lib/esm/utils/detect_transaction_type.cjs +1 -0
  150. package/dist/node_modules/web3-eth/lib/esm/utils/detect_transaction_type.js +90 -0
  151. package/dist/node_modules/web3-eth/lib/esm/utils/format_transaction.cjs +1 -0
  152. package/dist/node_modules/web3-eth/lib/esm/utils/format_transaction.js +30 -0
  153. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -0
  154. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +77 -0
  155. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -0
  156. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +50 -0
  157. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -0
  158. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +79 -0
  159. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -0
  160. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +102 -0
  161. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -0
  162. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +109 -0
  163. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -0
  164. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +143 -0
  165. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -0
  166. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +131 -0
  167. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -0
  168. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +52 -0
  169. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -0
  170. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +61 -0
  171. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_pooling.cjs +1 -0
  172. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_pooling.js +51 -0
  173. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -0
  174. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +77 -0
  175. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -0
  176. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +42 -0
  177. package/dist/node_modules/web3-eth/lib/esm/validation.cjs +1 -0
  178. package/dist/node_modules/web3-eth/lib/esm/validation.js +111 -0
  179. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -0
  180. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +1512 -0
  181. package/dist/node_modules/web3-eth/lib/esm/web3_subscriptions.cjs +1 -0
  182. package/dist/node_modules/web3-eth/lib/esm/web3_subscriptions.js +65 -0
  183. package/dist/node_modules/web3-eth-abi/lib/esm/api/errors_api.cjs +1 -0
  184. package/dist/node_modules/web3-eth-abi/lib/esm/api/errors_api.js +13 -0
  185. package/dist/node_modules/web3-eth-abi/lib/esm/api/events_api.cjs +1 -0
  186. package/dist/node_modules/web3-eth-abi/lib/esm/api/events_api.js +13 -0
  187. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.cjs +1 -0
  188. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.js +20 -0
  189. package/dist/node_modules/web3-eth-abi/lib/esm/api/logs_api.cjs +1 -0
  190. package/dist/node_modules/web3-eth-abi/lib/esm/api/logs_api.js +14 -0
  191. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.cjs +1 -0
  192. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.js +22 -0
  193. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/address.cjs +1 -0
  194. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/address.js +47 -0
  195. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/array.cjs +1 -0
  196. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/array.js +72 -0
  197. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bool.cjs +1 -0
  198. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bool.js +37 -0
  199. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.cjs +1 -0
  200. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.js +66 -0
  201. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.cjs +1 -0
  202. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.js +59 -0
  203. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs +1 -0
  204. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/number.js +85 -0
  205. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/numbersLimits.cjs +1 -0
  206. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/numbersLimits.js +15 -0
  207. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/string.cjs +1 -0
  208. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/string.js +22 -0
  209. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/tuple.cjs +1 -0
  210. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/tuple.js +77 -0
  211. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/utils.cjs +1 -0
  212. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/utils.js +15 -0
  213. package/dist/node_modules/web3-eth-abi/lib/esm/coders/decode.cjs +1 -0
  214. package/dist/node_modules/web3-eth-abi/lib/esm/coders/decode.js +16 -0
  215. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.cjs +1 -0
  216. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.js +23 -0
  217. package/dist/node_modules/web3-eth-abi/lib/esm/coders/utils.cjs +1 -0
  218. package/dist/node_modules/web3-eth-abi/lib/esm/coders/utils.js +58 -0
  219. package/dist/node_modules/web3-eth-abi/lib/esm/decode_contract_error_data.cjs +1 -0
  220. package/dist/node_modules/web3-eth-abi/lib/esm/decode_contract_error_data.js +18 -0
  221. package/dist/node_modules/web3-eth-abi/lib/esm/utils.cjs +1 -0
  222. package/dist/node_modules/web3-eth-abi/lib/esm/utils.js +39 -0
  223. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -0
  224. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +219 -0
  225. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/goerli.cjs +1 -0
  226. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/goerli.js +99 -0
  227. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/mainnet.cjs +1 -0
  228. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/mainnet.js +115 -0
  229. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/sepolia.cjs +1 -0
  230. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/sepolia.js +102 -0
  231. package/dist/node_modules/web3-eth-accounts/lib/esm/common/common.cjs +1 -0
  232. package/dist/node_modules/web3-eth-accounts/lib/esm/common/common.js +741 -0
  233. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1153.cjs +1 -0
  234. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1153.js +25 -0
  235. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1559.cjs +1 -0
  236. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1559.js +29 -0
  237. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2315.cjs +1 -0
  238. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2315.js +28 -0
  239. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2537.cjs +1 -0
  240. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2537.js +181 -0
  241. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2565.cjs +1 -0
  242. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2565.js +20 -0
  243. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2718.cjs +1 -0
  244. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2718.js +14 -0
  245. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2929.cjs +1 -0
  246. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2929.js +87 -0
  247. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2930.cjs +1 -0
  248. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2930.js +24 -0
  249. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3198.cjs +1 -0
  250. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3198.js +20 -0
  251. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3529.cjs +1 -0
  252. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3529.js +29 -0
  253. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3540.cjs +1 -0
  254. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3540.js +16 -0
  255. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3541.cjs +1 -0
  256. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3541.js +15 -0
  257. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3554.cjs +1 -0
  258. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3554.js +20 -0
  259. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3607.cjs +1 -0
  260. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3607.js +16 -0
  261. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3651.cjs +1 -0
  262. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3651.js +16 -0
  263. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3670.cjs +1 -0
  264. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3670.js +16 -0
  265. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3675.cjs +1 -0
  266. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3675.js +16 -0
  267. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3855.cjs +1 -0
  268. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3855.js +21 -0
  269. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3860.cjs +1 -0
  270. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3860.js +26 -0
  271. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4345.cjs +1 -0
  272. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4345.js +20 -0
  273. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4399.cjs +1 -0
  274. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4399.js +16 -0
  275. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/5133.cjs +1 -0
  276. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/5133.js +20 -0
  277. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/index.cjs +1 -0
  278. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/index.js +49 -0
  279. package/dist/node_modules/web3-eth-accounts/lib/esm/common/enums.cjs +1 -0
  280. package/dist/node_modules/web3-eth-accounts/lib/esm/common/enums.js +27 -0
  281. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/arrowGlacier.cjs +1 -0
  282. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/arrowGlacier.js +14 -0
  283. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/berlin.cjs +1 -0
  284. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/berlin.js +10 -0
  285. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/byzantium.cjs +1 -0
  286. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/byzantium.js +59 -0
  287. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/chainstart.cjs +1 -0
  288. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/chainstart.js +441 -0
  289. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/constantinople.cjs +1 -0
  290. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/constantinople.js +71 -0
  291. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/dao.cjs +1 -0
  292. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/dao.js +13 -0
  293. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/grayGlacier.cjs +1 -0
  294. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/grayGlacier.js +14 -0
  295. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/homestead.cjs +1 -0
  296. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/homestead.js +18 -0
  297. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/index.cjs +1 -0
  298. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/index.js +39 -0
  299. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/istanbul.cjs +1 -0
  300. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/istanbul.js +90 -0
  301. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/london.cjs +1 -0
  302. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/london.js +10 -0
  303. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/merge.cjs +1 -0
  304. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/merge.js +15 -0
  305. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.cjs +1 -0
  306. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.js +10 -0
  307. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/muirGlacier.cjs +1 -0
  308. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/muirGlacier.js +18 -0
  309. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/petersburg.cjs +1 -0
  310. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/petersburg.js +42 -0
  311. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/shanghai.cjs +1 -0
  312. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/shanghai.js +10 -0
  313. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/spuriousDragon.cjs +1 -0
  314. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/spuriousDragon.js +23 -0
  315. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/tangerineWhistle.cjs +1 -0
  316. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/tangerineWhistle.js +46 -0
  317. package/dist/node_modules/web3-eth-accounts/lib/esm/common/types.cjs +1 -0
  318. package/dist/node_modules/web3-eth-accounts/lib/esm/common/types.js +7 -0
  319. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -0
  320. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +277 -0
  321. package/dist/node_modules/web3-eth-accounts/lib/esm/schemas.cjs +1 -0
  322. package/dist/node_modules/web3-eth-accounts/lib/esm/schemas.js +25 -0
  323. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/address.cjs +1 -0
  324. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/address.js +57 -0
  325. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.cjs +1 -0
  326. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.js +272 -0
  327. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs +1 -0
  328. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/constants.js +11 -0
  329. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs +1 -0
  330. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.js +285 -0
  331. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs +1 -0
  332. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.js +268 -0
  333. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/legacyTransaction.cjs +1 -0
  334. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/legacyTransaction.js +256 -0
  335. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.cjs +1 -0
  336. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.js +89 -0
  337. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/types.cjs +1 -0
  338. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/types.js +18 -0
  339. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/utils.cjs +1 -0
  340. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/utils.js +80 -0
  341. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -0
  342. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +361 -0
  343. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -0
  344. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +510 -0
  345. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -0
  346. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +80 -0
  347. package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -0
  348. package/dist/node_modules/web3-eth-contract/lib/esm/index.js +27 -0
  349. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -0
  350. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +36 -0
  351. package/dist/node_modules/web3-eth-contract/lib/esm/utils.cjs +1 -0
  352. package/dist/node_modules/web3-eth-contract/lib/esm/utils.js +90 -0
  353. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/ENSRegistry.cjs +1 -0
  354. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/ENSRegistry.js +168 -0
  355. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.cjs +1 -0
  356. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.js +578 -0
  357. package/dist/node_modules/web3-eth-ens/lib/esm/config.cjs +1 -0
  358. package/dist/node_modules/web3-eth-ens/lib/esm/config.js +27 -0
  359. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -0
  360. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +241 -0
  361. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -0
  362. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +105 -0
  363. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -0
  364. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +95 -0
  365. package/dist/node_modules/web3-eth-ens/lib/esm/utils.cjs +1 -0
  366. package/dist/node_modules/web3-eth-ens/lib/esm/utils.js +19 -0
  367. package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -0
  368. package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +283 -0
  369. package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -0
  370. package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +265 -0
  371. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -0
  372. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +93 -0
  373. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -0
  374. package/dist/node_modules/web3-net/lib/esm/net.js +97 -0
  375. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -0
  376. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +51 -0
  377. package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -0
  378. package/dist/node_modules/web3-providers-http/lib/esm/index.js +98 -0
  379. package/dist/node_modules/web3-providers-ws/lib/esm/index.cjs +1 -0
  380. package/dist/node_modules/web3-providers-ws/lib/esm/index.js +70 -0
  381. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -0
  382. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +407 -0
  383. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -0
  384. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +56 -0
  385. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -0
  386. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +84 -0
  387. package/dist/node_modules/web3-types/lib/esm/data_format_types.cjs +1 -0
  388. package/dist/node_modules/web3-types/lib/esm/data_format_types.js +15 -0
  389. package/dist/node_modules/web3-types/lib/esm/eth_types.cjs +1 -0
  390. package/dist/node_modules/web3-types/lib/esm/eth_types.js +12 -0
  391. package/dist/node_modules/web3-types/lib/esm/primitives_types.cjs +1 -0
  392. package/dist/node_modules/web3-types/lib/esm/primitives_types.js +4 -0
  393. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -0
  394. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +89 -0
  395. package/dist/node_modules/web3-types/lib/esm/web3_base_wallet.cjs +1 -0
  396. package/dist/node_modules/web3-types/lib/esm/web3_base_wallet.js +8 -0
  397. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -0
  398. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +37 -0
  399. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -0
  400. package/dist/node_modules/web3-utils/lib/esm/converters.js +177 -0
  401. package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -0
  402. package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +91 -0
  403. package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -0
  404. package/dist/node_modules/web3-utils/lib/esm/formatter.js +134 -0
  405. package/dist/node_modules/web3-utils/lib/esm/hash.cjs +1 -0
  406. package/dist/node_modules/web3-utils/lib/esm/hash.js +107 -0
  407. package/dist/node_modules/web3-utils/lib/esm/index.cjs +1 -0
  408. package/dist/node_modules/web3-utils/lib/esm/index.js +107 -0
  409. package/dist/node_modules/web3-utils/lib/esm/json_rpc.cjs +1 -0
  410. package/dist/node_modules/web3-utils/lib/esm/json_rpc.js +41 -0
  411. package/dist/node_modules/web3-utils/lib/esm/objects.cjs +1 -0
  412. package/dist/node_modules/web3-utils/lib/esm/objects.js +20 -0
  413. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -0
  414. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +104 -0
  415. package/dist/node_modules/web3-utils/lib/esm/random.cjs +1 -0
  416. package/dist/node_modules/web3-utils/lib/esm/random.js +7 -0
  417. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -0
  418. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +195 -0
  419. package/dist/node_modules/web3-utils/lib/esm/string_manipulation.cjs +1 -0
  420. package/dist/node_modules/web3-utils/lib/esm/string_manipulation.js +48 -0
  421. package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -0
  422. package/dist/node_modules/web3-utils/lib/esm/uint8array.js +21 -0
  423. package/dist/node_modules/web3-utils/lib/esm/uuid.cjs +1 -0
  424. package/dist/node_modules/web3-utils/lib/esm/uuid.js +17 -0
  425. package/dist/node_modules/web3-utils/lib/esm/validation.cjs +1 -0
  426. package/dist/node_modules/web3-utils/lib/esm/validation.js +50 -0
  427. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -0
  428. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +114 -0
  429. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -0
  430. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +86 -0
  431. package/dist/node_modules/web3-validator/lib/esm/constants.cjs +1 -0
  432. package/dist/node_modules/web3-validator/lib/esm/constants.js +4 -0
  433. package/dist/node_modules/web3-validator/lib/esm/default_validator.cjs +1 -0
  434. package/dist/node_modules/web3-validator/lib/esm/default_validator.js +5 -0
  435. package/dist/node_modules/web3-validator/lib/esm/errors.cjs +3 -0
  436. package/dist/node_modules/web3-validator/lib/esm/errors.js +17 -0
  437. package/dist/node_modules/web3-validator/lib/esm/formats.cjs +1 -0
  438. package/dist/node_modules/web3-validator/lib/esm/formats.js +31 -0
  439. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -0
  440. package/dist/node_modules/web3-validator/lib/esm/utils.js +178 -0
  441. package/dist/node_modules/web3-validator/lib/esm/validation/abi.cjs +1 -0
  442. package/dist/node_modules/web3-validator/lib/esm/validation/abi.js +4 -0
  443. package/dist/node_modules/web3-validator/lib/esm/validation/address.cjs +1 -0
  444. package/dist/node_modules/web3-validator/lib/esm/validation/address.js +22 -0
  445. package/dist/node_modules/web3-validator/lib/esm/validation/block.cjs +1 -0
  446. package/dist/node_modules/web3-validator/lib/esm/validation/block.js +10 -0
  447. package/dist/node_modules/web3-validator/lib/esm/validation/bloom.cjs +1 -0
  448. package/dist/node_modules/web3-validator/lib/esm/validation/bloom.js +29 -0
  449. package/dist/node_modules/web3-validator/lib/esm/validation/boolean.cjs +1 -0
  450. package/dist/node_modules/web3-validator/lib/esm/validation/boolean.js +5 -0
  451. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -0
  452. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +27 -0
  453. package/dist/node_modules/web3-validator/lib/esm/validation/filter.cjs +1 -0
  454. package/dist/node_modules/web3-validator/lib/esm/validation/filter.js +26 -0
  455. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -0
  456. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +52 -0
  457. package/dist/node_modules/web3-validator/lib/esm/validation/object.cjs +1 -0
  458. package/dist/node_modules/web3-validator/lib/esm/validation/object.js +13 -0
  459. package/dist/node_modules/web3-validator/lib/esm/validation/string.cjs +1 -0
  460. package/dist/node_modules/web3-validator/lib/esm/validation/string.js +23 -0
  461. package/dist/node_modules/web3-validator/lib/esm/validation/topic.cjs +1 -0
  462. package/dist/node_modules/web3-validator/lib/esm/validation/topic.js +6 -0
  463. package/dist/node_modules/web3-validator/lib/esm/validator.cjs +1 -0
  464. package/dist/node_modules/web3-validator/lib/esm/validator.js +84 -0
  465. package/dist/node_modules/web3-validator/lib/esm/web3_validator.cjs +1 -0
  466. package/dist/node_modules/web3-validator/lib/esm/web3_validator.js +31 -0
  467. package/dist/node_modules/zod/lib/index.cjs +1 -0
  468. package/dist/node_modules/zod/lib/index.js +2854 -0
  469. package/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.cjs +3 -0
  470. package/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.js +51 -0
  471. package/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.cjs +1 -1
  472. package/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.js +105 -79
  473. package/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +1 -1
  474. package/dist/prometheus-framework/node_modules/axios/lib/axios.js +41 -35
  475. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.cjs +1 -1
  476. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.js +57 -44
  477. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.cjs +1 -1
  478. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.js +8 -15
  479. package/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.cjs +1 -1
  480. package/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.js +3 -6
  481. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +1 -1
  482. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +101 -72
  483. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.cjs +1 -1
  484. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.js +19 -19
  485. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.cjs +2 -0
  486. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.js +165 -0
  487. package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.cjs +1 -1
  488. package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.js +56 -22
  489. package/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.cjs +1 -1
  490. package/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.js +6 -6
  491. package/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.cjs +1 -1
  492. package/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.js +23 -38
  493. package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.cjs +1 -1
  494. package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.js +62 -58
  495. package/dist/prometheus-framework/node_modules/axios/lib/core/settle.cjs +1 -1
  496. package/dist/prometheus-framework/node_modules/axios/lib/core/settle.js +11 -18
  497. package/dist/prometheus-framework/node_modules/axios/lib/core/transformData.cjs +1 -1
  498. package/dist/prometheus-framework/node_modules/axios/lib/core/transformData.js +11 -9
  499. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
  500. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +49 -48
  501. package/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.cjs +1 -1
  502. package/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.js +2 -2
  503. package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
  504. package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +2 -7
  505. package/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.cjs +1 -0
  506. package/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
  507. package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.cjs +1 -0
  508. package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.js +72 -0
  509. package/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.cjs +1 -1
  510. package/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.js +4 -6
  511. package/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.cjs +1 -1
  512. package/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.js +13 -24
  513. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -1
  514. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +4 -4
  515. package/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.cjs +1 -1
  516. package/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.js +30 -40
  517. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -0
  518. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +30 -0
  519. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +1 -1
  520. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.js +3 -3
  521. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.cjs +1 -1
  522. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.js +4 -11
  523. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +1 -1
  524. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +34 -39
  525. package/dist/prometheus-framework/node_modules/axios/lib/helpers/null.cjs +1 -1
  526. package/dist/prometheus-framework/node_modules/axios/lib/helpers/null.js +2 -5
  527. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.cjs +2 -2
  528. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.js +28 -38
  529. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.cjs +1 -1
  530. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.js +4 -7
  531. package/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.cjs +1 -0
  532. package/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.js +19 -0
  533. package/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.cjs +1 -1
  534. package/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.js +5 -8
  535. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.cjs +1 -1
  536. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.js +79 -32
  537. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.cjs +1 -0
  538. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
  539. package/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.cjs +1 -1
  540. package/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.js +33 -31
  541. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.cjs +1 -0
  542. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  543. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.cjs +1 -0
  544. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  545. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.cjs +1 -0
  546. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  547. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.cjs +1 -0
  548. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.js +15 -0
  549. package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -0
  550. package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +7 -0
  551. package/dist/prometheus-framework/node_modules/axios/lib/platform/index.cjs +1 -0
  552. package/dist/prometheus-framework/node_modules/axios/lib/platform/index.js +9 -0
  553. package/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
  554. package/dist/prometheus-framework/node_modules/axios/lib/utils.js +212 -140
  555. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  556. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -72
  557. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  558. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -2
  559. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  560. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
  561. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  562. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
  563. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  564. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
  565. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  566. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
  567. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  568. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  569. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  570. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +65 -67
  571. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  572. package/dist/prometheus-framework/src/modules/auth/store/auth.js +1 -1
  573. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  574. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  575. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  576. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  577. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  578. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  579. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  580. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  581. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  582. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  583. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  584. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  585. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  586. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  587. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  588. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +6 -7
  589. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  590. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  591. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
  592. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -61
  593. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
  594. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +61 -2
  595. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  596. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  597. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  598. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  599. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  600. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  601. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  602. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  603. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  604. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  605. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  606. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  607. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  608. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  609. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  610. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  611. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  612. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  613. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  614. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  615. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  616. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  617. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  618. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  619. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  620. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  621. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  622. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  623. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  624. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  625. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  626. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  627. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  628. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  629. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  630. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  631. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  632. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  633. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  634. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  635. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
  636. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +30 -61
  637. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  638. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +20 -21
  639. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  640. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  641. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  642. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +28 -33
  643. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  644. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  645. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
  646. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.js +1 -1
  647. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  648. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  649. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  650. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +6 -41
  651. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  652. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  653. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  654. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  655. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  656. package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
  657. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  658. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  659. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  660. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  661. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  662. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  663. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  664. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  665. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  666. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +75 -33
  667. package/dist/prometheus-framework.cjs.js +29 -30
  668. package/dist/prometheus-framework.es.js +4123 -3405
  669. package/dist/style.css +1 -1
  670. package/package.json +3 -2
  671. package/src/modules/auth/components/pages/SignIn.vue +2 -2
  672. package/src/modules/payments/components/pages/Payments.vue +32 -34
  673. package/src/modules/products/components/blocks/CardLeftover.vue +1 -2
  674. package/src/modules/products/components/blocks/CardProduct.vue +1 -17
  675. package/src/modules/products/components/sections/EditProductInfo.vue +3 -5
@@ -0,0 +1,22 @@
1
+ import { AbiError as r } from "../../../../../web3-errors/lib/esm/errors/generic_errors.js";
2
+ import "../../../../../web3-errors/lib/esm/errors/rpc_errors.js";
3
+ import { encodeBytes as n, decodeBytes as s } from "./bytes.js";
4
+ import { utf8ToBytes as d, hexToUtf8 as i } from "../../../../../web3-utils/lib/esm/converters.js";
5
+ function u(o, e) {
6
+ if (typeof e != "string")
7
+ throw new r("invalid input, should be string", { input: e });
8
+ const t = d(e);
9
+ return n({ type: "bytes", name: "" }, t);
10
+ }
11
+ function y(o, e) {
12
+ const t = s({ type: "bytes", name: "" }, e);
13
+ return {
14
+ result: i(t.result),
15
+ encoded: t.encoded,
16
+ consumed: t.consumed
17
+ };
18
+ }
19
+ export {
20
+ y as decodeString,
21
+ u as encodeString
22
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const m=require("./index.cjs"),y=require("./utils.cjs"),b=require("../utils.cjs"),p=require("./number.cjs"),A=require("../../../../../web3-utils/lib/esm/uint8array.cjs");function h(i,e){var a,r,c;let d=!1;if(!Array.isArray(e)&&typeof e!="object")throw new f.AbiError("param must be either Array or Object",{param:i,input:e});const n=e,o=[];for(let t=0;t<((r=(a=i.components)===null||a===void 0?void 0:a.length)!==null&&r!==void 0?r:0);t+=1){const u=i.components[t];let s;if(Array.isArray(n)){if(t>=n.length)throw new f.AbiError("input param length missmatch",{param:i,input:e});s=m.encodeParamFromAbiParameter(u,n[t])}else{const l=n[(c=u.name)!==null&&c!==void 0?c:""];if(l==null)throw new f.AbiError("missing input defined in abi",{param:i,input:e,paramName:u.name});s=m.encodeParamFromAbiParameter(u,l)}s.dynamic&&(d=!0),o.push(s)}return d?{dynamic:!0,encoded:y.encodeDynamicParams(o)}:{dynamic:!1,encoded:A.uint8ArrayConcat(...o.map(t=>t.encoded))}}function _(i,e){const a={__length__:0};let r=0;if(!i.components)return{result:a,encoded:e,consumed:r};let c=0;for(const[d,n]of i.components.entries()){let o;if(b.isDynamic(n)){const t=p.decodeNumber({type:"uint32",name:""},e.subarray(r));o=m.decodeParamFromAbiParameter(n,e.subarray(Number(t.result))),r+=t.consumed,c+=o.consumed}else o=m.decodeParamFromAbiParameter(n,e.subarray(r)),r+=o.consumed;a.__length__+=1,a[d]=o.result,n.name&&n.name!==""&&(a[n.name]=o.result)}return{encoded:e.subarray(r+c),result:a,consumed:r+c}}exports.decodeTuple=_;exports.encodeTuple=h;
@@ -0,0 +1,77 @@
1
+ import { AbiError as l } from "../../../../../web3-errors/lib/esm/errors/generic_errors.js";
2
+ import "../../../../../web3-errors/lib/esm/errors/rpc_errors.js";
3
+ import { encodeParamFromAbiParameter as f, decodeParamFromAbiParameter as p } from "./index.js";
4
+ import { encodeDynamicParams as y } from "./utils.js";
5
+ import { isDynamic as h } from "../utils.js";
6
+ import { decodeNumber as _ } from "./number.js";
7
+ import { uint8ArrayConcat as b } from "../../../../../web3-utils/lib/esm/uint8array.js";
8
+ function j(a, e) {
9
+ var m, n, d;
10
+ let i = !1;
11
+ if (!Array.isArray(e) && typeof e != "object")
12
+ throw new l("param must be either Array or Object", {
13
+ param: a,
14
+ input: e
15
+ });
16
+ const r = e, o = [];
17
+ for (let t = 0; t < ((n = (m = a.components) === null || m === void 0 ? void 0 : m.length) !== null && n !== void 0 ? n : 0); t += 1) {
18
+ const c = a.components[t];
19
+ let s;
20
+ if (Array.isArray(r)) {
21
+ if (t >= r.length)
22
+ throw new l("input param length missmatch", {
23
+ param: a,
24
+ input: e
25
+ });
26
+ s = f(c, r[t]);
27
+ } else {
28
+ const u = r[(d = c.name) !== null && d !== void 0 ? d : ""];
29
+ if (u == null)
30
+ throw new l("missing input defined in abi", {
31
+ param: a,
32
+ input: e,
33
+ paramName: c.name
34
+ });
35
+ s = f(c, u);
36
+ }
37
+ s.dynamic && (i = !0), o.push(s);
38
+ }
39
+ return i ? {
40
+ dynamic: !0,
41
+ encoded: y(o)
42
+ } : {
43
+ dynamic: !1,
44
+ encoded: b(...o.map((t) => t.encoded))
45
+ };
46
+ }
47
+ function x(a, e) {
48
+ const m = {
49
+ __length__: 0
50
+ };
51
+ let n = 0;
52
+ if (!a.components)
53
+ return {
54
+ result: m,
55
+ encoded: e,
56
+ consumed: n
57
+ };
58
+ let d = 0;
59
+ for (const [i, r] of a.components.entries()) {
60
+ let o;
61
+ if (h(r)) {
62
+ const t = _({ type: "uint32", name: "" }, e.subarray(n));
63
+ o = p(r, e.subarray(Number(t.result))), n += t.consumed, d += o.consumed;
64
+ } else
65
+ o = p(r, e.subarray(n)), n += o.consumed;
66
+ m.__length__ += 1, m[i] = o.result, r.name && r.name !== "" && (m[r.name] = o.result);
67
+ }
68
+ return {
69
+ encoded: e.subarray(n + d),
70
+ result: m,
71
+ consumed: n + d
72
+ };
73
+ }
74
+ export {
75
+ x as decodeTuple,
76
+ j as encodeTuple
77
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../utils.cjs"),i=require("./number.cjs"),s=require("../../../../../web3-utils/lib/esm/uint8array.cjs");function d(a){let n=0,c=0;const t=[],o=[];for(const e of a)e.dynamic?n+=r.WORD_SIZE:n+=e.encoded.length;for(const e of a)e.dynamic?(t.push(i.encodeNumber({type:"uint256",name:""},n+c)),o.push(e),c+=e.encoded.length):t.push(e);return s.uint8ArrayConcat(...t.map(e=>e.encoded),...o.map(e=>e.encoded))}exports.encodeDynamicParams=d;
@@ -0,0 +1,15 @@
1
+ import { WORD_SIZE as m } from "../utils.js";
2
+ import { encodeNumber as r } from "./number.js";
3
+ import { uint8ArrayConcat as i } from "../../../../../web3-utils/lib/esm/uint8array.js";
4
+ function p(t) {
5
+ let n = 0, a = 0;
6
+ const o = [], c = [];
7
+ for (const e of t)
8
+ e.dynamic ? n += m : n += e.encoded.length;
9
+ for (const e of t)
10
+ e.dynamic ? (o.push(r({ type: "uint256", name: "" }, n + a)), c.push(e), a += e.encoded.length) : o.push(e);
11
+ return i(...o.map((e) => e.encoded), ...c.map((e) => e.encoded));
12
+ }
13
+ export {
14
+ p as encodeDynamicParams
15
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");const o=require("../../../../web3-validator/lib/esm/utils.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");const i=require("./base/tuple.cjs"),s=require("./utils.cjs");function a(e,r,n){const t=s.toAbiParams(e),u=o.hexToUint8Array(r);return i.decodeTuple({type:"tuple",name:"",components:t},u).result}exports.decodeParameters=a;
@@ -0,0 +1,16 @@
1
+ import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
2
+ import "../../../../web3-validator/lib/esm/formats.js";
3
+ import { hexToUint8Array as m } from "../../../../web3-validator/lib/esm/utils.js";
4
+ import "../../../../web3-validator/lib/esm/default_validator.js";
5
+ import "../../../../web3-types/lib/esm/data_format_types.js";
6
+ import "../../../../web3-types/lib/esm/eth_types.js";
7
+ import "../../../../web3-types/lib/esm/web3_base_provider.js";
8
+ import { decodeTuple as p } from "./base/tuple.js";
9
+ import { toAbiParams as i } from "./utils.js";
10
+ function A(o, r, a) {
11
+ const t = i(o), e = m(r);
12
+ return p({ type: "tuple", name: "", components: t }, e).result;
13
+ }
14
+ export {
15
+ A as decodeParameters
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");const i=require("../../../../web3-validator/lib/esm/utils.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");const u=require("./utils.cjs");require("./base/number.cjs");const o=require("./base/tuple.cjs");function c(e,r){if(e.length!==r.length)throw new n.AbiError("Invalid number of values received for given ABI",{expected:e.length,received:r.length});const t=u.toAbiParams(e);return i.uint8ArrayToHexString(o.encodeTuple({type:"tuple",name:"",components:t},r).encoded)}exports.encodeParameters=c;
@@ -0,0 +1,23 @@
1
+ import { AbiError as t } from "../../../../web3-errors/lib/esm/errors/generic_errors.js";
2
+ import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
3
+ import "../../../../web3-validator/lib/esm/formats.js";
4
+ import { uint8ArrayToHexString as i } from "../../../../web3-validator/lib/esm/utils.js";
5
+ import "../../../../web3-validator/lib/esm/default_validator.js";
6
+ import "../../../../web3-types/lib/esm/data_format_types.js";
7
+ import "../../../../web3-types/lib/esm/eth_types.js";
8
+ import "../../../../web3-types/lib/esm/web3_base_provider.js";
9
+ import { toAbiParams as n } from "./utils.js";
10
+ import "./base/number.js";
11
+ import { encodeTuple as m } from "./base/tuple.js";
12
+ function A(e, r) {
13
+ if (e.length !== r.length)
14
+ throw new t("Invalid number of values received for given ABI", {
15
+ expected: e.length,
16
+ received: r.length
17
+ });
18
+ const o = n(e);
19
+ return i(m({ type: "tuple", name: "", components: o }, r).encoded);
20
+ }
21
+ export {
22
+ A as encodeParameters
23
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../../../../abitype/dist/index.cjs"),l=require("../../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const o=require("../utils.cjs"),c=require("../../../../web3-utils/lib/esm/validation.cjs"),b=32;function d(e=0){var t;if(((t=globalThis.Buffer)===null||t===void 0?void 0:t.alloc)!==void 0){const r=globalThis.Buffer.alloc(e);return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}return new Uint8Array(e)}function a(e){var t,r;return Object.assign(Object.assign({},e),{name:(t=e.name)!==null&&t!==void 0?t:"",components:(r=e.components)===null||r===void 0?void 0:r.map(n=>a(n))})}function u(e){return!c.isNullish(e)&&typeof e=="object"&&!c.isNullish(e.type)&&typeof e.type=="string"}function m(e){return e.map(t=>{var r;if(u(t))return t;if(typeof t=="string")return a(y.parseAbiParameter(t.replace(/tuple/,"")));if(o.isSimplifiedStructFormat(t)){const n=Object.keys(t)[0],i=o.mapStructNameAndType(n);return i.name=(r=i.name)!==null&&r!==void 0?r:"",Object.assign(Object.assign({},i),{components:o.mapStructToCoderFormat(t[n])})}throw new l.AbiError("Invalid abi")})}function f(e){const t=e.type.lastIndexOf("["),r=e.type.substring(0,t),n=e.type.substring(t);let i=-1;if(n!=="[]"&&(i=Number(n.slice(1,-1)),isNaN(i)))throw new l.AbiError("Invalid fixed array size",{size:n});return{param:{type:r,name:"",components:e.components},size:i}}function s(e){var t,r;return e.type==="string"||e.type==="bytes"||e.type.endsWith("[]")?!0:e.type==="tuple"?(r=(t=e.components)===null||t===void 0?void 0:t.some(s))!==null&&r!==void 0?r:!1:e.type.endsWith("]")?s(f(e).param):!1}exports.WORD_SIZE=b;exports.alloc=d;exports.convertExternalAbiParameter=a;exports.extractArrayType=f;exports.isAbiParameter=u;exports.isDynamic=s;exports.toAbiParams=m;
@@ -0,0 +1,58 @@
1
+ import { parseAbiParameter as f } from "../../../../abitype/dist/index.js";
2
+ import { AbiError as a } from "../../../../web3-errors/lib/esm/errors/generic_errors.js";
3
+ import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
4
+ import { isSimplifiedStructFormat as l, mapStructNameAndType as u, mapStructToCoderFormat as y } from "../utils.js";
5
+ import { isNullish as i } from "../../../../web3-utils/lib/esm/validation.js";
6
+ const h = 32;
7
+ function O(e = 0) {
8
+ var t;
9
+ if (((t = globalThis.Buffer) === null || t === void 0 ? void 0 : t.alloc) !== void 0) {
10
+ const r = globalThis.Buffer.alloc(e);
11
+ return new Uint8Array(r.buffer, r.byteOffset, r.byteLength);
12
+ }
13
+ return new Uint8Array(e);
14
+ }
15
+ function c(e) {
16
+ var t, r;
17
+ return Object.assign(Object.assign({}, e), { name: (t = e.name) !== null && t !== void 0 ? t : "", components: (r = e.components) === null || r === void 0 ? void 0 : r.map((n) => c(n)) });
18
+ }
19
+ function m(e) {
20
+ return !i(e) && typeof e == "object" && !i(e.type) && typeof e.type == "string";
21
+ }
22
+ function S(e) {
23
+ return e.map((t) => {
24
+ var r;
25
+ if (m(t))
26
+ return t;
27
+ if (typeof t == "string")
28
+ return c(f(t.replace(/tuple/, "")));
29
+ if (l(t)) {
30
+ const n = Object.keys(t)[0], o = u(n);
31
+ return o.name = (r = o.name) !== null && r !== void 0 ? r : "", Object.assign(Object.assign({}, o), { components: y(t[n]) });
32
+ }
33
+ throw new a("Invalid abi");
34
+ });
35
+ }
36
+ function b(e) {
37
+ const t = e.type.lastIndexOf("["), r = e.type.substring(0, t), n = e.type.substring(t);
38
+ let o = -1;
39
+ if (n !== "[]" && (o = Number(n.slice(1, -1)), isNaN(o)))
40
+ throw new a("Invalid fixed array size", { size: n });
41
+ return {
42
+ param: { type: r, name: "", components: e.components },
43
+ size: o
44
+ };
45
+ }
46
+ function s(e) {
47
+ var t, r;
48
+ return e.type === "string" || e.type === "bytes" || e.type.endsWith("[]") ? !0 : e.type === "tuple" ? (r = (t = e.components) === null || t === void 0 ? void 0 : t.some(s)) !== null && r !== void 0 ? r : !1 : e.type.endsWith("]") ? s(b(e).param) : !1;
49
+ }
50
+ export {
51
+ h as WORD_SIZE,
52
+ O as alloc,
53
+ c as convertExternalAbiParameter,
54
+ b as extractArrayType,
55
+ m as isAbiParameter,
56
+ s as isDynamic,
57
+ S as toAbiParams
58
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./api/errors_api.cjs"),d=require("./api/parameters_api.cjs"),u=require("./utils.cjs"),l=(n,e)=>{if(e!=null&&e.data){let t,a,i;try{const o=e.data.slice(0,10),r=n.find(s=>c.encodeErrorSignature(s).startsWith(o));r!=null&&r.inputs&&(t=r.name,a=u.jsonInterfaceMethodToString(r),i=d.decodeParameters([...r.inputs],e.data.substring(10)))}catch(o){console.error(o)}t&&e.setDecodedProperties(t,a,i)}};exports.decodeContractErrorData=l;
@@ -0,0 +1,18 @@
1
+ import { encodeErrorSignature as s } from "./api/errors_api.js";
2
+ import { decodeParameters as c } from "./api/parameters_api.js";
3
+ import { jsonInterfaceMethodToString as l } from "./utils.js";
4
+ const u = (n, t) => {
5
+ if (t != null && t.data) {
6
+ let e, i, a;
7
+ try {
8
+ const o = t.data.slice(0, 10), r = n.find((d) => s(d).startsWith(o));
9
+ r != null && r.inputs && (e = r.name, i = l(r), a = c([...r.inputs], t.data.substring(10)));
10
+ } catch (o) {
11
+ console.error(o);
12
+ }
13
+ e && t.setDecodedProperties(e, i, a);
14
+ }
15
+ };
16
+ export {
17
+ u as decodeContractErrorData
18
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const s=require("../../../web3-utils/lib/esm/validation.cjs"),p=t=>!s.isNullish(t)&&typeof t=="object"&&!s.isNullish(t.type)&&t.type==="error",l=t=>!s.isNullish(t)&&typeof t=="object"&&!s.isNullish(t.type)&&t.type==="event",y=t=>!s.isNullish(t)&&typeof t=="object"&&!s.isNullish(t.type)&&t.type==="function",d=t=>!s.isNullish(t)&&typeof t=="object"&&!s.isNullish(t.type)&&t.type==="constructor",h=t=>typeof t=="object"&&typeof t.components>"u"&&typeof t.name>"u",f=t=>t.includes("[]")?{type:"tuple[]",name:t.slice(0,-2)}:{type:"tuple",name:t},a=t=>{const o=[];for(const e of Object.keys(t)){const n=t[e];typeof n=="object"?o.push(Object.assign(Object.assign({},f(e)),{components:a(n)})):o.push({name:e,type:t[e]})}return o},c=(t,o)=>{const e=[];return o.forEach(n=>{if(typeof n.components=="object"){if(!n.type.startsWith("tuple"))throw new b.AbiError(`Invalid value given "${n.type}". Error: components found but type is not tuple.`);const i=n.type.indexOf("["),u=i>=0?n.type.substring(i):"",r=c(t,n.components);Array.isArray(r)&&t?e.push(`tuple(${r.join(",")})${u}`):t?e.push(`(${r.join()})`):e.push(`(${r.join(",")})${u}`)}else e.push(n.type)}),e},g=t=>{var o,e,n,i;return p(t)||l(t)||y(t)?!((o=t.name)===null||o===void 0)&&o.includes("(")?t.name:`${(e=t.name)!==null&&e!==void 0?e:""}(${c(!1,(n=t.inputs)!==null&&n!==void 0?n:[]).join(",")})`:`(${c(!1,(i=t.inputs)!==null&&i!==void 0?i:[]).join(",")})`};exports.flattenTypes=c;exports.isAbiConstructorFragment=d;exports.isAbiErrorFragment=p;exports.isAbiEventFragment=l;exports.isAbiFunctionFragment=y;exports.isSimplifiedStructFormat=h;exports.jsonInterfaceMethodToString=g;exports.mapStructNameAndType=f;exports.mapStructToCoderFormat=a;
@@ -0,0 +1,39 @@
1
+ import { AbiError as f } from "../../../web3-errors/lib/esm/errors/generic_errors.js";
2
+ import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
3
+ import { isNullish as s } from "../../../web3-utils/lib/esm/validation.js";
4
+ const u = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "error", y = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "event", l = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "function", g = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "constructor", j = (t) => typeof t == "object" && typeof t.components > "u" && typeof t.name > "u", a = (t) => t.includes("[]") ? { type: "tuple[]", name: t.slice(0, -2) } : { type: "tuple", name: t }, b = (t) => {
5
+ const n = [];
6
+ for (const e of Object.keys(t)) {
7
+ const o = t[e];
8
+ typeof o == "object" ? n.push(Object.assign(Object.assign({}, a(e)), { components: b(o) })) : n.push({
9
+ name: e,
10
+ type: t[e]
11
+ });
12
+ }
13
+ return n;
14
+ }, i = (t, n) => {
15
+ const e = [];
16
+ return n.forEach((o) => {
17
+ if (typeof o.components == "object") {
18
+ if (!o.type.startsWith("tuple"))
19
+ throw new f(`Invalid value given "${o.type}". Error: components found but type is not tuple.`);
20
+ const r = o.type.indexOf("["), c = r >= 0 ? o.type.substring(r) : "", p = i(t, o.components);
21
+ Array.isArray(p) && t ? e.push(`tuple(${p.join(",")})${c}`) : t ? e.push(`(${p.join()})`) : e.push(`(${p.join(",")})${c}`);
22
+ } else
23
+ e.push(o.type);
24
+ }), e;
25
+ }, m = (t) => {
26
+ var n, e, o, r;
27
+ return u(t) || y(t) || l(t) ? !((n = t.name) === null || n === void 0) && n.includes("(") ? t.name : `${(e = t.name) !== null && e !== void 0 ? e : ""}(${i(!1, (o = t.inputs) !== null && o !== void 0 ? o : []).join(",")})` : `(${i(!1, (r = t.inputs) !== null && r !== void 0 ? r : []).join(",")})`;
28
+ };
29
+ export {
30
+ i as flattenTypes,
31
+ g as isAbiConstructorFragment,
32
+ u as isAbiErrorFragment,
33
+ y as isAbiEventFragment,
34
+ l as isAbiFunctionFragment,
35
+ j as isSimplifiedStructFormat,
36
+ m as jsonInterfaceMethodToString,
37
+ a as mapStructNameAndType,
38
+ b as mapStructToCoderFormat
39
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../../../ethereum-cryptography/esm/aes.cjs"),N=require("../../../ethereum-cryptography/esm/pbkdf2.cjs"),U=require("../../../ethereum-cryptography/esm/scrypt.cjs"),v=require("../../../web3-errors/lib/esm/errors/account_errors.cjs"),w=require("../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const k=require("../../../web3-validator/lib/esm/validation/string.cjs"),_=require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const f=require("../../../web3-validator/lib/esm/validation/object.cjs"),S=require("./tx/constants.cjs"),j=require("./schemas.cjs"),D=require("./tx/transactionFactory.cjs"),P=require("../../../web3-utils/lib/esm/random.cjs"),z=require("../../../web3-utils/lib/esm/uuid.cjs"),n=require("../../../web3-utils/lib/esm/converters.cjs"),A=require("../../../web3-utils/lib/esm/uint8array.cjs"),g=require("../../../web3-utils/lib/esm/hash.cjs");var b=globalThis&&globalThis.__awaiter||function(r,s,e,t){function i(c){return c instanceof e?c:new e(function(a){a(c)})}return new(e||(e=Promise))(function(c,a){function y(l){try{o(t.next(l))}catch(d){a(d)}}function u(l){try{o(t.throw(l))}catch(d){a(d)}}function o(l){l.done?c(l.value):i(l.value).then(y,u)}o((t=t.apply(r,s||[])).next())})};const x=(r,s)=>{let e;if(!s&&typeof r=="string"&&k.isHexStrict(r)&&r.length!==66)throw new v.PrivateKeyLengthError;try{e=r instanceof Uint8Array?r:n.bytesToUint8Array(r)}catch{throw new v.InvalidPrivateKeyError}if(!s&&e.byteLength!==32)throw new v.PrivateKeyLengthError;return e},H=r=>{const s=k.isHexStrict(r)?r:n.utf8ToHex(r),e=n.hexToBytes(s),t=n.hexToBytes(n.fromUtf8(`Ethereum Signed Message:
2
+ ${e.byteLength}`)),i=A.uint8ArrayConcat(t,e);return g.sha3Raw(i)},I=(r,s)=>{const e=x(s),t=H(r),i=S.secp256k1.sign(t.substring(2),e),c=i.toCompactRawBytes(),a=i.r.toString(16).padStart(64,"0"),y=i.s.toString(16).padStart(64,"0"),u=i.recovery+27;return{message:r,messageHash:t,v:n.numberToHex(u),r:`0x${a}`,s:`0x${y}`,signature:`${n.bytesToHex(c)}${u.toString(16)}`}},F=(r,s)=>b(void 0,void 0,void 0,function*(){const e=r.sign(n.hexToBytes(s));if(f.isNullish(e.v)||f.isNullish(e.r)||f.isNullish(e.s))throw new w.TransactionSigningError("Signer Error");const t=e.validate(!0);if(t.length>0){let a="Signer Error ";for(const y of t)a+=`${a} ${y}.`;throw new w.TransactionSigningError(a)}const i=n.bytesToHex(e.serialize()),c=g.sha3Raw(i);return{messageHash:n.bytesToHex(e.getMessageToSign(!0)),v:`0x${e.v.toString(16)}`,r:`0x${e.r.toString(16).padStart(64,"0")}`,s:`0x${e.s.toString(16).padStart(64,"0")}`,rawTransaction:i,transactionHash:n.bytesToHex(c)}}),J=r=>{if(f.isNullish(r))throw new w.UndefinedRawTransactionError;const s=D.TransactionFactory.fromSerializedData(n.hexToBytes(r));return n.toChecksumAddress(s.getSenderAddress().toString())},K=(r,s,e,t,i)=>{if(typeof r=="object"){const d=`${r.r}${r.s.slice(2)}${r.v.slice(2)}`;return K(r.messageHash,d,e)}if(typeof s=="string"&&typeof e=="string"&&!f.isNullish(t)){const d=`${e}${t.slice(2)}${s.slice(2)}`;return K(r,d,i)}if(f.isNullish(s))throw new v.InvalidSignatureError("signature string undefined");const c=130,a=e?r:H(r);let y=parseInt(s.substring(c),16);y>26&&(y-=27);const u=S.secp256k1.Signature.fromCompact(s.slice(2,c)).addRecoveryBit(y).recoverPublicKey(a.replace("0x","")).toRawBytes(!1),o=g.sha3Raw(u.subarray(1));return n.toChecksumAddress(`0x${o.slice(-40)}`)},q=r=>{const s=x(r),e=S.secp256k1.getPublicKey(s,!1),i=g.sha3Raw(e.slice(1)).slice(-40);return n.toChecksumAddress(`0x${i}`)},M=(r,s,e)=>b(void 0,void 0,void 0,function*(){var t,i,c,a,y,u,o;const l=x(r);let d;if(e!=null&&e.salt?d=typeof e.salt=="string"?n.hexToBytes(e.salt):e.salt:d=P.randomBytes(32),!(k.isString(s)||s instanceof Uint8Array))throw new v.InvalidPasswordError;const E=typeof s=="string"?n.hexToBytes(n.utf8ToHex(s)):s;let p;if(e!=null&&e.iv){if(p=typeof e.iv=="string"?n.hexToBytes(e.iv):e.iv,p.length!==16)throw new v.IVLengthError}else p=P.randomBytes(16);const m=(t=e==null?void 0:e.kdf)!==null&&t!==void 0?t:"scrypt";let T,h;if(m==="pbkdf2"){if(h={dklen:(i=e==null?void 0:e.dklen)!==null&&i!==void 0?i:32,salt:n.bytesToHex(d).replace("0x",""),c:(c=e==null?void 0:e.c)!==null&&c!==void 0?c:262144,prf:"hmac-sha256"},h.c<1e3)throw new v.PBKDF2IterationsError;T=N.pbkdf2Sync(E,d,h.c,h.dklen,"sha256")}else if(m==="scrypt")h={n:(a=e==null?void 0:e.n)!==null&&a!==void 0?a:8192,r:(y=e==null?void 0:e.r)!==null&&y!==void 0?y:8,p:(u=e==null?void 0:e.p)!==null&&u!==void 0?u:1,dklen:(o=e==null?void 0:e.dklen)!==null&&o!==void 0?o:32,salt:n.bytesToHex(d).replace("0x","")},T=U.scryptSync(E,d,h.n,h.p,h.r,h.dklen);else throw new v.InvalidKdfError;const $=yield C.encrypt(l,T.slice(0,16),p,"aes-128-ctr"),R=n.bytesToHex($).slice(2),L=g.sha3Raw(A.uint8ArrayConcat(T.slice(16,32),$)).replace("0x","");return{version:3,id:z.uuidV4(),address:q(l).toLowerCase().replace("0x",""),crypto:{ciphertext:R,cipherparams:{iv:n.bytesToHex(p).replace("0x","")},cipher:"aes-128-ctr",kdf:m,kdfparams:h,mac:L}}}),B=(r,s)=>{const e=x(r,s);return{address:q(e),privateKey:n.bytesToHex(e),signTransaction:t=>{throw new w.TransactionSigningError("Do not have network access to sign the transaction")},sign:t=>I(typeof t=="string"?t:JSON.stringify(t),e),encrypt:(t,i)=>b(void 0,void 0,void 0,function*(){return M(e,t,i)})}},V=()=>{const r=S.secp256k1.utils.randomPrivateKey();return B(`${n.bytesToHex(r)}`)},X=(r,s,e)=>b(void 0,void 0,void 0,function*(){const t=typeof r=="object"?r:JSON.parse(e?r.toLowerCase():r);if(_.validator.validateJSONSchema(j.keyStoreSchema,t),t.version!==3)throw new v.KeyStoreVersionError;const i=typeof s=="string"?n.hexToBytes(n.utf8ToHex(s)):s;_.validator.validate(["bytes"],[i]);let c;if(t.crypto.kdf==="scrypt"){const o=t.crypto.kdfparams,l=typeof o.salt=="string"?n.hexToBytes(o.salt):o.salt;c=U.scryptSync(i,l,o.n,o.p,o.r,o.dklen)}else if(t.crypto.kdf==="pbkdf2"){const o=t.crypto.kdfparams,l=typeof o.salt=="string"?n.hexToBytes(o.salt):o.salt;c=N.pbkdf2Sync(i,l,o.c,o.dklen,"sha256")}else throw new v.InvalidKdfError;const a=n.hexToBytes(t.crypto.ciphertext);if(g.sha3Raw(A.uint8ArrayConcat(c.slice(16,32),a)).replace("0x","")!==t.crypto.mac)throw new v.KeyDerivationError;const u=yield C.decrypt(n.hexToBytes(t.crypto.ciphertext),c.slice(0,16),n.hexToBytes(t.crypto.cipherparams.iv));return B(u)});exports.create=V;exports.decrypt=X;exports.encrypt=M;exports.hashMessage=H;exports.parseAndValidatePrivateKey=x;exports.privateKeyToAccount=B;exports.privateKeyToAddress=q;exports.recover=K;exports.recoverTransaction=J;exports.sign=I;exports.signTransaction=F;
@@ -0,0 +1,219 @@
1
+ import { encrypt as J, decrypt as F } from "../../../ethereum-cryptography/esm/aes.js";
2
+ import { pbkdf2Sync as B } from "../../../ethereum-cryptography/esm/pbkdf2.js";
3
+ import { scryptSync as I } from "../../../ethereum-cryptography/esm/scrypt.js";
4
+ import { InvalidSignatureError as R, InvalidPasswordError as V, IVLengthError as X, PBKDF2IterationsError as q, InvalidKdfError as C, PrivateKeyLengthError as _, InvalidPrivateKeyError as G, KeyStoreVersionError as Q, KeyDerivationError as W } from "../../../web3-errors/lib/esm/errors/account_errors.js";
5
+ import { UndefinedRawTransactionError as Y, TransactionSigningError as K } from "../../../web3-errors/lib/esm/errors/transaction_errors.js";
6
+ import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
7
+ import "../../../web3-validator/lib/esm/formats.js";
8
+ import { isHexStrict as D, isString as Z } from "../../../web3-validator/lib/esm/validation/string.js";
9
+ import { validator as H } from "../../../web3-validator/lib/esm/default_validator.js";
10
+ import "../../../web3-types/lib/esm/data_format_types.js";
11
+ import "../../../web3-types/lib/esm/eth_types.js";
12
+ import "../../../web3-types/lib/esm/web3_base_provider.js";
13
+ import { isNullish as p } from "../../../web3-validator/lib/esm/validation/object.js";
14
+ import { secp256k1 as w } from "./tx/constants.js";
15
+ import { keyStoreSchema as O } from "./schemas.js";
16
+ import { TransactionFactory as rr } from "./tx/transactionFactory.js";
17
+ import { randomBytes as U } from "../../../web3-utils/lib/esm/random.js";
18
+ import { uuidV4 as tr } from "../../../web3-utils/lib/esm/uuid.js";
19
+ import { utf8ToHex as k, hexToBytes as y, fromUtf8 as er, numberToHex as nr, bytesToHex as u, toChecksumAddress as $, bytesToUint8Array as ir } from "../../../web3-utils/lib/esm/converters.js";
20
+ import { uint8ArrayConcat as A } from "../../../web3-utils/lib/esm/uint8array.js";
21
+ import { sha3Raw as m } from "../../../web3-utils/lib/esm/hash.js";
22
+ var S = globalThis && globalThis.__awaiter || function(t, n, r, e) {
23
+ function i(s) {
24
+ return s instanceof r ? s : new r(function(c) {
25
+ c(s);
26
+ });
27
+ }
28
+ return new (r || (r = Promise))(function(s, c) {
29
+ function l(a) {
30
+ try {
31
+ o(e.next(a));
32
+ } catch (d) {
33
+ c(d);
34
+ }
35
+ }
36
+ function f(a) {
37
+ try {
38
+ o(e.throw(a));
39
+ } catch (d) {
40
+ c(d);
41
+ }
42
+ }
43
+ function o(a) {
44
+ a.done ? s(a.value) : i(a.value).then(l, f);
45
+ }
46
+ o((e = e.apply(t, n || [])).next());
47
+ });
48
+ };
49
+ const x = (t, n) => {
50
+ let r;
51
+ if (!n && typeof t == "string" && D(t) && t.length !== 66)
52
+ throw new _();
53
+ try {
54
+ r = t instanceof Uint8Array ? t : ir(t);
55
+ } catch {
56
+ throw new G();
57
+ }
58
+ if (!n && r.byteLength !== 32)
59
+ throw new _();
60
+ return r;
61
+ }, L = (t) => {
62
+ const n = D(t) ? t : k(t), r = y(n), e = y(er(`Ethereum Signed Message:
63
+ ${r.byteLength}`)), i = A(e, r);
64
+ return m(i);
65
+ }, or = (t, n) => {
66
+ const r = x(n), e = L(t), i = w.sign(e.substring(2), r), s = i.toCompactRawBytes(), c = i.r.toString(16).padStart(64, "0"), l = i.s.toString(16).padStart(64, "0"), f = i.recovery + 27;
67
+ return {
68
+ message: t,
69
+ messageHash: e,
70
+ v: nr(f),
71
+ r: `0x${c}`,
72
+ s: `0x${l}`,
73
+ signature: `${u(s)}${f.toString(16)}`
74
+ };
75
+ }, Er = (t, n) => S(void 0, void 0, void 0, function* () {
76
+ const r = t.sign(y(n));
77
+ if (p(r.v) || p(r.r) || p(r.s))
78
+ throw new K("Signer Error");
79
+ const e = r.validate(!0);
80
+ if (e.length > 0) {
81
+ let c = "Signer Error ";
82
+ for (const l of e)
83
+ c += `${c} ${l}.`;
84
+ throw new K(c);
85
+ }
86
+ const i = u(r.serialize()), s = m(i);
87
+ return {
88
+ messageHash: u(r.getMessageToSign(!0)),
89
+ v: `0x${r.v.toString(16)}`,
90
+ r: `0x${r.r.toString(16).padStart(64, "0")}`,
91
+ s: `0x${r.s.toString(16).padStart(64, "0")}`,
92
+ rawTransaction: i,
93
+ transactionHash: u(s)
94
+ };
95
+ }), _r = (t) => {
96
+ if (p(t))
97
+ throw new Y();
98
+ const n = rr.fromSerializedData(y(t));
99
+ return $(n.getSenderAddress().toString());
100
+ }, P = (t, n, r, e, i) => {
101
+ if (typeof t == "object") {
102
+ const d = `${t.r}${t.s.slice(2)}${t.v.slice(2)}`;
103
+ return P(t.messageHash, d, r);
104
+ }
105
+ if (typeof n == "string" && typeof r == "string" && !p(e)) {
106
+ const d = `${r}${e.slice(2)}${n.slice(2)}`;
107
+ return P(t, d, i);
108
+ }
109
+ if (p(n))
110
+ throw new R("signature string undefined");
111
+ const s = 130, c = r ? t : L(t);
112
+ let l = parseInt(n.substring(s), 16);
113
+ l > 26 && (l -= 27);
114
+ const f = w.Signature.fromCompact(n.slice(2, s)).addRecoveryBit(l).recoverPublicKey(c.replace("0x", "")).toRawBytes(!1), o = m(f.subarray(1));
115
+ return $(`0x${o.slice(-40)}`);
116
+ }, M = (t) => {
117
+ const n = x(t), r = w.getPublicKey(n, !1), i = m(r.slice(1)).slice(-40);
118
+ return $(`0x${i}`);
119
+ }, sr = (t, n, r) => S(void 0, void 0, void 0, function* () {
120
+ var e, i, s, c, l, f, o;
121
+ const a = x(t);
122
+ let d;
123
+ if (r != null && r.salt ? d = typeof r.salt == "string" ? y(r.salt) : r.salt : d = U(32), !(Z(n) || n instanceof Uint8Array))
124
+ throw new V();
125
+ const T = typeof n == "string" ? y(k(n)) : n;
126
+ let h;
127
+ if (r != null && r.iv) {
128
+ if (h = typeof r.iv == "string" ? y(r.iv) : r.iv, h.length !== 16)
129
+ throw new X();
130
+ } else
131
+ h = U(16);
132
+ const b = (e = r == null ? void 0 : r.kdf) !== null && e !== void 0 ? e : "scrypt";
133
+ let g, v;
134
+ if (b === "pbkdf2") {
135
+ if (v = {
136
+ dklen: (i = r == null ? void 0 : r.dklen) !== null && i !== void 0 ? i : 32,
137
+ salt: u(d).replace("0x", ""),
138
+ c: (s = r == null ? void 0 : r.c) !== null && s !== void 0 ? s : 262144,
139
+ prf: "hmac-sha256"
140
+ }, v.c < 1e3)
141
+ throw new q();
142
+ g = B(T, d, v.c, v.dklen, "sha256");
143
+ } else if (b === "scrypt")
144
+ v = {
145
+ n: (c = r == null ? void 0 : r.n) !== null && c !== void 0 ? c : 8192,
146
+ r: (l = r == null ? void 0 : r.r) !== null && l !== void 0 ? l : 8,
147
+ p: (f = r == null ? void 0 : r.p) !== null && f !== void 0 ? f : 1,
148
+ dklen: (o = r == null ? void 0 : r.dklen) !== null && o !== void 0 ? o : 32,
149
+ salt: u(d).replace("0x", "")
150
+ }, g = I(T, d, v.n, v.p, v.r, v.dklen);
151
+ else
152
+ throw new C();
153
+ const E = yield J(a, g.slice(0, 16), h, "aes-128-ctr"), j = u(E).slice(2), z = m(A(g.slice(16, 32), E)).replace("0x", "");
154
+ return {
155
+ version: 3,
156
+ id: tr(),
157
+ address: M(a).toLowerCase().replace("0x", ""),
158
+ crypto: {
159
+ ciphertext: j,
160
+ cipherparams: {
161
+ iv: u(h).replace("0x", "")
162
+ },
163
+ cipher: "aes-128-ctr",
164
+ kdf: b,
165
+ kdfparams: v,
166
+ mac: z
167
+ }
168
+ };
169
+ }), N = (t, n) => {
170
+ const r = x(t, n);
171
+ return {
172
+ address: M(r),
173
+ privateKey: u(r),
174
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
175
+ signTransaction: (e) => {
176
+ throw new K("Do not have network access to sign the transaction");
177
+ },
178
+ sign: (e) => or(typeof e == "string" ? e : JSON.stringify(e), r),
179
+ encrypt: (e, i) => S(void 0, void 0, void 0, function* () {
180
+ return sr(r, e, i);
181
+ })
182
+ };
183
+ }, Hr = () => {
184
+ const t = w.utils.randomPrivateKey();
185
+ return N(`${u(t)}`);
186
+ }, Ur = (t, n, r) => S(void 0, void 0, void 0, function* () {
187
+ const e = typeof t == "object" ? t : JSON.parse(r ? t.toLowerCase() : t);
188
+ if (H.validateJSONSchema(O, e), e.version !== 3)
189
+ throw new Q();
190
+ const i = typeof n == "string" ? y(k(n)) : n;
191
+ H.validate(["bytes"], [i]);
192
+ let s;
193
+ if (e.crypto.kdf === "scrypt") {
194
+ const o = e.crypto.kdfparams, a = typeof o.salt == "string" ? y(o.salt) : o.salt;
195
+ s = I(i, a, o.n, o.p, o.r, o.dklen);
196
+ } else if (e.crypto.kdf === "pbkdf2") {
197
+ const o = e.crypto.kdfparams, a = typeof o.salt == "string" ? y(o.salt) : o.salt;
198
+ s = B(i, a, o.c, o.dklen, "sha256");
199
+ } else
200
+ throw new C();
201
+ const c = y(e.crypto.ciphertext);
202
+ if (m(A(s.slice(16, 32), c)).replace("0x", "") !== e.crypto.mac)
203
+ throw new W();
204
+ const f = yield F(y(e.crypto.ciphertext), s.slice(0, 16), y(e.crypto.cipherparams.iv));
205
+ return N(f);
206
+ });
207
+ export {
208
+ Hr as create,
209
+ Ur as decrypt,
210
+ sr as encrypt,
211
+ L as hashMessage,
212
+ x as parseAndValidatePrivateKey,
213
+ N as privateKeyToAccount,
214
+ M as privateKeyToAddress,
215
+ P as recover,
216
+ _r as recoverTransaction,
217
+ or as sign,
218
+ Er as signTransaction
219
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"goerli",chainId:5,networkId:5,defaultHardfork:"merge",consensus:{type:"poa",algorithm:"clique",clique:{period:15,epoch:3e4}},comment:"Cross-client PoA test network",url:"https://github.com/goerli/testnet",genesis:{timestamp:"0x5c51a607",gasLimit:10485760,difficulty:1,nonce:"0x0000000000000000",extraData:"0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"},hardforks:[{name:"chainstart",block:0,forkHash:"0xa3f5ab08"},{name:"homestead",block:0,forkHash:"0xa3f5ab08"},{name:"tangerineWhistle",block:0,forkHash:"0xa3f5ab08"},{name:"spuriousDragon",block:0,forkHash:"0xa3f5ab08"},{name:"byzantium",block:0,forkHash:"0xa3f5ab08"},{name:"constantinople",block:0,forkHash:"0xa3f5ab08"},{name:"petersburg",block:0,forkHash:"0xa3f5ab08"},{name:"istanbul",block:1561651,forkHash:"0xc25efa5c"},{name:"berlin",block:4460644,forkHash:"0x757a1c47"},{name:"london",block:5062605,forkHash:"0xb8c6299d"},{"//_comment":"The forkHash will remain same as mergeForkIdTransition is post merge, terminal block: https://goerli.etherscan.io/block/7382818",name:"merge",ttd:"10790000",block:7382819,forkHash:"0xb8c6299d"},{name:"mergeForkIdTransition",block:null,forkHash:null},{name:"shanghai",block:null,forkHash:null}],bootstrapNodes:[],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.goerli.ethdisco.net"]};exports.default=e;