@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
@@ -1,17 +1,17 @@
1
- import { ETH_DATA_FORMAT as m, DEFAULT_RETURN_FORMAT as T } from "../../../../web3-types/lib/esm/data_format_types.js";
1
+ import { ETH_DATA_FORMAT as m } 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
4
  import "../../../../web3-eth-accounts/lib/esm/wallet.js";
5
- import { privateKeyToAddress as v } from "../../../../web3-eth-accounts/lib/esm/account.js";
5
+ import { privateKeyToAddress as g } from "../../../../web3-eth-accounts/lib/esm/account.js";
6
6
  import "../../../../crc-32/crc32.js";
7
7
  import "../../../../web3-eth-accounts/lib/esm/common/types.js";
8
- import { LocalWalletNotAvailableError as h, InvalidTransactionWithSender as b, InvalidTransactionWithReceiver as x, TransactionDataAndInputError as y, UnableToPopulateNonceError as C } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
8
+ import { LocalWalletNotAvailableError as h, InvalidTransactionWithSender as v, InvalidTransactionWithReceiver as b, TransactionDataAndInputError as x, UnableToPopulateNonceError as y } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
9
9
  import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
10
10
  import "../../../../web3-validator/lib/esm/formats.js";
11
- import { isHexStrict as A } from "../../../../web3-validator/lib/esm/validation/string.js";
11
+ import { isHexStrict as C } from "../../../../web3-validator/lib/esm/validation/string.js";
12
12
  import "../../../../web3-validator/lib/esm/default_validator.js";
13
13
  import { isAddress as I } from "../../../../web3-validator/lib/esm/validation/address.js";
14
- import { isNumber as _ } from "../../../../web3-validator/lib/esm/validation/numbers.js";
14
+ import { isNumber as A } from "../../../../web3-validator/lib/esm/validation/numbers.js";
15
15
  import { isNullish as n } from "../../../../web3-validator/lib/esm/validation/object.js";
16
16
  import "../../../../web3-eth-accounts/lib/esm/tx/constants.js";
17
17
  import "../../../../web3-eth-accounts/lib/esm/common/enums.js";
@@ -21,84 +21,84 @@ import "../../../../@ethereumjs/rlp/dist/index.js";
21
21
  import "../../../../web3-eth-accounts/lib/esm/tx/types.js";
22
22
  import "../../../../web3-net/lib/esm/net.js";
23
23
  import { getId as O } from "../../../../web3-net/lib/esm/rpc_method_wrappers.js";
24
- import { NUMBER_DATA_FORMAT as k } from "../constants.js";
25
- import { getChainId as L, estimateGas as j, getTransactionCount as N } from "../rpc_method_wrappers.js";
26
- import { detectTransactionType as E } from "./detect_transaction_type.js";
24
+ import { NUMBER_DATA_FORMAT as _ } from "../constants.js";
25
+ import { getChainId as k, estimateGas as j, getTransactionCount as L } from "../rpc_method_wrappers.js";
26
+ import { detectTransactionType as N } from "./detect_transaction_type.js";
27
27
  import { transactionSchema as R } from "../schemas.js";
28
28
  import { getTransactionGasPricing as B } from "./get_transaction_gas_pricing.js";
29
- import { format as d } from "../../../../web3-utils/lib/esm/formatter.js";
29
+ import { format as c } from "../../../../web3-utils/lib/esm/formatter.js";
30
30
  import { bytesToHex as w } from "../../../../web3-utils/lib/esm/converters.js";
31
31
  var p = function(i, r, e, t) {
32
32
  function o(a) {
33
- return a instanceof e ? a : new e(function(c) {
34
- c(a);
33
+ return a instanceof e ? a : new e(function(d) {
34
+ d(a);
35
35
  });
36
36
  }
37
- return new (e || (e = Promise))(function(a, c) {
37
+ return new (e || (e = Promise))(function(a, d) {
38
38
  function u(f) {
39
39
  try {
40
40
  s(t.next(f));
41
41
  } catch (l) {
42
- c(l);
42
+ d(l);
43
43
  }
44
44
  }
45
- function g(f) {
45
+ function T(f) {
46
46
  try {
47
47
  s(t.throw(f));
48
48
  } catch (l) {
49
- c(l);
49
+ d(l);
50
50
  }
51
51
  }
52
52
  function s(f) {
53
- f.done ? a(f.value) : o(f.value).then(u, g);
53
+ f.done ? a(f.value) : o(f.value).then(u, T);
54
54
  }
55
55
  s((t = t.apply(i, r || [])).next());
56
56
  });
57
57
  };
58
- const F = (i, r, e, t) => {
58
+ const E = (i, r, e, t) => {
59
59
  if (e !== void 0 && i in e && e[i] !== void 0) {
60
60
  if (typeof e[i] == "string" && I(e[i]))
61
61
  return e[i];
62
- if (!A(e[i]) && _(e[i])) {
62
+ if (!C(e[i]) && A(e[i])) {
63
63
  if (r.wallet) {
64
- const o = r.wallet.get(d({ format: "uint" }, e[i], k));
64
+ const o = r.wallet.get(c({ format: "uint" }, e[i], _));
65
65
  if (!n(o))
66
66
  return o.address;
67
67
  throw new h();
68
68
  }
69
69
  throw new h();
70
70
  } else
71
- throw i === "from" ? new b(e.from) : (
71
+ throw i === "from" ? new v(e.from) : (
72
72
  // eslint-disable-next-line @typescript-eslint/no-unsafe-call
73
- new x(e.to)
73
+ new b(e.to)
74
74
  );
75
75
  }
76
76
  if (i === "from") {
77
77
  if (!n(t))
78
- return v(t);
78
+ return g(t);
79
79
  if (!n(r.defaultAccount))
80
80
  return r.defaultAccount;
81
81
  }
82
- }, G = (i, r, e = T) => p(void 0, void 0, void 0, function* () {
82
+ }, F = (i, r, e = i.defaultReturnFormat) => p(void 0, void 0, void 0, function* () {
83
83
  if (n(r))
84
- throw new C();
85
- return N(i, r, i.defaultBlock, e);
86
- }), W = (i, r) => {
87
- const e = E(i, r);
84
+ throw new y();
85
+ return L(i, r, i.defaultBlock, e);
86
+ }), G = (i, r) => {
87
+ const e = N(i, r);
88
88
  if (!n(e))
89
89
  return e;
90
90
  if (!n(r.defaultTransactionType))
91
- return d({ format: "uint" }, r.defaultTransactionType, m);
91
+ return c({ format: "uint" }, r.defaultTransactionType, m);
92
92
  };
93
- function D(i) {
93
+ function W(i) {
94
94
  var r, e;
95
95
  return p(this, void 0, void 0, function* () {
96
- let t = d(R, i.transaction, T);
97
- if (n(t.from) && (t.from = F("from", i.web3Context, void 0, i.privateKey)), n(t.nonce) && (t.nonce = yield G(i.web3Context, t.from, m)), n(t.value) && (t.value = "0x0"), n(t.data))
96
+ let t = c(R, i.transaction, i.web3Context.defaultReturnFormat);
97
+ if (n(t.from) && (t.from = E("from", i.web3Context, void 0, i.privateKey)), n(t.nonce) && (t.nonce = yield F(i.web3Context, t.from, m)), n(t.value) && (t.value = "0x0"), n(t.data))
98
98
  n(t.input) ? t.input = "0x" : t.input.startsWith("0x") || (t.input = `0x${t.input}`);
99
99
  else {
100
100
  if (!n(t.input) && t.data !== t.input)
101
- throw new y({
101
+ throw new x({
102
102
  data: w(t.data),
103
103
  input: w(t.input)
104
104
  });
@@ -106,26 +106,26 @@ function D(i) {
106
106
  }
107
107
  if (n(t.common)) {
108
108
  if (i.web3Context.defaultCommon) {
109
- const o = i.web3Context.defaultCommon, a = o.customChain.chainId, c = o.customChain.networkId, u = o.customChain.name;
110
- t.common = Object.assign(Object.assign({}, o), { customChain: { chainId: a, networkId: c, name: u } });
109
+ const o = i.web3Context.defaultCommon, a = o.customChain.chainId, d = o.customChain.networkId, u = o.customChain.name;
110
+ t.common = Object.assign(Object.assign({}, o), { customChain: { chainId: a, networkId: d, name: u } });
111
111
  }
112
112
  n(t.chain) && (t.chain = i.web3Context.defaultChain), n(t.hardfork) && (t.hardfork = i.web3Context.defaultHardfork);
113
113
  }
114
- if (n(t.chainId) && n((r = t.common) === null || r === void 0 ? void 0 : r.customChain.chainId) && (t.chainId = yield L(i.web3Context, m)), n(t.networkId) && (t.networkId = (e = i.web3Context.defaultNetworkId) !== null && e !== void 0 ? e : yield O(i.web3Context, m)), n(t.gasLimit) && !n(t.gas) && (t.gasLimit = t.gas), t.type = W(t, i.web3Context), n(t.accessList) && (t.type === "0x1" || t.type === "0x2") && (t.accessList = []), i.fillGasPrice && (t = Object.assign(Object.assign({}, t), yield B(t, i.web3Context, m))), n(t.gas) && n(t.gasLimit) && i.fillGasLimit) {
114
+ if (n(t.chainId) && n((r = t.common) === null || r === void 0 ? void 0 : r.customChain.chainId) && (t.chainId = yield k(i.web3Context, m)), n(t.networkId) && (t.networkId = (e = i.web3Context.defaultNetworkId) !== null && e !== void 0 ? e : yield O(i.web3Context, m)), n(t.gasLimit) && !n(t.gas) && (t.gasLimit = t.gas), t.type = G(t, i.web3Context), n(t.accessList) && (t.type === "0x1" || t.type === "0x2") && (t.accessList = []), i.fillGasPrice && (t = Object.assign(Object.assign({}, t), yield B(t, i.web3Context, m))), n(t.gas) && n(t.gasLimit) && i.fillGasLimit) {
115
115
  const o = yield j(i.web3Context, t, "latest", m);
116
- t = Object.assign(Object.assign({}, t), { gas: d({ format: "uint" }, o, m) });
116
+ t = Object.assign(Object.assign({}, t), { gas: c({ format: "uint" }, o, m) });
117
117
  }
118
118
  return t;
119
119
  });
120
120
  }
121
- const ht = (i) => p(void 0, void 0, void 0, function* () {
121
+ const pt = (i) => p(void 0, void 0, void 0, function* () {
122
122
  var r;
123
- return ((r = i.web3Context.transactionBuilder) !== null && r !== void 0 ? r : D)(Object.assign(Object.assign({}, i), { transaction: i.transaction }));
123
+ return ((r = i.web3Context.transactionBuilder) !== null && r !== void 0 ? r : W)(Object.assign(Object.assign({}, i), { transaction: i.transaction }));
124
124
  });
125
125
  export {
126
- D as defaultTransactionBuilder,
127
- F as getTransactionFromOrToAttr,
128
- G as getTransactionNonce,
129
- W as getTransactionType,
130
- ht as transactionBuilder
126
+ W as defaultTransactionBuilder,
127
+ E as getTransactionFromOrToAttr,
128
+ F as getTransactionNonce,
129
+ G as getTransactionType,
130
+ pt as transactionBuilder
131
131
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const T=require("./reject_if_block_timeout.cjs"),v=require("../rpc_method_wrappers.cjs"),f=require("../../../../web3-utils/lib/esm/promise_helpers.cjs");var p=function(n,c,o,t){function s(i){return i instanceof o?i:new o(function(r){r(i)})}return new(o||(o=Promise))(function(i,r){function u(e){try{a(t.next(e))}catch(l){r(l)}}function d(e){try{a(t.throw(e))}catch(l){r(l)}}function a(e){e.done?i(e.value):s(e.value).then(u,d)}a((t=t.apply(n,c||[])).next())})};function _(n,c,o){var t;return p(this,void 0,void 0,function*(){const s=(t=n.transactionReceiptPollingInterval)!==null&&t!==void 0?t:n.transactionPollingInterval,[i,r]=f.pollTillDefinedAndReturnIntervalId(()=>p(this,void 0,void 0,function*(){try{return v.getTransactionReceipt(n,c,o)}catch(l){console.warn("An error happen while trying to get the transaction receipt",l);return}}),s),[u,d]=f.rejectIfTimeout(n.transactionPollingTimeout,new m.TransactionPollingTimeoutError({numberOfSeconds:n.transactionPollingTimeout/1e3,transactionHash:c})),[a,e]=yield T.rejectIfBlockTimeout(n,c);try{return yield Promise.race([i,d,a])}finally{u&&clearTimeout(u),r&&clearInterval(r),e.clean()}})}exports.waitForTransactionReceipt=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const T=require("./reject_if_block_timeout.cjs"),_=require("../rpc_method_wrappers.cjs"),s=require("../../../../web3-utils/lib/esm/promise_helpers.cjs");var p=function(n,c,r,t){function l(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function d(e){try{a(t.next(e))}catch(u){o(u)}}function f(e){try{a(t.throw(e))}catch(u){o(u)}}function a(e){e.done?i(e.value):l(e.value).then(d,f)}a((t=t.apply(n,c||[])).next())})};function y(n,c,r,t){var l;return p(this,void 0,void 0,function*(){const i=(l=n.transactionReceiptPollingInterval)!==null&&l!==void 0?l:n.transactionPollingInterval,[o,d]=s.pollTillDefinedAndReturnIntervalId(()=>p(this,void 0,void 0,function*(){try{return(t??_.getTransactionReceipt)(n,c,r)}catch(m){console.warn("An error happen while trying to get the transaction receipt",m);return}}),i),[f,a]=s.rejectIfTimeout(n.transactionPollingTimeout,new v.TransactionPollingTimeoutError({numberOfSeconds:n.transactionPollingTimeout/1e3,transactionHash:c})),[e,u]=yield T.rejectIfBlockTimeout(n,c);try{return yield Promise.race([o,a,e])}finally{f&&clearTimeout(f),d&&clearInterval(d),u.clean()}})}exports.waitForTransactionReceipt=y;
@@ -1,61 +1,61 @@
1
- import { TransactionPollingTimeoutError as p } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
1
+ import { TransactionPollingTimeoutError as v } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
2
2
  import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
3
3
  import { rejectIfBlockTimeout as s } from "./reject_if_block_timeout.js";
4
4
  import { getTransactionReceipt as T } from "../rpc_method_wrappers.js";
5
- import { pollTillDefinedAndReturnIntervalId as v, rejectIfTimeout as I } from "../../../../web3-utils/lib/esm/promise_helpers.js";
6
- var m = function(t, c, r, e) {
7
- function f(i) {
8
- return i instanceof r ? i : new r(function(o) {
9
- o(i);
5
+ import { pollTillDefinedAndReturnIntervalId as I, rejectIfTimeout as y } from "../../../../web3-utils/lib/esm/promise_helpers.js";
6
+ var m = function(i, l, o, t) {
7
+ function c(e) {
8
+ return e instanceof o ? e : new o(function(r) {
9
+ r(e);
10
10
  });
11
11
  }
12
- return new (r || (r = Promise))(function(i, o) {
13
- function u(n) {
12
+ return new (o || (o = Promise))(function(e, r) {
13
+ function f(n) {
14
14
  try {
15
- a(e.next(n));
16
- } catch (l) {
17
- o(l);
15
+ a(t.next(n));
16
+ } catch (u) {
17
+ r(u);
18
18
  }
19
19
  }
20
20
  function d(n) {
21
21
  try {
22
- a(e.throw(n));
23
- } catch (l) {
24
- o(l);
22
+ a(t.throw(n));
23
+ } catch (u) {
24
+ r(u);
25
25
  }
26
26
  }
27
27
  function a(n) {
28
- n.done ? i(n.value) : f(n.value).then(u, d);
28
+ n.done ? e(n.value) : c(n.value).then(f, d);
29
29
  }
30
- a((e = e.apply(t, c || [])).next());
30
+ a((t = t.apply(i, l || [])).next());
31
31
  });
32
32
  };
33
- function _(t, c, r) {
34
- var e;
33
+ function P(i, l, o, t) {
34
+ var c;
35
35
  return m(this, void 0, void 0, function* () {
36
- const f = (e = t.transactionReceiptPollingInterval) !== null && e !== void 0 ? e : t.transactionPollingInterval, [i, o] = v(() => m(this, void 0, void 0, function* () {
36
+ const e = (c = i.transactionReceiptPollingInterval) !== null && c !== void 0 ? c : i.transactionPollingInterval, [r, f] = I(() => m(this, void 0, void 0, function* () {
37
37
  try {
38
- return T(t, c, r);
39
- } catch (l) {
40
- console.warn("An error happen while trying to get the transaction receipt", l);
38
+ return (t ?? T)(i, l, o);
39
+ } catch (p) {
40
+ console.warn("An error happen while trying to get the transaction receipt", p);
41
41
  return;
42
42
  }
43
- }), f), [u, d] = I(t.transactionPollingTimeout, new p({
44
- numberOfSeconds: t.transactionPollingTimeout / 1e3,
45
- transactionHash: c
46
- })), [a, n] = yield s(t, c);
43
+ }), e), [d, a] = y(i.transactionPollingTimeout, new v({
44
+ numberOfSeconds: i.transactionPollingTimeout / 1e3,
45
+ transactionHash: l
46
+ })), [n, u] = yield s(i, l);
47
47
  try {
48
48
  return yield Promise.race([
49
- i,
50
- d,
51
- a
49
+ r,
50
+ a,
51
+ n
52
52
  // this will throw an error on Transaction Block Timeout
53
53
  ]);
54
54
  } finally {
55
- u && clearTimeout(u), o && clearInterval(o), n.clean();
55
+ d && clearTimeout(d), f && clearInterval(f), u.clean();
56
56
  }
57
57
  });
58
58
  }
59
59
  export {
60
- _ as waitForTransactionReceipt
60
+ P as waitForTransactionReceipt
61
61
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../../web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const h=require("../schemas.cjs"),v=require("../../../../web3-utils/lib/esm/converters.cjs"),u=require("../../../../web3-utils/lib/esm/formatter.cjs");var y=function(i,l,o,t){function c(n){return n instanceof o?n:new o(function(a){a(n)})}return new(o||(o=Promise))(function(n,a){function r(e){try{s(t.next(e))}catch(f){a(f)}}function d(e){try{s(t.throw(e))}catch(f){a(f)}}function s(e){e.done?n(e.value):c(e.value).then(r,d)}s((t=t.apply(i,l||[])).next())})};const B=({web3Context:i,transactionReceipt:l,transactionPromiEvent:o,returnFormat:t})=>{var c;let n=1;const a=setInterval(()=>{y(void 0,void 0,void 0,function*(){n>=i.transactionConfirmationBlocks&&clearInterval(a);const r=yield m.getBlockByNumber(i.requestManager,v.numberToHex(BigInt(l.blockNumber)+BigInt(n)),!1);r!=null&&r.hash&&(n+=1,o.emit("confirmation",{confirmations:u.format({format:"uint"},n,t),receipt:u.format(h.transactionReceiptSchema,l,t),latestBlockHash:u.format({format:"bytes32"},r.hash,t)}))})},(c=i.transactionReceiptPollingInterval)!==null&&c!==void 0?c:i.transactionPollingInterval)};exports.watchTransactionByPolling=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../../web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const h=require("../schemas.cjs"),m=require("../../../../web3-utils/lib/esm/converters.cjs"),d=require("../../../../web3-utils/lib/esm/formatter.cjs");var y=function(o,l,r,i){function c(n){return n instanceof r?n:new r(function(t){t(n)})}return new(r||(r=Promise))(function(n,t){function f(e){try{s(i.next(e))}catch(u){t(u)}}function a(e){try{s(i.throw(e))}catch(u){t(u)}}function s(e){e.done?n(e.value):c(e.value).then(f,a)}s((i=i.apply(o,l||[])).next())})};const B=({web3Context:o,transactionReceipt:l,transactionPromiEvent:r,customTransactionReceiptSchema:i,returnFormat:c})=>{var n;let t=1;const f=setInterval(()=>{y(void 0,void 0,void 0,function*(){t>=o.transactionConfirmationBlocks&&clearInterval(f);const a=yield v.getBlockByNumber(o.requestManager,m.numberToHex(BigInt(l.blockNumber)+BigInt(t)),!1);a!=null&&a.hash&&(t+=1,r.emit("confirmation",{confirmations:d.format({format:"uint"},t,c),receipt:d.format(i??h.transactionReceiptSchema,l,c),latestBlockHash:d.format({format:"bytes32"},a.hash,c)}))})},(n=o.transactionReceiptPollingInterval)!==null&&n!==void 0?n:o.transactionPollingInterval)};exports.watchTransactionByPolling=B;
@@ -1,50 +1,50 @@
1
1
  import { getBlockByNumber as u } from "../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
2
2
  import "../../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
3
3
  import "../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
4
- import { transactionReceiptSchema as p } from "../schemas.js";
5
- import { numberToHex as v } from "../../../../web3-utils/lib/esm/converters.js";
4
+ import { transactionReceiptSchema as v } from "../schemas.js";
5
+ import { numberToHex as p } from "../../../../web3-utils/lib/esm/converters.js";
6
6
  import { format as s } from "../../../../web3-utils/lib/esm/formatter.js";
7
- var h = function(o, f, a, i) {
8
- function r(n) {
9
- return n instanceof a ? n : new a(function(c) {
10
- c(n);
7
+ var h = function(a, f, r, o) {
8
+ function e(n) {
9
+ return n instanceof r ? n : new r(function(i) {
10
+ i(n);
11
11
  });
12
12
  }
13
- return new (a || (a = Promise))(function(n, c) {
14
- function e(t) {
13
+ return new (r || (r = Promise))(function(n, i) {
14
+ function c(t) {
15
15
  try {
16
- l(i.next(t));
16
+ d(o.next(t));
17
17
  } catch (m) {
18
- c(m);
18
+ i(m);
19
19
  }
20
20
  }
21
- function d(t) {
21
+ function l(t) {
22
22
  try {
23
- l(i.throw(t));
23
+ d(o.throw(t));
24
24
  } catch (m) {
25
- c(m);
25
+ i(m);
26
26
  }
27
27
  }
28
- function l(t) {
29
- t.done ? n(t.value) : r(t.value).then(e, d);
28
+ function d(t) {
29
+ t.done ? n(t.value) : e(t.value).then(c, l);
30
30
  }
31
- l((i = i.apply(o, f || [])).next());
31
+ d((o = o.apply(a, f || [])).next());
32
32
  });
33
33
  };
34
- const w = ({ web3Context: o, transactionReceipt: f, transactionPromiEvent: a, returnFormat: i }) => {
35
- var r;
36
- let n = 1;
34
+ const w = ({ web3Context: a, transactionReceipt: f, transactionPromiEvent: r, customTransactionReceiptSchema: o, returnFormat: e }) => {
35
+ var n;
36
+ let i = 1;
37
37
  const c = setInterval(() => {
38
38
  h(void 0, void 0, void 0, function* () {
39
- n >= o.transactionConfirmationBlocks && clearInterval(c);
40
- const e = yield u(o.requestManager, v(BigInt(f.blockNumber) + BigInt(n)), !1);
41
- e != null && e.hash && (n += 1, a.emit("confirmation", {
42
- confirmations: s({ format: "uint" }, n, i),
43
- receipt: s(p, f, i),
44
- latestBlockHash: s({ format: "bytes32" }, e.hash, i)
39
+ i >= a.transactionConfirmationBlocks && clearInterval(c);
40
+ const l = yield u(a.requestManager, p(BigInt(f.blockNumber) + BigInt(i)), !1);
41
+ l != null && l.hash && (i += 1, r.emit("confirmation", {
42
+ confirmations: s({ format: "uint" }, i, e),
43
+ receipt: s(o ?? v, f, e),
44
+ latestBlockHash: s({ format: "bytes32" }, l.hash, e)
45
45
  }));
46
46
  });
47
- }, (r = o.transactionReceiptPollingInterval) !== null && r !== void 0 ? r : o.transactionPollingInterval);
47
+ }, (n = a.transactionReceiptPollingInterval) !== null && n !== void 0 ? n : a.transactionPollingInterval);
48
48
  };
49
49
  export {
50
50
  w as watchTransactionByPolling
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../schemas.cjs"),v=require("./watch_transaction_by_polling.cjs"),h=require("../../../../web3-utils/lib/esm/formatter.cjs");var m=function(o,u,t,n){function l(c){return c instanceof t?c:new t(function(s){s(c)})}return new(t||(t=Promise))(function(c,s){function d(a){try{f(n.next(a))}catch(r){s(r)}}function i(a){try{f(n.throw(a))}catch(r){s(r)}}function f(a){a.done?c(a.value):l(a.value).then(d,i)}f((n=n.apply(o,u||[])).next())})};const y=({web3Context:o,transactionReceipt:u,transactionPromiEvent:t,returnFormat:n})=>{let l=!0,c;setImmediate(()=>{var s;(s=o.subscriptionManager)===null||s===void 0||s.subscribe("newHeads").then(d=>{d.on("data",i=>m(void 0,void 0,void 0,function*(){var f;if(l=!1,!(i!=null&&i.number)||c===(i==null?void 0:i.parentHash))return;c=i==null?void 0:i.parentHash;const a=BigInt(i.number)-BigInt(u.blockNumber)+BigInt(1);t.emit("confirmation",{confirmations:h.format({format:"uint"},a,n),receipt:h.format(e.transactionReceiptSchema,u,n),latestBlockHash:h.format({format:"bytes32"},i.parentHash,n)}),a>=o.transactionConfirmationBlocks&&(yield(f=o.subscriptionManager)===null||f===void 0?void 0:f.removeSubscription(d))})),d.on("error",()=>m(void 0,void 0,void 0,function*(){var i;yield(i=o.subscriptionManager)===null||i===void 0?void 0:i.removeSubscription(d),l=!1,v.watchTransactionByPolling({web3Context:o,transactionReceipt:u,transactionPromiEvent:t,returnFormat:n})}))}).catch(()=>{l=!1,v.watchTransactionByPolling({web3Context:o,transactionReceipt:u,transactionPromiEvent:t,returnFormat:n})})}),setTimeout(()=>{l&&v.watchTransactionByPolling({web3Context:o,transactionReceipt:u,transactionPromiEvent:t,returnFormat:n})},o.blockHeaderTimeout*1e3)};exports.watchTransactionBySubscription=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../schemas.cjs"),c=require("./watch_transaction_by_polling.cjs"),h=require("../../../../web3-utils/lib/esm/formatter.cjs");var y=function(o,u,f,a){function l(t){return t instanceof f?t:new f(function(d){d(t)})}return new(f||(f=Promise))(function(t,d){function r(n){try{i(a.next(n))}catch(v){d(v)}}function s(n){try{i(a.throw(n))}catch(v){d(v)}}function i(n){n.done?t(n.value):l(n.value).then(r,s)}i((a=a.apply(o,u||[])).next())})};const _=({web3Context:o,transactionReceipt:u,transactionPromiEvent:f,customTransactionReceiptSchema:a,returnFormat:l})=>{let t=!0,d;setImmediate(()=>{var r;(r=o.subscriptionManager)===null||r===void 0||r.subscribe("newHeads").then(s=>{s.on("data",i=>y(void 0,void 0,void 0,function*(){var n;if(t=!1,!(i!=null&&i.number)||d===(i==null?void 0:i.parentHash))return;d=i==null?void 0:i.parentHash;const v=BigInt(i.number)-BigInt(u.blockNumber)+BigInt(1);f.emit("confirmation",{confirmations:h.format({format:"uint"},v,l),receipt:h.format(a??g.transactionReceiptSchema,u,l),latestBlockHash:h.format({format:"bytes32"},i.parentHash,l)}),v>=o.transactionConfirmationBlocks&&(yield(n=o.subscriptionManager)===null||n===void 0?void 0:n.removeSubscription(s))})),s.on("error",()=>y(void 0,void 0,void 0,function*(){var i;yield(i=o.subscriptionManager)===null||i===void 0?void 0:i.removeSubscription(s),t=!1,c.watchTransactionByPolling({web3Context:o,transactionReceipt:u,transactionPromiEvent:f,customTransactionReceiptSchema:a,returnFormat:l})}))}).catch(()=>{t=!1,c.watchTransactionByPolling({web3Context:o,transactionReceipt:u,customTransactionReceiptSchema:a,transactionPromiEvent:f,returnFormat:l})})}),setTimeout(()=>{t&&c.watchTransactionByPolling({web3Context:o,transactionReceipt:u,transactionPromiEvent:f,returnFormat:l})},o.blockHeaderTimeout*1e3)};exports.watchTransactionBySubscription=_;
@@ -1,77 +1,79 @@
1
- import { transactionReceiptSchema as p } from "../schemas.js";
1
+ import { transactionReceiptSchema as y } from "../schemas.js";
2
2
  import { watchTransactionByPolling as m } from "./watch_transaction_by_polling.js";
3
- import { format as h } from "../../../../web3-utils/lib/esm/formatter.js";
4
- var r = function(n, d, a, o) {
5
- function v(t) {
6
- return t instanceof a ? t : new a(function(u) {
7
- u(t);
3
+ import { format as r } from "../../../../web3-utils/lib/esm/formatter.js";
4
+ var p = function(f, v, u, n) {
5
+ function l(d) {
6
+ return d instanceof u ? d : new u(function(a) {
7
+ a(d);
8
8
  });
9
9
  }
10
- return new (a || (a = Promise))(function(t, u) {
11
- function l(f) {
10
+ return new (u || (u = Promise))(function(d, a) {
11
+ function h(o) {
12
12
  try {
13
- s(o.next(f));
14
- } catch (c) {
15
- u(c);
13
+ i(n.next(o));
14
+ } catch (s) {
15
+ a(s);
16
16
  }
17
17
  }
18
- function i(f) {
18
+ function t(o) {
19
19
  try {
20
- s(o.throw(f));
21
- } catch (c) {
22
- u(c);
20
+ i(n.throw(o));
21
+ } catch (s) {
22
+ a(s);
23
23
  }
24
24
  }
25
- function s(f) {
26
- f.done ? t(f.value) : v(f.value).then(l, i);
25
+ function i(o) {
26
+ o.done ? d(o.value) : l(o.value).then(h, t);
27
27
  }
28
- s((o = o.apply(n, d || [])).next());
28
+ i((n = n.apply(f, v || [])).next());
29
29
  });
30
30
  };
31
- const g = ({ web3Context: n, transactionReceipt: d, transactionPromiEvent: a, returnFormat: o }) => {
32
- let v = !0, t;
31
+ const I = ({ web3Context: f, transactionReceipt: v, transactionPromiEvent: u, customTransactionReceiptSchema: n, returnFormat: l }) => {
32
+ let d = !0, a;
33
33
  setImmediate(() => {
34
- var u;
35
- (u = n.subscriptionManager) === null || u === void 0 || u.subscribe("newHeads").then((l) => {
36
- l.on("data", (i) => r(void 0, void 0, void 0, function* () {
37
- var s;
38
- if (v = !1, !(i != null && i.number) || // For some cases, the on-data event is fired couple times for the same block!
34
+ var h;
35
+ (h = f.subscriptionManager) === null || h === void 0 || h.subscribe("newHeads").then((t) => {
36
+ t.on("data", (i) => p(void 0, void 0, void 0, function* () {
37
+ var o;
38
+ if (d = !1, !(i != null && i.number) || // For some cases, the on-data event is fired couple times for the same block!
39
39
  // This needs investigation but seems to be because of multiple `subscription.on('data'...)` even this should not cause that.
40
- t === (i == null ? void 0 : i.parentHash))
40
+ a === (i == null ? void 0 : i.parentHash))
41
41
  return;
42
- t = i == null ? void 0 : i.parentHash;
43
- const f = BigInt(i.number) - BigInt(d.blockNumber) + BigInt(1);
44
- a.emit("confirmation", {
45
- confirmations: h({ format: "uint" }, f, o),
46
- receipt: h(p, d, o),
47
- latestBlockHash: h({ format: "bytes32" }, i.parentHash, o)
48
- }), f >= n.transactionConfirmationBlocks && (yield (s = n.subscriptionManager) === null || s === void 0 ? void 0 : s.removeSubscription(l));
49
- })), l.on("error", () => r(void 0, void 0, void 0, function* () {
42
+ a = i == null ? void 0 : i.parentHash;
43
+ const s = BigInt(i.number) - BigInt(v.blockNumber) + BigInt(1);
44
+ u.emit("confirmation", {
45
+ confirmations: r({ format: "uint" }, s, l),
46
+ receipt: r(n ?? y, v, l),
47
+ latestBlockHash: r({ format: "bytes32" }, i.parentHash, l)
48
+ }), s >= f.transactionConfirmationBlocks && (yield (o = f.subscriptionManager) === null || o === void 0 ? void 0 : o.removeSubscription(t));
49
+ })), t.on("error", () => p(void 0, void 0, void 0, function* () {
50
50
  var i;
51
- yield (i = n.subscriptionManager) === null || i === void 0 ? void 0 : i.removeSubscription(l), v = !1, m({
52
- web3Context: n,
53
- transactionReceipt: d,
54
- transactionPromiEvent: a,
55
- returnFormat: o
51
+ yield (i = f.subscriptionManager) === null || i === void 0 ? void 0 : i.removeSubscription(t), d = !1, m({
52
+ web3Context: f,
53
+ transactionReceipt: v,
54
+ transactionPromiEvent: u,
55
+ customTransactionReceiptSchema: n,
56
+ returnFormat: l
56
57
  });
57
58
  }));
58
59
  }).catch(() => {
59
- v = !1, m({
60
- web3Context: n,
61
- transactionReceipt: d,
62
- transactionPromiEvent: a,
63
- returnFormat: o
60
+ d = !1, m({
61
+ web3Context: f,
62
+ transactionReceipt: v,
63
+ customTransactionReceiptSchema: n,
64
+ transactionPromiEvent: u,
65
+ returnFormat: l
64
66
  });
65
67
  });
66
68
  }), setTimeout(() => {
67
- v && m({
68
- web3Context: n,
69
- transactionReceipt: d,
70
- transactionPromiEvent: a,
71
- returnFormat: o
69
+ d && m({
70
+ web3Context: f,
71
+ transactionReceipt: v,
72
+ transactionPromiEvent: u,
73
+ returnFormat: l
72
74
  });
73
- }, n.blockHeaderTimeout * 1e3);
75
+ }, f.blockHeaderTimeout * 1e3);
74
76
  };
75
77
  export {
76
- g as watchTransactionBySubscription
78
+ I as watchTransactionBySubscription
77
79
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");const l=require("../../../../web3-validator/lib/esm/validation/object.cjs"),f=require("../schemas.cjs"),h=require("./watch_transaction_by_polling.cjs"),n=require("./watch_transaction_by_subscription.cjs"),s=require("../../../../web3-utils/lib/esm/formatter.cjs");function t(i,e,r,u,o){if(l.isNullish(r)||l.isNullish(r.blockHash))throw new a.TransactionMissingReceiptOrBlockHashError({receipt:r,blockHash:s.format({format:"bytes32"},r==null?void 0:r.blockHash,o),transactionHash:s.format({format:"bytes32"},u,o)});if(!r.blockNumber)throw new a.TransactionReceiptMissingBlockNumberError({receipt:r});e.emit("confirmation",{confirmations:s.format({format:"uint"},1,o),receipt:s.format(f.transactionReceiptSchema,r,o),latestBlockHash:s.format({format:"bytes32"},r.blockHash,o)});const c=i.requestManager.provider;c&&"supportsSubscriptions"in c&&c.supportsSubscriptions()?n.watchTransactionBySubscription({web3Context:i,transactionReceipt:r,transactionPromiEvent:e,returnFormat:o}):h.watchTransactionByPolling({web3Context:i,transactionReceipt:r,transactionPromiEvent:e,returnFormat:o})}exports.watchTransactionForConfirmations=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");const b=require("../../../../web3-validator/lib/esm/validation/object.cjs"),q=require("../schemas.cjs"),a=require("./watch_transaction_by_polling.cjs"),n=require("./watch_transaction_by_subscription.cjs"),i=require("../../../../web3-utils/lib/esm/formatter.cjs");function c(l,u,r,h,o,s){if(b.isNullish(r)||b.isNullish(r.blockHash))throw new e.TransactionMissingReceiptOrBlockHashError({receipt:r,blockHash:i.format({format:"bytes32"},r==null?void 0:r.blockHash,o),transactionHash:i.format({format:"bytes32"},h,o)});if(!r.blockNumber)throw new e.TransactionReceiptMissingBlockNumberError({receipt:r});u.emit("confirmation",{confirmations:i.format({format:"uint"},1,o),receipt:i.format(s??q.transactionReceiptSchema,r,o),latestBlockHash:i.format({format:"bytes32"},r.blockHash,o)});const f=l.requestManager.provider;f&&"supportsSubscriptions"in f&&f.supportsSubscriptions()?n.watchTransactionBySubscription({web3Context:l,transactionReceipt:r,transactionPromiEvent:u,customTransactionReceiptSchema:s,returnFormat:o}):a.watchTransactionByPolling({web3Context:l,transactionReceipt:r,transactionPromiEvent:u,customTransactionReceiptSchema:s,returnFormat:o})}exports.watchTransactionForConfirmations=c;
@@ -1,4 +1,4 @@
1
- import { TransactionMissingReceiptOrBlockHashError as h, TransactionReceiptMissingBlockNumberError as b } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
1
+ import { TransactionMissingReceiptOrBlockHashError as h, TransactionReceiptMissingBlockNumberError as k } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
2
2
  import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
3
3
  import "../../../../web3-validator/lib/esm/formats.js";
4
4
  import "../../../../web3-validator/lib/esm/default_validator.js";
@@ -6,37 +6,39 @@ import "../../../../web3-types/lib/esm/data_format_types.js";
6
6
  import "../../../../web3-types/lib/esm/eth_types.js";
7
7
  import "../../../../web3-types/lib/esm/web3_base_provider.js";
8
8
  import { isNullish as p } from "../../../../web3-validator/lib/esm/validation/object.js";
9
- import { transactionReceiptSchema as c } from "../schemas.js";
10
- import { watchTransactionByPolling as k } from "./watch_transaction_by_polling.js";
11
- import { watchTransactionBySubscription as H } from "./watch_transaction_by_subscription.js";
12
- import { format as r } from "../../../../web3-utils/lib/esm/formatter.js";
13
- function q(s, m, o, l, i) {
9
+ import { transactionReceiptSchema as H } from "../schemas.js";
10
+ import { watchTransactionByPolling as d } from "./watch_transaction_by_polling.js";
11
+ import { watchTransactionBySubscription as w } from "./watch_transaction_by_subscription.js";
12
+ import { format as f } from "../../../../web3-utils/lib/esm/formatter.js";
13
+ function A(l, s, o, b, r, i) {
14
14
  if (p(o) || p(o.blockHash))
15
15
  throw new h({
16
16
  receipt: o,
17
- blockHash: r({ format: "bytes32" }, o == null ? void 0 : o.blockHash, i),
18
- transactionHash: r({ format: "bytes32" }, l, i)
17
+ blockHash: f({ format: "bytes32" }, o == null ? void 0 : o.blockHash, r),
18
+ transactionHash: f({ format: "bytes32" }, b, r)
19
19
  });
20
20
  if (!o.blockNumber)
21
- throw new b({ receipt: o });
22
- m.emit("confirmation", {
23
- confirmations: r({ format: "uint" }, 1, i),
24
- receipt: r(c, o, i),
25
- latestBlockHash: r({ format: "bytes32" }, o.blockHash, i)
21
+ throw new k({ receipt: o });
22
+ s.emit("confirmation", {
23
+ confirmations: f({ format: "uint" }, 1, r),
24
+ receipt: f(i ?? H, o, r),
25
+ latestBlockHash: f({ format: "bytes32" }, o.blockHash, r)
26
26
  });
27
- const f = s.requestManager.provider;
28
- f && "supportsSubscriptions" in f && f.supportsSubscriptions() ? H({
29
- web3Context: s,
27
+ const m = l.requestManager.provider;
28
+ m && "supportsSubscriptions" in m && m.supportsSubscriptions() ? w({
29
+ web3Context: l,
30
30
  transactionReceipt: o,
31
- transactionPromiEvent: m,
32
- returnFormat: i
33
- }) : k({
34
- web3Context: s,
31
+ transactionPromiEvent: s,
32
+ customTransactionReceiptSchema: i,
33
+ returnFormat: r
34
+ }) : d({
35
+ web3Context: l,
35
36
  transactionReceipt: o,
36
- transactionPromiEvent: m,
37
- returnFormat: i
37
+ transactionPromiEvent: s,
38
+ customTransactionReceiptSchema: i,
39
+ returnFormat: r
38
40
  });
39
41
  }
40
42
  export {
41
- q as watchTransactionForConfirmations
43
+ A as watchTransactionForConfirmations
42
44
  };