@ozdao/prometheus-framework 0.2.112 → 0.2.114

Sign up to get free protection for your applications and to get access to all the features.
Files changed (529) hide show
  1. package/dist/common.schema-BFhpUXUt.js +12 -0
  2. package/dist/common.schema-ChBVARrs.mjs +13 -0
  3. package/dist/community.server.js +6 -4
  4. package/dist/community.server.mjs +4 -2
  5. package/dist/engagement.schema-CI2ifjXN.mjs +28 -0
  6. package/dist/engagement.schema-fdLNO2_6.js +27 -0
  7. package/dist/events.server.js +6 -4
  8. package/dist/events.server.mjs +4 -2
  9. package/dist/files.server.js +81 -29
  10. package/dist/files.server.mjs +81 -29
  11. package/dist/gallery.server.js +66 -39
  12. package/dist/gallery.server.mjs +66 -39
  13. package/dist/main-8APITHuW.mjs +14201 -0
  14. package/dist/main-8N2Jmsuk.js +2 -2
  15. package/dist/main-BJvlNekm.mjs +5 -5
  16. package/dist/main-BQisDfLk.js +2 -2
  17. package/dist/main-BV1Yv9Hy.js +2 -2
  18. package/dist/main-Bw0PvTs-.mjs +5 -5
  19. package/dist/main-ByCtZbHD.mjs +5 -5
  20. package/dist/main-CX2ISR43.mjs +5 -5
  21. package/dist/main-CXObXjv-.js +2 -2
  22. package/dist/main-CkeuHuCY.mjs +5 -5
  23. package/dist/main-CnfcBov2.mjs +5 -5
  24. package/dist/main-D50VqYhy.js +2 -2
  25. package/dist/main-D8gNZLSa.js +2 -2
  26. package/dist/main-DPsHxX0l.mjs +5 -5
  27. package/dist/main-DTlUA63C.mjs +5 -5
  28. package/dist/main-DfD5hLQo.mjs +5 -5
  29. package/dist/main-Dh6Zfei9.js +2 -2
  30. package/dist/main-DmNP-t33.mjs +5 -5
  31. package/dist/main-DwyUYWFX.js +2 -2
  32. package/dist/main-VcxO-jAt.js +92 -0
  33. package/dist/main-cffh4bbv.js +2 -2
  34. package/dist/main-pGo7JpSP.js +2 -2
  35. package/dist/main.css +1 -1
  36. package/dist/metadata.schema-6slGhpQS.js +40 -0
  37. package/dist/metadata.schema-CK5e2O3f.mjs +41 -0
  38. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
  39. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +410 -407
  40. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
  41. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +469 -456
  42. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  43. package/dist/node_modules/web3/lib/esm/accounts.js +5 -2
  44. package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
  45. package/dist/node_modules/web3/lib/esm/index.js +45 -42
  46. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  47. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  48. package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
  49. package/dist/node_modules/web3/lib/esm/web3.js +40 -37
  50. package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
  51. package/dist/node_modules/web3-core/lib/esm/web3_config.js +28 -18
  52. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  53. package/dist/node_modules/web3-core/lib/esm/web3_context.js +56 -53
  54. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  55. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +100 -87
  56. package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -1
  57. package/dist/node_modules/web3-errors/lib/esm/error_codes.js +97 -95
  58. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -1
  59. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +8 -8
  60. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -1
  61. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +20 -20
  62. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +4 -4
  63. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +2 -2
  64. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -1
  65. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +33 -27
  66. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -1
  67. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +33 -12
  68. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  69. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +183 -179
  70. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  71. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +10 -10
  72. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  73. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +45 -44
  74. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  75. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +59 -57
  76. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  77. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +43 -43
  78. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  79. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +31 -31
  80. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  81. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +26 -26
  82. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  83. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +53 -51
  84. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
  85. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +25 -23
  86. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  87. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +103 -101
  88. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +2 -2
  89. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +159 -156
  90. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
  91. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +11 -8
  92. package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -1
  93. package/dist/node_modules/web3-eth-contract/lib/esm/index.js +3 -0
  94. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -1
  95. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +5 -2
  96. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  97. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +19 -16
  98. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  99. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +5 -2
  100. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  101. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +50 -47
  102. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  103. package/dist/node_modules/web3-net/lib/esm/net.js +27 -27
  104. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
  105. package/dist/node_modules/web3-utils/lib/esm/converters.js +100 -83
  106. package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
  107. package/dist/node_modules/web3-utils/lib/esm/formatter.js +123 -104
  108. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
  109. package/dist/node_modules/web3-validator/lib/esm/utils.js +21 -21
  110. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
  111. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +10 -10
  112. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -1
  113. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +30 -28
  114. package/dist/orders.server.js +1 -1
  115. package/dist/orders.server.mjs +1 -1
  116. package/dist/organizations.server.js +56 -59
  117. package/dist/organizations.server.mjs +56 -59
  118. package/dist/products.server.js +1 -1
  119. package/dist/products.server.mjs +1 -1
  120. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  121. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +17 -17
  122. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/components/Block/Block.vue.js +5 -5
  124. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +33 -30
  126. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -9
  128. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.cjs +1 -0
  129. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.js +1 -0
  130. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -0
  131. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +165 -0
  132. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +22 -19
  134. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +132 -64
  136. package/dist/prometheus-framework/src/components/Feed/Feed.vue2.cjs +1 -0
  137. package/dist/prometheus-framework/src/components/Feed/Feed.vue2.js +1 -0
  138. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +9 -9
  140. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +12 -12
  142. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  143. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +16 -16
  144. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/components/Map/Map.vue.js +14 -13
  146. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.js +8 -8
  148. package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +29 -36
  150. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  152. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  153. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  154. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
  156. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +6 -6
  158. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +17 -17
  160. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +6 -6
  162. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  164. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +24 -24
  166. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +24 -24
  168. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +11 -11
  170. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +26 -26
  172. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +14 -14
  174. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +6 -6
  176. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +46 -46
  178. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +13 -13
  180. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +5 -5
  182. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +19 -16
  184. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +3 -3
  186. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  187. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
  188. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  189. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  190. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +13 -13
  192. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  194. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  196. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +214 -214
  198. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +8 -8
  200. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
  201. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +23 -23
  202. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  203. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +9 -9
  204. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +3 -3
  206. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  207. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +9 -9
  208. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +8 -8
  209. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +167 -202
  211. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +73 -165
  213. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +3 -47
  215. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  217. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.cjs +1 -0
  218. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.js +75 -0
  219. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +96 -77
  221. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -0
  222. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +1 -0
  223. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +1 -0
  224. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +27 -0
  225. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.cjs +1 -0
  226. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.js +31 -0
  227. package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -19
  229. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/globals/store/globals.js +10 -4
  231. package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.cjs +1 -0
  232. package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.js +31 -0
  233. package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.cjs +1 -0
  234. package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.js +31 -0
  235. package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.cjs +1 -0
  236. package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.js +59 -0
  237. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -0
  238. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +80 -0
  239. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.cjs +1 -0
  240. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.js +1 -0
  241. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/landing/landing.client.js +8 -6
  243. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +5 -5
  245. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.js +1 -1
  247. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.js +1 -1
  249. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.js +1 -1
  251. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.js +30 -30
  253. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +21 -45
  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 -13
  257. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
  259. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +36 -36
  261. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +1 -1
  263. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +53 -53
  265. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +33 -33
  267. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  269. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +10 -10
  271. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +5 -5
  273. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
  275. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +24 -24
  277. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +5 -5
  279. package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -0
  280. package/dist/prometheus-framework/src/modules/orders/store/applications.js +37 -0
  281. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +5 -5
  283. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +11 -11
  285. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  287. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +16 -16
  289. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +41 -41
  291. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +11 -11
  293. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +17 -17
  295. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +36 -36
  297. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +8 -8
  299. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  301. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +20 -20
  303. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +12 -12
  305. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +13 -13
  307. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +33 -34
  309. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +16 -16
  311. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +15 -15
  313. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +8 -8
  315. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +8 -8
  317. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +9 -9
  319. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  320. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  321. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +22 -22
  323. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +6 -6
  325. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +8 -8
  327. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +14 -14
  328. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  329. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +51 -56
  330. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  331. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +4 -4
  332. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  333. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +32 -32
  334. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -1
  335. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +1 -1
  336. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
  337. package/dist/prometheus-framework/src/modules/products/products.client.js +28 -30
  338. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
  339. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +12 -12
  340. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  341. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +30 -26
  342. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  343. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +35 -35
  344. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  345. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +11 -11
  346. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  347. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +41 -41
  348. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  349. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +13 -13
  350. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.cjs +1 -1
  351. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.js +19 -19
  352. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
  353. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +8 -8
  354. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  355. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +14 -11
  356. package/dist/prometheus-framework.cjs.js +1 -1
  357. package/dist/prometheus-framework.es.js +1 -1
  358. package/dist/queryProcessor-BJoJAetd.mjs +162 -0
  359. package/dist/queryProcessor-DWf9tsis.js +161 -0
  360. package/dist/style.css +1 -1
  361. package/dist/wallet.server.js +1 -1
  362. package/dist/wallet.server.mjs +1 -1
  363. package/dist/web-TGdVOTnw.js +1 -0
  364. package/dist/web-_W9a_nWD.mjs +54 -0
  365. package/package.json +1 -1
  366. package/src/components/Address/Address.vue +1 -1
  367. package/src/components/AskToLogin/AskToLogin.vue +1 -1
  368. package/src/components/Block/Block.vue +1 -1
  369. package/src/components/Checkbox/Checkbox.vue +40 -43
  370. package/src/components/Chips/Chips.vue +2 -2
  371. package/src/components/DatePicker/Calendar.vue +29 -31
  372. package/src/components/Dropdown/Dropdown.vue +5 -11
  373. package/src/components/Feed/Feed.vue +98 -15
  374. package/src/components/FieldTags/BlockTags.vue +3 -3
  375. package/src/components/FieldTags/FieldTags.vue +1 -1
  376. package/src/components/FieldTags/vue-tags-input.scss +1 -1
  377. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  378. package/src/components/LocationSelection/LocationSelection.vue +5 -30
  379. package/src/components/Map/LoaderGMaps.js +66 -0
  380. package/src/components/Map/Map.vue +2 -1
  381. package/src/components/Marquee/Marquee.vue +1 -1
  382. package/src/components/Radio/Radio.vue +36 -13
  383. package/src/configurator/components/pages/Styles.vue +1 -1
  384. package/src/modules/auth/components/layouts/Auth.vue +1 -1
  385. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  386. package/src/modules/auth/components/pages/EnterPassword.vue +2 -2
  387. package/src/modules/auth/components/pages/Invite.vue +2 -2
  388. package/src/modules/auth/components/pages/ResetPassword.vue +3 -3
  389. package/src/modules/auth/components/pages/SignIn.vue +4 -4
  390. package/src/modules/auth/components/pages/SignUp.vue +3 -3
  391. package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
  392. package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
  393. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  394. package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
  395. package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
  396. package/src/modules/backoffice/components/admin/Users.vue +1 -1
  397. package/src/modules/backoffice/components/pages/Dashboard.vue +3 -3
  398. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  399. package/src/modules/community/components/layouts/Community.vue +2 -2
  400. package/src/modules/community/components/pages/BlogPost.vue +2 -2
  401. package/src/modules/community/components/pages/CreateBlogPost.vue +4 -4
  402. package/src/modules/community/components/sections/Comments.vue +2 -2
  403. package/src/modules/community/components/sections/Feed.vue +1 -1
  404. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  405. package/src/modules/constructor/components/elements/Image.vue +1 -1
  406. package/src/modules/constructor/components/elements/Video.vue +2 -2
  407. package/src/modules/events/components/blocks/CardEvent.vue +1 -1
  408. package/src/modules/events/components/pages/EditEvent.vue +32 -32
  409. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  410. package/src/modules/events/components/pages/Event.vue +3 -3
  411. package/src/modules/events/components/pages/Events.vue +4 -3
  412. package/src/modules/events/components/sections/Feed.vue +3 -3
  413. package/src/modules/events/components/sections/List.vue +2 -2
  414. package/src/modules/files/controllers/files.controller.js +8 -6
  415. package/src/modules/files/middlewares/server/middlewareBusboy.js +79 -14
  416. package/src/modules/files/routes/files.routes.js +11 -9
  417. package/src/modules/gallery/components/sections/BackofficeGallery.vue +158 -355
  418. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +26 -244
  419. package/src/modules/gallery/controllers/gallery.controller.js +57 -38
  420. package/src/modules/gallery/models/photo.model.js +20 -11
  421. package/src/modules/gallery/routes/gallery.routes.js +3 -3
  422. package/src/modules/gallery/store/gallery.js +3 -78
  423. package/src/modules/globals/components/blocks/BlockSearch.vue +1 -1
  424. package/src/modules/globals/components/blocks/BlockSorting.vue +77 -0
  425. package/src/modules/globals/components/blocks/CardHeader.vue +27 -25
  426. package/src/modules/globals/components/elements/ButtonDate.vue +66 -0
  427. package/src/modules/globals/components/elements/ButtonSort.vue +41 -0
  428. package/src/modules/globals/components/layouts/Client.vue +273 -0
  429. package/src/{components/Footer → modules/globals/components/partials}/Footer.vue +1 -1
  430. package/src/{components/Header → modules/globals/components/partials}/Header.vue +98 -84
  431. package/src/modules/globals/controllers/utils/queryProcessor.js +3 -3
  432. package/src/modules/globals/models/common.schema.js +1 -1
  433. package/src/modules/globals/services/globals.store.js +11 -6
  434. package/src/modules/globals/store/globals.js +12 -10
  435. package/src/modules/icons/logos/Logotype.vue +23 -19
  436. package/src/modules/icons/navigation/IconCalendar.vue +18 -0
  437. package/src/modules/icons/navigation/IconFilter.vue +18 -0
  438. package/src/modules/icons/navigation/IconSearch.vue +1 -3
  439. package/src/modules/icons/navigation/IconSort.vue +21 -0
  440. package/src/modules/landing/components/pages/Home.vue +4 -4
  441. package/src/modules/landing/components/sections/FeatureSection.vue +5 -5
  442. package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -2
  443. package/src/modules/landing/components/sections/SectionFeature.vue +2 -2
  444. package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
  445. package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
  446. package/src/modules/{orders → landing}/components/sections/SubscribeNewsletter.vue +0 -2
  447. package/src/modules/landing/components/sections/WhatIsWDRSection.vue +6 -6
  448. package/src/modules/landing/landing.client.js +2 -0
  449. package/src/modules/landing/router/landing.js +1 -1
  450. package/src/modules/legal/components/pages/Legal.vue +2 -2
  451. package/src/modules/legal/components/pages/legal/Cookies.vue +1 -1
  452. package/src/modules/legal/components/pages/legal/EULA.vue +1 -1
  453. package/src/modules/legal/components/pages/legal/Privacy.vue +1 -1
  454. package/src/modules/legal/components/pages/legal/Terms.vue +1 -1
  455. package/src/modules/marketplace/components/layouts/Marketplace.vue +37 -49
  456. package/src/modules/marketplace/components/pages/Catalog.vue +43 -131
  457. package/src/modules/marketplace/components/sections/Filters.vue +63 -115
  458. package/src/modules/marketplace/store/marketplace.js +22 -167
  459. package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +1 -1
  460. package/src/modules/orders/components/blocks/CardOrderItem.vue +6 -6
  461. package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
  462. package/src/modules/orders/components/blocks/StatusHistory.vue +1 -1
  463. package/src/modules/orders/components/pages/Order.vue +8 -8
  464. package/src/modules/orders/components/pages/OrderBackoffice.vue +7 -7
  465. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  466. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
  467. package/src/modules/orders/components/pages/Orders.vue +3 -5
  468. package/src/modules/orders/components/partials/ShopCart.vue +5 -1
  469. package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
  470. package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
  471. package/src/modules/orders/store/applications.js +1 -1
  472. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  473. package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
  474. package/src/modules/organizations/components/pages/Department.vue +3 -3
  475. package/src/modules/organizations/components/pages/DepartmentEdit.vue +6 -6
  476. package/src/modules/organizations/components/pages/Members.vue +4 -4
  477. package/src/modules/organizations/components/pages/Organization.vue +3 -3
  478. package/src/modules/organizations/components/pages/OrganizationCreate.vue +2 -2
  479. package/src/modules/organizations/components/pages/OrganizationDetails.vue +1 -1
  480. package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
  481. package/src/modules/organizations/components/pages/OrganizationEdit.vue +9 -9
  482. package/src/modules/organizations/components/pages/OrganizationPeople.vue +1 -1
  483. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  484. package/src/modules/organizations/components/sections/DetailsTab.vue +4 -4
  485. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  486. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  487. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  488. package/src/modules/organizations/controllers/organizations.controller.js +103 -93
  489. package/src/modules/organizations/models/organization.model.js +10 -7
  490. package/src/modules/organizations/store/organizations.js +3 -34
  491. package/src/modules/products/components/blocks/CardPosition.vue +2 -2
  492. package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
  493. package/src/modules/products/components/pages/Categories.vue +1 -1
  494. package/src/modules/products/components/pages/EditLeftover.vue +1 -1
  495. package/src/modules/products/components/pages/Leftovers.vue +4 -4
  496. package/src/modules/products/components/pages/Product.vue +1 -5
  497. package/src/modules/products/components/pages/ProductEdit.vue +1 -1
  498. package/src/modules/products/components/pages/Products.vue +2 -2
  499. package/src/modules/products/components/sections/EditProductInfo.vue +1 -1
  500. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  501. package/src/modules/products/components/sections/HeroRecommendation.vue +67 -74
  502. package/src/modules/products/components/sections/MenuSection.vue +2 -2
  503. package/src/modules/products/components/sections/PopularProducts.vue +2 -2
  504. package/src/modules/products/components/sections/SectionProduct.vue +3 -3
  505. package/src/modules/products/products.client.js +0 -2
  506. package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
  507. package/src/modules/spots/components/blocks/CardSpot.vue +9 -1
  508. package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
  509. package/src/modules/spots/components/layouts/Spots.vue +0 -2
  510. package/src/modules/spots/components/pages/Spot.vue +4 -4
  511. package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
  512. package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
  513. package/src/modules/spots/components/sections/Places.vue +1 -1
  514. package/src/modules/users/components/pages/Profile.vue +5 -5
  515. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  516. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  517. package/src/modules/users/components/pages/ProfileEdit.vue +11 -11
  518. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  519. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  520. package/src/modules/users/components/sections/FeaturedUsers.vue +3 -3
  521. package/src/modules/wallet/views/components/pages/Payments.vue +2 -2
  522. package/src/modules/wallet/views/components/pages/Wallet.vue +3 -3
  523. package/src/styles/base/borders.scss +4 -0
  524. package/src/styles/base/shadow_transitions_hover_refactor.scss +4 -0
  525. package/src/styles/config.scss +15 -9
  526. package/src/styles/layout.scss +37 -8
  527. package/src/styles/typography.scss +24 -24
  528. package/src/modules/products/components/sections/SortProducts.vue +0 -74
  529. /package/src/{components/Navigation → modules/globals/components/partials}/Navigation.vue +0 -0
@@ -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 g } from "./web3_config.js";
20
+ import { Web3Config as w, 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 w } from "../../../web3-utils/lib/esm/validation.js";
24
- var b = function(m, r, e, i) {
23
+ import { isNullish as _ } from "../../../web3-utils/lib/esm/validation.js";
24
+ var b = function(m, e, r, i) {
25
25
  function s(t) {
26
- return t instanceof e ? t : new e(function(n) {
27
- n(t);
26
+ return t instanceof r ? t : new r(function(o) {
27
+ o(t);
28
28
  });
29
29
  }
30
- return new (e || (e = Promise))(function(t, n) {
31
- function u(o) {
30
+ return new (r || (r = Promise))(function(t, o) {
31
+ function u(n) {
32
32
  try {
33
- a(i.next(o));
34
- } catch (h) {
35
- n(h);
33
+ a(i.next(n));
34
+ } catch (d) {
35
+ o(d);
36
36
  }
37
37
  }
38
- function c(o) {
38
+ function c(n) {
39
39
  try {
40
- a(i.throw(o));
41
- } catch (h) {
42
- n(h);
40
+ a(i.throw(n));
41
+ } catch (d) {
42
+ o(d);
43
43
  }
44
44
  }
45
- function a(o) {
46
- o.done ? t(o.value) : s(o.value).then(u, c);
45
+ function a(n) {
46
+ n.done ? t(n.value) : s(n.value).then(u, c);
47
47
  }
48
- a((i = i.apply(m, r || [])).next());
48
+ a((i = i.apply(m, e || [])).next());
49
49
  });
50
50
  };
51
- class d extends _ {
52
- constructor(r) {
53
- var e;
54
- if (super(), this.providers = p.providers, w(r) || typeof r == "string" && r.trim() !== "" || f(r)) {
55
- this._requestManager = new p(r), this._subscriptionManager = new l(this._requestManager, {});
51
+ class h extends w {
52
+ constructor(e) {
53
+ var r;
54
+ if (super(), this.providers = p.providers, _(e) || typeof e == "string" && e.trim() !== "" || f(e)) {
55
+ this._requestManager = new p(e), this._subscriptionManager = new l(this._requestManager, {});
56
56
  return;
57
57
  }
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);
58
+ const { config: i, provider: s, requestManager: t, subscriptionManager: o, registeredSubscriptions: u, accountProvider: c, wallet: a, requestManagerMiddleware: n } = e;
59
+ this.setConfig(i ?? {}), this._requestManager = t ?? new p(s, (r = i == null ? void 0 : i.enableExperimentalFeatures) === null || r === void 0 ? void 0 : r.useSubscriptionWhenCheckingBlockTimeout, n), o ? this._subscriptionManager = o : 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;
@@ -74,17 +74,17 @@ class d extends _ {
74
74
  return this._accountProvider;
75
75
  }
76
76
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
77
- static fromContextObject(...r) {
78
- return new this(...r.reverse());
77
+ static fromContextObject(...e) {
78
+ return new this(...e.reverse());
79
79
  }
80
80
  getContextObject() {
81
- var r;
81
+ var e;
82
82
  return {
83
83
  config: this.config,
84
84
  provider: this.provider,
85
85
  requestManager: this.requestManager,
86
86
  subscriptionManager: this.subscriptionManager,
87
- registeredSubscriptions: (r = this.subscriptionManager) === null || r === void 0 ? void 0 : r.registeredSubscriptions,
87
+ registeredSubscriptions: (e = this.subscriptionManager) === null || e === void 0 ? void 0 : e.registeredSubscriptions,
88
88
  providers: this.providers,
89
89
  wallet: this.wallet,
90
90
  accountProvider: this.accountProvider
@@ -95,8 +95,8 @@ class d extends _ {
95
95
  * and link it to current context. This can be used to initiate a global context object
96
96
  * and then use it to create new objects of any type extended by `Web3Context`.
97
97
  */
98
- use(r, ...e) {
99
- const i = new r(...e, this.getContextObject());
98
+ use(e, ...r) {
99
+ const i = new e(...r, this.getContextObject());
100
100
  return this.on(g.CONFIG_CHANGE, (s) => {
101
101
  i.setConfig({ [s.name]: s.newValue });
102
102
  }), i;
@@ -104,19 +104,19 @@ class d extends _ {
104
104
  /**
105
105
  * Link current context to another context.
106
106
  */
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(g.CONFIG_CHANGE, (e) => {
109
- this.setConfig({ [e.name]: e.newValue });
107
+ link(e) {
108
+ 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(g.CONFIG_CHANGE, (r) => {
109
+ this.setConfig({ [r.name]: r.newValue });
110
110
  });
111
111
  }
112
112
  // eslint-disable-next-line no-use-before-define
113
- registerPlugin(r) {
114
- if (this[r.pluginNamespace] !== void 0)
115
- throw new v(r.pluginNamespace);
116
- const e = {
117
- [r.pluginNamespace]: r
113
+ registerPlugin(e) {
114
+ if (this[e.pluginNamespace] !== void 0)
115
+ throw new v(e.pluginNamespace);
116
+ const r = {
117
+ [e.pluginNamespace]: e
118
118
  };
119
- e[r.pluginNamespace].link(this), Object.assign(this, e);
119
+ r[e.pluginNamespace].link(this), Object.assign(this, r);
120
120
  }
121
121
  /**
122
122
  * Will return the current provider.
@@ -154,8 +154,8 @@ class d extends _ {
154
154
  * }
155
155
  * ```
156
156
  */
157
- set provider(r) {
158
- this.requestManager.setProvider(r);
157
+ set provider(e) {
158
+ this.requestManager.setProvider(e);
159
159
  }
160
160
  /**
161
161
  * Will return the current provider. (The same as `provider`)
@@ -192,8 +192,8 @@ class d extends _ {
192
192
  * }
193
193
  * ```
194
194
  */
195
- set currentProvider(r) {
196
- this.requestManager.setProvider(r);
195
+ set currentProvider(e) {
196
+ this.requestManager.setProvider(e);
197
197
  }
198
198
  /**
199
199
  * Will return the givenProvider if available.
@@ -202,7 +202,7 @@ class d extends _ {
202
202
  */
203
203
  // eslint-disable-next-line class-methods-use-this
204
204
  get givenProvider() {
205
- return d.givenProvider;
205
+ return h.givenProvider;
206
206
  }
207
207
  /**
208
208
  * Will set the provider.
@@ -210,8 +210,11 @@ class d extends _ {
210
210
  * @param provider - {@link SupportedProviders} The provider to set
211
211
  * @returns Returns true if the provider was set
212
212
  */
213
- setProvider(r) {
214
- return this.provider = r, !0;
213
+ setProvider(e) {
214
+ return this.provider = e, !0;
215
+ }
216
+ setRequestManagerMiddleware(e) {
217
+ this.requestManager.setMiddleware(e);
215
218
  }
216
219
  /**
217
220
  * Will return the {@link Web3BatchRequest} constructor.
@@ -221,22 +224,22 @@ class d extends _ {
221
224
  }
222
225
  /**
223
226
  * This method allows extending the web3 modules.
224
- * Note: This method is only for backward compatibility, and It is recommended to use Web3 v4 Plugin feature for extending web3.js functionality if you are developing some thing new.
227
+ * Note: This method is only for backward compatibility, and It is recommended to use Web3 v4 Plugin feature for extending web3.js functionality if you are developing something new.
225
228
  */
226
- extend(r) {
227
- var e;
228
- return r.property && !this[r.property] && (this[r.property] = {}), (e = r.methods) === null || e === void 0 || e.forEach((i) => {
229
+ extend(e) {
230
+ var r;
231
+ return e.property && !this[e.property] && (this[e.property] = {}), (r = e.methods) === null || r === void 0 || r.forEach((i) => {
229
232
  const s = (...t) => b(this, void 0, void 0, function* () {
230
233
  return this.requestManager.send({
231
234
  method: i.call,
232
235
  params: t
233
236
  });
234
237
  });
235
- r.property ? this[r.property][i.name] = s : this[i.name] = s;
238
+ e.property ? this[e.property][i.name] = s : this[i.name] = s;
236
239
  }), this;
237
240
  }
238
241
  }
239
- d.providers = p.providers;
242
+ h.providers = p.providers;
240
243
  export {
241
- d as Web3Context
244
+ h as Web3Context
242
245
  };
@@ -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"),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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=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"),w=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"),m=require("./web3_event_emitter.cjs"),y=require("../../../web3-utils/lib/esm/promise_helpers.cjs"),i=require("../../../web3-utils/lib/esm/json_rpc.cjs"),h=require("../../../web3-utils/lib/esm/validation.cjs");var _=function(f,r,e,s){function t(o){return o instanceof e?o:new e(function(n){n(o)})}return new(e||(e=Promise))(function(o,n){function d(u){try{c(s.next(u))}catch(l){n(l)}}function p(u){try{c(s.throw(u))}catch(l){n(l)}}function c(u){u.done?o(u.value):t(u.value).then(d,p)}c((s=s.apply(f,r||[])).next())})};exports.Web3RequestManagerEvent=void 0;(function(f){f.PROVIDER_CHANGED="PROVIDER_CHANGED",f.BEFORE_PROVIDER_CHANGE="BEFORE_PROVIDER_CHANGE"})(exports.Web3RequestManagerEvent||(exports.Web3RequestManagerEvent={}));const q={HttpProvider:g.default,WebsocketProvider:b.default};class v extends m.Web3EventEmitter{constructor(r,e,s){super(),h.isNullish(r)||this.setProvider(r),this.useRpcCallSpecification=e,h.isNullish(s)||(this.middleware=s)}static get providers(){return q}get provider(){return this._provider}get providers(){return q}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 h.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}setMiddleware(r){this.middleware=r}send(r){return _(this,void 0,void 0,function*(){const e=Object.assign({},r);let s=yield this._sendRequest(e);if(h.isNullish(this.middleware)||(s=yield this.middleware.processResponse(s)),i.isResponseWithResult(s))return s.result;throw new R.ResponseError(s)})}sendBatch(r){return _(this,void 0,void 0,function*(){return yield this._sendRequest(r)})}_sendRequest(r){return _(this,void 0,void 0,function*(){const{provider:e}=this;if(h.isNullish(e))throw new E.ProviderError("Provider not available. Use `.setProvider` or `.provider=` to initialize the provider.");let s=i.isBatchRequest(r)?i.toBatchPayload(r):i.toPayload(r);if(h.isNullish(this.middleware)||(s=yield this.middleware.processRequest(s)),a.isWeb3Provider(e)){let t;try{t=yield e.request(s)}catch(o){t=o}return this._processJsonRpcResponse(s,t,{legacy:!1,error:!1})}if(a.isEIP1193Provider(e))return e.request(s).then(t=>this._processJsonRpcResponse(s,t,{legacy:!0,error:!1})).catch(t=>this._processJsonRpcResponse(s,t,{legacy:!0,error:!0}));if(a.isLegacyRequestProvider(e))return new Promise((t,o)=>{const n=c=>{o(this._processJsonRpcResponse(s,c,{legacy:!0,error:!0}))},d=c=>t(this._processJsonRpcResponse(s,c,{legacy:!0,error:!1})),p=e.request(s,(c,u)=>c?n(c):d(u));y.isPromise(p)&&p.then(d).catch(u=>{try{const l=this._processJsonRpcResponse(s,u,{legacy:!0,error:!0});o(l)}catch(l){o(l)}})});if(a.isLegacySendProvider(e))return new Promise((t,o)=>{e.send(s,(n,d)=>{if(n)return o(this._processJsonRpcResponse(s,n,{legacy:!0,error:!0}));if(h.isNullish(d))throw new R.ResponseError({},'Got a "nullish" response from provider.');return t(this._processJsonRpcResponse(s,d,{legacy:!0,error:!1}))})});if(a.isLegacySendAsyncProvider(e))return e.sendAsync(s).then(t=>this._processJsonRpcResponse(s,t,{legacy:!0,error:!1})).catch(t=>this._processJsonRpcResponse(s,t,{legacy:!0,error:!0}));throw new E.ProviderError("Provider does not have a request or send method to use.")})}_processJsonRpcResponse(r,e,{legacy:s,error:t}){if(h.isNullish(e))return this._buildResponse(r,null,t);if(i.isResponseWithError(e)){if(this.useRpcCallSpecification&&i.isResponseRpcError(e)){const o=e;if(w.rpcErrorsMap.get(o.error.code)){const n=w.rpcErrorsMap.get(o.error.code).error;throw new n(o)}else throw new w.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(!s&&i.isBatchRequest(r)&&i.isBatchResponse(e)||s&&!t&&i.isBatchRequest(r))return e;if(s&&t&&i.isBatchRequest(r))throw e;if(s&&!i.isResponseWithError(e)&&!i.isResponseWithResult(e))return this._buildResponse(r,e,t);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 P.ContractExecutionError(e);return!1}_buildResponse(r,e,s){const t={jsonrpc:"2.0",id:i.isBatchRequest(r)?r[0].id:"id"in r?r.id:null};return s?Object.assign(Object.assign({},t),{error:e}):Object.assign(Object.assign({},t),{result:e})}}exports.Web3RequestManager=v;
@@ -1,57 +1,57 @@
1
- import { ContractExecutionError as y } from "../../../web3-errors/lib/esm/errors/contract_errors.js";
1
+ import { ContractExecutionError as b } from "../../../web3-errors/lib/esm/errors/contract_errors.js";
2
2
  import { ProviderError as m } from "../../../web3-errors/lib/esm/errors/provider_errors.js";
3
- import { ResponseError as h, InvalidResponseError as P } from "../../../web3-errors/lib/esm/errors/response_errors.js";
3
+ import { ResponseError as l, InvalidResponseError as P } from "../../../web3-errors/lib/esm/errors/response_errors.js";
4
4
  import { rpcErrorsMap as g, RpcError as O } from "../../../web3-errors/lib/esm/errors/rpc_errors.js";
5
5
  import A from "../../../web3-providers-http/lib/esm/index.js";
6
- import C from "../../../web3-providers-ws/lib/esm/index.js";
7
- import { isWeb3Provider as J, isEIP1193Provider as D, isLegacyRequestProvider as G, isLegacySendProvider as H, isLegacySendAsyncProvider as I } from "./utils.js";
8
- import { Web3EventEmitter as q } from "./web3_event_emitter.js";
6
+ import J from "../../../web3-providers-ws/lib/esm/index.js";
7
+ import { isWeb3Provider as C, isEIP1193Provider as q, isLegacyRequestProvider as D, isLegacySendProvider as G, isLegacySendAsyncProvider as H } from "./utils.js";
8
+ import { Web3EventEmitter as I } from "./web3_event_emitter.js";
9
9
  import { isPromise as W } from "../../../web3-utils/lib/esm/promise_helpers.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";
10
+ import { isResponseWithResult as p, isBatchRequest as u, toBatchPayload as B, toPayload as N, isResponseWithError as v, 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 = function(R, e, r, t) {
12
+ var E = function(R, r, e, t) {
13
13
  function i(s) {
14
- return s instanceof r ? s : new r(function(o) {
14
+ return s instanceof e ? s : new e(function(o) {
15
15
  o(s);
16
16
  });
17
17
  }
18
- return new (r || (r = Promise))(function(s, o) {
18
+ return new (e || (e = Promise))(function(s, o) {
19
19
  function f(c) {
20
20
  try {
21
21
  n(t.next(c));
22
- } catch (w) {
23
- o(w);
22
+ } catch (h) {
23
+ o(h);
24
24
  }
25
25
  }
26
26
  function a(c) {
27
27
  try {
28
28
  n(t.throw(c));
29
- } catch (w) {
30
- o(w);
29
+ } catch (h) {
30
+ o(h);
31
31
  }
32
32
  }
33
33
  function n(c) {
34
34
  c.done ? s(c.value) : i(c.value).then(f, a);
35
35
  }
36
- n((t = t.apply(R, e || [])).next());
36
+ n((t = t.apply(R, r || [])).next());
37
37
  });
38
- }, v;
38
+ }, w;
39
39
  (function(R) {
40
40
  R.PROVIDER_CHANGED = "PROVIDER_CHANGED", R.BEFORE_PROVIDER_CHANGE = "BEFORE_PROVIDER_CHANGE";
41
- })(v || (v = {}));
42
- const b = {
41
+ })(w || (w = {}));
42
+ const y = {
43
43
  HttpProvider: A,
44
- WebsocketProvider: C
44
+ WebsocketProvider: J
45
45
  };
46
- class _ extends q {
47
- constructor(e, r) {
48
- super(), d(e) || this.setProvider(e), this.useRpcCallSpecification = r;
46
+ class _ extends I {
47
+ constructor(r, e, t) {
48
+ super(), d(r) || this.setProvider(r), this.useRpcCallSpecification = e, d(t) || (this.middleware = t);
49
49
  }
50
50
  /**
51
51
  * Will return all available providers
52
52
  */
53
53
  static get providers() {
54
- return b;
54
+ return y;
55
55
  }
56
56
  /**
57
57
  * Will return the current provider.
@@ -66,25 +66,28 @@ class _ extends q {
66
66
  */
67
67
  // eslint-disable-next-line class-methods-use-this
68
68
  get providers() {
69
- return b;
69
+ return y;
70
70
  }
71
71
  /**
72
72
  * Use to set provider. Provider can be a provider instance or a string.
73
73
  *
74
74
  * @param provider - The provider to set
75
75
  */
76
- setProvider(e) {
77
- let r;
78
- if (e && typeof e == "string" && this.providers)
79
- if (/^http(s)?:\/\//i.test(e))
80
- r = new this.providers.HttpProvider(e);
81
- else if (/^ws(s)?:\/\//i.test(e))
82
- r = new this.providers.WebsocketProvider(e);
76
+ setProvider(r) {
77
+ let e;
78
+ if (r && typeof r == "string" && this.providers)
79
+ if (/^http(s)?:\/\//i.test(r))
80
+ e = new this.providers.HttpProvider(r);
81
+ else if (/^ws(s)?:\/\//i.test(r))
82
+ e = new this.providers.WebsocketProvider(r);
83
83
  else
84
- throw new m(`Can't autodetect provider for "${e}"`);
84
+ throw new m(`Can't autodetect provider for "${r}"`);
85
85
  else
86
- d(e) ? r = void 0 : r = e;
87
- return this.emit(v.BEFORE_PROVIDER_CHANGE, this._provider), this._provider = r, this.emit(v.PROVIDER_CHANGED, this._provider), !0;
86
+ d(r) ? e = void 0 : e = r;
87
+ return this.emit(w.BEFORE_PROVIDER_CHANGE, this._provider), this._provider = e, this.emit(w.PROVIDER_CHANGED, this._provider), !0;
88
+ }
89
+ setMiddleware(r) {
90
+ this.middleware = r;
88
91
  }
89
92
  /**
90
93
  *
@@ -95,12 +98,13 @@ class _ extends q {
95
98
  * @returns The response of the request {@link ResponseType}. If there is error
96
99
  * in the response, will throw an error
97
100
  */
98
- send(e) {
101
+ send(r) {
99
102
  return E(this, void 0, void 0, function* () {
100
- const r = yield this._sendRequest(e);
101
- if (l(r))
102
- return r.result;
103
- throw new h(r);
103
+ const e = Object.assign({}, r);
104
+ let t = yield this._sendRequest(e);
105
+ if (d(this.middleware) || (t = yield this.middleware.processResponse(t)), p(t))
106
+ return t.result;
107
+ throw new l(t);
104
108
  });
105
109
  }
106
110
  /**
@@ -108,64 +112,73 @@ class _ extends q {
108
112
  *
109
113
  * @param request {@link JsonRpcBatchRequest} The batch request to send
110
114
  */
111
- sendBatch(e) {
115
+ sendBatch(r) {
112
116
  return E(this, void 0, void 0, function* () {
113
- return yield this._sendRequest(e);
117
+ return yield this._sendRequest(r);
114
118
  });
115
119
  }
116
- _sendRequest(e) {
120
+ _sendRequest(r) {
117
121
  return E(this, void 0, void 0, function* () {
118
- const { provider: r } = this;
119
- if (d(r))
122
+ const { provider: e } = this;
123
+ if (d(e))
120
124
  throw new m("Provider not available. Use `.setProvider` or `.provider=` to initialize the provider.");
121
- const t = u(e) ? B(e) : N(e);
122
- if (J(r)) {
125
+ let t = u(r) ? B(r) : N(r);
126
+ if (d(this.middleware) || (t = yield this.middleware.processRequest(t)), C(e)) {
123
127
  let i;
124
128
  try {
125
- i = yield r.request(t);
129
+ i = yield e.request(t);
126
130
  } catch (s) {
127
131
  i = s;
128
132
  }
129
133
  return this._processJsonRpcResponse(t, i, { legacy: !1, error: !1 });
130
134
  }
131
- if (D(r))
132
- return r.request(t).then((i) => this._processJsonRpcResponse(t, i, {
135
+ if (q(e))
136
+ return e.request(t).then((i) => this._processJsonRpcResponse(t, i, {
133
137
  legacy: !0,
134
138
  error: !1
135
139
  })).catch((i) => this._processJsonRpcResponse(t, i, { legacy: !0, error: !0 }));
136
- if (G(r))
140
+ if (D(e))
137
141
  return new Promise((i, s) => {
138
- const o = (n) => s(this._processJsonRpcResponse(t, n, {
139
- legacy: !0,
140
- error: !0
141
- })), f = (n) => i(this._processJsonRpcResponse(t, n, {
142
+ const o = (n) => {
143
+ s(this._processJsonRpcResponse(t, n, {
144
+ legacy: !0,
145
+ error: !0
146
+ }));
147
+ }, f = (n) => i(this._processJsonRpcResponse(t, n, {
142
148
  legacy: !0,
143
149
  error: !1
144
- })), a = r.request(
150
+ })), a = e.request(
145
151
  t,
146
152
  // a callback that is expected to be called after getting the response:
147
153
  (n, c) => n ? o(n) : f(c)
148
154
  );
149
- W(a) && a.then(f).catch(o);
155
+ W(a) && a.then(f).catch((c) => {
156
+ try {
157
+ const h = this._processJsonRpcResponse(t, c, { legacy: !0, error: !0 });
158
+ s(h);
159
+ } catch (h) {
160
+ s(h);
161
+ }
162
+ });
150
163
  });
151
- if (H(r))
164
+ if (G(e))
152
165
  return new Promise((i, s) => {
153
- r.send(t, (o, f) => {
166
+ e.send(t, (o, f) => {
154
167
  if (o)
155
168
  return s(this._processJsonRpcResponse(t, o, {
156
169
  legacy: !0,
157
170
  error: !0
158
171
  }));
159
172
  if (d(f))
160
- throw new h("", 'Got a "nullish" response from provider.');
173
+ throw new l({}, 'Got a "nullish" response from provider.');
161
174
  return i(this._processJsonRpcResponse(t, f, {
162
175
  legacy: !0,
163
176
  error: !1
164
177
  }));
165
178
  });
166
179
  });
167
- if (I(r))
168
- return r.sendAsync(t).then((i) => this._processJsonRpcResponse(t, i, { legacy: !0, error: !1 })).catch((i) => this._processJsonRpcResponse(t, i, {
180
+ if (H(e))
181
+ return e.sendAsync(t).then((i) => this._processJsonRpcResponse(t, i, { legacy: !0, error: !1 })).catch((i) => this._processJsonRpcResponse(t, i, {
169
182
  legacy: !0,
170
183
  error: !0
171
184
  }));
@@ -173,60 +186,60 @@ class _ extends q {
173
186
  });
174
187
  }
175
188
  // eslint-disable-next-line class-methods-use-this
176
- _processJsonRpcResponse(e, r, { legacy: t, error: i }) {
177
- if (d(r))
189
+ _processJsonRpcResponse(r, e, { legacy: t, error: i }) {
190
+ if (d(e))
178
191
  return this._buildResponse(
179
- e,
192
+ r,
180
193
  // Some providers uses "null" as valid empty response
181
194
  // eslint-disable-next-line no-null/no-null
182
195
  null,
183
196
  i
184
197
  );
185
- if (p(r)) {
186
- if (this.useRpcCallSpecification && j(r)) {
187
- const s = r;
198
+ if (v(e)) {
199
+ if (this.useRpcCallSpecification && j(e)) {
200
+ const s = e;
188
201
  if (g.get(s.error.code)) {
189
202
  const o = g.get(s.error.code).error;
190
203
  throw new o(s);
191
204
  } else
192
205
  throw new O(s);
193
- } else if (!_._isReverted(r))
194
- throw new P(r, e);
206
+ } else if (!_._isReverted(e))
207
+ throw new P(e, r);
195
208
  }
196
- if (l(r))
197
- return r;
198
- if (r instanceof Error)
199
- throw _._isReverted(r), r;
200
- if (!t && u(e) && V(r) || t && !i && u(e))
201
- return r;
202
- if (t && i && u(e))
203
- throw r;
204
- if (t && !p(r) && !l(r))
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) || l(r)) && !u(e) && r.id && e.id !== r.id ? new P(r) : new h(r, "Invalid response");
209
+ if (p(e))
210
+ return e;
211
+ if (e instanceof Error)
212
+ throw _._isReverted(e), e;
213
+ if (!t && u(r) && V(e) || t && !i && u(r))
214
+ return e;
215
+ if (t && i && u(r))
216
+ throw e;
217
+ if (t && !v(e) && !p(e))
218
+ return this._buildResponse(r, e, i);
219
+ throw u(r) && !Array.isArray(e) ? new l(e, "Got normal response for a batch request.") : !u(r) && Array.isArray(e) ? new l(e, "Got batch response for a normal request.") : (v(e) || p(e)) && !u(r) && e.id && r.id !== e.id ? new P(e) : new l(e, "Invalid response");
207
220
  }
208
- static _isReverted(e) {
209
- let r;
210
- if (p(e) ? r = e.error : e instanceof Error && (r = e), r != null && r.message.includes("revert"))
211
- throw new y(r);
221
+ static _isReverted(r) {
222
+ let e;
223
+ if (v(r) ? e = r.error : r instanceof Error && (e = r), e != null && e.message.includes("revert"))
224
+ throw new b(e);
212
225
  return !1;
213
226
  }
214
227
  // Need to use same types as _processJsonRpcResponse so have to declare as instance method
215
228
  // eslint-disable-next-line class-methods-use-this
216
- _buildResponse(e, r, t) {
229
+ _buildResponse(r, e, t) {
217
230
  const i = {
218
231
  jsonrpc: "2.0",
219
232
  // eslint-disable-next-line no-nested-ternary
220
- id: u(e) ? e[0].id : "id" in e ? e.id : (
233
+ id: u(r) ? r[0].id : "id" in r ? r.id : (
221
234
  // Have to use the null here explicitly
222
235
  // eslint-disable-next-line no-null/no-null
223
236
  null
224
237
  )
225
238
  };
226
- return t ? Object.assign(Object.assign({}, i), { error: r }) : Object.assign(Object.assign({}, i), { result: r });
239
+ return t ? Object.assign(Object.assign({}, i), { error: e }) : Object.assign(Object.assign({}, i), { result: e });
227
240
  }
228
241
  }
229
242
  export {
230
243
  _ as Web3RequestManager,
231
- v as Web3RequestManagerEvent
244
+ w as Web3RequestManagerEvent
232
245
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=100,_=101,E=201,I=202,N=203,T=204,A=205,O=206,S=207,D=300,C=301,L=310,P=311,t=400,o=402,c=405,n=407,s=408,V=410,M=411,U=412,X=413,G=414,H=415,B=416,K=417,F=418,Y=419,J=420,W=421,Q=422,e=423,r=424,Z=425,i=426,l=427,u=428,a=429,b=430,d=431,g=432,y=433,f=434,j=435,m=436,p=437,v=438,h=439,k=440,q=441,w=500,x=503,z=505,$=506,RR=507,_R=600,ER=602,IR=603,NR=604,TR=701,AR=702,OR=703,SR=704,DR=705,CR=706,LR=707,PR=709,tR=801,oR=802,cR=4001,nR=4100,sR=4200,VR=4900,MR=4901,UR=902,XR=903,GR=1001,HR=1002,BR=1003,KR=1004,FR=1005,YR=1006,JR=1008,WR=1009,QR=1010,eR=1011,rR=1012,ZR=1014,iR=1100,lR=1101,uR=1200,aR=-32700,bR=-32600,dR=-32601,gR=-32602,yR=-32603,fR=-32e3,jR=-32001,mR=-32002,pR=-32003,vR=-32004,hR=-32005,kR=-32006;exports.ERR_ABI_ENCODING=A;exports.ERR_CONN=w;exports.ERR_CONN_MAX_ATTEMPTS=z;exports.ERR_CONN_NOT_OPEN=x;exports.ERR_CONN_PENDING_REQUESTS=$;exports.ERR_CONTRACT=D;exports.ERR_CONTRACT_EXECUTION_REVERTED=L;exports.ERR_CONTRACT_RESOLVER_MISSING=C;exports.ERR_CONTRACT_TX_DATA_AND_INPUT=P;exports.ERR_CORE_HARDFORK_MISMATCH=lR;exports.ERR_ENS_NETWORK_NOT_SYNCED=XR;exports.ERR_ENS_UNSUPPORTED_NETWORK=UR;exports.ERR_EXISTING_PLUGIN_NAMESPACE=O;exports.ERR_FORMATTERS=E;exports.ERR_INVALID_ADDRESS=FR;exports.ERR_INVALID_BLOCK=rR;exports.ERR_INVALID_BOOLEAN=JR;exports.ERR_INVALID_BYTES=HR;exports.ERR_INVALID_CLIENT=ER;exports.ERR_INVALID_HEX=YR;exports.ERR_INVALID_LARGE_VALUE=eR;exports.ERR_INVALID_METHOD_PARAMS=S;exports.ERR_INVALID_NIBBLE_WIDTH=ZR;exports.ERR_INVALID_NUMBER=BR;exports.ERR_INVALID_PASSWORD=CR;exports.ERR_INVALID_PRIVATE_KEY=AR;exports.ERR_INVALID_RESPONSE=_;exports.ERR_INVALID_SIGNATURE=oR;exports.ERR_INVALID_SIZE=QR;exports.ERR_INVALID_STRING=GR;exports.ERR_INVALID_UNIT=KR;exports.ERR_INVALID_UNSIGNED_INTEGER=WR;exports.ERR_IV_LENGTH=LR;exports.ERR_KEY_DERIVATION_FAIL=SR;exports.ERR_KEY_VERSION_UNSUPPORTED=DR;exports.ERR_METHOD_NOT_IMPLEMENTED=I;exports.ERR_OPERATION_ABORT=T;exports.ERR_OPERATION_TIMEOUT=N;exports.ERR_PBKDF2_ITERATIONS=PR;exports.ERR_PRIVATE_KEY_LENGTH=TR;exports.ERR_PROVIDER=_R;exports.ERR_RAW_TX_UNDEFINED=n;exports.ERR_REQ_ALREADY_SENT=RR;exports.ERR_RESPONSE=R;exports.ERR_RPC_INTERNAL_ERROR=yR;exports.ERR_RPC_INVALID_INPUT=fR;exports.ERR_RPC_INVALID_JSON=aR;exports.ERR_RPC_INVALID_METHOD=dR;exports.ERR_RPC_INVALID_PARAMS=gR;exports.ERR_RPC_INVALID_REQUEST=bR;exports.ERR_RPC_LIMIT_EXCEEDED=hR;exports.ERR_RPC_MISSING_RESOURCE=jR;exports.ERR_RPC_NOT_SUPPORTED=kR;exports.ERR_RPC_TRANSACTION_REJECTED=pR;exports.ERR_RPC_UNAVAILABLE_RESOURCE=mR;exports.ERR_RPC_UNSUPPORTED_METHOD=vR;exports.ERR_SCHEMA_FORMAT=uR;exports.ERR_SIGNATURE_FAILED=tR;exports.ERR_SUBSCRIPTION=IR;exports.ERR_TX=t;exports.ERR_TX_BLOCK_TIMEOUT=g;exports.ERR_TX_CHAIN_ID_MISMATCH=U;exports.ERR_TX_CHAIN_MISMATCH=j;exports.ERR_TX_DATA_AND_INPUT=Z;exports.ERR_TX_GAS_MISMATCH=f;exports.ERR_TX_GAS_MISMATCH_INNER_ERROR=q;exports.ERR_TX_HARDFORK_MISMATCH=m;exports.ERR_TX_INVALID_CHAIN_INFO=X;exports.ERR_TX_INVALID_FEE_MARKET_GAS=K;exports.ERR_TX_INVALID_FEE_MARKET_GAS_PRICE=F;exports.ERR_TX_INVALID_LEGACY_FEE_MARKET=Y;exports.ERR_TX_INVALID_LEGACY_GAS=B;exports.ERR_TX_INVALID_NONCE_OR_CHAIN_ID=W;exports.ERR_TX_INVALID_OBJECT=J;exports.ERR_TX_INVALID_PROPERTIES_FOR_TYPE=h;exports.ERR_TX_INVALID_RECEIVER=p;exports.ERR_TX_INVALID_SENDER=s;exports.ERR_TX_LOCAL_WALLET_NOT_AVAILABLE=a;exports.ERR_TX_MISSING_CHAIN_INFO=G;exports.ERR_TX_MISSING_CUSTOM_CHAIN=V;exports.ERR_TX_MISSING_CUSTOM_CHAIN_ID=M;exports.ERR_TX_MISSING_GAS=H;exports.ERR_TX_MISSING_GAS_INNER_ERROR=k;exports.ERR_TX_NOT_FOUND=b;exports.ERR_TX_POLLING_TIMEOUT=i;exports.ERR_TX_RECEIPT_MISSING_BLOCK_NUMBER=u;exports.ERR_TX_RECEIPT_MISSING_OR_BLOCKHASH_NULL=l;exports.ERR_TX_REVERT_TRANSACTION=o;exports.ERR_TX_REVERT_TRANSACTION_CUSTOM_ERROR=v;exports.ERR_TX_REVERT_WITHOUT_REASON=c;exports.ERR_TX_SEND_TIMEOUT=d;exports.ERR_TX_SIGNING=y;exports.ERR_TX_UNABLE_TO_POPULATE_NONCE=Q;exports.ERR_TX_UNSUPPORTED_EIP_1559=e;exports.ERR_TX_UNSUPPORTED_TYPE=r;exports.ERR_UNSUPPORTED_KDF=OR;exports.ERR_VALIDATION=iR;exports.ERR_WS_PROVIDER=NR;exports.JSONRPC_ERR_CHAIN_DISCONNECTED=MR;exports.JSONRPC_ERR_DISCONNECTED=VR;exports.JSONRPC_ERR_REJECTED_REQUEST=cR;exports.JSONRPC_ERR_UNAUTHORIZED=nR;exports.JSONRPC_ERR_UNSUPPORTED_METHOD=sR;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=100,_=101,E=201,I=202,N=203,T=204,A=205,O=206,S=207,D=208,C=300,L=301,P=310,t=311,o=400,c=402,n=405,s=407,V=408,M=410,U=411,X=412,G=413,H=414,B=415,K=416,F=417,Y=418,J=419,W=420,Q=421,e=422,r=423,Z=424,i=425,l=426,u=427,a=428,b=429,d=430,g=431,y=432,f=433,j=434,m=435,p=436,v=437,h=438,k=439,q=440,w=441,x=500,z=503,$=505,RR=506,_R=507,ER=600,IR=602,NR=603,TR=604,AR=701,OR=702,SR=703,DR=704,CR=705,LR=706,PR=707,tR=709,oR=801,cR=802,nR=4001,sR=4100,VR=4200,MR=4900,UR=4901,XR=902,GR=903,HR=1001,BR=1002,KR=1003,FR=1004,YR=1005,JR=1006,WR=1008,QR=1009,eR=1010,rR=1011,ZR=1012,iR=1014,lR=1015,uR=1100,aR=1101,bR=1200,dR=-32700,gR=-32600,yR=-32601,fR=-32602,jR=-32603,mR=-32e3,pR=-32001,vR=-32002,hR=-32003,kR=-32004,qR=-32005,wR=-32006;exports.ERR_ABI_ENCODING=A;exports.ERR_CONN=x;exports.ERR_CONN_MAX_ATTEMPTS=$;exports.ERR_CONN_NOT_OPEN=z;exports.ERR_CONN_PENDING_REQUESTS=RR;exports.ERR_CONTRACT=C;exports.ERR_CONTRACT_EXECUTION_REVERTED=P;exports.ERR_CONTRACT_RESOLVER_MISSING=L;exports.ERR_CONTRACT_TX_DATA_AND_INPUT=t;exports.ERR_CORE_HARDFORK_MISMATCH=aR;exports.ERR_ENS_NETWORK_NOT_SYNCED=GR;exports.ERR_ENS_UNSUPPORTED_NETWORK=XR;exports.ERR_EXISTING_PLUGIN_NAMESPACE=O;exports.ERR_FORMATTERS=E;exports.ERR_INVALID_ADDRESS=YR;exports.ERR_INVALID_BLOCK=ZR;exports.ERR_INVALID_BOOLEAN=WR;exports.ERR_INVALID_BYTES=BR;exports.ERR_INVALID_CLIENT=IR;exports.ERR_INVALID_HEX=JR;exports.ERR_INVALID_INTEGER=lR;exports.ERR_INVALID_LARGE_VALUE=rR;exports.ERR_INVALID_METHOD_PARAMS=S;exports.ERR_INVALID_NIBBLE_WIDTH=iR;exports.ERR_INVALID_NUMBER=KR;exports.ERR_INVALID_PASSWORD=LR;exports.ERR_INVALID_PRIVATE_KEY=OR;exports.ERR_INVALID_RESPONSE=_;exports.ERR_INVALID_SIGNATURE=cR;exports.ERR_INVALID_SIZE=eR;exports.ERR_INVALID_STRING=HR;exports.ERR_INVALID_UNIT=FR;exports.ERR_INVALID_UNSIGNED_INTEGER=QR;exports.ERR_IV_LENGTH=PR;exports.ERR_KEY_DERIVATION_FAIL=DR;exports.ERR_KEY_VERSION_UNSUPPORTED=CR;exports.ERR_METHOD_NOT_IMPLEMENTED=I;exports.ERR_MULTIPLE_ERRORS=D;exports.ERR_OPERATION_ABORT=T;exports.ERR_OPERATION_TIMEOUT=N;exports.ERR_PBKDF2_ITERATIONS=tR;exports.ERR_PRIVATE_KEY_LENGTH=AR;exports.ERR_PROVIDER=ER;exports.ERR_RAW_TX_UNDEFINED=s;exports.ERR_REQ_ALREADY_SENT=_R;exports.ERR_RESPONSE=R;exports.ERR_RPC_INTERNAL_ERROR=jR;exports.ERR_RPC_INVALID_INPUT=mR;exports.ERR_RPC_INVALID_JSON=dR;exports.ERR_RPC_INVALID_METHOD=yR;exports.ERR_RPC_INVALID_PARAMS=fR;exports.ERR_RPC_INVALID_REQUEST=gR;exports.ERR_RPC_LIMIT_EXCEEDED=qR;exports.ERR_RPC_MISSING_RESOURCE=pR;exports.ERR_RPC_NOT_SUPPORTED=wR;exports.ERR_RPC_TRANSACTION_REJECTED=hR;exports.ERR_RPC_UNAVAILABLE_RESOURCE=vR;exports.ERR_RPC_UNSUPPORTED_METHOD=kR;exports.ERR_SCHEMA_FORMAT=bR;exports.ERR_SIGNATURE_FAILED=oR;exports.ERR_SUBSCRIPTION=NR;exports.ERR_TX=o;exports.ERR_TX_BLOCK_TIMEOUT=y;exports.ERR_TX_CHAIN_ID_MISMATCH=X;exports.ERR_TX_CHAIN_MISMATCH=m;exports.ERR_TX_DATA_AND_INPUT=i;exports.ERR_TX_GAS_MISMATCH=j;exports.ERR_TX_GAS_MISMATCH_INNER_ERROR=w;exports.ERR_TX_HARDFORK_MISMATCH=p;exports.ERR_TX_INVALID_CHAIN_INFO=G;exports.ERR_TX_INVALID_FEE_MARKET_GAS=F;exports.ERR_TX_INVALID_FEE_MARKET_GAS_PRICE=Y;exports.ERR_TX_INVALID_LEGACY_FEE_MARKET=J;exports.ERR_TX_INVALID_LEGACY_GAS=K;exports.ERR_TX_INVALID_NONCE_OR_CHAIN_ID=Q;exports.ERR_TX_INVALID_OBJECT=W;exports.ERR_TX_INVALID_PROPERTIES_FOR_TYPE=k;exports.ERR_TX_INVALID_RECEIVER=v;exports.ERR_TX_INVALID_SENDER=V;exports.ERR_TX_LOCAL_WALLET_NOT_AVAILABLE=b;exports.ERR_TX_MISSING_CHAIN_INFO=H;exports.ERR_TX_MISSING_CUSTOM_CHAIN=M;exports.ERR_TX_MISSING_CUSTOM_CHAIN_ID=U;exports.ERR_TX_MISSING_GAS=B;exports.ERR_TX_MISSING_GAS_INNER_ERROR=q;exports.ERR_TX_NOT_FOUND=d;exports.ERR_TX_POLLING_TIMEOUT=l;exports.ERR_TX_RECEIPT_MISSING_BLOCK_NUMBER=a;exports.ERR_TX_RECEIPT_MISSING_OR_BLOCKHASH_NULL=u;exports.ERR_TX_REVERT_TRANSACTION=c;exports.ERR_TX_REVERT_TRANSACTION_CUSTOM_ERROR=h;exports.ERR_TX_REVERT_WITHOUT_REASON=n;exports.ERR_TX_SEND_TIMEOUT=g;exports.ERR_TX_SIGNING=f;exports.ERR_TX_UNABLE_TO_POPULATE_NONCE=e;exports.ERR_TX_UNSUPPORTED_EIP_1559=r;exports.ERR_TX_UNSUPPORTED_TYPE=Z;exports.ERR_UNSUPPORTED_KDF=SR;exports.ERR_VALIDATION=uR;exports.ERR_WS_PROVIDER=TR;exports.JSONRPC_ERR_CHAIN_DISCONNECTED=UR;exports.JSONRPC_ERR_DISCONNECTED=MR;exports.JSONRPC_ERR_REJECTED_REQUEST=nR;exports.JSONRPC_ERR_UNAUTHORIZED=sR;exports.JSONRPC_ERR_UNSUPPORTED_METHOD=VR;