@ozdao/prometheus-framework 0.2.47 → 0.2.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (492) hide show
  1. package/dist/auth.server.js +27 -25
  2. package/dist/auth.server.mjs +27 -25
  3. package/dist/community.server.js +1 -1
  4. package/dist/community.server.mjs +1 -1
  5. package/dist/events.server.js +1 -1
  6. package/dist/events.server.mjs +1 -1
  7. package/dist/files.server.js +1 -1
  8. package/dist/files.server.mjs +1 -1
  9. package/dist/gallery.server.js +1 -1
  10. package/dist/gallery.server.mjs +1 -1
  11. package/dist/index-3981e903.mjs +217 -0
  12. package/dist/index-4eecfdb9.js +216 -0
  13. package/dist/main-203b36b6.mjs +13628 -0
  14. package/dist/main-610fd21a.mjs +13628 -0
  15. package/dist/main-669fac33.js +91 -0
  16. package/dist/main-_b1_i8mt.mjs +13606 -0
  17. package/dist/main-a7ae4ce5.js +91 -0
  18. package/dist/main-uiQFxEks.js +91 -0
  19. package/dist/main.css +1 -1
  20. package/dist/middlewares.server.js +1 -1
  21. package/dist/middlewares.server.mjs +1 -1
  22. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  23. package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
  24. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  25. package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
  26. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
  27. package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
  28. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
  29. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
  30. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
  31. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
  32. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
  33. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +1 -1
  34. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +6 -6
  35. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
  36. package/dist/node_modules/ethereum-cryptography/esm/utils.js +4 -3
  37. package/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -3
  38. package/dist/node_modules/vue-select/dist/vue-select.es.js +49 -645
  39. package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
  40. package/dist/node_modules/vue3-carousel/dist/carousel.css.js +4 -1
  41. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  42. package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
  43. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
  44. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
  45. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  46. package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
  47. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
  48. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
  49. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  50. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
  51. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
  52. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
  53. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
  54. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
  55. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  56. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +110 -110
  57. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  58. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
  59. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
  60. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
  61. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  62. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
  63. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
  64. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
  65. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
  66. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
  67. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  68. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
  69. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  70. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
  71. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
  72. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
  73. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  74. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
  75. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  76. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
  77. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  78. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
  79. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  80. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +7 -7
  81. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
  82. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
  83. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
  84. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
  85. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
  86. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
  87. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  88. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +15 -15
  89. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  90. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
  91. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
  92. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +26 -26
  93. package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
  94. package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
  95. package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
  96. package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
  97. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  98. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
  99. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  100. package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
  101. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
  102. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
  103. package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
  104. package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
  105. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
  106. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +5 -5
  107. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
  108. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
  109. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
  110. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
  111. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
  112. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
  113. package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
  114. package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +15 -15
  115. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
  116. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
  117. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
  118. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
  119. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
  120. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
  121. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
  122. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +5 -5
  123. package/dist/organizations.server.js +13 -27
  124. package/dist/organizations.server.mjs +13 -27
  125. package/dist/products.server.js +95 -15
  126. package/dist/products.server.mjs +95 -15
  127. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/components/Address/Address.vue.js +4 -1
  129. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +4 -1
  131. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/components/Button/Button.vue.js +4 -1
  133. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  134. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +4 -1
  135. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  136. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +4 -1
  137. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  138. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +4 -1
  139. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
  140. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +4 -1
  141. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/components/Field/Field.vue.js +4 -1
  143. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
  145. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
  146. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +4 -1
  147. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
  149. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
  150. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +4 -1
  151. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
  152. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +4 -1
  153. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +4 -1
  155. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
  156. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +4 -1
  157. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +4 -1
  159. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +4 -1
  161. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
  162. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +4 -1
  163. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/components/Map/Map.vue.js +4 -1
  165. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -70
  167. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  168. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -1
  169. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -95
  171. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  172. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +97 -1
  173. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.js +6 -6
  175. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
  176. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +4 -1
  177. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +4 -1
  179. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +4 -1
  181. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  182. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +4 -1
  183. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
  185. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  186. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +4 -1
  187. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
  189. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  191. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +4 -1
  193. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +42 -30
  195. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +4 -1
  197. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +4 -1
  199. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +4 -1
  201. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +4 -1
  203. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +4 -1
  205. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/auth/store/auth.js +47 -46
  207. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/auth/store/invites.js +5 -5
  209. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  211. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +4 -1
  213. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  215. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  217. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +4 -1
  219. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  221. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  223. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +4 -1
  225. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +4 -1
  227. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  229. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  231. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +4 -1
  233. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  235. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  236. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -65
  237. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  238. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  239. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +4 -1
  243. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  245. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +4 -4
  247. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +4 -1
  249. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  251. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +4 -1
  253. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +4 -1
  255. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +4 -1
  257. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  259. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  261. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  263. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +4 -1
  265. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  267. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +4 -1
  269. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  271. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/globals/store/globals.js +22 -21
  273. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +4 -1
  275. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  277. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +4 -1
  279. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
  281. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
  283. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  285. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +4 -1
  287. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +4 -1
  289. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
  291. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  293. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +17 -17
  295. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +4 -1
  297. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  299. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +50 -43
  301. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +4 -1
  303. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +4 -1
  305. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +4 -1
  307. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +47 -15
  309. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +4 -1
  311. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +38 -37
  313. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +249 -61
  315. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +4 -1
  317. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +78 -45
  319. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  320. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +161 -86
  321. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +4 -1
  323. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  325. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  327. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +4 -1
  329. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  331. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +52 -54
  333. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  335. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  336. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +19 -25
  337. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
  338. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +4 -1
  339. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +4 -1
  341. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +4 -1
  343. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +40 -46
  345. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  346. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +35 -31
  347. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  349. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +30 -28
  351. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  352. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  353. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
  354. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +4 -1
  355. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
  356. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +4 -1
  357. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  358. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +17 -17
  359. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +50 -47
  361. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -1
  362. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +4 -1
  363. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +4 -1
  365. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  366. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  367. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +4 -1
  369. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.cjs +1 -1
  370. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +4 -1
  371. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -1
  372. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +4 -1
  373. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +4 -1
  375. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +4 -1
  377. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  378. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  379. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
  380. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +4 -1
  381. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +4 -1
  383. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  384. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +33 -28
  385. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
  386. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +4 -1
  387. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  388. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +123 -113
  389. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
  390. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +4 -1
  391. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -1
  392. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +4 -1
  393. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  394. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  395. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
  396. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +4 -1
  397. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -1
  398. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +4 -1
  399. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
  400. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +4 -1
  401. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  402. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  403. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  404. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  405. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  406. package/dist/prometheus-framework/src/modules/products/store/products.js +2 -2
  407. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  408. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  409. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  410. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  411. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
  412. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +4 -1
  413. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  414. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  415. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  416. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  417. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
  418. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +4 -1
  419. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
  420. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +4 -1
  421. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  422. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  423. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  424. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
  425. package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
  426. package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
  427. package/dist/prometheus-framework.cjs.js +1 -1
  428. package/dist/prometheus-framework.es.js +1 -1
  429. package/dist/reports.server.js +1 -1
  430. package/dist/reports.server.mjs +1 -1
  431. package/dist/style.css +1 -1
  432. package/dist/web-0410cac1.js +1 -0
  433. package/dist/web-7p76PGnO.mjs +55 -0
  434. package/dist/web-c1619455.mjs +55 -0
  435. package/dist/web-c63f0ecc.js +1 -0
  436. package/dist/web-d8173758.mjs +55 -0
  437. package/dist/web-dn8vgptQ.js +1 -0
  438. package/package.json +1 -1
  439. package/src/components/SelectMulti/SelectMulti.vue +1 -1
  440. package/src/modules/auth/components/pages/Invite.vue +17 -6
  441. package/src/modules/auth/controllers/auth.controller.js +24 -16
  442. package/src/modules/auth/controllers/invites.controller.js +17 -8
  443. package/src/modules/auth/store/auth.js +8 -1
  444. package/src/modules/auth/store/invites.js +1 -0
  445. package/src/modules/globals/store/globals.js +5 -1
  446. package/src/modules/landing/components/blocks/MapBlock.vue +37 -0
  447. package/src/modules/landing/components/pages/404.vue +3 -0
  448. package/src/modules/landing/components/pages/Governance.vue +155 -0
  449. package/src/modules/landing/components/pages/Home.vue +52 -0
  450. package/src/modules/landing/components/pages/Hotel.vue +54 -0
  451. package/src/modules/landing/components/pages/Page.vue +184 -0
  452. package/src/modules/landing/components/sections/AboutSection.vue +69 -0
  453. package/src/modules/landing/components/sections/Examples.vue +90 -0
  454. package/src/modules/landing/components/sections/FeatureSection.vue +80 -0
  455. package/src/modules/landing/components/sections/GiftSection.vue +63 -0
  456. package/src/modules/landing/components/sections/HeroSection.vue +74 -0
  457. package/src/modules/landing/components/sections/HowItWorksSection.vue +88 -0
  458. package/src/modules/landing/components/sections/HowToBuyWDR.vue +131 -0
  459. package/src/modules/landing/components/sections/InstagramSection.vue +181 -0
  460. package/src/modules/landing/components/sections/MapSection.vue +91 -0
  461. package/src/modules/landing/components/sections/SectionsSection.vue +69 -0
  462. package/src/modules/landing/components/sections/SliderFeatures.vue +131 -0
  463. package/src/modules/landing/components/sections/WhatIsWDRSection.vue +116 -0
  464. package/src/modules/landing/router/landing.js +34 -0
  465. package/src/modules/middlewares/server/verifySignUp.js +4 -0
  466. package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
  467. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +52 -44
  468. package/src/modules/organizations/components/blocks/User.vue +42 -10
  469. package/src/modules/organizations/components/pages/Department.vue +7 -6
  470. package/src/modules/organizations/components/pages/DepartmentEdit.vue +110 -134
  471. package/src/modules/organizations/components/pages/Members.vue +85 -26
  472. package/src/modules/organizations/components/pages/Organization.vue +60 -4
  473. package/src/modules/organizations/components/sections/MembersAdd.vue +27 -34
  474. package/src/modules/organizations/components/sections/Organizations.vue +0 -1
  475. package/src/modules/organizations/controllers/memberships.controller.js +6 -2
  476. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  477. package/src/modules/organizations/models/department.model.js +0 -19
  478. package/src/modules/organizations/models/membership.model.js +4 -0
  479. package/src/modules/organizations/organizations.client.js +1 -6
  480. package/src/modules/organizations/store/departments.js +48 -44
  481. package/src/modules/organizations/store/memberships.js +11 -3
  482. package/src/modules/products/components/blocks/CardPosition.vue +2 -2
  483. package/src/modules/products/components/blocks/CardProduct.vue +1 -1
  484. package/src/modules/products/components/pages/Product.vue +6 -1
  485. package/src/modules/products/components/pages/ProductEdit.vue +48 -28
  486. package/src/modules/products/controllers/products.controller.js +87 -24
  487. package/src/modules/products/models/product.model.js +16 -1
  488. package/src/modules/products/store/products.js +1 -1
  489. package/src/modules/users/components/pages/ProfileOrganizations.vue +41 -7
  490. package/src/modules/organizations/components/sections/FeedDepartments.vue +0 -64
  491. package/src/modules/organizations/components/sections/MembersList.vue +0 -85
  492. package/src/modules/organizations/store/invites.js +0 -93
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=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 o=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const S=require("./utils.cjs"),h=require("./web3_request_manager.cjs"),a=require("../../../web3-utils/lib/esm/validation.cjs");var c=function(b,i,r,s){function e(t){return t instanceof r?t:new r(function(n){n(t)})}return new(r||(r=Promise))(function(t,n){function l(u){try{d(s.next(u))}catch(p){n(p)}}function v(u){try{d(s.throw(u))}catch(p){n(p)}}function d(u){u.done?t(u.value):e(u.value).then(l,v)}d((s=s.apply(b,i||[])).next())})};class w{constructor(i,r,s=!1){this.requestManager=i,this.registeredSubscriptions=r,this.tolerateUnlinkedSubscription=s,this._subscriptions=new Map,this.requestManager.on(h.Web3RequestManagerEvent.BEFORE_PROVIDER_CHANGE,()=>c(this,void 0,void 0,function*(){yield this.unsubscribe()})),this.requestManager.on(h.Web3RequestManagerEvent.PROVIDER_CHANGED,()=>{this.clear(),this.listenToProviderEvents()}),this.listenToProviderEvents()}listenToProviderEvents(){const i=this.requestManager.provider;!this.requestManager.provider||typeof(i==null?void 0:i.supportsSubscriptions)=="function"&&!(i!=null&&i.supportsSubscriptions())||typeof this.requestManager.provider.on=="function"&&(typeof this.requestManager.provider.request=="function"?this.requestManager.provider.on("message",r=>this.messageListener(r)):i.on("data",r=>this.messageListener(r)))}messageListener(i){var r,s,e;if(!i)throw new o.SubscriptionError("Should not call messageListener with no data. Type was");const t=((r=i.params)===null||r===void 0?void 0:r.subscription)||((s=i.data)===null||s===void 0?void 0:s.subscription)||((e=i.id)===null||e===void 0?void 0:e.toString(16));if(t){const n=this._subscriptions.get(t);n==null||n.processSubscriptionData(i)}}subscribe(i,r,s=f.DEFAULT_RETURN_FORMAT){return c(this,void 0,void 0,function*(){const e=this.registeredSubscriptions[i];if(!e)throw new o.SubscriptionError("Invalid subscription type");const t=new e(r??void 0,{subscriptionManager:this,returnFormat:s});return yield this.addSubscription(t),t})}get subscriptions(){return this._subscriptions}addSubscription(i){return c(this,void 0,void 0,function*(){if(!this.requestManager.provider)throw new o.ProviderError("Provider not available");if(!this.supportsSubscriptions())throw new o.SubscriptionError("The current provider does not support subscriptions");if(i.id&&this._subscriptions.has(i.id))throw new o.SubscriptionError(`Subscription with id "${i.id}" already exists`);if(yield i.sendSubscriptionRequest(),a.isNullish(i.id))throw new o.SubscriptionError("Subscription is not subscribed yet.");return this._subscriptions.set(i.id,i),i.id})}removeSubscription(i){return c(this,void 0,void 0,function*(){const{id:r}=i;if(a.isNullish(r))throw new o.SubscriptionError("Subscription is not subscribed yet. Or, had already been unsubscribed but not through the Subscription Manager.");if(!this._subscriptions.has(r)&&!this.tolerateUnlinkedSubscription)throw new o.SubscriptionError(`Subscription with id "${r.toString()}" does not exists`);return yield i.sendUnsubscribeRequest(),this._subscriptions.delete(r),r})}unsubscribe(i){return c(this,void 0,void 0,function*(){const r=[];for(const[s,e]of this.subscriptions.entries())(!i||typeof i=="function"&&i({id:s,sub:e}))&&r.push(this.removeSubscription(e));return Promise.all(r)})}clear(){this._subscriptions.clear()}supportsSubscriptions(){return a.isNullish(this.requestManager.provider)?!1:S.isSupportSubscriptions(this.requestManager.provider)}}exports.Web3SubscriptionManager=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=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 o=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const S=require("./utils.cjs"),h=require("./web3_request_manager.cjs"),d=require("../../../web3-utils/lib/esm/validation.cjs");var c=globalThis&&globalThis.__awaiter||function(b,i,r,s){function t(e){return e instanceof r?e:new r(function(n){n(e)})}return new(r||(r=Promise))(function(e,n){function l(u){try{a(s.next(u))}catch(p){n(p)}}function v(u){try{a(s.throw(u))}catch(p){n(p)}}function a(u){u.done?e(u.value):t(u.value).then(l,v)}a((s=s.apply(b,i||[])).next())})};class g{constructor(i,r,s=!1){this.requestManager=i,this.registeredSubscriptions=r,this.tolerateUnlinkedSubscription=s,this._subscriptions=new Map,this.requestManager.on(h.Web3RequestManagerEvent.BEFORE_PROVIDER_CHANGE,()=>c(this,void 0,void 0,function*(){yield this.unsubscribe()})),this.requestManager.on(h.Web3RequestManagerEvent.PROVIDER_CHANGED,()=>{this.clear(),this.listenToProviderEvents()}),this.listenToProviderEvents()}listenToProviderEvents(){const i=this.requestManager.provider;!this.requestManager.provider||typeof(i==null?void 0:i.supportsSubscriptions)=="function"&&!(i!=null&&i.supportsSubscriptions())||typeof this.requestManager.provider.on=="function"&&(typeof this.requestManager.provider.request=="function"?this.requestManager.provider.on("message",r=>this.messageListener(r)):i.on("data",r=>this.messageListener(r)))}messageListener(i){var r,s,t;if(!i)throw new o.SubscriptionError("Should not call messageListener with no data. Type was");const e=((r=i.params)===null||r===void 0?void 0:r.subscription)||((s=i.data)===null||s===void 0?void 0:s.subscription)||((t=i.id)===null||t===void 0?void 0:t.toString(16));if(e){const n=this._subscriptions.get(e);n==null||n.processSubscriptionData(i)}}subscribe(i,r,s=f.DEFAULT_RETURN_FORMAT){return c(this,void 0,void 0,function*(){const t=this.registeredSubscriptions[i];if(!t)throw new o.SubscriptionError("Invalid subscription type");const e=new t(r??void 0,{subscriptionManager:this,returnFormat:s});return yield this.addSubscription(e),e})}get subscriptions(){return this._subscriptions}addSubscription(i){return c(this,void 0,void 0,function*(){if(!this.requestManager.provider)throw new o.ProviderError("Provider not available");if(!this.supportsSubscriptions())throw new o.SubscriptionError("The current provider does not support subscriptions");if(i.id&&this._subscriptions.has(i.id))throw new o.SubscriptionError(`Subscription with id "${i.id}" already exists`);if(yield i.sendSubscriptionRequest(),d.isNullish(i.id))throw new o.SubscriptionError("Subscription is not subscribed yet.");return this._subscriptions.set(i.id,i),i.id})}removeSubscription(i){return c(this,void 0,void 0,function*(){const{id:r}=i;if(d.isNullish(r))throw new o.SubscriptionError("Subscription is not subscribed yet. Or, had already been unsubscribed but not through the Subscription Manager.");if(!this._subscriptions.has(r)&&!this.tolerateUnlinkedSubscription)throw new o.SubscriptionError(`Subscription with id "${r.toString()}" does not exists`);return yield i.sendUnsubscribeRequest(),this._subscriptions.delete(r),r})}unsubscribe(i){return c(this,void 0,void 0,function*(){const r=[];for(const[s,t]of this.subscriptions.entries())(!i||typeof i=="function"&&i({id:s,sub:t}))&&r.push(this.removeSubscription(t));return Promise.all(r)})}clear(){this._subscriptions.clear()}supportsSubscriptions(){return d.isNullish(this.requestManager.provider)?!1:S.isSupportSubscriptions(this.requestManager.provider)}}exports.Web3SubscriptionManager=g;
@@ -6,7 +6,7 @@ import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
6
6
  import { isSupportSubscriptions as S } from "./utils.js";
7
7
  import { Web3RequestManagerEvent as b } from "./web3_request_manager.js";
8
8
  import { isNullish as a } from "../../../web3-utils/lib/esm/validation.js";
9
- var p = function(h, i, t, s) {
9
+ var p = globalThis && globalThis.__awaiter || function(h, i, t, s) {
10
10
  function r(e) {
11
11
  return e instanceof t ? e : new t(function(n) {
12
12
  n(e);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=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 b=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const _=require("./web3_subscription_manager.cjs"),v=require("./web3_event_emitter.cjs"),f=require("../../../web3-utils/lib/esm/json_rpc.cjs");var u=function(d,i,r,e){function n(t){return t instanceof r?t:new r(function(o){o(t)})}return new(r||(r=Promise))(function(t,o){function h(s){try{c(e.next(s))}catch(a){o(a)}}function l(s){try{c(e.throw(s))}catch(a){o(a)}}function c(s){s.done?t(s.value):n(s.value).then(h,l)}c((e=e.apply(d,i||[])).next())})};class m extends v.Web3EventEmitter{constructor(i,r){var e;super(),this.args=i;const{requestManager:n}=r,{subscriptionManager:t}=r;if(n&&t)throw new b.SubscriptionError("Only requestManager or subscriptionManager should be provided at Subscription constructor");if(!n&&!t)throw new b.SubscriptionError("Either requestManager or subscriptionManager should be provided at Subscription constructor");n?this._subscriptionManager=new _.Web3SubscriptionManager(n,{},!0):this._subscriptionManager=t,this._returnFormat=(e=r==null?void 0:r.returnFormat)!==null&&e!==void 0?e:p.DEFAULT_RETURN_FORMAT}get id(){return this._id}get lastBlock(){return this._lastBlock}subscribe(){return u(this,void 0,void 0,function*(){return this._subscriptionManager.addSubscription(this)})}processSubscriptionData(i){var r,e;i!=null&&i.data?this._processSubscriptionResult((e=(r=i==null?void 0:i.data)===null||r===void 0?void 0:r.result)!==null&&e!==void 0?e:i==null?void 0:i.data):i&&f.isResponseWithNotification(i)&&this._processSubscriptionResult(i==null?void 0:i.params.result)}sendSubscriptionRequest(){return u(this,void 0,void 0,function*(){return this._id=yield this._subscriptionManager.requestManager.send({method:"eth_subscribe",params:this._buildSubscriptionParams()}),this.emit("connected",this._id),this._id})}get returnFormat(){return this._returnFormat}get subscriptionManager(){return this._subscriptionManager}resubscribe(){return u(this,void 0,void 0,function*(){yield this.unsubscribe(),yield this.subscribe()})}unsubscribe(){return u(this,void 0,void 0,function*(){this.id&&(yield this._subscriptionManager.removeSubscription(this))})}sendUnsubscribeRequest(){return u(this,void 0,void 0,function*(){yield this._subscriptionManager.requestManager.send({method:"eth_unsubscribe",params:[this.id]}),this._id=void 0})}formatSubscriptionResult(i){return i}_processSubscriptionResult(i){this.emit("data",this.formatSubscriptionResult(i))}_processSubscriptionError(i){this.emit("error",i)}_buildSubscriptionParams(){throw new Error("Implement in the child class")}}exports.Web3Subscription=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=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 d=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const _=require("./web3_subscription_manager.cjs"),v=require("./web3_event_emitter.cjs"),f=require("../../../web3-utils/lib/esm/json_rpc.cjs");var o=globalThis&&globalThis.__awaiter||function(b,i,r,t){function n(e){return e instanceof r?e:new r(function(u){u(e)})}return new(r||(r=Promise))(function(e,u){function h(s){try{c(t.next(s))}catch(a){u(a)}}function l(s){try{c(t.throw(s))}catch(a){u(a)}}function c(s){s.done?e(s.value):n(s.value).then(h,l)}c((t=t.apply(b,i||[])).next())})};class m extends v.Web3EventEmitter{constructor(i,r){var t;super(),this.args=i;const{requestManager:n}=r,{subscriptionManager:e}=r;if(n&&e)throw new d.SubscriptionError("Only requestManager or subscriptionManager should be provided at Subscription constructor");if(!n&&!e)throw new d.SubscriptionError("Either requestManager or subscriptionManager should be provided at Subscription constructor");n?this._subscriptionManager=new _.Web3SubscriptionManager(n,{},!0):this._subscriptionManager=e,this._returnFormat=(t=r==null?void 0:r.returnFormat)!==null&&t!==void 0?t:p.DEFAULT_RETURN_FORMAT}get id(){return this._id}get lastBlock(){return this._lastBlock}subscribe(){return o(this,void 0,void 0,function*(){return this._subscriptionManager.addSubscription(this)})}processSubscriptionData(i){var r,t;i!=null&&i.data?this._processSubscriptionResult((t=(r=i==null?void 0:i.data)===null||r===void 0?void 0:r.result)!==null&&t!==void 0?t:i==null?void 0:i.data):i&&f.isResponseWithNotification(i)&&this._processSubscriptionResult(i==null?void 0:i.params.result)}sendSubscriptionRequest(){return o(this,void 0,void 0,function*(){return this._id=yield this._subscriptionManager.requestManager.send({method:"eth_subscribe",params:this._buildSubscriptionParams()}),this.emit("connected",this._id),this._id})}get returnFormat(){return this._returnFormat}get subscriptionManager(){return this._subscriptionManager}resubscribe(){return o(this,void 0,void 0,function*(){yield this.unsubscribe(),yield this.subscribe()})}unsubscribe(){return o(this,void 0,void 0,function*(){this.id&&(yield this._subscriptionManager.removeSubscription(this))})}sendUnsubscribeRequest(){return o(this,void 0,void 0,function*(){yield this._subscriptionManager.requestManager.send({method:"eth_unsubscribe",params:[this.id]}),this._id=void 0})}formatSubscriptionResult(i){return i}_processSubscriptionResult(i){this.emit("data",this.formatSubscriptionResult(i))}_processSubscriptionError(i){this.emit("error",i)}_buildSubscriptionParams(){throw new Error("Implement in the child class")}}exports.Web3Subscription=m;
@@ -1,12 +1,12 @@
1
1
  import { DEFAULT_RETURN_FORMAT as l } from "../../../web3-types/lib/esm/data_format_types.js";
2
2
  import "../../../web3-types/lib/esm/eth_types.js";
3
3
  import "../../../web3-types/lib/esm/web3_base_provider.js";
4
- import { SubscriptionError as b } from "../../../web3-errors/lib/esm/errors/provider_errors.js";
4
+ import { SubscriptionError as d } from "../../../web3-errors/lib/esm/errors/provider_errors.js";
5
5
  import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
6
6
  import { Web3SubscriptionManager as m } from "./web3_subscription_manager.js";
7
- import { Web3EventEmitter as f } from "./web3_event_emitter.js";
8
- import { isResponseWithNotification as _ } from "../../../web3-utils/lib/esm/json_rpc.js";
9
- var o = function(a, i, r, t) {
7
+ import { Web3EventEmitter as _ } from "./web3_event_emitter.js";
8
+ import { isResponseWithNotification as v } from "../../../web3-utils/lib/esm/json_rpc.js";
9
+ var o = globalThis && globalThis.__awaiter || function(b, i, r, t) {
10
10
  function n(s) {
11
11
  return s instanceof r ? s : new r(function(u) {
12
12
  u(s);
@@ -16,32 +16,32 @@ var o = function(a, i, r, t) {
16
16
  function h(e) {
17
17
  try {
18
18
  c(t.next(e));
19
- } catch (d) {
20
- u(d);
19
+ } catch (a) {
20
+ u(a);
21
21
  }
22
22
  }
23
23
  function p(e) {
24
24
  try {
25
25
  c(t.throw(e));
26
- } catch (d) {
27
- u(d);
26
+ } catch (a) {
27
+ u(a);
28
28
  }
29
29
  }
30
30
  function c(e) {
31
31
  e.done ? s(e.value) : n(e.value).then(h, p);
32
32
  }
33
- c((t = t.apply(a, i || [])).next());
33
+ c((t = t.apply(b, i || [])).next());
34
34
  });
35
35
  };
36
- class q extends f {
36
+ class q extends _ {
37
37
  constructor(i, r) {
38
38
  var t;
39
39
  super(), this.args = i;
40
40
  const { requestManager: n } = r, { subscriptionManager: s } = r;
41
41
  if (n && s)
42
- throw new b("Only requestManager or subscriptionManager should be provided at Subscription constructor");
42
+ throw new d("Only requestManager or subscriptionManager should be provided at Subscription constructor");
43
43
  if (!n && !s)
44
- throw new b("Either requestManager or subscriptionManager should be provided at Subscription constructor");
44
+ throw new d("Either requestManager or subscriptionManager should be provided at Subscription constructor");
45
45
  n ? this._subscriptionManager = new m(n, {}, !0) : this._subscriptionManager = s, this._returnFormat = (t = r == null ? void 0 : r.returnFormat) !== null && t !== void 0 ? t : l;
46
46
  }
47
47
  get id() {
@@ -57,7 +57,7 @@ class q extends f {
57
57
  }
58
58
  processSubscriptionData(i) {
59
59
  var r, t;
60
- i != null && i.data ? this._processSubscriptionResult((t = (r = i == null ? void 0 : i.data) === null || r === void 0 ? void 0 : r.result) !== null && t !== void 0 ? t : i == null ? void 0 : i.data) : i && _(i) && this._processSubscriptionResult(i == null ? void 0 : i.params.result);
60
+ i != null && i.data ? this._processSubscriptionResult((t = (r = i == null ? void 0 : i.data) === null || r === void 0 ? void 0 : r.result) !== null && t !== void 0 ? t : i == null ? void 0 : i.data) : i && v(i) && this._processSubscriptionResult(i == null ? void 0 : i.params.result);
61
61
  }
62
62
  sendSubscriptionRequest() {
63
63
  return o(this, void 0, void 0, function* () {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=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");require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");const P=require("../../../web3-errors/lib/esm/errors/signature_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const N=require("../../../web3-validator/lib/esm/validation/string.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");const p=require("../../../web3-validator/lib/esm/validation/bytes.cjs"),T=require("../../../web3-validator/lib/esm/validation/block.cjs"),_=require("../../../web3-validator/lib/esm/validation/object.cjs"),H=require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../web3-eth-accounts/lib/esm/wallet.cjs");require("../../../web3-eth-accounts/lib/esm/account.cjs");require("../../../crc-32/crc32.cjs");require("../../../web3-eth-accounts/lib/esm/common/types.cjs");require("../../../web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../@ethereumjs/rlp/dist/index.cjs");require("../../../web3-eth-accounts/lib/esm/tx/types.cjs");const U=require("../../../web3-eth-accounts/lib/esm/tx/transactionFactory.cjs"),c=require("../../../web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const I=require("./utils/decode_signed_transaction.cjs"),A=require("./schemas.cjs"),M=require("./utils/transaction_builder.cjs"),y=require("./utils/format_transaction.cjs"),j=require("./utils/try_send_transaction.cjs"),O=require("./utils/wait_for_transaction_receipt.cjs"),b=require("./constants.cjs"),E=require("./utils/send_tx_helper.cjs"),i=require("../../../web3-utils/lib/esm/formatter.cjs"),F=require("../../../web3-utils/lib/esm/converters.cjs");var f=function(t,n,e,r){function o(a){return a instanceof e?a:new e(function(d){d(a)})}return new(e||(e=Promise))(function(a,d){function u(l){try{g(r.next(l))}catch(h){d(h)}}function m(l){try{g(r.throw(l))}catch(h){d(h)}}function g(l){l.done?a(l.value):o(l.value).then(u,m)}g((r=r.apply(t,n||[])).next())})},L=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]]);return e};const G=t=>f(void 0,void 0,void 0,function*(){return c.getSyncing(t.requestManager)});function W(t,n){return f(this,void 0,void 0,function*(){const e=yield c.getHashRate(t.requestManager);return i.format({format:"uint"},e,n)})}function z(t,n){return f(this,void 0,void 0,function*(){const e=yield c.getGasPrice(t.requestManager);return i.format({format:"uint"},e,n)})}function J(t,n){return f(this,void 0,void 0,function*(){const e=yield c.getBlockNumber(t.requestManager);return i.format({format:"uint"},e,n)})}function K(t,n,e=t.defaultBlock,r){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:i.format({format:"uint"},e,s.ETH_DATA_FORMAT),a=yield c.getBalance(t.requestManager,n,o);return i.format({format:"uint"},a,r)})}function Q(t,n,e,r=t.defaultBlock,o){return f(this,void 0,void 0,function*(){const a=i.format({format:"uint"},e,s.ETH_DATA_FORMAT),d=T.isBlockTag(r)?r:i.format({format:"uint"},r,s.ETH_DATA_FORMAT),u=yield c.getStorageAt(t.requestManager,n,a,d);return i.format({format:"bytes"},u,o)})}function V(t,n,e=t.defaultBlock,r){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:i.format({format:"uint"},e,s.ETH_DATA_FORMAT),a=yield c.getCode(t.requestManager,n,o);return i.format({format:"bytes"},a,r)})}function X(t,n=t.defaultBlock,e=!1,r){return f(this,void 0,void 0,function*(){let o;if(p.isBytes(n)){const a=i.format({format:"bytes32"},n,s.ETH_DATA_FORMAT);o=yield c.getBlockByHash(t.requestManager,a,e)}else{const a=T.isBlockTag(n)?n:i.format({format:"uint"},n,s.ETH_DATA_FORMAT);o=yield c.getBlockByNumber(t.requestManager,a,e)}return i.format(A.blockSchema,o,r)})}function Y(t,n=t.defaultBlock,e){return f(this,void 0,void 0,function*(){let r;if(p.isBytes(n)){const o=i.format({format:"bytes32"},n,s.ETH_DATA_FORMAT);r=yield c.getBlockTransactionCountByHash(t.requestManager,o)}else{const o=T.isBlockTag(n)?n:i.format({format:"uint"},n,s.ETH_DATA_FORMAT);r=yield c.getBlockTransactionCountByNumber(t.requestManager,o)}return i.format({format:"uint"},r,e)})}function Z(t,n=t.defaultBlock,e){return f(this,void 0,void 0,function*(){let r;if(p.isBytes(n)){const o=i.format({format:"bytes32"},n,s.ETH_DATA_FORMAT);r=yield c.getUncleCountByBlockHash(t.requestManager,o)}else{const o=T.isBlockTag(n)?n:i.format({format:"uint"},n,s.ETH_DATA_FORMAT);r=yield c.getUncleCountByBlockNumber(t.requestManager,o)}return i.format({format:"uint"},r,e)})}function w(t,n=t.defaultBlock,e,r){return f(this,void 0,void 0,function*(){const o=i.format({format:"uint"},e,s.ETH_DATA_FORMAT);let a;if(p.isBytes(n)){const d=i.format({format:"bytes32"},n,s.ETH_DATA_FORMAT);a=yield c.getUncleByBlockHashAndIndex(t.requestManager,d,o)}else{const d=T.isBlockTag(n)?n:i.format({format:"uint"},n,s.ETH_DATA_FORMAT);a=yield c.getUncleByBlockNumberAndIndex(t.requestManager,d,o)}return i.format(A.blockSchema,a,r)})}function x(t,n,e){return f(this,void 0,void 0,function*(){const r=i.format({format:"bytes32"},n,s.DEFAULT_RETURN_FORMAT),o=yield c.getTransactionByHash(t.requestManager,r);return _.isNullish(o)?o:y.formatTransaction(o,e,{fillInputAndData:!0})})}function C(t,n){return f(this,void 0,void 0,function*(){return(yield c.getPendingTransactions(t.requestManager)).map(r=>y.formatTransaction(r,n,{fillInputAndData:!0}))})}function $(t,n=t.defaultBlock,e,r){return f(this,void 0,void 0,function*(){const o=i.format({format:"uint"},e,s.ETH_DATA_FORMAT);let a;if(p.isBytes(n)){const d=i.format({format:"bytes32"},n,s.ETH_DATA_FORMAT);a=yield c.getTransactionByBlockHashAndIndex(t.requestManager,d,o)}else{const d=T.isBlockTag(n)?n:i.format({format:"uint"},n,s.ETH_DATA_FORMAT);a=yield c.getTransactionByBlockNumberAndIndex(t.requestManager,d,o)}return _.isNullish(a)?a:y.formatTransaction(a,r,{fillInputAndData:!0})})}function tt(t,n,e){return f(this,void 0,void 0,function*(){const r=i.format({format:"bytes32"},n,s.DEFAULT_RETURN_FORMAT),o=yield c.getTransactionReceipt(t.requestManager,r);return _.isNullish(o)?o:i.format(A.transactionReceiptSchema,o,e)})}function et(t,n,e=t.defaultBlock,r){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:i.format({format:"uint"},e,s.ETH_DATA_FORMAT),a=yield c.getTransactionCount(t.requestManager,n,o);return i.format({format:"uint"},a,r)})}function nt(t,n,e,r={checkRevertBeforeSending:!0}){const o=new H.Web3PromiEvent((a,d)=>{setImmediate(()=>{f(this,void 0,void 0,function*(){const u=new E.SendTxHelper({web3Context:t,promiEvent:o,options:r,returnFormat:e});let m=y.formatTransaction(Object.assign(Object.assign({},n),{from:M.getTransactionFromOrToAttr("from",t,n),to:M.getTransactionFromOrToAttr("to",t,n)}),s.ETH_DATA_FORMAT);try{m=yield u.populateGasPrice({transaction:n,transactionFormatted:m}),yield u.checkRevertBeforeSending(m),u.emitSending(m);let g;t.wallet&&!_.isNullish(m.from)&&(g=t.wallet.get(m.from));const l=yield u.signAndSend({wallet:g,tx:m}),h=i.format({format:"bytes32"},l,e);u.emitSent(m),u.emitTransactionHash(h);const R=yield O.waitForTransactionReceipt(t,l,e),v=u.getReceiptWithEvents(i.format(A.transactionReceiptSchema,R,e));u.emitReceipt(v),a(yield u.handleResolve({receipt:v,tx:m})),u.emitConfirmation({receipt:v,transactionHash:l})}catch(g){d(yield u.handleError({error:g,tx:m}))}})})});return o}function rt(t,n,e,r={checkRevertBeforeSending:!0}){const o=new H.Web3PromiEvent((a,d)=>{setImmediate(()=>{f(this,void 0,void 0,function*(){const u=new E.SendTxHelper({web3Context:t,promiEvent:o,options:r,returnFormat:e}),m=i.format({format:"bytes"},n,s.ETH_DATA_FORMAT),g=U.TransactionFactory.fromSerializedData(F.bytesToUint8Array(F.hexToBytes(m))),l=Object.assign(Object.assign({},g.toJSON()),{from:g.getSenderAddress().toString()});try{const{v:h,r:R,s:v}=l,S=L(l,["v","r","s"]);yield u.checkRevertBeforeSending(S),u.emitSending(m);const q=yield j.trySendTransaction(t,()=>f(this,void 0,void 0,function*(){return c.sendRawTransaction(t.requestManager,m)}));u.emitSent(m);const D=i.format({format:"bytes32"},q,e);u.emitTransactionHash(D);const k=yield O.waitForTransactionReceipt(t,q,e),B=u.getReceiptWithEvents(i.format(A.transactionReceiptSchema,k,e));u.emitReceipt(B),a(yield u.handleResolve({receipt:B,tx:l})),u.emitConfirmation({receipt:B,transactionHash:q})}catch(h){d(yield u.handleError({error:h,tx:l}))}})})});return o}function ot(t,n,e,r){var o;return f(this,void 0,void 0,function*(){const a=i.format({format:"bytes"},n,s.DEFAULT_RETURN_FORMAT);if(!((o=t.wallet)===null||o===void 0)&&o.get(e)){const m=t.wallet.get(e).sign(a);return i.format(A.SignatureObjectSchema,m,r)}if(typeof e=="number")throw new P.SignatureError(n,'RPC method "eth_sign" does not support index signatures');const d=yield c.sign(t.requestManager,e,a);return i.format({format:"bytes"},d,r)})}function it(t,n,e){return f(this,void 0,void 0,function*(){const r=yield c.signTransaction(t.requestManager,y.formatTransaction(n,s.ETH_DATA_FORMAT));return N.isString(r)?I.decodeSignedTransaction(r,e,{fillInputAndData:!0}):{raw:i.format({format:"bytes"},r.raw,e),tx:y.formatTransaction(r.tx,e,{fillInputAndData:!0})}})}function at(t,n,e=t.defaultBlock,r){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:i.format({format:"uint"},e,s.ETH_DATA_FORMAT),a=yield c.call(t.requestManager,y.formatTransaction(n,s.ETH_DATA_FORMAT),o);return i.format({format:"bytes"},a,r)})}function st(t,n,e=t.defaultBlock,r){return f(this,void 0,void 0,function*(){const o=y.formatTransaction(n,s.ETH_DATA_FORMAT),a=T.isBlockTag(e)?e:i.format({format:"uint"},e,s.ETH_DATA_FORMAT),d=yield c.estimateGas(t.requestManager,o,a);return i.format({format:"uint"},d,r)})}function ct(t,n,e){return f(this,void 0,void 0,function*(){let{toBlock:r,fromBlock:o}=n;_.isNullish(r)||(typeof r=="number"||typeof r=="bigint")&&(r=F.numberToHex(r)),_.isNullish(o)||(typeof o=="number"||typeof o=="bigint")&&(o=F.numberToHex(o));const a=Object.assign(Object.assign({},n),{fromBlock:o,toBlock:r});return(yield c.getLogs(t.requestManager,a)).map(m=>typeof m=="string"?m:i.format(A.logSchema,m,e))})}function ut(t,n){return f(this,void 0,void 0,function*(){const e=yield c.getChainId(t.requestManager);return i.format({format:"uint"},e,n)})}function ft(t,n,e,r=t.defaultBlock,o){return f(this,void 0,void 0,function*(){const a=e.map(m=>i.format({format:"bytes"},m,s.ETH_DATA_FORMAT)),d=T.isBlockTag(r)?r:i.format({format:"uint"},r,s.ETH_DATA_FORMAT),u=yield c.getProof(t.requestManager,n,a,d);return i.format(A.accountSchema,u,o)})}function dt(t,n,e=t.defaultBlock,r,o){return f(this,void 0,void 0,function*(){const a=i.format({format:"uint"},n,s.ETH_DATA_FORMAT),d=T.isBlockTag(e)?e:i.format({format:"uint"},e,s.ETH_DATA_FORMAT),u=i.format({type:"array",items:{format:"uint"}},r,b.NUMBER_DATA_FORMAT),m=yield c.getFeeHistory(t.requestManager,a,d,u);return i.format(A.feeHistorySchema,m,o)})}function mt(t,n,e=t.defaultBlock,r){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:i.format({format:"uint"},e,s.ETH_DATA_FORMAT),a=yield c.createAccessList(t.requestManager,y.formatTransaction(n,s.ETH_DATA_FORMAT),o);return i.format(A.accessListResultSchema,a,r)})}function lt(t,n,e,r,o){return f(this,void 0,void 0,function*(){const a=yield c.signTypedData(t.requestManager,n,e,r);return i.format({format:"bytes"},a,o)})}exports.call=at;exports.createAccessList=mt;exports.estimateGas=st;exports.getBalance=K;exports.getBlock=X;exports.getBlockNumber=J;exports.getBlockTransactionCount=Y;exports.getBlockUncleCount=Z;exports.getChainId=ut;exports.getCode=V;exports.getFeeHistory=dt;exports.getGasPrice=z;exports.getHashRate=W;exports.getLogs=ct;exports.getPendingTransactions=C;exports.getProof=ft;exports.getStorageAt=Q;exports.getTransaction=x;exports.getTransactionCount=et;exports.getTransactionFromBlock=$;exports.getTransactionReceipt=tt;exports.getUncle=w;exports.isSyncing=G;exports.sendSignedTransaction=rt;exports.sendTransaction=nt;exports.sign=ot;exports.signTransaction=it;exports.signTypedData=lt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=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");require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");const P=require("../../../web3-errors/lib/esm/errors/signature_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const N=require("../../../web3-validator/lib/esm/validation/string.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");const p=require("../../../web3-validator/lib/esm/validation/bytes.cjs"),T=require("../../../web3-validator/lib/esm/validation/block.cjs"),_=require("../../../web3-validator/lib/esm/validation/object.cjs"),H=require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../web3-eth-accounts/lib/esm/wallet.cjs");require("../../../web3-eth-accounts/lib/esm/account.cjs");require("../../../crc-32/crc32.cjs");require("../../../web3-eth-accounts/lib/esm/common/types.cjs");require("../../../web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../@ethereumjs/rlp/dist/index.cjs");require("../../../web3-eth-accounts/lib/esm/tx/types.cjs");const U=require("../../../web3-eth-accounts/lib/esm/tx/transactionFactory.cjs"),c=require("../../../web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const b=require("./utils/decode_signed_transaction.cjs"),A=require("./schemas.cjs"),M=require("./utils/transaction_builder.cjs"),y=require("./utils/format_transaction.cjs"),I=require("./utils/try_send_transaction.cjs"),O=require("./utils/wait_for_transaction_receipt.cjs"),j=require("./constants.cjs"),E=require("./utils/send_tx_helper.cjs"),a=require("../../../web3-utils/lib/esm/formatter.cjs"),F=require("../../../web3-utils/lib/esm/converters.cjs");var f=globalThis&&globalThis.__awaiter||function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(d){d(i)})}return new(e||(e=Promise))(function(i,d){function u(l){try{g(n.next(l))}catch(h){d(h)}}function m(l){try{g(n.throw(l))}catch(h){d(h)}}function g(l){l.done?i(l.value):o(l.value).then(u,m)}g((n=n.apply(t,r||[])).next())})},L=globalThis&&globalThis.__rest||function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e};const G=t=>f(void 0,void 0,void 0,function*(){return c.getSyncing(t.requestManager)});function W(t,r){return f(this,void 0,void 0,function*(){const e=yield c.getHashRate(t.requestManager);return a.format({format:"uint"},e,r)})}function z(t,r){return f(this,void 0,void 0,function*(){const e=yield c.getGasPrice(t.requestManager);return a.format({format:"uint"},e,r)})}function J(t,r){return f(this,void 0,void 0,function*(){const e=yield c.getBlockNumber(t.requestManager);return a.format({format:"uint"},e,r)})}function K(t,r,e=t.defaultBlock,n){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:a.format({format:"uint"},e,s.ETH_DATA_FORMAT),i=yield c.getBalance(t.requestManager,r,o);return a.format({format:"uint"},i,n)})}function Q(t,r,e,n=t.defaultBlock,o){return f(this,void 0,void 0,function*(){const i=a.format({format:"uint"},e,s.ETH_DATA_FORMAT),d=T.isBlockTag(n)?n:a.format({format:"uint"},n,s.ETH_DATA_FORMAT),u=yield c.getStorageAt(t.requestManager,r,i,d);return a.format({format:"bytes"},u,o)})}function V(t,r,e=t.defaultBlock,n){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:a.format({format:"uint"},e,s.ETH_DATA_FORMAT),i=yield c.getCode(t.requestManager,r,o);return a.format({format:"bytes"},i,n)})}function X(t,r=t.defaultBlock,e=!1,n){return f(this,void 0,void 0,function*(){let o;if(p.isBytes(r)){const i=a.format({format:"bytes32"},r,s.ETH_DATA_FORMAT);o=yield c.getBlockByHash(t.requestManager,i,e)}else{const i=T.isBlockTag(r)?r:a.format({format:"uint"},r,s.ETH_DATA_FORMAT);o=yield c.getBlockByNumber(t.requestManager,i,e)}return a.format(A.blockSchema,o,n)})}function Y(t,r=t.defaultBlock,e){return f(this,void 0,void 0,function*(){let n;if(p.isBytes(r)){const o=a.format({format:"bytes32"},r,s.ETH_DATA_FORMAT);n=yield c.getBlockTransactionCountByHash(t.requestManager,o)}else{const o=T.isBlockTag(r)?r:a.format({format:"uint"},r,s.ETH_DATA_FORMAT);n=yield c.getBlockTransactionCountByNumber(t.requestManager,o)}return a.format({format:"uint"},n,e)})}function Z(t,r=t.defaultBlock,e){return f(this,void 0,void 0,function*(){let n;if(p.isBytes(r)){const o=a.format({format:"bytes32"},r,s.ETH_DATA_FORMAT);n=yield c.getUncleCountByBlockHash(t.requestManager,o)}else{const o=T.isBlockTag(r)?r:a.format({format:"uint"},r,s.ETH_DATA_FORMAT);n=yield c.getUncleCountByBlockNumber(t.requestManager,o)}return a.format({format:"uint"},n,e)})}function w(t,r=t.defaultBlock,e,n){return f(this,void 0,void 0,function*(){const o=a.format({format:"uint"},e,s.ETH_DATA_FORMAT);let i;if(p.isBytes(r)){const d=a.format({format:"bytes32"},r,s.ETH_DATA_FORMAT);i=yield c.getUncleByBlockHashAndIndex(t.requestManager,d,o)}else{const d=T.isBlockTag(r)?r:a.format({format:"uint"},r,s.ETH_DATA_FORMAT);i=yield c.getUncleByBlockNumberAndIndex(t.requestManager,d,o)}return a.format(A.blockSchema,i,n)})}function x(t,r,e){return f(this,void 0,void 0,function*(){const n=a.format({format:"bytes32"},r,s.DEFAULT_RETURN_FORMAT),o=yield c.getTransactionByHash(t.requestManager,n);return _.isNullish(o)?o:y.formatTransaction(o,e,{fillInputAndData:!0})})}function C(t,r){return f(this,void 0,void 0,function*(){return(yield c.getPendingTransactions(t.requestManager)).map(n=>y.formatTransaction(n,r,{fillInputAndData:!0}))})}function $(t,r=t.defaultBlock,e,n){return f(this,void 0,void 0,function*(){const o=a.format({format:"uint"},e,s.ETH_DATA_FORMAT);let i;if(p.isBytes(r)){const d=a.format({format:"bytes32"},r,s.ETH_DATA_FORMAT);i=yield c.getTransactionByBlockHashAndIndex(t.requestManager,d,o)}else{const d=T.isBlockTag(r)?r:a.format({format:"uint"},r,s.ETH_DATA_FORMAT);i=yield c.getTransactionByBlockNumberAndIndex(t.requestManager,d,o)}return _.isNullish(i)?i:y.formatTransaction(i,n,{fillInputAndData:!0})})}function tt(t,r,e){return f(this,void 0,void 0,function*(){const n=a.format({format:"bytes32"},r,s.DEFAULT_RETURN_FORMAT),o=yield c.getTransactionReceipt(t.requestManager,n);return _.isNullish(o)?o:a.format(A.transactionReceiptSchema,o,e)})}function et(t,r,e=t.defaultBlock,n){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:a.format({format:"uint"},e,s.ETH_DATA_FORMAT),i=yield c.getTransactionCount(t.requestManager,r,o);return a.format({format:"uint"},i,n)})}function rt(t,r,e,n={checkRevertBeforeSending:!0}){const o=new H.Web3PromiEvent((i,d)=>{setImmediate(()=>{f(this,void 0,void 0,function*(){const u=new E.SendTxHelper({web3Context:t,promiEvent:o,options:n,returnFormat:e});let m=y.formatTransaction(Object.assign(Object.assign({},r),{from:M.getTransactionFromOrToAttr("from",t,r),to:M.getTransactionFromOrToAttr("to",t,r)}),s.ETH_DATA_FORMAT);try{m=yield u.populateGasPrice({transaction:r,transactionFormatted:m}),yield u.checkRevertBeforeSending(m),u.emitSending(m);let g;t.wallet&&!_.isNullish(m.from)&&(g=t.wallet.get(m.from));const l=yield u.signAndSend({wallet:g,tx:m}),h=a.format({format:"bytes32"},l,e);u.emitSent(m),u.emitTransactionHash(h);const R=yield O.waitForTransactionReceipt(t,l,e),v=u.getReceiptWithEvents(a.format(A.transactionReceiptSchema,R,e));u.emitReceipt(v),i(yield u.handleResolve({receipt:v,tx:m})),u.emitConfirmation({receipt:v,transactionHash:l})}catch(g){d(yield u.handleError({error:g,tx:m}))}})})});return o}function nt(t,r,e,n={checkRevertBeforeSending:!0}){const o=new H.Web3PromiEvent((i,d)=>{setImmediate(()=>{f(this,void 0,void 0,function*(){const u=new E.SendTxHelper({web3Context:t,promiEvent:o,options:n,returnFormat:e}),m=a.format({format:"bytes"},r,s.ETH_DATA_FORMAT),g=U.TransactionFactory.fromSerializedData(F.bytesToUint8Array(F.hexToBytes(m))),l=Object.assign(Object.assign({},g.toJSON()),{from:g.getSenderAddress().toString()});try{const{v:h,r:R,s:v}=l,S=L(l,["v","r","s"]);yield u.checkRevertBeforeSending(S),u.emitSending(m);const q=yield I.trySendTransaction(t,()=>f(this,void 0,void 0,function*(){return c.sendRawTransaction(t.requestManager,m)}));u.emitSent(m);const D=a.format({format:"bytes32"},q,e);u.emitTransactionHash(D);const k=yield O.waitForTransactionReceipt(t,q,e),B=u.getReceiptWithEvents(a.format(A.transactionReceiptSchema,k,e));u.emitReceipt(B),i(yield u.handleResolve({receipt:B,tx:l})),u.emitConfirmation({receipt:B,transactionHash:q})}catch(h){d(yield u.handleError({error:h,tx:l}))}})})});return o}function ot(t,r,e,n){var o;return f(this,void 0,void 0,function*(){const i=a.format({format:"bytes"},r,s.DEFAULT_RETURN_FORMAT);if(!((o=t.wallet)===null||o===void 0)&&o.get(e)){const m=t.wallet.get(e).sign(i);return a.format(A.SignatureObjectSchema,m,n)}if(typeof e=="number")throw new P.SignatureError(r,'RPC method "eth_sign" does not support index signatures');const d=yield c.sign(t.requestManager,e,i);return a.format({format:"bytes"},d,n)})}function at(t,r,e){return f(this,void 0,void 0,function*(){const n=yield c.signTransaction(t.requestManager,y.formatTransaction(r,s.ETH_DATA_FORMAT));return N.isString(n)?b.decodeSignedTransaction(n,e,{fillInputAndData:!0}):{raw:a.format({format:"bytes"},n.raw,e),tx:y.formatTransaction(n.tx,e,{fillInputAndData:!0})}})}function it(t,r,e=t.defaultBlock,n){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:a.format({format:"uint"},e,s.ETH_DATA_FORMAT),i=yield c.call(t.requestManager,y.formatTransaction(r,s.ETH_DATA_FORMAT),o);return a.format({format:"bytes"},i,n)})}function st(t,r,e=t.defaultBlock,n){return f(this,void 0,void 0,function*(){const o=y.formatTransaction(r,s.ETH_DATA_FORMAT),i=T.isBlockTag(e)?e:a.format({format:"uint"},e,s.ETH_DATA_FORMAT),d=yield c.estimateGas(t.requestManager,o,i);return a.format({format:"uint"},d,n)})}function ct(t,r,e){return f(this,void 0,void 0,function*(){let{toBlock:n,fromBlock:o}=r;_.isNullish(n)||(typeof n=="number"||typeof n=="bigint")&&(n=F.numberToHex(n)),_.isNullish(o)||(typeof o=="number"||typeof o=="bigint")&&(o=F.numberToHex(o));const i=Object.assign(Object.assign({},r),{fromBlock:o,toBlock:n});return(yield c.getLogs(t.requestManager,i)).map(m=>typeof m=="string"?m:a.format(A.logSchema,m,e))})}function ut(t,r){return f(this,void 0,void 0,function*(){const e=yield c.getChainId(t.requestManager);return a.format({format:"uint"},e,r)})}function ft(t,r,e,n=t.defaultBlock,o){return f(this,void 0,void 0,function*(){const i=e.map(m=>a.format({format:"bytes"},m,s.ETH_DATA_FORMAT)),d=T.isBlockTag(n)?n:a.format({format:"uint"},n,s.ETH_DATA_FORMAT),u=yield c.getProof(t.requestManager,r,i,d);return a.format(A.accountSchema,u,o)})}function dt(t,r,e=t.defaultBlock,n,o){return f(this,void 0,void 0,function*(){const i=a.format({format:"uint"},r,s.ETH_DATA_FORMAT),d=T.isBlockTag(e)?e:a.format({format:"uint"},e,s.ETH_DATA_FORMAT),u=a.format({type:"array",items:{format:"uint"}},n,j.NUMBER_DATA_FORMAT),m=yield c.getFeeHistory(t.requestManager,i,d,u);return a.format(A.feeHistorySchema,m,o)})}function mt(t,r,e=t.defaultBlock,n){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:a.format({format:"uint"},e,s.ETH_DATA_FORMAT),i=yield c.createAccessList(t.requestManager,y.formatTransaction(r,s.ETH_DATA_FORMAT),o);return a.format(A.accessListResultSchema,i,n)})}function lt(t,r,e,n,o){return f(this,void 0,void 0,function*(){const i=yield c.signTypedData(t.requestManager,r,e,n);return a.format({format:"bytes"},i,o)})}exports.call=it;exports.createAccessList=mt;exports.estimateGas=st;exports.getBalance=K;exports.getBlock=X;exports.getBlockNumber=J;exports.getBlockTransactionCount=Y;exports.getBlockUncleCount=Z;exports.getChainId=ut;exports.getCode=V;exports.getFeeHistory=dt;exports.getGasPrice=z;exports.getHashRate=W;exports.getLogs=ct;exports.getPendingTransactions=C;exports.getProof=ft;exports.getStorageAt=Q;exports.getTransaction=x;exports.getTransactionCount=et;exports.getTransactionFromBlock=$;exports.getTransactionReceipt=tt;exports.getUncle=w;exports.isSyncing=G;exports.sendSignedTransaction=nt;exports.sendTransaction=rt;exports.sign=ot;exports.signTransaction=at;exports.signTypedData=lt;
@@ -28,11 +28,11 @@ import "../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.js";
28
28
  import "../../../@ethereumjs/rlp/dist/index.js";
29
29
  import "../../../web3-eth-accounts/lib/esm/tx/types.js";
30
30
  import { TransactionFactory as j } from "../../../web3-eth-accounts/lib/esm/tx/transactionFactory.js";
31
- import { getSyncing as U, getHashRate as N, getGasPrice as L, getBlockNumber as G, getBalance as W, getStorageAt as z, getCode as J, getBlockByHash as K, getBlockByNumber as b, getBlockTransactionCountByHash as Q, getBlockTransactionCountByNumber as V, getUncleCountByBlockHash as X, getUncleCountByBlockNumber as Y, getUncleByBlockHashAndIndex as Z, getUncleByBlockNumberAndIndex as w, getTransactionByHash as x, getPendingTransactions as C, getTransactionByBlockHashAndIndex as tt, getTransactionByBlockNumberAndIndex as et, getTransactionReceipt as nt, getTransactionCount as rt, sendRawTransaction as ot, sign as it, signTransaction as at, call as st, estimateGas as ct, getLogs as ut, getChainId as dt, getProof as ft, getFeeHistory as mt, createAccessList as lt, signTypedData as gt } from "../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
31
+ import { getSyncing as U, getHashRate as N, getGasPrice as L, getBlockNumber as G, getBalance as W, getStorageAt as b, getCode as z, getBlockByHash as J, getBlockByNumber as K, getBlockTransactionCountByHash as Q, getBlockTransactionCountByNumber as V, getUncleCountByBlockHash as X, getUncleCountByBlockNumber as Y, getUncleByBlockHashAndIndex as Z, getUncleByBlockNumberAndIndex as w, getTransactionByHash as x, getPendingTransactions as C, getTransactionByBlockHashAndIndex as tt, getTransactionByBlockNumberAndIndex as et, getTransactionReceipt as nt, getTransactionCount as ot, sendRawTransaction as rt, sign as it, signTransaction as at, call as st, estimateGas as ct, getLogs as ut, getChainId as dt, getProof as ft, getFeeHistory as mt, createAccessList as lt, signTypedData as gt } from "../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
32
32
  import "../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
33
33
  import "../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
34
34
  import { decodeSignedTransaction as pt } from "./utils/decode_signed_transaction.js";
35
- import { blockSchema as k, transactionReceiptSchema as M, SignatureObjectSchema as yt, logSchema as ht, accountSchema as vt, feeHistorySchema as Bt, accessListResultSchema as Tt } from "./schemas.js";
35
+ import { blockSchema as k, transactionReceiptSchema as M, SignatureObjectSchema as yt, logSchema as ht, accountSchema as vt, feeHistorySchema as Tt, accessListResultSchema as Bt } from "./schemas.js";
36
36
  import { getTransactionFromOrToAttr as H } from "./utils/transaction_builder.js";
37
37
  import { formatTransaction as p } from "./utils/format_transaction.js";
38
38
  import { trySendTransaction as Ft } from "./utils/try_send_transaction.js";
@@ -41,8 +41,8 @@ import { NUMBER_DATA_FORMAT as St } from "./constants.js";
41
41
  import { SendTxHelper as O } from "./utils/send_tx_helper.js";
42
42
  import { format as i } from "../../../web3-utils/lib/esm/formatter.js";
43
43
  import { bytesToUint8Array as Mt, hexToBytes as qt, numberToHex as R } from "../../../web3-utils/lib/esm/converters.js";
44
- var u = function(t, n, e, r) {
45
- function o(a) {
44
+ var u = globalThis && globalThis.__awaiter || function(t, n, e, o) {
45
+ function r(a) {
46
46
  return a instanceof e ? a : new e(function(d) {
47
47
  d(a);
48
48
  });
@@ -50,30 +50,30 @@ var u = function(t, n, e, r) {
50
50
  return new (e || (e = Promise))(function(a, d) {
51
51
  function s(m) {
52
52
  try {
53
- g(r.next(m));
53
+ g(o.next(m));
54
54
  } catch (y) {
55
55
  d(y);
56
56
  }
57
57
  }
58
58
  function f(m) {
59
59
  try {
60
- g(r.throw(m));
60
+ g(o.throw(m));
61
61
  } catch (y) {
62
62
  d(y);
63
63
  }
64
64
  }
65
65
  function g(m) {
66
- m.done ? a(m.value) : o(m.value).then(s, f);
66
+ m.done ? a(m.value) : r(m.value).then(s, f);
67
67
  }
68
- g((r = r.apply(t, n || [])).next());
68
+ g((o = o.apply(t, n || [])).next());
69
69
  });
70
- }, Ht = function(t, n) {
70
+ }, Ht = globalThis && globalThis.__rest || function(t, n) {
71
71
  var e = {};
72
- for (var r in t)
73
- Object.prototype.hasOwnProperty.call(t, r) && n.indexOf(r) < 0 && (e[r] = t[r]);
72
+ for (var o in t)
73
+ Object.prototype.hasOwnProperty.call(t, o) && n.indexOf(o) < 0 && (e[o] = t[o]);
74
74
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
75
- for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
76
- n.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (e[r[o]] = t[r[o]]);
75
+ for (var r = 0, o = Object.getOwnPropertySymbols(t); r < o.length; r++)
76
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, o[r]) && (e[o[r]] = t[o[r]]);
77
77
  return e;
78
78
  };
79
79
  const pe = (t) => u(void 0, void 0, void 0, function* () {
@@ -97,124 +97,124 @@ function ve(t, n) {
97
97
  return i({ format: "uint" }, e, n);
98
98
  });
99
99
  }
100
- function Be(t, n, e = t.defaultBlock, r) {
100
+ function Te(t, n, e = t.defaultBlock, o) {
101
101
  return u(this, void 0, void 0, function* () {
102
- const o = l(e) ? e : i({ format: "uint" }, e, c), a = yield W(t.requestManager, n, o);
103
- return i({ format: "uint" }, a, r);
102
+ const r = l(e) ? e : i({ format: "uint" }, e, c), a = yield W(t.requestManager, n, r);
103
+ return i({ format: "uint" }, a, o);
104
104
  });
105
105
  }
106
- function Te(t, n, e, r = t.defaultBlock, o) {
106
+ function Be(t, n, e, o = t.defaultBlock, r) {
107
107
  return u(this, void 0, void 0, function* () {
108
- const a = i({ format: "uint" }, e, c), d = l(r) ? r : i({ format: "uint" }, r, c), s = yield z(t.requestManager, n, a, d);
109
- return i({ format: "bytes" }, s, o);
108
+ const a = i({ format: "uint" }, e, c), d = l(o) ? o : i({ format: "uint" }, o, c), s = yield b(t.requestManager, n, a, d);
109
+ return i({ format: "bytes" }, s, r);
110
110
  });
111
111
  }
112
- function Fe(t, n, e = t.defaultBlock, r) {
112
+ function Fe(t, n, e = t.defaultBlock, o) {
113
113
  return u(this, void 0, void 0, function* () {
114
- const o = l(e) ? e : i({ format: "uint" }, e, c), a = yield J(t.requestManager, n, o);
115
- return i({ format: "bytes" }, a, r);
114
+ const r = l(e) ? e : i({ format: "uint" }, e, c), a = yield z(t.requestManager, n, r);
115
+ return i({ format: "bytes" }, a, o);
116
116
  });
117
117
  }
118
- function Se(t, n = t.defaultBlock, e = !1, r) {
118
+ function Se(t, n = t.defaultBlock, e = !1, o) {
119
119
  return u(this, void 0, void 0, function* () {
120
- let o;
120
+ let r;
121
121
  if (v(n)) {
122
122
  const a = i({ format: "bytes32" }, n, c);
123
- o = yield K(t.requestManager, a, e);
123
+ r = yield J(t.requestManager, a, e);
124
124
  } else {
125
125
  const a = l(n) ? n : i({ format: "uint" }, n, c);
126
- o = yield b(t.requestManager, a, e);
126
+ r = yield K(t.requestManager, a, e);
127
127
  }
128
- return i(k, o, r);
128
+ return i(k, r, o);
129
129
  });
130
130
  }
131
131
  function Me(t, n = t.defaultBlock, e) {
132
132
  return u(this, void 0, void 0, function* () {
133
- let r;
133
+ let o;
134
134
  if (v(n)) {
135
- const o = i({ format: "bytes32" }, n, c);
136
- r = yield Q(t.requestManager, o);
135
+ const r = i({ format: "bytes32" }, n, c);
136
+ o = yield Q(t.requestManager, r);
137
137
  } else {
138
- const o = l(n) ? n : i({ format: "uint" }, n, c);
139
- r = yield V(t.requestManager, o);
138
+ const r = l(n) ? n : i({ format: "uint" }, n, c);
139
+ o = yield V(t.requestManager, r);
140
140
  }
141
- return i({ format: "uint" }, r, e);
141
+ return i({ format: "uint" }, o, e);
142
142
  });
143
143
  }
144
144
  function qe(t, n = t.defaultBlock, e) {
145
145
  return u(this, void 0, void 0, function* () {
146
- let r;
146
+ let o;
147
147
  if (v(n)) {
148
- const o = i({ format: "bytes32" }, n, c);
149
- r = yield X(t.requestManager, o);
148
+ const r = i({ format: "bytes32" }, n, c);
149
+ o = yield X(t.requestManager, r);
150
150
  } else {
151
- const o = l(n) ? n : i({ format: "uint" }, n, c);
152
- r = yield Y(t.requestManager, o);
151
+ const r = l(n) ? n : i({ format: "uint" }, n, c);
152
+ o = yield Y(t.requestManager, r);
153
153
  }
154
- return i({ format: "uint" }, r, e);
154
+ return i({ format: "uint" }, o, e);
155
155
  });
156
156
  }
157
- function He(t, n = t.defaultBlock, e, r) {
157
+ function He(t, n = t.defaultBlock, e, o) {
158
158
  return u(this, void 0, void 0, function* () {
159
- const o = i({ format: "uint" }, e, c);
159
+ const r = i({ format: "uint" }, e, c);
160
160
  let a;
161
161
  if (v(n)) {
162
162
  const d = i({ format: "bytes32" }, n, c);
163
- a = yield Z(t.requestManager, d, o);
163
+ a = yield Z(t.requestManager, d, r);
164
164
  } else {
165
165
  const d = l(n) ? n : i({ format: "uint" }, n, c);
166
- a = yield w(t.requestManager, d, o);
166
+ a = yield w(t.requestManager, d, r);
167
167
  }
168
- return i(k, a, r);
168
+ return i(k, a, o);
169
169
  });
170
170
  }
171
171
  function Re(t, n, e) {
172
172
  return u(this, void 0, void 0, function* () {
173
- const r = i({ format: "bytes32" }, n, S), o = yield x(t.requestManager, r);
174
- return h(o) ? o : p(o, e, { fillInputAndData: !0 });
173
+ const o = i({ format: "bytes32" }, n, S), r = yield x(t.requestManager, o);
174
+ return h(r) ? r : p(r, e, { fillInputAndData: !0 });
175
175
  });
176
176
  }
177
177
  function Ae(t, n) {
178
178
  return u(this, void 0, void 0, function* () {
179
- return (yield C(t.requestManager)).map((r) => p(r, n, {
179
+ return (yield C(t.requestManager)).map((o) => p(o, n, {
180
180
  fillInputAndData: !0
181
181
  }));
182
182
  });
183
183
  }
184
- function ke(t, n = t.defaultBlock, e, r) {
184
+ function ke(t, n = t.defaultBlock, e, o) {
185
185
  return u(this, void 0, void 0, function* () {
186
- const o = i({ format: "uint" }, e, c);
186
+ const r = i({ format: "uint" }, e, c);
187
187
  let a;
188
188
  if (v(n)) {
189
189
  const d = i({ format: "bytes32" }, n, c);
190
- a = yield tt(t.requestManager, d, o);
190
+ a = yield tt(t.requestManager, d, r);
191
191
  } else {
192
192
  const d = l(n) ? n : i({ format: "uint" }, n, c);
193
- a = yield et(t.requestManager, d, o);
193
+ a = yield et(t.requestManager, d, r);
194
194
  }
195
- return h(a) ? a : p(a, r, { fillInputAndData: !0 });
195
+ return h(a) ? a : p(a, o, { fillInputAndData: !0 });
196
196
  });
197
197
  }
198
198
  function $e(t, n, e) {
199
199
  return u(this, void 0, void 0, function* () {
200
- const r = i({ format: "bytes32" }, n, S), o = yield nt(t.requestManager, r);
201
- return h(o) ? o : i(M, o, e);
200
+ const o = i({ format: "bytes32" }, n, S), r = yield nt(t.requestManager, o);
201
+ return h(r) ? r : i(M, r, e);
202
202
  });
203
203
  }
204
- function Oe(t, n, e = t.defaultBlock, r) {
204
+ function Oe(t, n, e = t.defaultBlock, o) {
205
205
  return u(this, void 0, void 0, function* () {
206
- const o = l(e) ? e : i({ format: "uint" }, e, c), a = yield rt(t.requestManager, n, o);
207
- return i({ format: "uint" }, a, r);
206
+ const r = l(e) ? e : i({ format: "uint" }, e, c), a = yield ot(t.requestManager, n, r);
207
+ return i({ format: "uint" }, a, o);
208
208
  });
209
209
  }
210
- function _e(t, n, e, r = { checkRevertBeforeSending: !0 }) {
211
- const o = new A((a, d) => {
210
+ function _e(t, n, e, o = { checkRevertBeforeSending: !0 }) {
211
+ const r = new A((a, d) => {
212
212
  setImmediate(() => {
213
213
  u(this, void 0, void 0, function* () {
214
214
  const s = new O({
215
215
  web3Context: t,
216
- promiEvent: o,
217
- options: r,
216
+ promiEvent: r,
217
+ options: o,
218
218
  returnFormat: e
219
219
  });
220
220
  let f = p(Object.assign(Object.assign({}, n), { from: H("from", t, n), to: H("to", t, n) }), c);
@@ -230,12 +230,12 @@ function _e(t, n, e, r = { checkRevertBeforeSending: !0 }) {
230
230
  tx: f
231
231
  }), y = i({ format: "bytes32" }, m, e);
232
232
  s.emitSent(f), s.emitTransactionHash(y);
233
- const q = yield $(t, m, e), B = s.getReceiptWithEvents(i(M, q, e));
234
- s.emitReceipt(B), a(yield s.handleResolve({
235
- receipt: B,
233
+ const q = yield $(t, m, e), T = s.getReceiptWithEvents(i(M, q, e));
234
+ s.emitReceipt(T), a(yield s.handleResolve({
235
+ receipt: T,
236
236
  tx: f
237
237
  })), s.emitConfirmation({
238
- receipt: B,
238
+ receipt: T,
239
239
  transactionHash: m
240
240
  });
241
241
  } catch (g) {
@@ -247,16 +247,16 @@ function _e(t, n, e, r = { checkRevertBeforeSending: !0 }) {
247
247
  });
248
248
  });
249
249
  });
250
- return o;
250
+ return r;
251
251
  }
252
- function Pe(t, n, e, r = { checkRevertBeforeSending: !0 }) {
253
- const o = new A((a, d) => {
252
+ function Pe(t, n, e, o = { checkRevertBeforeSending: !0 }) {
253
+ const r = new A((a, d) => {
254
254
  setImmediate(() => {
255
255
  u(this, void 0, void 0, function* () {
256
256
  const s = new O({
257
257
  web3Context: t,
258
- promiEvent: o,
259
- options: r,
258
+ promiEvent: r,
259
+ options: o,
260
260
  returnFormat: e
261
261
  }), f = i({ format: "bytes" }, n, c), g = j.fromSerializedData(Mt(qt(f))), m = Object.assign(Object.assign({}, g.toJSON()), {
262
262
  // Some providers will default `from` to address(0) causing the error
@@ -267,21 +267,21 @@ function Pe(t, n, e, r = { checkRevertBeforeSending: !0 }) {
267
267
  from: g.getSenderAddress().toString()
268
268
  });
269
269
  try {
270
- const { v: y, r: q, s: B } = m, _ = Ht(m, ["v", "r", "s"]);
270
+ const { v: y, r: q, s: T } = m, _ = Ht(m, ["v", "r", "s"]);
271
271
  yield s.checkRevertBeforeSending(_), s.emitSending(f);
272
- const T = yield Ft(t, () => u(this, void 0, void 0, function* () {
273
- return ot(t.requestManager, f);
272
+ const B = yield Ft(t, () => u(this, void 0, void 0, function* () {
273
+ return rt(t.requestManager, f);
274
274
  }));
275
275
  s.emitSent(f);
276
- const P = i({ format: "bytes32" }, T, e);
276
+ const P = i({ format: "bytes32" }, B, e);
277
277
  s.emitTransactionHash(P);
278
- const I = yield $(t, T, e), F = s.getReceiptWithEvents(i(M, I, e));
278
+ const I = yield $(t, B, e), F = s.getReceiptWithEvents(i(M, I, e));
279
279
  s.emitReceipt(F), a(yield s.handleResolve({
280
280
  receipt: F,
281
281
  tx: m
282
282
  })), s.emitConfirmation({
283
283
  receipt: F,
284
- transactionHash: T
284
+ transactionHash: B
285
285
  });
286
286
  } catch (y) {
287
287
  d(yield s.handleError({
@@ -292,52 +292,52 @@ function Pe(t, n, e, r = { checkRevertBeforeSending: !0 }) {
292
292
  });
293
293
  });
294
294
  });
295
- return o;
295
+ return r;
296
296
  }
297
- function Ie(t, n, e, r) {
298
- var o;
297
+ function Ie(t, n, e, o) {
298
+ var r;
299
299
  return u(this, void 0, void 0, function* () {
300
300
  const a = i({ format: "bytes" }, n, S);
301
- if (!((o = t.wallet) === null || o === void 0) && o.get(e)) {
301
+ if (!((r = t.wallet) === null || r === void 0) && r.get(e)) {
302
302
  const f = t.wallet.get(e).sign(a);
303
- return i(yt, f, r);
303
+ return i(yt, f, o);
304
304
  }
305
305
  if (typeof e == "number")
306
306
  throw new E(n, 'RPC method "eth_sign" does not support index signatures');
307
307
  const d = yield it(t.requestManager, e, a);
308
- return i({ format: "bytes" }, d, r);
308
+ return i({ format: "bytes" }, d, o);
309
309
  });
310
310
  }
311
311
  function Ee(t, n, e) {
312
312
  return u(this, void 0, void 0, function* () {
313
- const r = yield at(t.requestManager, p(n, c));
314
- return D(r) ? pt(r, e, {
313
+ const o = yield at(t.requestManager, p(n, c));
314
+ return D(o) ? pt(o, e, {
315
315
  fillInputAndData: !0
316
316
  }) : {
317
- raw: i({ format: "bytes" }, r.raw, e),
318
- tx: p(r.tx, e, {
317
+ raw: i({ format: "bytes" }, o.raw, e),
318
+ tx: p(o.tx, e, {
319
319
  fillInputAndData: !0
320
320
  })
321
321
  };
322
322
  });
323
323
  }
324
- function De(t, n, e = t.defaultBlock, r) {
324
+ function De(t, n, e = t.defaultBlock, o) {
325
325
  return u(this, void 0, void 0, function* () {
326
- const o = l(e) ? e : i({ format: "uint" }, e, c), a = yield st(t.requestManager, p(n, c), o);
327
- return i({ format: "bytes" }, a, r);
326
+ const r = l(e) ? e : i({ format: "uint" }, e, c), a = yield st(t.requestManager, p(n, c), r);
327
+ return i({ format: "bytes" }, a, o);
328
328
  });
329
329
  }
330
- function je(t, n, e = t.defaultBlock, r) {
330
+ function je(t, n, e = t.defaultBlock, o) {
331
331
  return u(this, void 0, void 0, function* () {
332
- const o = p(n, c), a = l(e) ? e : i({ format: "uint" }, e, c), d = yield ct(t.requestManager, o, a);
333
- return i({ format: "uint" }, d, r);
332
+ const r = p(n, c), a = l(e) ? e : i({ format: "uint" }, e, c), d = yield ct(t.requestManager, r, a);
333
+ return i({ format: "uint" }, d, o);
334
334
  });
335
335
  }
336
336
  function Ue(t, n, e) {
337
337
  return u(this, void 0, void 0, function* () {
338
- let { toBlock: r, fromBlock: o } = n;
339
- h(r) || (typeof r == "number" || typeof r == "bigint") && (r = R(r)), h(o) || (typeof o == "number" || typeof o == "bigint") && (o = R(o));
340
- const a = Object.assign(Object.assign({}, n), { fromBlock: o, toBlock: r });
338
+ let { toBlock: o, fromBlock: r } = n;
339
+ h(o) || (typeof o == "number" || typeof o == "bigint") && (o = R(o)), h(r) || (typeof r == "number" || typeof r == "bigint") && (r = R(r));
340
+ const a = Object.assign(Object.assign({}, n), { fromBlock: r, toBlock: o });
341
341
  return (yield ut(t.requestManager, a)).map((f) => typeof f == "string" ? f : i(ht, f, e));
342
342
  });
343
343
  }
@@ -352,40 +352,40 @@ function Ne(t, n) {
352
352
  );
353
353
  });
354
354
  }
355
- function Le(t, n, e, r = t.defaultBlock, o) {
355
+ function Le(t, n, e, o = t.defaultBlock, r) {
356
356
  return u(this, void 0, void 0, function* () {
357
- const a = e.map((f) => i({ format: "bytes" }, f, c)), d = l(r) ? r : i({ format: "uint" }, r, c), s = yield ft(t.requestManager, n, a, d);
358
- return i(vt, s, o);
357
+ const a = e.map((f) => i({ format: "bytes" }, f, c)), d = l(o) ? o : i({ format: "uint" }, o, c), s = yield ft(t.requestManager, n, a, d);
358
+ return i(vt, s, r);
359
359
  });
360
360
  }
361
- function Ge(t, n, e = t.defaultBlock, r, o) {
361
+ function Ge(t, n, e = t.defaultBlock, o, r) {
362
362
  return u(this, void 0, void 0, function* () {
363
363
  const a = i({ format: "uint" }, n, c), d = l(e) ? e : i({ format: "uint" }, e, c), s = i({
364
364
  type: "array",
365
365
  items: {
366
366
  format: "uint"
367
367
  }
368
- }, r, St), f = yield mt(t.requestManager, a, d, s);
369
- return i(Bt, f, o);
368
+ }, o, St), f = yield mt(t.requestManager, a, d, s);
369
+ return i(Tt, f, r);
370
370
  });
371
371
  }
372
- function We(t, n, e = t.defaultBlock, r) {
372
+ function We(t, n, e = t.defaultBlock, o) {
373
373
  return u(this, void 0, void 0, function* () {
374
- const o = l(e) ? e : i({ format: "uint" }, e, c), a = yield lt(t.requestManager, p(n, c), o);
375
- return i(Tt, a, r);
374
+ const r = l(e) ? e : i({ format: "uint" }, e, c), a = yield lt(t.requestManager, p(n, c), r);
375
+ return i(Bt, a, o);
376
376
  });
377
377
  }
378
- function ze(t, n, e, r, o) {
378
+ function be(t, n, e, o, r) {
379
379
  return u(this, void 0, void 0, function* () {
380
- const a = yield gt(t.requestManager, n, e, r);
381
- return i({ format: "bytes" }, a, o);
380
+ const a = yield gt(t.requestManager, n, e, o);
381
+ return i({ format: "bytes" }, a, r);
382
382
  });
383
383
  }
384
384
  export {
385
385
  De as call,
386
386
  We as createAccessList,
387
387
  je as estimateGas,
388
- Be as getBalance,
388
+ Te as getBalance,
389
389
  Se as getBlock,
390
390
  ve as getBlockNumber,
391
391
  Me as getBlockTransactionCount,
@@ -398,7 +398,7 @@ export {
398
398
  Ue as getLogs,
399
399
  Ae as getPendingTransactions,
400
400
  Le as getProof,
401
- Te as getStorageAt,
401
+ Be as getStorageAt,
402
402
  Re as getTransaction,
403
403
  Oe as getTransactionCount,
404
404
  ke as getTransactionFromBlock,
@@ -409,5 +409,5 @@ export {
409
409
  _e as sendTransaction,
410
410
  Ie as sign,
411
411
  Ee as signTransaction,
412
- ze as signTypedData
412
+ be as signTypedData
413
413
  };