@ozdao/prometheus-framework 0.2.44 → 0.2.47

Sign up to get free protection for your applications and to get access to all the features.
Files changed (422) hide show
  1. package/dist/main-AMWMdo3t.js +91 -0
  2. package/dist/main-R6dlNKp-.mjs +13606 -0
  3. package/dist/main.css +1 -1
  4. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  5. package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
  6. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  7. package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
  8. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
  9. package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
  10. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
  11. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
  12. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
  13. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
  14. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
  15. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +1 -1
  16. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +6 -6
  17. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
  18. package/dist/node_modules/ethereum-cryptography/esm/utils.js +3 -4
  19. package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
  20. package/dist/node_modules/vue3-carousel/dist/carousel.css.js +1 -4
  21. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  22. package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
  23. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
  24. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
  25. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  26. package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
  27. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
  28. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
  29. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  30. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
  31. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
  32. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
  33. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
  34. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
  35. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  36. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +110 -110
  37. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  38. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
  39. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
  40. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
  41. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  42. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
  43. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
  44. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
  45. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
  46. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
  47. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  48. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
  49. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  50. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
  51. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
  52. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
  53. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  54. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
  55. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  56. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
  57. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  58. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
  59. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  60. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +7 -7
  61. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
  62. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
  63. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
  64. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
  65. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
  66. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
  67. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  68. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +15 -15
  69. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  70. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
  71. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
  72. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +26 -26
  73. package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
  74. package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
  75. package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
  76. package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
  77. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  78. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
  79. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  80. package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
  81. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
  82. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
  83. package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
  84. package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
  85. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
  86. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +5 -5
  87. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
  88. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
  89. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
  90. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
  91. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
  92. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
  93. package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
  94. package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +15 -15
  95. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
  96. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
  97. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
  98. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
  99. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
  100. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
  101. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
  102. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +5 -5
  103. package/dist/products.server.js +875 -0
  104. package/dist/products.server.mjs +875 -0
  105. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/components/Address/Address.vue.js +1 -4
  107. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +1 -4
  109. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -4
  111. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
  113. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  114. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +1 -63
  115. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  116. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +1 -4
  117. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  118. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -4
  119. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
  120. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +1 -4
  121. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +20 -20
  123. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -4
  125. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +18 -18
  127. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
  129. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
  130. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +1 -4
  131. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
  133. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
  134. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +1 -4
  135. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
  136. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +1 -4
  137. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +1 -4
  139. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
  140. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +1 -4
  141. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +1 -4
  143. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -4
  145. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
  146. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +1 -4
  147. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/components/Map/Map.vue.js +1 -4
  149. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
  151. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  152. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -72
  153. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
  155. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  156. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -97
  157. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
  158. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +1 -4
  159. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -4
  161. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -4
  163. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  164. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -4
  165. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
  167. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  168. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +1 -4
  169. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
  171. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  173. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +1 -4
  175. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +1 -4
  177. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +1 -4
  179. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +1 -4
  181. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +1 -4
  183. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +1 -4
  185. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/auth/store/auth.js +2 -2
  187. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  189. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  191. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +1 -4
  193. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  195. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +1 -4
  197. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  199. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  201. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +1 -4
  203. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +1 -4
  205. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  207. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  209. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +1 -4
  211. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  213. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  214. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
  215. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  216. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  217. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  219. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +1 -4
  221. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  223. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +5 -5
  225. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +1 -4
  227. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  229. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +1 -4
  231. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +1 -4
  233. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +1 -4
  235. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  237. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  239. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +1 -4
  243. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  245. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +1 -4
  247. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  249. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +1 -4
  251. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +1 -4
  253. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
  255. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -4
  257. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +1 -4
  259. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  261. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +1 -4
  263. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
  265. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  267. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +1 -4
  269. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  271. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  273. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +1 -4
  275. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +1 -4
  277. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +1 -4
  279. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +1 -4
  281. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  283. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +1 -4
  285. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +1 -4
  287. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  289. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  291. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +1 -4
  293. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  295. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  297. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +1 -4
  299. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +1 -4
  301. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +1 -4
  303. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  305. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  307. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  309. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  311. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +1 -4
  313. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +1 -4
  315. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +14 -14
  317. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +14 -14
  319. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.cjs +1 -0
  320. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.js +43 -0
  321. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -0
  322. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +1 -0
  323. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +1 -4
  325. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  327. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +1 -4
  329. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  331. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +1 -4
  333. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +39 -2
  335. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -0
  336. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +1 -0
  337. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
  338. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +1 -4
  339. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +1 -4
  341. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  343. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +1 -4
  345. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
  346. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +1 -4
  347. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +20 -21
  349. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +1 -4
  351. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  352. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +90 -80
  353. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
  354. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +1 -4
  355. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -0
  356. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +87 -0
  357. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -0
  358. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +1 -0
  359. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +7 -6
  361. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -0
  362. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +138 -0
  363. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  365. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  366. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  367. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +1 -4
  369. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -0
  370. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +114 -0
  371. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -0
  372. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +1 -0
  373. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +1 -4
  375. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +51 -62
  377. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -0
  378. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +53 -0
  379. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -0
  380. package/dist/prometheus-framework/src/modules/products/products.client.js +56 -0
  381. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  383. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  384. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  385. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  386. package/dist/prometheus-framework/src/modules/products/store/products.js +3 -1
  387. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  388. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  389. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  390. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  391. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
  392. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +1 -4
  393. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  394. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  395. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
  396. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +1 -4
  397. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
  398. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +1 -4
  399. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  400. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  401. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  402. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
  403. package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
  404. package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
  405. package/dist/prometheus-framework.cjs.js +1 -1
  406. package/dist/prometheus-framework.es.js +1 -1
  407. package/dist/style.css +1 -1
  408. package/dist/web-HvAJWryM.js +1 -0
  409. package/dist/web-XMv5d7hK.mjs +55 -0
  410. package/package.json +1 -1
  411. package/src/components/Feed/Feed.vue +9 -7
  412. package/src/modules/products/components/blocks/CardPosition.vue +1 -1
  413. package/src/modules/products/components/blocks/CardProduct.vue +2 -3
  414. package/src/modules/products/components/pages/Product.vue +1 -1
  415. package/src/modules/products/components/pages/ProductEdit.vue +15 -0
  416. package/src/modules/products/components/pages/ProductRecommmendation.vue +2 -2
  417. package/src/modules/products/components/pages/Products.vue +1 -0
  418. package/src/modules/products/components/sections/SectionProduct.vue +10 -10
  419. package/src/modules/products/products.client.js +76 -20
  420. package/src/modules/products/products.server.js +8 -4
  421. package/src/modules/products/router/products.router.js +4 -2
  422. package/src/styles/base/all.scss +4 -1
@@ -1,15 +1,15 @@
1
1
  import { OperationTimeoutError as f, OperationAbortError as q } from "../../../web3-errors/lib/esm/errors/generic_errors.js";
2
- import { ResponseError as p } from "../../../web3-errors/lib/esm/errors/response_errors.js";
2
+ import { ResponseError as d } from "../../../web3-errors/lib/esm/errors/response_errors.js";
3
3
  import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
4
- import { Web3DeferredPromise as m } from "../../../web3-utils/lib/esm/web3_deferred_promise.js";
4
+ import { Web3DeferredPromise as p } from "../../../web3-utils/lib/esm/web3_deferred_promise.js";
5
5
  import { toPayload as _, isResponseWithResult as v, isResponseWithError as R } from "../../../web3-utils/lib/esm/json_rpc.js";
6
- var d = globalThis && globalThis.__awaiter || function(l, r, t, s) {
7
- function o(i) {
8
- return i instanceof t ? i : new t(function(n) {
9
- n(i);
6
+ var m = function(l, r, t, s) {
7
+ function i(o) {
8
+ return o instanceof t ? o : new t(function(n) {
9
+ n(o);
10
10
  });
11
11
  }
12
- return new (t || (t = Promise))(function(i, n) {
12
+ return new (t || (t = Promise))(function(o, n) {
13
13
  function e(u) {
14
14
  try {
15
15
  c(s.next(u));
@@ -25,13 +25,13 @@ var d = globalThis && globalThis.__awaiter || function(l, r, t, s) {
25
25
  }
26
26
  }
27
27
  function c(u) {
28
- u.done ? i(u.value) : o(u.value).then(e, a);
28
+ u.done ? o(u.value) : i(u.value).then(e, a);
29
29
  }
30
30
  c((s = s.apply(l, r || [])).next());
31
31
  });
32
32
  };
33
- const b = 1e3;
34
- class T {
33
+ const w = 1e3;
34
+ class A {
35
35
  constructor(r) {
36
36
  this._requestManager = r, this._requests = /* @__PURE__ */ new Map();
37
37
  }
@@ -39,37 +39,37 @@ class T {
39
39
  return [...this._requests.values()].map((r) => r.payload);
40
40
  }
41
41
  add(r) {
42
- const t = _(r), s = new m();
42
+ const t = _(r), s = new p();
43
43
  return this._requests.set(t.id, { payload: t, promise: s }), s;
44
44
  }
45
45
  // eslint-disable-next-line class-methods-use-this
46
46
  execute(r) {
47
47
  var t;
48
- return d(this, void 0, void 0, function* () {
48
+ return m(this, void 0, void 0, function* () {
49
49
  if (this.requests.length === 0)
50
50
  return Promise.resolve([]);
51
- const s = new m({
52
- timeout: (t = r == null ? void 0 : r.timeout) !== null && t !== void 0 ? t : b,
51
+ const s = new p({
52
+ timeout: (t = r == null ? void 0 : r.timeout) !== null && t !== void 0 ? t : w,
53
53
  eagerStart: !0,
54
54
  timeoutMessage: "Batch request timeout"
55
55
  });
56
- return this._processBatchRequest(s).catch((o) => s.reject(o)), s.catch((o) => {
57
- o instanceof f && this._abortAllRequests("Batch request timeout"), s.reject(o);
56
+ return this._processBatchRequest(s).catch((i) => s.reject(i)), s.catch((i) => {
57
+ i instanceof f && this._abortAllRequests("Batch request timeout"), s.reject(i);
58
58
  }), s;
59
59
  });
60
60
  }
61
61
  _processBatchRequest(r) {
62
62
  var t, s;
63
- return d(this, void 0, void 0, function* () {
64
- const o = yield this._requestManager.sendBatch([...this._requests.values()].map((e) => e.payload));
65
- if (o.length !== this._requests.size)
66
- throw this._abortAllRequests("Invalid batch response"), new p(o, `Batch request size mismatch the results size. Requests: ${this._requests.size}, Responses: ${o.length}`);
67
- const i = this.requests.map((e) => e.id).map(Number).sort((e, a) => e - a), n = o.map((e) => e.id).map(Number).sort((e, a) => e - a);
68
- if (JSON.stringify(i) !== JSON.stringify(n))
69
- throw this._abortAllRequests("Invalid batch response"), new p(o, `Batch request mismatch the results. Requests: [${i.join()}], Responses: [${n.join()}]`);
70
- for (const e of o)
63
+ return m(this, void 0, void 0, function* () {
64
+ const i = yield this._requestManager.sendBatch([...this._requests.values()].map((e) => e.payload));
65
+ if (i.length !== this._requests.size)
66
+ throw this._abortAllRequests("Invalid batch response"), new d(i, `Batch request size mismatch the results size. Requests: ${this._requests.size}, Responses: ${i.length}`);
67
+ const o = this.requests.map((e) => e.id).map(Number).sort((e, a) => e - a), n = i.map((e) => e.id).map(Number).sort((e, a) => e - a);
68
+ if (JSON.stringify(o) !== JSON.stringify(n))
69
+ throw this._abortAllRequests("Invalid batch response"), new d(i, `Batch request mismatch the results. Requests: [${o.join()}], Responses: [${n.join()}]`);
70
+ for (const e of i)
71
71
  v(e) ? (t = this._requests.get(e.id)) === null || t === void 0 || t.promise.resolve(e.result) : R(e) && ((s = this._requests.get(e.id)) === null || s === void 0 || s.promise.reject(e.error));
72
- r.resolve(o);
72
+ r.resolve(i);
73
73
  });
74
74
  }
75
75
  _abortAllRequests(r) {
@@ -78,6 +78,6 @@ class T {
78
78
  }
79
79
  }
80
80
  export {
81
- b as DEFAULT_BATCH_REQUEST_TIMEOUT,
82
- T as Web3BatchRequest
81
+ w as DEFAULT_BATCH_REQUEST_TIMEOUT,
82
+ A as Web3BatchRequest
83
83
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.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-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");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 b=require("./utils.cjs"),f=require("./web3_batch_request.cjs"),l=require("./web3_config.cjs"),g=require("./web3_request_manager.cjs"),p=require("./web3_subscription_manager.cjs"),_=require("../../../web3-utils/lib/esm/validation.cjs");var M=globalThis&&globalThis.__awaiter||function(v,e,r,i){function s(t){return t instanceof r?t:new r(function(n){n(t)})}return new(r||(r=Promise))(function(t,n){function o(a){try{u(i.next(a))}catch(d){n(d)}}function c(a){try{u(i.throw(a))}catch(d){n(d)}}function u(a){a.done?t(a.value):s(a.value).then(o,c)}u((i=i.apply(v,e||[])).next())})};class h extends l.Web3Config{constructor(e){var r;if(super(),this.providers=g.Web3RequestManager.providers,_.isNullish(e)||typeof e=="string"&&e.trim()!==""||b.isSupportedProvider(e)){this._requestManager=new g.Web3RequestManager(e),this._subscriptionManager=new p.Web3SubscriptionManager(this._requestManager,{});return}const{config:i,provider:s,requestManager:t,subscriptionManager:n,registeredSubscriptions:o,accountProvider:c,wallet:u}=e;this.setConfig(i??{}),this._requestManager=t??new g.Web3RequestManager(s,(r=i==null?void 0:i.enableExperimentalFeatures)===null||r===void 0?void 0:r.useSubscriptionWhenCheckingBlockTimeout),n?this._subscriptionManager=n:this._subscriptionManager=new p.Web3SubscriptionManager(this.requestManager,o??{}),c&&(this._accountProvider=c),u&&(this._wallet=u)}get requestManager(){return this._requestManager}get subscriptionManager(){return this._subscriptionManager}get wallet(){return this._wallet}get accountProvider(){return this._accountProvider}static fromContextObject(...e){return new this(...e.reverse())}getContextObject(){var e;return{config:this.config,provider:this.provider,requestManager:this.requestManager,subscriptionManager:this.subscriptionManager,registeredSubscriptions:(e=this.subscriptionManager)===null||e===void 0?void 0:e.registeredSubscriptions,providers:this.providers,wallet:this.wallet,accountProvider:this.accountProvider}}use(e,...r){const i=new e(...r,this.getContextObject());return this.on(l.Web3ConfigEvent.CONFIG_CHANGE,s=>{i.setConfig({[s.name]:s.newValue})}),i}link(e){this.setConfig(e.config),this._requestManager=e.requestManager,this.provider=e.provider,this._subscriptionManager=e.subscriptionManager,this._wallet=e.wallet,this._accountProvider=e._accountProvider,e.on(l.Web3ConfigEvent.CONFIG_CHANGE,r=>{this.setConfig({[r.name]:r.newValue})})}registerPlugin(e){if(this[e.pluginNamespace]!==void 0)throw new q.ExistingPluginNamespaceError(e.pluginNamespace);const r={[e.pluginNamespace]:e};r[e.pluginNamespace].link(this),Object.assign(this,r)}get provider(){return this.currentProvider}set provider(e){this.requestManager.setProvider(e)}get currentProvider(){return this.requestManager.provider}set currentProvider(e){this.requestManager.setProvider(e)}get givenProvider(){return h.givenProvider}setProvider(e){return this.provider=e,!0}get BatchRequest(){return f.Web3BatchRequest.bind(void 0,this._requestManager)}extend(e){var r;return e.property&&!this[e.property]&&(this[e.property]={}),(r=e.methods)===null||r===void 0||r.forEach(i=>{const s=(...t)=>M(this,void 0,void 0,function*(){return this.requestManager.send({method:i.call,params:t})});e.property?this[e.property][i.name]=s:this[i.name]=s}),this}}h.providers=g.Web3RequestManager.providers;exports.Web3Context=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.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-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");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 b=require("./utils.cjs"),f=require("./web3_batch_request.cjs"),l=require("./web3_config.cjs"),g=require("./web3_request_manager.cjs"),p=require("./web3_subscription_manager.cjs"),_=require("../../../web3-utils/lib/esm/validation.cjs");var M=function(v,e,r,i){function s(t){return t instanceof r?t:new r(function(n){n(t)})}return new(r||(r=Promise))(function(t,n){function o(u){try{a(i.next(u))}catch(d){n(d)}}function c(u){try{a(i.throw(u))}catch(d){n(d)}}function a(u){u.done?t(u.value):s(u.value).then(o,c)}a((i=i.apply(v,e||[])).next())})};class h extends l.Web3Config{constructor(e){var r;if(super(),this.providers=g.Web3RequestManager.providers,_.isNullish(e)||typeof e=="string"&&e.trim()!==""||b.isSupportedProvider(e)){this._requestManager=new g.Web3RequestManager(e),this._subscriptionManager=new p.Web3SubscriptionManager(this._requestManager,{});return}const{config:i,provider:s,requestManager:t,subscriptionManager:n,registeredSubscriptions:o,accountProvider:c,wallet:a}=e;this.setConfig(i??{}),this._requestManager=t??new g.Web3RequestManager(s,(r=i==null?void 0:i.enableExperimentalFeatures)===null||r===void 0?void 0:r.useSubscriptionWhenCheckingBlockTimeout),n?this._subscriptionManager=n:this._subscriptionManager=new p.Web3SubscriptionManager(this.requestManager,o??{}),c&&(this._accountProvider=c),a&&(this._wallet=a)}get requestManager(){return this._requestManager}get subscriptionManager(){return this._subscriptionManager}get wallet(){return this._wallet}get accountProvider(){return this._accountProvider}static fromContextObject(...e){return new this(...e.reverse())}getContextObject(){var e;return{config:this.config,provider:this.provider,requestManager:this.requestManager,subscriptionManager:this.subscriptionManager,registeredSubscriptions:(e=this.subscriptionManager)===null||e===void 0?void 0:e.registeredSubscriptions,providers:this.providers,wallet:this.wallet,accountProvider:this.accountProvider}}use(e,...r){const i=new e(...r,this.getContextObject());return this.on(l.Web3ConfigEvent.CONFIG_CHANGE,s=>{i.setConfig({[s.name]:s.newValue})}),i}link(e){this.setConfig(e.config),this._requestManager=e.requestManager,this.provider=e.provider,this._subscriptionManager=e.subscriptionManager,this._wallet=e.wallet,this._accountProvider=e._accountProvider,e.on(l.Web3ConfigEvent.CONFIG_CHANGE,r=>{this.setConfig({[r.name]:r.newValue})})}registerPlugin(e){if(this[e.pluginNamespace]!==void 0)throw new q.ExistingPluginNamespaceError(e.pluginNamespace);const r={[e.pluginNamespace]:e};r[e.pluginNamespace].link(this),Object.assign(this,r)}get provider(){return this.currentProvider}set provider(e){this.requestManager.setProvider(e)}get currentProvider(){return this.requestManager.provider}set currentProvider(e){this.requestManager.setProvider(e)}get givenProvider(){return h.givenProvider}setProvider(e){return this.provider=e,!0}get BatchRequest(){return f.Web3BatchRequest.bind(void 0,this._requestManager)}extend(e){var r;return e.property&&!this[e.property]&&(this[e.property]={}),(r=e.methods)===null||r===void 0||r.forEach(i=>{const s=(...t)=>M(this,void 0,void 0,function*(){return this.requestManager.send({method:i.call,params:t})});e.property?this[e.property][i.name]=s:this[i.name]=s}),this}}h.providers=g.Web3RequestManager.providers;exports.Web3Context=h;
@@ -17,46 +17,46 @@ import "../../../@ethereumjs/rlp/dist/index.js";
17
17
  import "../../../web3-eth-accounts/lib/esm/tx/types.js";
18
18
  import { isSupportedProvider as f } from "./utils.js";
19
19
  import { Web3BatchRequest as M } from "./web3_batch_request.js";
20
- import { Web3Config as _, Web3ConfigEvent as d } from "./web3_config.js";
20
+ import { Web3Config as _, Web3ConfigEvent as g } from "./web3_config.js";
21
21
  import { Web3RequestManager as p } from "./web3_request_manager.js";
22
22
  import { Web3SubscriptionManager as l } from "./web3_subscription_manager.js";
23
- import { isNullish as b } from "../../../web3-utils/lib/esm/validation.js";
24
- var w = globalThis && globalThis.__awaiter || function(m, r, e, i) {
23
+ import { isNullish as w } from "../../../web3-utils/lib/esm/validation.js";
24
+ var b = function(m, r, e, i) {
25
25
  function s(t) {
26
- return t instanceof e ? t : new e(function(o) {
27
- o(t);
26
+ return t instanceof e ? t : new e(function(n) {
27
+ n(t);
28
28
  });
29
29
  }
30
- return new (e || (e = Promise))(function(t, o) {
31
- function u(n) {
30
+ return new (e || (e = Promise))(function(t, n) {
31
+ function u(o) {
32
32
  try {
33
- a(i.next(n));
33
+ a(i.next(o));
34
34
  } catch (h) {
35
- o(h);
35
+ n(h);
36
36
  }
37
37
  }
38
- function c(n) {
38
+ function c(o) {
39
39
  try {
40
- a(i.throw(n));
40
+ a(i.throw(o));
41
41
  } catch (h) {
42
- o(h);
42
+ n(h);
43
43
  }
44
44
  }
45
- function a(n) {
46
- n.done ? t(n.value) : s(n.value).then(u, c);
45
+ function a(o) {
46
+ o.done ? t(o.value) : s(o.value).then(u, c);
47
47
  }
48
48
  a((i = i.apply(m, r || [])).next());
49
49
  });
50
50
  };
51
- class g extends _ {
51
+ class d extends _ {
52
52
  constructor(r) {
53
53
  var e;
54
- if (super(), this.providers = p.providers, b(r) || typeof r == "string" && r.trim() !== "" || f(r)) {
54
+ if (super(), this.providers = p.providers, w(r) || typeof r == "string" && r.trim() !== "" || f(r)) {
55
55
  this._requestManager = new p(r), this._subscriptionManager = new l(this._requestManager, {});
56
56
  return;
57
57
  }
58
- const { config: i, provider: s, requestManager: t, subscriptionManager: o, registeredSubscriptions: u, accountProvider: c, wallet: a } = r;
59
- this.setConfig(i ?? {}), this._requestManager = t ?? new p(s, (e = i == null ? void 0 : i.enableExperimentalFeatures) === null || e === void 0 ? void 0 : e.useSubscriptionWhenCheckingBlockTimeout), o ? this._subscriptionManager = o : this._subscriptionManager = new l(this.requestManager, u ?? {}), c && (this._accountProvider = c), a && (this._wallet = a);
58
+ const { config: i, provider: s, requestManager: t, subscriptionManager: n, registeredSubscriptions: u, accountProvider: c, wallet: a } = r;
59
+ this.setConfig(i ?? {}), this._requestManager = t ?? new p(s, (e = i == null ? void 0 : i.enableExperimentalFeatures) === null || e === void 0 ? void 0 : e.useSubscriptionWhenCheckingBlockTimeout), n ? this._subscriptionManager = n : this._subscriptionManager = new l(this.requestManager, u ?? {}), c && (this._accountProvider = c), a && (this._wallet = a);
60
60
  }
61
61
  get requestManager() {
62
62
  return this._requestManager;
@@ -97,7 +97,7 @@ class g extends _ {
97
97
  */
98
98
  use(r, ...e) {
99
99
  const i = new r(...e, this.getContextObject());
100
- return this.on(d.CONFIG_CHANGE, (s) => {
100
+ return this.on(g.CONFIG_CHANGE, (s) => {
101
101
  i.setConfig({ [s.name]: s.newValue });
102
102
  }), i;
103
103
  }
@@ -105,7 +105,7 @@ class g extends _ {
105
105
  * Link current context to another context.
106
106
  */
107
107
  link(r) {
108
- this.setConfig(r.config), this._requestManager = r.requestManager, this.provider = r.provider, this._subscriptionManager = r.subscriptionManager, this._wallet = r.wallet, this._accountProvider = r._accountProvider, r.on(d.CONFIG_CHANGE, (e) => {
108
+ this.setConfig(r.config), this._requestManager = r.requestManager, this.provider = r.provider, this._subscriptionManager = r.subscriptionManager, this._wallet = r.wallet, this._accountProvider = r._accountProvider, r.on(g.CONFIG_CHANGE, (e) => {
109
109
  this.setConfig({ [e.name]: e.newValue });
110
110
  });
111
111
  }
@@ -202,7 +202,7 @@ class g extends _ {
202
202
  */
203
203
  // eslint-disable-next-line class-methods-use-this
204
204
  get givenProvider() {
205
- return g.givenProvider;
205
+ return d.givenProvider;
206
206
  }
207
207
  /**
208
208
  * Will set the provider.
@@ -226,7 +226,7 @@ class g extends _ {
226
226
  extend(r) {
227
227
  var e;
228
228
  return r.property && !this[r.property] && (this[r.property] = {}), (e = r.methods) === null || e === void 0 || e.forEach((i) => {
229
- const s = (...t) => w(this, void 0, void 0, function* () {
229
+ const s = (...t) => b(this, void 0, void 0, function* () {
230
230
  return this.requestManager.send({
231
231
  method: i.call,
232
232
  params: t
@@ -236,7 +236,7 @@ class g extends _ {
236
236
  }), this;
237
237
  }
238
238
  }
239
- g.providers = p.providers;
239
+ d.providers = p.providers;
240
240
  export {
241
- g as Web3Context
241
+ d as Web3Context
242
242
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./web3_event_emitter.cjs");var u=globalThis&&globalThis.__awaiter||function(h,t,e,r){function f(i){return i instanceof e?i:new e(function(o){o(i)})}return new(e||(e=Promise))(function(i,o){function l(n){try{s(r.next(n))}catch(c){o(c)}}function d(n){try{s(r.throw(n))}catch(c){o(c)}}function s(n){n.done?i(n.value):f(n.value).then(l,d)}s((r=r.apply(h,t||[])).next())})},a;class v extends m.Web3EventEmitter{constructor(t){super(),this[a]="Promise",this._promise=new Promise(t)}then(t,e){return u(this,void 0,void 0,function*(){return this._promise.then(t,e)})}catch(t){return u(this,void 0,void 0,function*(){return this._promise.catch(t)})}finally(t){return u(this,void 0,void 0,function*(){return this._promise.finally(t)})}on(t,e){return super.on(t,e),this}once(t,e){return super.once(t,e),this}}a=Symbol.toStringTag;exports.Web3PromiEvent=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./web3_event_emitter.cjs");var s=function(f,t,e,r){function a(i){return i instanceof e?i:new e(function(o){o(i)})}return new(e||(e=Promise))(function(i,o){function d(n){try{u(r.next(n))}catch(c){o(c)}}function m(n){try{u(r.throw(n))}catch(c){o(c)}}function u(n){n.done?i(n.value):a(n.value).then(d,m)}u((r=r.apply(f,t||[])).next())})},h;class p extends v.Web3EventEmitter{constructor(t){super(),this[h]="Promise",this._promise=new Promise(t)}then(t,e){return s(this,void 0,void 0,function*(){return this._promise.then(t,e)})}catch(t){return s(this,void 0,void 0,function*(){return this._promise.catch(t)})}finally(t){return s(this,void 0,void 0,function*(){return this._promise.finally(t)})}on(t,e){return super.on(t,e),this}once(t,e){return super.once(t,e),this}}h=Symbol.toStringTag;exports.Web3PromiEvent=p;
@@ -1,58 +1,58 @@
1
1
  import { Web3EventEmitter as m } from "./web3_event_emitter.js";
2
- var u = globalThis && globalThis.__awaiter || function(h, t, n, o) {
3
- function f(e) {
4
- return e instanceof n ? e : new n(function(r) {
5
- r(e);
2
+ var s = function(f, n, t, r) {
3
+ function a(e) {
4
+ return e instanceof t ? e : new t(function(o) {
5
+ o(e);
6
6
  });
7
7
  }
8
- return new (n || (n = Promise))(function(e, r) {
9
- function p(i) {
8
+ return new (t || (t = Promise))(function(e, o) {
9
+ function d(i) {
10
10
  try {
11
- s(o.next(i));
11
+ u(r.next(i));
12
12
  } catch (c) {
13
- r(c);
13
+ o(c);
14
14
  }
15
15
  }
16
- function l(i) {
16
+ function p(i) {
17
17
  try {
18
- s(o.throw(i));
18
+ u(r.throw(i));
19
19
  } catch (c) {
20
- r(c);
20
+ o(c);
21
21
  }
22
22
  }
23
- function s(i) {
24
- i.done ? e(i.value) : f(i.value).then(p, l);
23
+ function u(i) {
24
+ i.done ? e(i.value) : a(i.value).then(d, p);
25
25
  }
26
- s((o = o.apply(h, t || [])).next());
26
+ u((r = r.apply(f, n || [])).next());
27
27
  });
28
- }, a;
29
- class v extends m {
30
- constructor(t) {
31
- super(), this[a] = "Promise", this._promise = new Promise(t);
28
+ }, h;
29
+ class _ extends m {
30
+ constructor(n) {
31
+ super(), this[h] = "Promise", this._promise = new Promise(n);
32
32
  }
33
- then(t, n) {
34
- return u(this, void 0, void 0, function* () {
35
- return this._promise.then(t, n);
33
+ then(n, t) {
34
+ return s(this, void 0, void 0, function* () {
35
+ return this._promise.then(n, t);
36
36
  });
37
37
  }
38
- catch(t) {
39
- return u(this, void 0, void 0, function* () {
40
- return this._promise.catch(t);
38
+ catch(n) {
39
+ return s(this, void 0, void 0, function* () {
40
+ return this._promise.catch(n);
41
41
  });
42
42
  }
43
- finally(t) {
44
- return u(this, void 0, void 0, function* () {
45
- return this._promise.finally(t);
43
+ finally(n) {
44
+ return s(this, void 0, void 0, function* () {
45
+ return this._promise.finally(n);
46
46
  });
47
47
  }
48
- on(t, n) {
49
- return super.on(t, n), this;
48
+ on(n, t) {
49
+ return super.on(n, t), this;
50
50
  }
51
- once(t, n) {
52
- return super.once(t, n), this;
51
+ once(n, t) {
52
+ return super.once(n, t), this;
53
53
  }
54
54
  }
55
- a = Symbol.toStringTag;
55
+ h = Symbol.toStringTag;
56
56
  export {
57
- v as Web3PromiEvent
57
+ _ as Web3PromiEvent
58
58
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../../../web3-errors/lib/esm/errors/contract_errors.cjs"),E=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs"),R=require("../../../web3-errors/lib/esm/errors/response_errors.cjs"),_=require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs"),g=require("../../../web3-providers-http/lib/esm/index.cjs"),b=require("../../../web3-providers-ws/lib/esm/index.cjs"),a=require("./utils.cjs"),W=require("./web3_event_emitter.cjs"),m=require("../../../web3-utils/lib/esm/promise_helpers.cjs"),i=require("../../../web3-utils/lib/esm/json_rpc.cjs"),l=require("../../../web3-utils/lib/esm/validation.cjs");var w=globalThis&&globalThis.__awaiter||function(d,r,e,t){function s(o){return o instanceof e?o:new e(function(n){n(o)})}return new(e||(e=Promise))(function(o,n){function h(u){try{c(t.next(u))}catch(p){n(p)}}function f(u){try{c(t.throw(u))}catch(p){n(p)}}function c(u){u.done?o(u.value):s(u.value).then(h,f)}c((t=t.apply(d,r||[])).next())})};exports.Web3RequestManagerEvent=void 0;(function(d){d.PROVIDER_CHANGED="PROVIDER_CHANGED",d.BEFORE_PROVIDER_CHANGE="BEFORE_PROVIDER_CHANGE"})(exports.Web3RequestManagerEvent||(exports.Web3RequestManagerEvent={}));const P={HttpProvider:g.default,WebsocketProvider:b.default};class v extends W.Web3EventEmitter{constructor(r,e){super(),l.isNullish(r)||this.setProvider(r),this.useRpcCallSpecification=e}static get providers(){return P}get provider(){return this._provider}get providers(){return P}setProvider(r){let e;if(r&&typeof r=="string"&&this.providers)if(/^http(s)?:\/\//i.test(r))e=new this.providers.HttpProvider(r);else if(/^ws(s)?:\/\//i.test(r))e=new this.providers.WebsocketProvider(r);else throw new E.ProviderError(`Can't autodetect provider for "${r}"`);else l.isNullish(r)?e=void 0:e=r;return this.emit(exports.Web3RequestManagerEvent.BEFORE_PROVIDER_CHANGE,this._provider),this._provider=e,this.emit(exports.Web3RequestManagerEvent.PROVIDER_CHANGED,this._provider),!0}send(r){return w(this,void 0,void 0,function*(){const e=yield this._sendRequest(r);if(i.isResponseWithResult(e))return e.result;throw new R.ResponseError(e)})}sendBatch(r){return w(this,void 0,void 0,function*(){return yield this._sendRequest(r)})}_sendRequest(r){return w(this,void 0,void 0,function*(){const{provider:e}=this;if(l.isNullish(e))throw new E.ProviderError("Provider not available. Use `.setProvider` or `.provider=` to initialize the provider.");const t=i.isBatchRequest(r)?i.toBatchPayload(r):i.toPayload(r);if(a.isWeb3Provider(e)){let s;try{s=yield e.request(t)}catch(o){s=o}return this._processJsonRpcResponse(t,s,{legacy:!1,error:!1})}if(a.isEIP1193Provider(e))return e.request(t).then(s=>this._processJsonRpcResponse(t,s,{legacy:!0,error:!1})).catch(s=>this._processJsonRpcResponse(t,s,{legacy:!0,error:!0}));if(a.isLegacyRequestProvider(e))return new Promise((s,o)=>{const n=c=>o(this._processJsonRpcResponse(t,c,{legacy:!0,error:!0})),h=c=>s(this._processJsonRpcResponse(t,c,{legacy:!0,error:!1})),f=e.request(t,(c,u)=>c?n(c):h(u));m.isPromise(f)&&f.then(h).catch(n)});if(a.isLegacySendProvider(e))return new Promise((s,o)=>{e.send(t,(n,h)=>{if(n)return o(this._processJsonRpcResponse(t,n,{legacy:!0,error:!0}));if(l.isNullish(h))throw new R.ResponseError("",'Got a "nullish" response from provider.');return s(this._processJsonRpcResponse(t,h,{legacy:!0,error:!1}))})});if(a.isLegacySendAsyncProvider(e))return e.sendAsync(t).then(s=>this._processJsonRpcResponse(t,s,{legacy:!0,error:!1})).catch(s=>this._processJsonRpcResponse(t,s,{legacy:!0,error:!0}));throw new E.ProviderError("Provider does not have a request or send method to use.")})}_processJsonRpcResponse(r,e,{legacy:t,error:s}){if(l.isNullish(e))return this._buildResponse(r,null,s);if(i.isResponseWithError(e)){if(this.useRpcCallSpecification&&i.isResponseRpcError(e)){const o=e;if(_.rpcErrorsMap.get(o.error.code)){const n=_.rpcErrorsMap.get(o.error.code).error;throw new n(o)}else throw new _.RpcError(o)}else if(!v._isReverted(e))throw new R.InvalidResponseError(e,r)}if(i.isResponseWithResult(e))return e;if(e instanceof Error)throw v._isReverted(e),e;if(!t&&i.isBatchRequest(r)&&i.isBatchResponse(e)||t&&!s&&i.isBatchRequest(r))return e;if(t&&s&&i.isBatchRequest(r))throw e;if(t&&!i.isResponseWithError(e)&&!i.isResponseWithResult(e))return this._buildResponse(r,e,s);throw i.isBatchRequest(r)&&!Array.isArray(e)?new R.ResponseError(e,"Got normal response for a batch request."):!i.isBatchRequest(r)&&Array.isArray(e)?new R.ResponseError(e,"Got batch response for a normal request."):(i.isResponseWithError(e)||i.isResponseWithResult(e))&&!i.isBatchRequest(r)&&e.id&&r.id!==e.id?new R.InvalidResponseError(e):new R.ResponseError(e,"Invalid response")}static _isReverted(r){let e;if(i.isResponseWithError(r)?e=r.error:r instanceof Error&&(e=r),e!=null&&e.message.includes("revert"))throw new q.ContractExecutionError(e);return!1}_buildResponse(r,e,t){const s={jsonrpc:"2.0",id:i.isBatchRequest(r)?r[0].id:"id"in r?r.id:null};return t?Object.assign(Object.assign({},s),{error:e}):Object.assign(Object.assign({},s),{result:e})}}exports.Web3RequestManager=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../../../web3-errors/lib/esm/errors/contract_errors.cjs"),E=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs"),R=require("../../../web3-errors/lib/esm/errors/response_errors.cjs"),_=require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs"),g=require("../../../web3-providers-http/lib/esm/index.cjs"),b=require("../../../web3-providers-ws/lib/esm/index.cjs"),d=require("./utils.cjs"),W=require("./web3_event_emitter.cjs"),m=require("../../../web3-utils/lib/esm/promise_helpers.cjs"),i=require("../../../web3-utils/lib/esm/json_rpc.cjs"),a=require("../../../web3-utils/lib/esm/validation.cjs");var w=function(l,r,e,t){function s(o){return o instanceof e?o:new e(function(n){n(o)})}return new(e||(e=Promise))(function(o,n){function h(u){try{c(t.next(u))}catch(p){n(p)}}function f(u){try{c(t.throw(u))}catch(p){n(p)}}function c(u){u.done?o(u.value):s(u.value).then(h,f)}c((t=t.apply(l,r||[])).next())})};exports.Web3RequestManagerEvent=void 0;(function(l){l.PROVIDER_CHANGED="PROVIDER_CHANGED",l.BEFORE_PROVIDER_CHANGE="BEFORE_PROVIDER_CHANGE"})(exports.Web3RequestManagerEvent||(exports.Web3RequestManagerEvent={}));const P={HttpProvider:g.default,WebsocketProvider:b.default};class v extends W.Web3EventEmitter{constructor(r,e){super(),a.isNullish(r)||this.setProvider(r),this.useRpcCallSpecification=e}static get providers(){return P}get provider(){return this._provider}get providers(){return P}setProvider(r){let e;if(r&&typeof r=="string"&&this.providers)if(/^http(s)?:\/\//i.test(r))e=new this.providers.HttpProvider(r);else if(/^ws(s)?:\/\//i.test(r))e=new this.providers.WebsocketProvider(r);else throw new E.ProviderError(`Can't autodetect provider for "${r}"`);else a.isNullish(r)?e=void 0:e=r;return this.emit(exports.Web3RequestManagerEvent.BEFORE_PROVIDER_CHANGE,this._provider),this._provider=e,this.emit(exports.Web3RequestManagerEvent.PROVIDER_CHANGED,this._provider),!0}send(r){return w(this,void 0,void 0,function*(){const e=yield this._sendRequest(r);if(i.isResponseWithResult(e))return e.result;throw new R.ResponseError(e)})}sendBatch(r){return w(this,void 0,void 0,function*(){return yield this._sendRequest(r)})}_sendRequest(r){return w(this,void 0,void 0,function*(){const{provider:e}=this;if(a.isNullish(e))throw new E.ProviderError("Provider not available. Use `.setProvider` or `.provider=` to initialize the provider.");const t=i.isBatchRequest(r)?i.toBatchPayload(r):i.toPayload(r);if(d.isWeb3Provider(e)){let s;try{s=yield e.request(t)}catch(o){s=o}return this._processJsonRpcResponse(t,s,{legacy:!1,error:!1})}if(d.isEIP1193Provider(e))return e.request(t).then(s=>this._processJsonRpcResponse(t,s,{legacy:!0,error:!1})).catch(s=>this._processJsonRpcResponse(t,s,{legacy:!0,error:!0}));if(d.isLegacyRequestProvider(e))return new Promise((s,o)=>{const n=c=>o(this._processJsonRpcResponse(t,c,{legacy:!0,error:!0})),h=c=>s(this._processJsonRpcResponse(t,c,{legacy:!0,error:!1})),f=e.request(t,(c,u)=>c?n(c):h(u));m.isPromise(f)&&f.then(h).catch(n)});if(d.isLegacySendProvider(e))return new Promise((s,o)=>{e.send(t,(n,h)=>{if(n)return o(this._processJsonRpcResponse(t,n,{legacy:!0,error:!0}));if(a.isNullish(h))throw new R.ResponseError("",'Got a "nullish" response from provider.');return s(this._processJsonRpcResponse(t,h,{legacy:!0,error:!1}))})});if(d.isLegacySendAsyncProvider(e))return e.sendAsync(t).then(s=>this._processJsonRpcResponse(t,s,{legacy:!0,error:!1})).catch(s=>this._processJsonRpcResponse(t,s,{legacy:!0,error:!0}));throw new E.ProviderError("Provider does not have a request or send method to use.")})}_processJsonRpcResponse(r,e,{legacy:t,error:s}){if(a.isNullish(e))return this._buildResponse(r,null,s);if(i.isResponseWithError(e)){if(this.useRpcCallSpecification&&i.isResponseRpcError(e)){const o=e;if(_.rpcErrorsMap.get(o.error.code)){const n=_.rpcErrorsMap.get(o.error.code).error;throw new n(o)}else throw new _.RpcError(o)}else if(!v._isReverted(e))throw new R.InvalidResponseError(e,r)}if(i.isResponseWithResult(e))return e;if(e instanceof Error)throw v._isReverted(e),e;if(!t&&i.isBatchRequest(r)&&i.isBatchResponse(e)||t&&!s&&i.isBatchRequest(r))return e;if(t&&s&&i.isBatchRequest(r))throw e;if(t&&!i.isResponseWithError(e)&&!i.isResponseWithResult(e))return this._buildResponse(r,e,s);throw i.isBatchRequest(r)&&!Array.isArray(e)?new R.ResponseError(e,"Got normal response for a batch request."):!i.isBatchRequest(r)&&Array.isArray(e)?new R.ResponseError(e,"Got batch response for a normal request."):(i.isResponseWithError(e)||i.isResponseWithResult(e))&&!i.isBatchRequest(r)&&e.id&&r.id!==e.id?new R.InvalidResponseError(e):new R.ResponseError(e,"Invalid response")}static _isReverted(r){let e;if(i.isResponseWithError(r)?e=r.error:r instanceof Error&&(e=r),e!=null&&e.message.includes("revert"))throw new q.ContractExecutionError(e);return!1}_buildResponse(r,e,t){const s={jsonrpc:"2.0",id:i.isBatchRequest(r)?r[0].id:"id"in r?r.id:null};return t?Object.assign(Object.assign({},s),{error:e}):Object.assign(Object.assign({},s),{result:e})}}exports.Web3RequestManager=v;
@@ -7,9 +7,9 @@ import C from "../../../web3-providers-ws/lib/esm/index.js";
7
7
  import { isWeb3Provider as J, isEIP1193Provider as D, isLegacyRequestProvider as G, isLegacySendProvider as H, isLegacySendAsyncProvider as I } from "./utils.js";
8
8
  import { Web3EventEmitter as q } from "./web3_event_emitter.js";
9
9
  import { isPromise as W } from "../../../web3-utils/lib/esm/promise_helpers.js";
10
- import { isResponseWithResult as a, isBatchRequest as u, toBatchPayload as B, toPayload as N, isResponseWithError as p, isResponseRpcError as j, isBatchResponse as V } from "../../../web3-utils/lib/esm/json_rpc.js";
10
+ import { isResponseWithResult as l, isBatchRequest as u, toBatchPayload as B, toPayload as N, isResponseWithError as p, isResponseRpcError as j, isBatchResponse as V } from "../../../web3-utils/lib/esm/json_rpc.js";
11
11
  import { isNullish as d } from "../../../web3-utils/lib/esm/validation.js";
12
- var E = globalThis && globalThis.__awaiter || function(R, e, r, t) {
12
+ var E = function(R, e, r, t) {
13
13
  function i(s) {
14
14
  return s instanceof r ? s : new r(function(o) {
15
15
  o(s);
@@ -23,7 +23,7 @@ var E = globalThis && globalThis.__awaiter || function(R, e, r, t) {
23
23
  o(w);
24
24
  }
25
25
  }
26
- function l(c) {
26
+ function a(c) {
27
27
  try {
28
28
  n(t.throw(c));
29
29
  } catch (w) {
@@ -31,7 +31,7 @@ var E = globalThis && globalThis.__awaiter || function(R, e, r, t) {
31
31
  }
32
32
  }
33
33
  function n(c) {
34
- c.done ? s(c.value) : i(c.value).then(f, l);
34
+ c.done ? s(c.value) : i(c.value).then(f, a);
35
35
  }
36
36
  n((t = t.apply(R, e || [])).next());
37
37
  });
@@ -98,7 +98,7 @@ class _ extends q {
98
98
  send(e) {
99
99
  return E(this, void 0, void 0, function* () {
100
100
  const r = yield this._sendRequest(e);
101
- if (a(r))
101
+ if (l(r))
102
102
  return r.result;
103
103
  throw new h(r);
104
104
  });
@@ -141,12 +141,12 @@ class _ extends q {
141
141
  })), f = (n) => i(this._processJsonRpcResponse(t, n, {
142
142
  legacy: !0,
143
143
  error: !1
144
- })), l = r.request(
144
+ })), a = r.request(
145
145
  t,
146
146
  // a callback that is expected to be called after getting the response:
147
147
  (n, c) => n ? o(n) : f(c)
148
148
  );
149
- W(l) && l.then(f).catch(o);
149
+ W(a) && a.then(f).catch(o);
150
150
  });
151
151
  if (H(r))
152
152
  return new Promise((i, s) => {
@@ -193,7 +193,7 @@ class _ extends q {
193
193
  } else if (!_._isReverted(r))
194
194
  throw new P(r, e);
195
195
  }
196
- if (a(r))
196
+ if (l(r))
197
197
  return r;
198
198
  if (r instanceof Error)
199
199
  throw _._isReverted(r), r;
@@ -201,9 +201,9 @@ class _ extends q {
201
201
  return r;
202
202
  if (t && i && u(e))
203
203
  throw r;
204
- if (t && !p(r) && !a(r))
204
+ if (t && !p(r) && !l(r))
205
205
  return this._buildResponse(e, r, i);
206
- throw u(e) && !Array.isArray(r) ? new h(r, "Got normal response for a batch request.") : !u(e) && Array.isArray(r) ? new h(r, "Got batch response for a normal request.") : (p(r) || a(r)) && !u(e) && r.id && e.id !== r.id ? new P(r) : new h(r, "Invalid response");
206
+ throw u(e) && !Array.isArray(r) ? new h(r, "Got normal response for a batch request.") : !u(e) && Array.isArray(r) ? new h(r, "Got batch response for a normal request.") : (p(r) || l(r)) && !u(e) && r.id && e.id !== r.id ? new P(r) : new h(r, "Invalid response");
207
207
  }
208
208
  static _isReverted(e) {
209
209
  let r;
@@ -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"),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;
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;
@@ -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 = globalThis && globalThis.__awaiter || function(h, i, t, s) {
9
+ var p = 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 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
+ "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,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 d } from "../../../web3-errors/lib/esm/errors/provider_errors.js";
4
+ import { SubscriptionError as b } 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 _ } 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) {
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) {
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 = globalThis && globalThis.__awaiter || function(b, i, r, t) {
16
16
  function h(e) {
17
17
  try {
18
18
  c(t.next(e));
19
- } catch (a) {
20
- u(a);
19
+ } catch (d) {
20
+ u(d);
21
21
  }
22
22
  }
23
23
  function p(e) {
24
24
  try {
25
25
  c(t.throw(e));
26
- } catch (a) {
27
- u(a);
26
+ } catch (d) {
27
+ u(d);
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(b, i || [])).next());
33
+ c((t = t.apply(a, i || [])).next());
34
34
  });
35
35
  };
36
- class q extends _ {
36
+ class q extends f {
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 d("Only requestManager or subscriptionManager should be provided at Subscription constructor");
42
+ throw new b("Only requestManager or subscriptionManager should be provided at Subscription constructor");
43
43
  if (!n && !s)
44
- throw new d("Either requestManager or subscriptionManager should be provided at Subscription constructor");
44
+ throw new b("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 _ {
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 && v(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 && _(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* () {