@ozdao/prometheus-framework 0.2.112 → 0.2.113

Sign up to get free protection for your applications and to get access to all the features.
Files changed (515) 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 +4 -4
  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/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +6 -6
  154. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +17 -17
  156. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +6 -6
  158. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  160. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +24 -24
  162. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +24 -24
  164. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +10 -10
  166. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +26 -26
  168. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +14 -14
  170. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +6 -6
  172. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +45 -45
  174. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +13 -13
  176. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +5 -5
  178. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +19 -16
  180. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +3 -3
  182. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +13 -13
  184. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +213 -213
  188. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +8 -8
  190. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
  191. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +23 -23
  192. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +9 -9
  194. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +3 -3
  196. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +9 -9
  198. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +8 -8
  199. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +167 -202
  201. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +73 -165
  203. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +3 -47
  205. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  207. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.cjs +1 -0
  208. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.js +75 -0
  209. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +96 -77
  211. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -0
  212. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +1 -0
  213. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +1 -0
  214. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +27 -0
  215. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.cjs +1 -0
  216. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.js +31 -0
  217. package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -19
  219. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/globals/store/globals.js +10 -4
  221. package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.cjs +1 -0
  222. package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.js +31 -0
  223. package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.cjs +1 -0
  224. package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.js +31 -0
  225. package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.cjs +1 -0
  226. package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.js +59 -0
  227. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -0
  228. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +80 -0
  229. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.cjs +1 -0
  230. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.js +1 -0
  231. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/landing/landing.client.js +8 -6
  233. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +4 -4
  235. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.js +1 -1
  237. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.js +1 -1
  239. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.js +30 -30
  243. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +21 -45
  245. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +36 -36
  247. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +1 -1
  249. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +53 -53
  251. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +33 -33
  253. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  255. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +10 -10
  257. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +5 -5
  259. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
  261. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +24 -24
  263. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +5 -5
  265. package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -0
  266. package/dist/prometheus-framework/src/modules/orders/store/applications.js +37 -0
  267. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +5 -5
  269. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +11 -11
  271. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  273. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +16 -16
  275. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +41 -41
  277. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +9 -9
  279. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +16 -16
  281. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +36 -36
  283. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +8 -8
  285. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  287. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +20 -20
  289. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +12 -12
  291. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +13 -13
  293. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +33 -34
  295. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +16 -16
  297. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +15 -15
  299. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +8 -8
  301. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +8 -8
  303. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +9 -9
  305. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  307. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +22 -22
  309. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +6 -6
  311. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +8 -8
  313. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +14 -14
  314. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  315. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +51 -56
  316. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  317. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +4 -4
  318. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  319. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +32 -32
  320. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -1
  321. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +1 -1
  322. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
  323. package/dist/prometheus-framework/src/modules/products/products.client.js +28 -30
  324. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
  325. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +12 -12
  326. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  327. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +30 -26
  328. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  329. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +34 -34
  330. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  331. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +11 -11
  332. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  333. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +41 -41
  334. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  335. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +13 -13
  336. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.cjs +1 -1
  337. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.js +19 -19
  338. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
  339. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +8 -8
  340. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  341. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +13 -10
  342. package/dist/prometheus-framework.cjs.js +1 -1
  343. package/dist/prometheus-framework.es.js +1 -1
  344. package/dist/queryProcessor-BJoJAetd.mjs +162 -0
  345. package/dist/queryProcessor-DWf9tsis.js +161 -0
  346. package/dist/style.css +1 -1
  347. package/dist/wallet.server.js +1 -1
  348. package/dist/wallet.server.mjs +1 -1
  349. package/dist/web-TGdVOTnw.js +1 -0
  350. package/dist/web-_W9a_nWD.mjs +54 -0
  351. package/package.json +1 -1
  352. package/src/components/Address/Address.vue +1 -1
  353. package/src/components/AskToLogin/AskToLogin.vue +1 -1
  354. package/src/components/Block/Block.vue +1 -1
  355. package/src/components/Checkbox/Checkbox.vue +40 -43
  356. package/src/components/Chips/Chips.vue +2 -2
  357. package/src/components/DatePicker/Calendar.vue +29 -31
  358. package/src/components/Dropdown/Dropdown.vue +5 -11
  359. package/src/components/Feed/Feed.vue +98 -15
  360. package/src/components/FieldTags/BlockTags.vue +3 -3
  361. package/src/components/FieldTags/FieldTags.vue +1 -1
  362. package/src/components/FieldTags/vue-tags-input.scss +1 -1
  363. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  364. package/src/components/LocationSelection/LocationSelection.vue +5 -30
  365. package/src/components/Map/LoaderGMaps.js +66 -0
  366. package/src/components/Map/Map.vue +2 -1
  367. package/src/components/Marquee/Marquee.vue +1 -1
  368. package/src/components/Radio/Radio.vue +36 -13
  369. package/src/configurator/components/pages/Styles.vue +1 -1
  370. package/src/modules/auth/components/layouts/Auth.vue +1 -1
  371. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  372. package/src/modules/auth/components/pages/EnterPassword.vue +2 -2
  373. package/src/modules/auth/components/pages/Invite.vue +2 -2
  374. package/src/modules/auth/components/pages/ResetPassword.vue +3 -3
  375. package/src/modules/auth/components/pages/SignIn.vue +4 -4
  376. package/src/modules/auth/components/pages/SignUp.vue +3 -3
  377. package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
  378. package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
  379. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  380. package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
  381. package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
  382. package/src/modules/backoffice/components/admin/Users.vue +1 -1
  383. package/src/modules/backoffice/components/pages/Dashboard.vue +3 -3
  384. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  385. package/src/modules/community/components/layouts/Community.vue +2 -2
  386. package/src/modules/community/components/pages/BlogPost.vue +2 -2
  387. package/src/modules/community/components/pages/CreateBlogPost.vue +4 -4
  388. package/src/modules/community/components/sections/Comments.vue +2 -2
  389. package/src/modules/community/components/sections/Feed.vue +1 -1
  390. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  391. package/src/modules/constructor/components/elements/Image.vue +1 -1
  392. package/src/modules/constructor/components/elements/Video.vue +2 -2
  393. package/src/modules/events/components/blocks/CardEvent.vue +1 -1
  394. package/src/modules/events/components/pages/EditEvent.vue +32 -32
  395. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  396. package/src/modules/events/components/pages/Event.vue +3 -3
  397. package/src/modules/events/components/pages/Events.vue +4 -3
  398. package/src/modules/events/components/sections/Feed.vue +3 -3
  399. package/src/modules/events/components/sections/List.vue +2 -2
  400. package/src/modules/files/controllers/files.controller.js +8 -6
  401. package/src/modules/files/middlewares/server/middlewareBusboy.js +79 -14
  402. package/src/modules/files/routes/files.routes.js +11 -9
  403. package/src/modules/gallery/components/sections/BackofficeGallery.vue +158 -355
  404. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +26 -244
  405. package/src/modules/gallery/controllers/gallery.controller.js +57 -38
  406. package/src/modules/gallery/models/photo.model.js +20 -11
  407. package/src/modules/gallery/routes/gallery.routes.js +3 -3
  408. package/src/modules/gallery/store/gallery.js +3 -78
  409. package/src/modules/globals/components/blocks/BlockSearch.vue +1 -1
  410. package/src/modules/globals/components/blocks/BlockSorting.vue +77 -0
  411. package/src/modules/globals/components/blocks/CardHeader.vue +27 -25
  412. package/src/modules/globals/components/elements/ButtonDate.vue +66 -0
  413. package/src/modules/globals/components/elements/ButtonSort.vue +41 -0
  414. package/src/modules/globals/components/layouts/Client.vue +273 -0
  415. package/src/{components/Footer → modules/globals/components/partials}/Footer.vue +1 -1
  416. package/src/{components/Header → modules/globals/components/partials}/Header.vue +98 -84
  417. package/src/modules/globals/controllers/utils/queryProcessor.js +3 -3
  418. package/src/modules/globals/models/common.schema.js +1 -1
  419. package/src/modules/globals/services/globals.store.js +11 -6
  420. package/src/modules/globals/store/globals.js +12 -10
  421. package/src/modules/icons/logos/Logotype.vue +23 -19
  422. package/src/modules/icons/navigation/IconCalendar.vue +18 -0
  423. package/src/modules/icons/navigation/IconFilter.vue +18 -0
  424. package/src/modules/icons/navigation/IconSearch.vue +1 -3
  425. package/src/modules/icons/navigation/IconSort.vue +21 -0
  426. package/src/modules/landing/components/pages/Home.vue +4 -4
  427. package/src/modules/landing/components/sections/FeatureSection.vue +5 -5
  428. package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -2
  429. package/src/modules/landing/components/sections/SectionFeature.vue +2 -2
  430. package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
  431. package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
  432. package/src/modules/{orders → landing}/components/sections/SubscribeNewsletter.vue +0 -2
  433. package/src/modules/landing/components/sections/WhatIsWDRSection.vue +6 -6
  434. package/src/modules/landing/landing.client.js +2 -0
  435. package/src/modules/landing/router/landing.js +1 -1
  436. package/src/modules/legal/components/pages/Legal.vue +2 -2
  437. package/src/modules/legal/components/pages/legal/Cookies.vue +1 -1
  438. package/src/modules/legal/components/pages/legal/EULA.vue +1 -1
  439. package/src/modules/legal/components/pages/legal/Privacy.vue +1 -1
  440. package/src/modules/legal/components/pages/legal/Terms.vue +1 -1
  441. package/src/modules/marketplace/components/layouts/Marketplace.vue +37 -49
  442. package/src/modules/marketplace/components/pages/Catalog.vue +43 -131
  443. package/src/modules/marketplace/components/sections/Filters.vue +63 -115
  444. package/src/modules/marketplace/store/marketplace.js +22 -167
  445. package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +1 -1
  446. package/src/modules/orders/components/blocks/CardOrderItem.vue +6 -6
  447. package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
  448. package/src/modules/orders/components/blocks/StatusHistory.vue +1 -1
  449. package/src/modules/orders/components/pages/Order.vue +8 -8
  450. package/src/modules/orders/components/pages/OrderBackoffice.vue +7 -7
  451. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  452. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
  453. package/src/modules/orders/components/pages/Orders.vue +3 -5
  454. package/src/modules/orders/components/partials/ShopCart.vue +5 -1
  455. package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
  456. package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
  457. package/src/modules/orders/store/applications.js +1 -1
  458. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  459. package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
  460. package/src/modules/organizations/components/pages/Department.vue +3 -3
  461. package/src/modules/organizations/components/pages/DepartmentEdit.vue +6 -6
  462. package/src/modules/organizations/components/pages/Members.vue +4 -4
  463. package/src/modules/organizations/components/pages/Organization.vue +3 -3
  464. package/src/modules/organizations/components/pages/OrganizationCreate.vue +2 -2
  465. package/src/modules/organizations/components/pages/OrganizationDetails.vue +1 -1
  466. package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
  467. package/src/modules/organizations/components/pages/OrganizationEdit.vue +9 -9
  468. package/src/modules/organizations/components/pages/OrganizationPeople.vue +1 -1
  469. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  470. package/src/modules/organizations/components/sections/DetailsTab.vue +4 -4
  471. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  472. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  473. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  474. package/src/modules/organizations/controllers/organizations.controller.js +103 -93
  475. package/src/modules/organizations/models/organization.model.js +10 -7
  476. package/src/modules/organizations/store/organizations.js +3 -34
  477. package/src/modules/products/components/blocks/CardPosition.vue +2 -2
  478. package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
  479. package/src/modules/products/components/pages/Categories.vue +1 -1
  480. package/src/modules/products/components/pages/EditLeftover.vue +1 -1
  481. package/src/modules/products/components/pages/Leftovers.vue +4 -4
  482. package/src/modules/products/components/pages/Product.vue +1 -5
  483. package/src/modules/products/components/pages/ProductEdit.vue +1 -1
  484. package/src/modules/products/components/pages/Products.vue +2 -2
  485. package/src/modules/products/components/sections/EditProductInfo.vue +1 -1
  486. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  487. package/src/modules/products/components/sections/HeroRecommendation.vue +67 -74
  488. package/src/modules/products/components/sections/MenuSection.vue +2 -2
  489. package/src/modules/products/components/sections/PopularProducts.vue +2 -2
  490. package/src/modules/products/components/sections/SectionProduct.vue +3 -3
  491. package/src/modules/products/products.client.js +0 -2
  492. package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
  493. package/src/modules/spots/components/blocks/CardSpot.vue +9 -1
  494. package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
  495. package/src/modules/spots/components/layouts/Spots.vue +0 -2
  496. package/src/modules/spots/components/pages/Spot.vue +4 -4
  497. package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
  498. package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
  499. package/src/modules/spots/components/sections/Places.vue +1 -1
  500. package/src/modules/users/components/pages/Profile.vue +5 -5
  501. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  502. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  503. package/src/modules/users/components/pages/ProfileEdit.vue +11 -11
  504. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  505. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  506. package/src/modules/users/components/sections/FeaturedUsers.vue +3 -3
  507. package/src/modules/wallet/views/components/pages/Payments.vue +2 -2
  508. package/src/modules/wallet/views/components/pages/Wallet.vue +3 -3
  509. package/src/styles/base/borders.scss +4 -0
  510. package/src/styles/base/shadow_transitions_hover_refactor.scss +4 -0
  511. package/src/styles/config.scss +15 -9
  512. package/src/styles/layout.scss +37 -8
  513. package/src/styles/typography.scss +24 -24
  514. package/src/modules/products/components/sections/SortProducts.vue +0 -74
  515. /package/src/{components/Navigation → modules/globals/components/partials}/Navigation.vue +0 -0
@@ -4,13 +4,13 @@ import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
4
4
  import { isAbiErrorFragment as v } from "../../../../web3-eth-abi/lib/esm/utils.js";
5
5
  import "../../../../web3-validator/lib/esm/formats.js";
6
6
  import "../../../../web3-validator/lib/esm/default_validator.js";
7
- import { DEFAULT_RETURN_FORMAT as E } from "../../../../web3-types/lib/esm/data_format_types.js";
7
+ import "../../../../web3-types/lib/esm/data_format_types.js";
8
8
  import "../../../../web3-types/lib/esm/eth_types.js";
9
9
  import "../../../../web3-types/lib/esm/web3_base_provider.js";
10
10
  import "../../../../web3-eth-abi/lib/esm/coders/base/number.js";
11
- import { decodeContractErrorData as _ } from "../../../../web3-eth-abi/lib/esm/decode_contract_error_data.js";
11
+ import { decodeContractErrorData as E } from "../../../../web3-eth-abi/lib/esm/decode_contract_error_data.js";
12
12
  import { call as g } from "../rpc_method_wrappers.js";
13
- var h = function(t, u, n, i) {
13
+ var _ = function(t, u, n, i) {
14
14
  function o(e) {
15
15
  return e instanceof n ? e : new n(function(a) {
16
16
  a(e);
@@ -37,12 +37,12 @@ var h = function(t, u, n, i) {
37
37
  d((i = i.apply(t, u || [])).next());
38
38
  });
39
39
  };
40
- const y = (t, u) => {
40
+ const h = (t, u) => {
41
41
  var n, i, o, e, a;
42
42
  if (t instanceof m && t.cause instanceof l) {
43
43
  if (u !== void 0) {
44
44
  const s = u.filter((c) => v(c));
45
- return _(s, t.cause), {
45
+ return E(s, t.cause), {
46
46
  reason: t.cause.message,
47
47
  signature: (n = t.cause.data) === null || n === void 0 ? void 0 : n.slice(0, 10),
48
48
  data: (i = t.cause.data) === null || i === void 0 ? void 0 : i.substring(10),
@@ -61,17 +61,17 @@ const y = (t, u) => {
61
61
  return t.cause.message;
62
62
  throw t;
63
63
  };
64
- function B(t, u, n, i = E) {
65
- return h(this, void 0, void 0, function* () {
64
+ function I(t, u, n, i = t.defaultReturnFormat) {
65
+ return _(this, void 0, void 0, function* () {
66
66
  try {
67
67
  yield g(t, u, t.defaultBlock, i);
68
68
  return;
69
69
  } catch (o) {
70
- return y(o, n);
70
+ return h(o, n);
71
71
  }
72
72
  });
73
73
  }
74
74
  export {
75
- B as getRevertReason,
76
- y as parseTransactionError
75
+ I as getRevertReason,
76
+ h as parseTransactionError
77
77
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=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 c=require("../../../../web3-validator/lib/esm/validation/object.cjs"),p=require("../rpc_method_wrappers.cjs"),g=require("./transaction_builder.cjs"),l=require("../../../../web3-utils/lib/esm/formatter.cjs");var y=function(i,n,r,e){function o(t){return t instanceof r?t:new r(function(a){a(t)})}return new(r||(r=Promise))(function(t,a){function u(s){try{f(e.next(s))}catch(d){a(d)}}function G(s){try{f(e.throw(s))}catch(d){a(d)}}function f(s){s.done?t(s.value):o(s.value).then(u,G)}f((e=e.apply(i,n||[])).next())})};function m(i,n,r){var e,o,t;return y(this,void 0,void 0,function*(){const a=yield p.getBlock(n,n.defaultBlock,!1,r);if(c.isNullish(a.baseFeePerGas))throw new P.Eip1559NotSupportedError;if(!c.isNullish(i.gasPrice)){const u=l.format({format:"uint"},i.gasPrice,r);return{maxPriorityFeePerGas:u,maxFeePerGas:u}}return{maxPriorityFeePerGas:l.format({format:"uint"},(e=i.maxPriorityFeePerGas)!==null&&e!==void 0?e:n.defaultMaxPriorityFeePerGas,r),maxFeePerGas:l.format({format:"uint"},(o=i.maxFeePerGas)!==null&&o!==void 0?o:BigInt(a.baseFeePerGas)*BigInt(2)+BigInt((t=i.maxPriorityFeePerGas)!==null&&t!==void 0?t:n.defaultMaxPriorityFeePerGas),r)}})}function h(i,n,r){return y(this,void 0,void 0,function*(){const e=g.getTransactionType(i,n);if(!c.isNullish(e)){if(e.startsWith("-"))throw new P.UnsupportedTransactionTypeError(e);if(Number(e)<0||Number(e)>127)throw new P.UnsupportedTransactionTypeError(e);if(c.isNullish(i.gasPrice)&&(e==="0x0"||e==="0x1"))return{gasPrice:yield p.getGasPrice(n,r),maxPriorityFeePerGas:void 0,maxFeePerGas:void 0};if(e==="0x2")return Object.assign({gasPrice:void 0},yield m(i,n,r))}})}exports.getTransactionGasPricing=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=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 g=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");const u=require("../../../../web3-validator/lib/esm/validation/object.cjs"),p=require("../rpc_method_wrappers.cjs"),m=require("./transaction_builder.cjs"),P=require("../../../../web3-utils/lib/esm/formatter.cjs");var y=function(i,n,r,e){function c(t){return t instanceof r?t:new r(function(a){a(t)})}return new(r||(r=Promise))(function(t,a){function d(s){try{o(e.next(s))}catch(l){a(l)}}function f(s){try{o(e.throw(s))}catch(l){a(l)}}function o(s){s.done?t(s.value):c(s.value).then(d,f)}o((e=e.apply(i,n||[])).next())})};function h(i,n,r){var e,c,t,a;return y(this,void 0,void 0,function*(){const d=yield p.getBlock(n,n.defaultBlock,!1,G.ETH_DATA_FORMAT);if(u.isNullish(d.baseFeePerGas))throw new g.Eip1559NotSupportedError;let f;if(u.isNullish(i.gasPrice)&&BigInt(d.baseFeePerGas)===BigInt(0)&&(f=yield p.getGasPrice(n,r)),!u.isNullish(i.gasPrice)||!u.isNullish(f)){const o=P.format({format:"uint"},(e=i.gasPrice)!==null&&e!==void 0?e:f,r);return{maxPriorityFeePerGas:o,maxFeePerGas:o}}return{maxPriorityFeePerGas:P.format({format:"uint"},(c=i.maxPriorityFeePerGas)!==null&&c!==void 0?c:n.defaultMaxPriorityFeePerGas,r),maxFeePerGas:P.format({format:"uint"},(t=i.maxFeePerGas)!==null&&t!==void 0?t:BigInt(d.baseFeePerGas)*BigInt(2)+BigInt((a=i.maxPriorityFeePerGas)!==null&&a!==void 0?a:n.defaultMaxPriorityFeePerGas),r)}})}function _(i,n,r){return y(this,void 0,void 0,function*(){const e=m.getTransactionType(i,n);if(!u.isNullish(e)){if(e.startsWith("-"))throw new g.UnsupportedTransactionTypeError(e);if(Number(e)<0||Number(e)>127)throw new g.UnsupportedTransactionTypeError(e);if(u.isNullish(i.gasPrice)&&(e==="0x0"||e==="0x1"))return{gasPrice:yield p.getGasPrice(n,r),maxPriorityFeePerGas:void 0,maxFeePerGas:void 0};if(e==="0x2")return Object.assign({gasPrice:void 0},yield h(i,n,r))}})}exports.getTransactionGasPricing=_;
@@ -1,79 +1,80 @@
1
- import { UnsupportedTransactionTypeError as P, Eip1559NotSupportedError as G } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
1
+ import { ETH_DATA_FORMAT as g } from "../../../../web3-types/lib/esm/data_format_types.js";
2
+ import "../../../../web3-types/lib/esm/eth_types.js";
3
+ import "../../../../web3-types/lib/esm/web3_base_provider.js";
4
+ import { UnsupportedTransactionTypeError as p, Eip1559NotSupportedError as y } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
2
5
  import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
3
6
  import "../../../../web3-validator/lib/esm/formats.js";
4
7
  import "../../../../web3-validator/lib/esm/default_validator.js";
5
- import "../../../../web3-types/lib/esm/data_format_types.js";
6
- import "../../../../web3-types/lib/esm/eth_types.js";
7
- import "../../../../web3-types/lib/esm/web3_base_provider.js";
8
- import { isNullish as u } from "../../../../web3-validator/lib/esm/validation/object.js";
9
- import { getGasPrice as y, getBlock as g } from "../rpc_method_wrappers.js";
10
- import { getTransactionType as x } from "./transaction_builder.js";
8
+ import { isNullish as s } from "../../../../web3-validator/lib/esm/validation/object.js";
9
+ import { getGasPrice as l, getBlock as h } from "../rpc_method_wrappers.js";
10
+ import { getTransactionType as v } from "./transaction_builder.js";
11
11
  import { format as m } from "../../../../web3-utils/lib/esm/formatter.js";
12
- var p = function(r, n, i, e) {
13
- function f(t) {
14
- return t instanceof i ? t : new i(function(o) {
12
+ var G = function(i, n, r, e) {
13
+ function u(t) {
14
+ return t instanceof r ? t : new r(function(o) {
15
15
  o(t);
16
16
  });
17
17
  }
18
- return new (i || (i = Promise))(function(t, o) {
19
- function s(a) {
18
+ return new (r || (r = Promise))(function(t, o) {
19
+ function d(a) {
20
20
  try {
21
- c(e.next(a));
22
- } catch (d) {
23
- o(d);
21
+ f(e.next(a));
22
+ } catch (P) {
23
+ o(P);
24
24
  }
25
25
  }
26
- function l(a) {
26
+ function c(a) {
27
27
  try {
28
- c(e.throw(a));
29
- } catch (d) {
30
- o(d);
28
+ f(e.throw(a));
29
+ } catch (P) {
30
+ o(P);
31
31
  }
32
32
  }
33
- function c(a) {
34
- a.done ? t(a.value) : f(a.value).then(s, l);
33
+ function f(a) {
34
+ a.done ? t(a.value) : u(a.value).then(d, c);
35
35
  }
36
- c((e = e.apply(r, n || [])).next());
36
+ f((e = e.apply(i, n || [])).next());
37
37
  });
38
38
  };
39
- function h(r, n, i) {
40
- var e, f, t;
41
- return p(this, void 0, void 0, function* () {
42
- const o = yield g(n, n.defaultBlock, !1, i);
43
- if (u(o.baseFeePerGas))
44
- throw new G();
45
- if (!u(r.gasPrice)) {
46
- const s = m({ format: "uint" }, r.gasPrice, i);
39
+ function x(i, n, r) {
40
+ var e, u, t, o;
41
+ return G(this, void 0, void 0, function* () {
42
+ const d = yield h(n, n.defaultBlock, !1, g);
43
+ if (s(d.baseFeePerGas))
44
+ throw new y();
45
+ let c;
46
+ if (s(i.gasPrice) && BigInt(d.baseFeePerGas) === BigInt(0) && (c = yield l(n, r)), !s(i.gasPrice) || !s(c)) {
47
+ const f = m({ format: "uint" }, (e = i.gasPrice) !== null && e !== void 0 ? e : c, r);
47
48
  return {
48
- maxPriorityFeePerGas: s,
49
- maxFeePerGas: s
49
+ maxPriorityFeePerGas: f,
50
+ maxFeePerGas: f
50
51
  };
51
52
  }
52
53
  return {
53
- maxPriorityFeePerGas: m({ format: "uint" }, (e = r.maxPriorityFeePerGas) !== null && e !== void 0 ? e : n.defaultMaxPriorityFeePerGas, i),
54
- maxFeePerGas: m({ format: "uint" }, (f = r.maxFeePerGas) !== null && f !== void 0 ? f : BigInt(o.baseFeePerGas) * BigInt(2) + BigInt((t = r.maxPriorityFeePerGas) !== null && t !== void 0 ? t : n.defaultMaxPriorityFeePerGas), i)
54
+ maxPriorityFeePerGas: m({ format: "uint" }, (u = i.maxPriorityFeePerGas) !== null && u !== void 0 ? u : n.defaultMaxPriorityFeePerGas, r),
55
+ maxFeePerGas: m({ format: "uint" }, (t = i.maxFeePerGas) !== null && t !== void 0 ? t : BigInt(d.baseFeePerGas) * BigInt(2) + BigInt((o = i.maxPriorityFeePerGas) !== null && o !== void 0 ? o : n.defaultMaxPriorityFeePerGas), r)
55
56
  };
56
57
  });
57
58
  }
58
- function M(r, n, i) {
59
- return p(this, void 0, void 0, function* () {
60
- const e = x(r, n);
61
- if (!u(e)) {
59
+ function b(i, n, r) {
60
+ return G(this, void 0, void 0, function* () {
61
+ const e = v(i, n);
62
+ if (!s(e)) {
62
63
  if (e.startsWith("-"))
63
- throw new P(e);
64
+ throw new p(e);
64
65
  if (Number(e) < 0 || Number(e) > 127)
65
- throw new P(e);
66
- if (u(r.gasPrice) && (e === "0x0" || e === "0x1"))
66
+ throw new p(e);
67
+ if (s(i.gasPrice) && (e === "0x0" || e === "0x1"))
67
68
  return {
68
- gasPrice: yield y(n, i),
69
+ gasPrice: yield l(n, r),
69
70
  maxPriorityFeePerGas: void 0,
70
71
  maxFeePerGas: void 0
71
72
  };
72
73
  if (e === "0x2")
73
- return Object.assign({ gasPrice: void 0 }, yield h(r, n, i));
74
+ return Object.assign({ gasPrice: void 0 }, yield x(i, n, r));
74
75
  }
75
76
  });
76
77
  }
77
78
  export {
78
- M as getTransactionGasPricing
79
+ b as getTransactionGasPricing
79
80
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");const f=require("../../../../web3-errors/lib/esm/errors/contract_errors.cjs"),c=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs"),b=require("../../../../web3-errors/lib/esm/errors/response_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");const h=require("../../../../web3-validator/lib/esm/validation/object.cjs"),p=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 T=require("./get_transaction_gas_pricing.cjs"),m=require("./try_send_transaction.cjs"),C=require("./watch_transaction_for_confirmations.cjs"),q=require("../constants.cjs"),v=require("./get_transaction_error.cjs"),w=require("./get_revert_reason.cjs"),x=require("./decoding.cjs");var a=function(l,t,n,i){function e(r){return r instanceof n?r:new n(function(o){o(r)})}return new(n||(n=Promise))(function(r,o){function g(s){try{u(i.next(s))}catch(d){o(d)}}function _(s){try{u(i.throw(s))}catch(d){o(d)}}function u(s){s.done?r(s.value):e(s.value).then(g,_)}u((i=i.apply(l,t||[])).next())})};class R{constructor({options:t,web3Context:n,promiEvent:i,returnFormat:e}){this.options={checkRevertBeforeSending:!0},this.options=t,this.web3Context=n,this.promiEvent=i,this.returnFormat=e}getReceiptWithEvents(t){var n,i;const e=Object.assign({},t??{});if(!((n=this.options)===null||n===void 0)&&n.contractAbi&&e.logs&&e.logs.length>0){e.events={};for(const r of e.logs){const o=x.decodeEventABI(q.ALL_EVENTS_ABI,r,(i=this.options)===null||i===void 0?void 0:i.contractAbi,this.returnFormat);o.event&&(e.events[o.event]=o)}}return e}checkRevertBeforeSending(t){return a(this,void 0,void 0,function*(){if(this.options.checkRevertBeforeSending!==!1){const n=yield w.getRevertReason(this.web3Context,t,this.options.contractAbi);if(n!==void 0)throw yield v.getTransactionError(this.web3Context,t,void 0,void 0,this.options.contractAbi,n)}})}emitSending(t){this.promiEvent.listenerCount("sending")>0&&this.promiEvent.emit("sending",t)}populateGasPrice({transactionFormatted:t,transaction:n}){var i;return a(this,void 0,void 0,function*(){let e=t;return!(!((i=this.options)===null||i===void 0)&&i.ignoreGasPricing)&&h.isNullish(t.gasPrice)&&(h.isNullish(n.maxPriorityFeePerGas)||h.isNullish(n.maxFeePerGas))&&(e=Object.assign(Object.assign({},t),yield T.getTransactionGasPricing(t,this.web3Context,E.ETH_DATA_FORMAT))),e})}signAndSend({wallet:t,tx:n}){return a(this,void 0,void 0,function*(){if(t){const i=yield t.signTransaction(n);return m.trySendTransaction(this.web3Context,()=>a(this,void 0,void 0,function*(){return p.sendRawTransaction(this.web3Context.requestManager,i.rawTransaction)}),i.transactionHash)}return m.trySendTransaction(this.web3Context,()=>a(this,void 0,void 0,function*(){return p.sendTransaction(this.web3Context.requestManager,n)}))})}emitSent(t){this.promiEvent.listenerCount("sent")>0&&this.promiEvent.emit("sent",t)}emitTransactionHash(t){this.promiEvent.listenerCount("transactionHash")>0&&this.promiEvent.emit("transactionHash",t)}emitReceipt(t){this.promiEvent.listenerCount("receipt")>0&&this.promiEvent.emit("receipt",t)}handleError({error:t,tx:n}){var i;return a(this,void 0,void 0,function*(){let e=t;return e instanceof f.ContractExecutionError&&this.web3Context.handleRevert&&(e=yield v.getTransactionError(this.web3Context,n,void 0,void 0,(i=this.options)===null||i===void 0?void 0:i.contractAbi)),(e instanceof b.InvalidResponseError||e instanceof f.ContractExecutionError||e instanceof c.TransactionRevertWithCustomError||e instanceof c.TransactionRevertedWithoutReasonError||e instanceof c.TransactionRevertInstructionError||e instanceof c.TransactionPollingTimeoutError)&&this.promiEvent.listenerCount("error")>0&&this.promiEvent.emit("error",e),e})}emitConfirmation({receipt:t,transactionHash:n}){this.promiEvent.listenerCount("confirmation")>0&&C.watchTransactionForConfirmations(this.web3Context,this.promiEvent,t,n,this.returnFormat)}handleResolve({receipt:t,tx:n}){var i,e,r;return a(this,void 0,void 0,function*(){if(!((i=this.options)===null||i===void 0)&&i.transactionResolver)return(e=this.options)===null||e===void 0?void 0:e.transactionResolver(t);if(t.status===BigInt(0)){const o=yield v.getTransactionError(this.web3Context,n,t,void 0,(r=this.options)===null||r===void 0?void 0:r.contractAbi);throw this.promiEvent.listenerCount("error")>0&&this.promiEvent.emit("error",o),o}else return t})}}exports.SendTxHelper=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");const f=require("../../../../web3-errors/lib/esm/errors/contract_errors.cjs"),u=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs"),b=require("../../../../web3-errors/lib/esm/errors/response_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");const c=require("../../../../web3-validator/lib/esm/validation/object.cjs"),p=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 T=require("./get_transaction_gas_pricing.cjs"),g=require("./try_send_transaction.cjs"),C=require("./watch_transaction_for_confirmations.cjs"),q=require("../constants.cjs"),v=require("./get_transaction_error.cjs"),w=require("./get_revert_reason.cjs"),R=require("./decoding.cjs");var a=function(l,t,i,e){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function m(s){try{d(e.next(s))}catch(h){o(h)}}function _(s){try{d(e.throw(s))}catch(h){o(h)}}function d(s){s.done?r(s.value):n(s.value).then(m,_)}d((e=e.apply(l,t||[])).next())})};class y{constructor({options:t,web3Context:i,promiEvent:e,returnFormat:n}){this.options={checkRevertBeforeSending:!0},this.options=t,this.web3Context=i,this.promiEvent=e,this.returnFormat=n}getReceiptWithEvents(t){var i,e;const n=Object.assign({},t??{});if(!((i=this.options)===null||i===void 0)&&i.contractAbi&&n.logs&&n.logs.length>0){n.events={};for(const r of n.logs){const o=R.decodeEventABI(q.ALL_EVENTS_ABI,r,(e=this.options)===null||e===void 0?void 0:e.contractAbi,this.returnFormat);o.event&&(n.events[o.event]=o)}}return n}checkRevertBeforeSending(t){return a(this,void 0,void 0,function*(){if(this.options.checkRevertBeforeSending!==!1){let i=t;c.isNullish(t.data)&&c.isNullish(t.input)&&c.isNullish(t.gas)&&(i=Object.assign(Object.assign({},t),{gas:21e3}));const e=yield w.getRevertReason(this.web3Context,i,this.options.contractAbi);if(e!==void 0)throw yield v.getTransactionError(this.web3Context,t,void 0,void 0,this.options.contractAbi,e)}})}emitSending(t){this.promiEvent.listenerCount("sending")>0&&this.promiEvent.emit("sending",t)}populateGasPrice({transactionFormatted:t,transaction:i}){var e;return a(this,void 0,void 0,function*(){let n=t;return!(!((e=this.options)===null||e===void 0)&&e.ignoreGasPricing)&&c.isNullish(t.gasPrice)&&(c.isNullish(i.maxPriorityFeePerGas)||c.isNullish(i.maxFeePerGas))&&(n=Object.assign(Object.assign({},t),yield T.getTransactionGasPricing(t,this.web3Context,E.ETH_DATA_FORMAT))),n})}signAndSend({wallet:t,tx:i}){return a(this,void 0,void 0,function*(){if(t){const e=yield t.signTransaction(i);return g.trySendTransaction(this.web3Context,()=>a(this,void 0,void 0,function*(){return p.sendRawTransaction(this.web3Context.requestManager,e.rawTransaction)}),e.transactionHash)}return g.trySendTransaction(this.web3Context,()=>a(this,void 0,void 0,function*(){return p.sendTransaction(this.web3Context.requestManager,i)}))})}emitSent(t){this.promiEvent.listenerCount("sent")>0&&this.promiEvent.emit("sent",t)}emitTransactionHash(t){this.promiEvent.listenerCount("transactionHash")>0&&this.promiEvent.emit("transactionHash",t)}emitReceipt(t){this.promiEvent.listenerCount("receipt")>0&&this.promiEvent.emit("receipt",t)}handleError({error:t,tx:i}){var e;return a(this,void 0,void 0,function*(){let n=t;return n instanceof f.ContractExecutionError&&this.web3Context.handleRevert&&(n=yield v.getTransactionError(this.web3Context,i,void 0,void 0,(e=this.options)===null||e===void 0?void 0:e.contractAbi)),(n instanceof b.InvalidResponseError||n instanceof f.ContractExecutionError||n instanceof u.TransactionRevertWithCustomError||n instanceof u.TransactionRevertedWithoutReasonError||n instanceof u.TransactionRevertInstructionError||n instanceof u.TransactionPollingTimeoutError)&&this.promiEvent.listenerCount("error")>0&&this.promiEvent.emit("error",n),n})}emitConfirmation({receipt:t,transactionHash:i,customTransactionReceiptSchema:e}){this.promiEvent.listenerCount("confirmation")>0&&C.watchTransactionForConfirmations(this.web3Context,this.promiEvent,t,i,this.returnFormat,e)}handleResolve({receipt:t,tx:i}){var e,n,r;return a(this,void 0,void 0,function*(){if(!((e=this.options)===null||e===void 0)&&e.transactionResolver)return(n=this.options)===null||n===void 0?void 0:n.transactionResolver(t);if(t.status===BigInt(0)){const o=yield v.getTransactionError(this.web3Context,i,t,void 0,(r=this.options)===null||r===void 0?void 0:r.contractAbi);throw this.promiEvent.listenerCount("error")>0&&this.promiEvent.emit("error",o),o}else return t})}}exports.SendTxHelper=y;
@@ -1,97 +1,99 @@
1
- import { ETH_DATA_FORMAT as E } from "../../../../web3-types/lib/esm/data_format_types.js";
1
+ import { ETH_DATA_FORMAT as g } from "../../../../web3-types/lib/esm/data_format_types.js";
2
2
  import "../../../../web3-types/lib/esm/eth_types.js";
3
3
  import "../../../../web3-types/lib/esm/web3_base_provider.js";
4
- import { ContractExecutionError as v } from "../../../../web3-errors/lib/esm/errors/contract_errors.js";
5
- import { TransactionRevertWithCustomError as g, TransactionRevertedWithoutReasonError as b, TransactionRevertInstructionError as C, TransactionPollingTimeoutError as w } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
4
+ import { ContractExecutionError as m } from "../../../../web3-errors/lib/esm/errors/contract_errors.js";
5
+ import { TransactionRevertWithCustomError as E, TransactionRevertedWithoutReasonError as b, TransactionRevertInstructionError as C, TransactionPollingTimeoutError as w } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
6
6
  import { InvalidResponseError as T } from "../../../../web3-errors/lib/esm/errors/response_errors.js";
7
7
  import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
8
8
  import "../../../../web3-validator/lib/esm/formats.js";
9
9
  import "../../../../web3-validator/lib/esm/default_validator.js";
10
- import { isNullish as d } from "../../../../web3-validator/lib/esm/validation/object.js";
11
- import { sendRawTransaction as R, sendTransaction as x } from "../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
10
+ import { isNullish as c } from "../../../../web3-validator/lib/esm/validation/object.js";
11
+ import { sendRawTransaction as R, sendTransaction as _ } from "../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
12
12
  import "../../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
13
13
  import "../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
14
- import { getTransactionGasPricing as _ } from "./get_transaction_gas_pricing.js";
15
- import { trySendTransaction as m } from "./try_send_transaction.js";
14
+ import { getTransactionGasPricing as x } from "./get_transaction_gas_pricing.js";
15
+ import { trySendTransaction as v } from "./try_send_transaction.js";
16
16
  import { watchTransactionForConfirmations as A } from "./watch_transaction_for_confirmations.js";
17
17
  import { ALL_EVENTS_ABI as y } from "../constants.js";
18
- import { getTransactionError as f } from "./get_transaction_error.js";
18
+ import { getTransactionError as h } from "./get_transaction_error.js";
19
19
  import { getRevertReason as S } from "./get_revert_reason.js";
20
20
  import { decodeEventABI as B } from "./decoding.js";
21
- var a = function(u, t, n, e) {
22
- function i(o) {
23
- return o instanceof n ? o : new n(function(r) {
21
+ var a = function(u, t, e, i) {
22
+ function n(o) {
23
+ return o instanceof e ? o : new e(function(r) {
24
24
  r(o);
25
25
  });
26
26
  }
27
- return new (n || (n = Promise))(function(o, r) {
27
+ return new (e || (e = Promise))(function(o, r) {
28
28
  function p(s) {
29
29
  try {
30
- c(e.next(s));
31
- } catch (h) {
32
- r(h);
30
+ f(i.next(s));
31
+ } catch (d) {
32
+ r(d);
33
33
  }
34
34
  }
35
35
  function l(s) {
36
36
  try {
37
- c(e.throw(s));
38
- } catch (h) {
39
- r(h);
37
+ f(i.throw(s));
38
+ } catch (d) {
39
+ r(d);
40
40
  }
41
41
  }
42
- function c(s) {
43
- s.done ? o(s.value) : i(s.value).then(p, l);
42
+ function f(s) {
43
+ s.done ? o(s.value) : n(s.value).then(p, l);
44
44
  }
45
- c((e = e.apply(u, t || [])).next());
45
+ f((i = i.apply(u, t || [])).next());
46
46
  });
47
47
  };
48
48
  class X {
49
- constructor({ options: t, web3Context: n, promiEvent: e, returnFormat: i }) {
49
+ constructor({ options: t, web3Context: e, promiEvent: i, returnFormat: n }) {
50
50
  this.options = {
51
51
  checkRevertBeforeSending: !0
52
- }, this.options = t, this.web3Context = n, this.promiEvent = e, this.returnFormat = i;
52
+ }, this.options = t, this.web3Context = e, this.promiEvent = i, this.returnFormat = n;
53
53
  }
54
54
  getReceiptWithEvents(t) {
55
- var n, e;
56
- const i = Object.assign({}, t ?? {});
57
- if (!((n = this.options) === null || n === void 0) && n.contractAbi && i.logs && i.logs.length > 0) {
58
- i.events = {};
59
- for (const o of i.logs) {
60
- const r = B(y, o, (e = this.options) === null || e === void 0 ? void 0 : e.contractAbi, this.returnFormat);
61
- r.event && (i.events[r.event] = r);
55
+ var e, i;
56
+ const n = Object.assign({}, t ?? {});
57
+ if (!((e = this.options) === null || e === void 0) && e.contractAbi && n.logs && n.logs.length > 0) {
58
+ n.events = {};
59
+ for (const o of n.logs) {
60
+ const r = B(y, o, (i = this.options) === null || i === void 0 ? void 0 : i.contractAbi, this.returnFormat);
61
+ r.event && (n.events[r.event] = r);
62
62
  }
63
63
  }
64
- return i;
64
+ return n;
65
65
  }
66
66
  checkRevertBeforeSending(t) {
67
67
  return a(this, void 0, void 0, function* () {
68
68
  if (this.options.checkRevertBeforeSending !== !1) {
69
- const n = yield S(this.web3Context, t, this.options.contractAbi);
70
- if (n !== void 0)
71
- throw yield f(this.web3Context, t, void 0, void 0, this.options.contractAbi, n);
69
+ let e = t;
70
+ c(t.data) && c(t.input) && c(t.gas) && (e = Object.assign(Object.assign({}, t), { gas: 21e3 }));
71
+ const i = yield S(this.web3Context, e, this.options.contractAbi);
72
+ if (i !== void 0)
73
+ throw yield h(this.web3Context, t, void 0, void 0, this.options.contractAbi, i);
72
74
  }
73
75
  });
74
76
  }
75
77
  emitSending(t) {
76
78
  this.promiEvent.listenerCount("sending") > 0 && this.promiEvent.emit("sending", t);
77
79
  }
78
- populateGasPrice({ transactionFormatted: t, transaction: n }) {
79
- var e;
80
+ populateGasPrice({ transactionFormatted: t, transaction: e }) {
81
+ var i;
80
82
  return a(this, void 0, void 0, function* () {
81
- let i = t;
82
- return !(!((e = this.options) === null || e === void 0) && e.ignoreGasPricing) && d(t.gasPrice) && (d(n.maxPriorityFeePerGas) || d(n.maxFeePerGas)) && (i = Object.assign(Object.assign({}, t), yield _(t, this.web3Context, E))), i;
83
+ let n = t;
84
+ return !(!((i = this.options) === null || i === void 0) && i.ignoreGasPricing) && c(t.gasPrice) && (c(e.maxPriorityFeePerGas) || c(e.maxFeePerGas)) && (n = Object.assign(Object.assign({}, t), yield x(t, this.web3Context, g))), n;
83
85
  });
84
86
  }
85
- signAndSend({ wallet: t, tx: n }) {
87
+ signAndSend({ wallet: t, tx: e }) {
86
88
  return a(this, void 0, void 0, function* () {
87
89
  if (t) {
88
- const e = yield t.signTransaction(n);
89
- return m(this.web3Context, () => a(this, void 0, void 0, function* () {
90
- return R(this.web3Context.requestManager, e.rawTransaction);
91
- }), e.transactionHash);
90
+ const i = yield t.signTransaction(e);
91
+ return v(this.web3Context, () => a(this, void 0, void 0, function* () {
92
+ return R(this.web3Context.requestManager, i.rawTransaction);
93
+ }), i.transactionHash);
92
94
  }
93
- return m(this.web3Context, () => a(this, void 0, void 0, function* () {
94
- return x(this.web3Context.requestManager, n);
95
+ return v(this.web3Context, () => a(this, void 0, void 0, function* () {
96
+ return _(this.web3Context.requestManager, e);
95
97
  }));
96
98
  });
97
99
  }
@@ -108,25 +110,25 @@ class X {
108
110
  t
109
111
  );
110
112
  }
111
- handleError({ error: t, tx: n }) {
112
- var e;
113
+ handleError({ error: t, tx: e }) {
114
+ var i;
113
115
  return a(this, void 0, void 0, function* () {
114
- let i = t;
115
- return i instanceof v && this.web3Context.handleRevert && (i = yield f(this.web3Context, n, void 0, void 0, (e = this.options) === null || e === void 0 ? void 0 : e.contractAbi)), (i instanceof T || i instanceof v || i instanceof g || i instanceof b || i instanceof C || i instanceof w) && this.promiEvent.listenerCount("error") > 0 && this.promiEvent.emit("error", i), i;
116
+ let n = t;
117
+ return n instanceof m && this.web3Context.handleRevert && (n = yield h(this.web3Context, e, void 0, void 0, (i = this.options) === null || i === void 0 ? void 0 : i.contractAbi)), (n instanceof T || n instanceof m || n instanceof E || n instanceof b || n instanceof C || n instanceof w) && this.promiEvent.listenerCount("error") > 0 && this.promiEvent.emit("error", n), n;
116
118
  });
117
119
  }
118
- emitConfirmation({ receipt: t, transactionHash: n }) {
119
- this.promiEvent.listenerCount("confirmation") > 0 && A(this.web3Context, this.promiEvent, t, n, this.returnFormat);
120
+ emitConfirmation({ receipt: t, transactionHash: e, customTransactionReceiptSchema: i }) {
121
+ this.promiEvent.listenerCount("confirmation") > 0 && A(this.web3Context, this.promiEvent, t, e, this.returnFormat, i);
120
122
  }
121
- handleResolve({ receipt: t, tx: n }) {
122
- var e, i, o;
123
+ handleResolve({ receipt: t, tx: e }) {
124
+ var i, n, o;
123
125
  return a(this, void 0, void 0, function* () {
124
- if (!((e = this.options) === null || e === void 0) && e.transactionResolver)
125
- return (i = this.options) === null || i === void 0 ? void 0 : i.transactionResolver(t);
126
+ if (!((i = this.options) === null || i === void 0) && i.transactionResolver)
127
+ return (n = this.options) === null || n === void 0 ? void 0 : n.transactionResolver(t);
126
128
  if (t.status === BigInt(0)) {
127
- const r = yield f(
129
+ const r = yield h(
128
130
  this.web3Context,
129
- n,
131
+ e,
130
132
  // @ts-expect-error unknown type fix
131
133
  t,
132
134
  void 0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");require("../../../../web3-eth-accounts/lib/esm/wallet.cjs");const v=require("../../../../web3-eth-accounts/lib/esm/account.cjs");require("../../../../crc-32/crc32.cjs");require("../../../../web3-eth-accounts/lib/esm/common/types.cjs");const l=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");const y=require("../../../../web3-validator/lib/esm/validation/string.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");const p=require("../../../../web3-validator/lib/esm/validation/address.cjs"),O=require("../../../../web3-validator/lib/esm/validation/numbers.cjs"),n=require("../../../../web3-validator/lib/esm/validation/object.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../@ethereumjs/rlp/dist/index.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/types.cjs");require("../../../../web3-net/lib/esm/net.cjs");const x=require("../../../../web3-net/lib/esm/rpc_method_wrappers.cjs"),C=require("../constants.cjs"),m=require("../rpc_method_wrappers.cjs"),E=require("./detect_transaction_type.cjs"),R=require("../schemas.cjs"),I=require("./get_transaction_gas_pricing.cjs"),d=require("../../../../web3-utils/lib/esm/formatter.cjs"),A=require("../../../../web3-utils/lib/esm/converters.cjs");var _=function(i,r,t,e){function a(u){return u instanceof t?u:new t(function(c){c(u)})}return new(t||(t=Promise))(function(u,c){function f(o){try{T(e.next(o))}catch(h){c(h)}}function b(o){try{T(e.throw(o))}catch(h){c(h)}}function T(o){o.done?u(o.value):a(o.value).then(f,b)}T((e=e.apply(i,r||[])).next())})};const N=(i,r,t,e)=>{if(t!==void 0&&i in t&&t[i]!==void 0){if(typeof t[i]=="string"&&p.isAddress(t[i]))return t[i];if(!y.isHexStrict(t[i])&&O.isNumber(t[i])){if(r.wallet){const a=r.wallet.get(d.format({format:"uint"},t[i],C.NUMBER_DATA_FORMAT));if(!n.isNullish(a))return a.address;throw new l.LocalWalletNotAvailableError}throw new l.LocalWalletNotAvailableError}else throw i==="from"?new l.InvalidTransactionWithSender(t.from):new l.InvalidTransactionWithReceiver(t.to)}if(i==="from"){if(!n.isNullish(e))return v.privateKeyToAddress(e);if(!n.isNullish(r.defaultAccount))return r.defaultAccount}},w=(i,r,t=s.DEFAULT_RETURN_FORMAT)=>_(void 0,void 0,void 0,function*(){if(n.isNullish(r))throw new l.UnableToPopulateNonceError;return m.getTransactionCount(i,r,i.defaultBlock,t)}),g=(i,r)=>{const t=E.detectTransactionType(i,r);if(!n.isNullish(t))return t;if(!n.isNullish(r.defaultTransactionType))return d.format({format:"uint"},r.defaultTransactionType,s.ETH_DATA_FORMAT)};function q(i){var r,t;return _(this,void 0,void 0,function*(){let e=d.format(R.transactionSchema,i.transaction,s.DEFAULT_RETURN_FORMAT);if(n.isNullish(e.from)&&(e.from=N("from",i.web3Context,void 0,i.privateKey)),n.isNullish(e.nonce)&&(e.nonce=yield w(i.web3Context,e.from,s.ETH_DATA_FORMAT)),n.isNullish(e.value)&&(e.value="0x0"),n.isNullish(e.data))n.isNullish(e.input)?e.input="0x":e.input.startsWith("0x")||(e.input=`0x${e.input}`);else{if(!n.isNullish(e.input)&&e.data!==e.input)throw new l.TransactionDataAndInputError({data:A.bytesToHex(e.data),input:A.bytesToHex(e.input)});e.data.startsWith("0x")||(e.data=`0x${e.data}`)}if(n.isNullish(e.common)){if(i.web3Context.defaultCommon){const a=i.web3Context.defaultCommon,u=a.customChain.chainId,c=a.customChain.networkId,f=a.customChain.name;e.common=Object.assign(Object.assign({},a),{customChain:{chainId:u,networkId:c,name:f}})}n.isNullish(e.chain)&&(e.chain=i.web3Context.defaultChain),n.isNullish(e.hardfork)&&(e.hardfork=i.web3Context.defaultHardfork)}if(n.isNullish(e.chainId)&&n.isNullish((r=e.common)===null||r===void 0?void 0:r.customChain.chainId)&&(e.chainId=yield m.getChainId(i.web3Context,s.ETH_DATA_FORMAT)),n.isNullish(e.networkId)&&(e.networkId=(t=i.web3Context.defaultNetworkId)!==null&&t!==void 0?t:yield x.getId(i.web3Context,s.ETH_DATA_FORMAT)),n.isNullish(e.gasLimit)&&!n.isNullish(e.gas)&&(e.gasLimit=e.gas),e.type=g(e,i.web3Context),n.isNullish(e.accessList)&&(e.type==="0x1"||e.type==="0x2")&&(e.accessList=[]),i.fillGasPrice&&(e=Object.assign(Object.assign({},e),yield I.getTransactionGasPricing(e,i.web3Context,s.ETH_DATA_FORMAT))),n.isNullish(e.gas)&&n.isNullish(e.gasLimit)&&i.fillGasLimit){const a=yield m.estimateGas(i.web3Context,e,"latest",s.ETH_DATA_FORMAT);e=Object.assign(Object.assign({},e),{gas:d.format({format:"uint"},a,s.ETH_DATA_FORMAT)})}return e})}const F=i=>_(void 0,void 0,void 0,function*(){var r;return((r=i.web3Context.transactionBuilder)!==null&&r!==void 0?r:q)(Object.assign(Object.assign({},i),{transaction:i.transaction}))});exports.defaultTransactionBuilder=q;exports.getTransactionFromOrToAttr=N;exports.getTransactionNonce=w;exports.getTransactionType=g;exports.transactionBuilder=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");require("../../../../web3-eth-accounts/lib/esm/wallet.cjs");const v=require("../../../../web3-eth-accounts/lib/esm/account.cjs");require("../../../../crc-32/crc32.cjs");require("../../../../web3-eth-accounts/lib/esm/common/types.cjs");const l=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");const y=require("../../../../web3-validator/lib/esm/validation/string.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");const p=require("../../../../web3-validator/lib/esm/validation/address.cjs"),x=require("../../../../web3-validator/lib/esm/validation/numbers.cjs"),n=require("../../../../web3-validator/lib/esm/validation/object.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../@ethereumjs/rlp/dist/index.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/types.cjs");require("../../../../web3-net/lib/esm/net.cjs");const O=require("../../../../web3-net/lib/esm/rpc_method_wrappers.cjs"),C=require("../constants.cjs"),T=require("../rpc_method_wrappers.cjs"),I=require("./detect_transaction_type.cjs"),E=require("../schemas.cjs"),F=require("./get_transaction_gas_pricing.cjs"),d=require("../../../../web3-utils/lib/esm/formatter.cjs"),A=require("../../../../web3-utils/lib/esm/converters.cjs");var _=function(i,r,t,e){function a(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function f(u){try{h(e.next(u))}catch(m){c(m)}}function b(u){try{h(e.throw(u))}catch(m){c(m)}}function h(u){u.done?s(u.value):a(u.value).then(f,b)}h((e=e.apply(i,r||[])).next())})};const w=(i,r,t,e)=>{if(t!==void 0&&i in t&&t[i]!==void 0){if(typeof t[i]=="string"&&p.isAddress(t[i]))return t[i];if(!y.isHexStrict(t[i])&&x.isNumber(t[i])){if(r.wallet){const a=r.wallet.get(d.format({format:"uint"},t[i],C.NUMBER_DATA_FORMAT));if(!n.isNullish(a))return a.address;throw new l.LocalWalletNotAvailableError}throw new l.LocalWalletNotAvailableError}else throw i==="from"?new l.InvalidTransactionWithSender(t.from):new l.InvalidTransactionWithReceiver(t.to)}if(i==="from"){if(!n.isNullish(e))return v.privateKeyToAddress(e);if(!n.isNullish(r.defaultAccount))return r.defaultAccount}},g=(i,r,t=i.defaultReturnFormat)=>_(void 0,void 0,void 0,function*(){if(n.isNullish(r))throw new l.UnableToPopulateNonceError;return T.getTransactionCount(i,r,i.defaultBlock,t)}),N=(i,r)=>{const t=I.detectTransactionType(i,r);if(!n.isNullish(t))return t;if(!n.isNullish(r.defaultTransactionType))return d.format({format:"uint"},r.defaultTransactionType,o.ETH_DATA_FORMAT)};function q(i){var r,t;return _(this,void 0,void 0,function*(){let e=d.format(E.transactionSchema,i.transaction,i.web3Context.defaultReturnFormat);if(n.isNullish(e.from)&&(e.from=w("from",i.web3Context,void 0,i.privateKey)),n.isNullish(e.nonce)&&(e.nonce=yield g(i.web3Context,e.from,o.ETH_DATA_FORMAT)),n.isNullish(e.value)&&(e.value="0x0"),n.isNullish(e.data))n.isNullish(e.input)?e.input="0x":e.input.startsWith("0x")||(e.input=`0x${e.input}`);else{if(!n.isNullish(e.input)&&e.data!==e.input)throw new l.TransactionDataAndInputError({data:A.bytesToHex(e.data),input:A.bytesToHex(e.input)});e.data.startsWith("0x")||(e.data=`0x${e.data}`)}if(n.isNullish(e.common)){if(i.web3Context.defaultCommon){const a=i.web3Context.defaultCommon,s=a.customChain.chainId,c=a.customChain.networkId,f=a.customChain.name;e.common=Object.assign(Object.assign({},a),{customChain:{chainId:s,networkId:c,name:f}})}n.isNullish(e.chain)&&(e.chain=i.web3Context.defaultChain),n.isNullish(e.hardfork)&&(e.hardfork=i.web3Context.defaultHardfork)}if(n.isNullish(e.chainId)&&n.isNullish((r=e.common)===null||r===void 0?void 0:r.customChain.chainId)&&(e.chainId=yield T.getChainId(i.web3Context,o.ETH_DATA_FORMAT)),n.isNullish(e.networkId)&&(e.networkId=(t=i.web3Context.defaultNetworkId)!==null&&t!==void 0?t:yield O.getId(i.web3Context,o.ETH_DATA_FORMAT)),n.isNullish(e.gasLimit)&&!n.isNullish(e.gas)&&(e.gasLimit=e.gas),e.type=N(e,i.web3Context),n.isNullish(e.accessList)&&(e.type==="0x1"||e.type==="0x2")&&(e.accessList=[]),i.fillGasPrice&&(e=Object.assign(Object.assign({},e),yield F.getTransactionGasPricing(e,i.web3Context,o.ETH_DATA_FORMAT))),n.isNullish(e.gas)&&n.isNullish(e.gasLimit)&&i.fillGasLimit){const a=yield T.estimateGas(i.web3Context,e,"latest",o.ETH_DATA_FORMAT);e=Object.assign(Object.assign({},e),{gas:d.format({format:"uint"},a,o.ETH_DATA_FORMAT)})}return e})}const R=i=>_(void 0,void 0,void 0,function*(){var r;return((r=i.web3Context.transactionBuilder)!==null&&r!==void 0?r:q)(Object.assign(Object.assign({},i),{transaction:i.transaction}))});exports.defaultTransactionBuilder=q;exports.getTransactionFromOrToAttr=w;exports.getTransactionNonce=g;exports.getTransactionType=N;exports.transactionBuilder=R;