@ozdao/prometheus-framework 0.2.43 → 0.2.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (444) hide show
  1. package/dist/main-2247448a.js +91 -0
  2. package/dist/main-6c51a895.mjs +13628 -0
  3. package/dist/main.css +1 -1
  4. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  5. package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
  6. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  7. package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
  8. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
  9. package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
  10. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
  11. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
  12. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
  13. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
  14. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
  15. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +1 -1
  16. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +6 -6
  17. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
  18. package/dist/node_modules/ethereum-cryptography/esm/utils.js +4 -3
  19. package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
  20. package/dist/node_modules/vue3-carousel/dist/carousel.css.js +4 -1
  21. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  22. package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
  23. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
  24. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
  25. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  26. package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
  27. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
  28. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
  29. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  30. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
  31. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
  32. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
  33. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
  34. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
  35. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  36. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +110 -110
  37. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  38. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
  39. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
  40. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
  41. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  42. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
  43. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
  44. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
  45. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
  46. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
  47. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  48. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
  49. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  50. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
  51. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
  52. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
  53. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  54. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
  55. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  56. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
  57. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  58. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
  59. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  60. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +7 -7
  61. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
  62. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
  63. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
  64. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
  65. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
  66. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
  67. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  68. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +15 -15
  69. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  70. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
  71. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
  72. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +26 -26
  73. package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
  74. package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
  75. package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
  76. package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
  77. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  78. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
  79. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  80. package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
  81. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
  82. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
  83. package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
  84. package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
  85. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
  86. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +5 -5
  87. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
  88. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
  89. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
  90. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
  91. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
  92. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
  93. package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
  94. package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +15 -15
  95. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
  96. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
  97. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
  98. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
  99. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
  100. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
  101. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
  102. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +5 -5
  103. package/dist/products.server.js +875 -0
  104. package/dist/products.server.mjs +875 -0
  105. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/components/Address/Address.vue.js +4 -1
  107. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +4 -1
  109. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -225
  111. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  112. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +227 -1
  113. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +2 -61
  115. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  116. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +63 -1
  117. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  118. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +4 -1
  119. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  120. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +4 -1
  121. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
  122. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +4 -1
  123. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
  125. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  126. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +78 -1
  127. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +18 -18
  129. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
  131. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
  132. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +4 -1
  133. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
  135. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
  136. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +4 -1
  137. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
  138. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +4 -1
  139. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +4 -1
  141. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
  142. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +4 -1
  143. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +4 -1
  145. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +4 -1
  147. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
  148. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +4 -1
  149. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/components/Map/Map.vue.js +4 -1
  151. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -70
  153. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  154. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -1
  155. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -95
  157. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  158. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +97 -1
  159. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
  160. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +4 -1
  161. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +4 -1
  163. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +4 -1
  165. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  166. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +4 -1
  167. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
  169. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  170. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +4 -1
  171. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
  173. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  175. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  177. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  181. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +4 -1
  183. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  185. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +4 -1
  187. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
  189. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +4 -1
  191. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
  193. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +4 -1
  195. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
  197. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +4 -1
  199. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +4 -1
  201. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/auth/store/auth.js +2 -2
  203. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  205. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  207. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +4 -1
  209. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  211. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  213. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +4 -1
  215. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +5 -5
  217. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  219. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +4 -1
  221. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +4 -1
  223. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  225. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  227. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  229. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +4 -1
  231. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  233. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  234. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -65
  235. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  236. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  237. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  239. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +4 -1
  243. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  245. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +7 -7
  247. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +4 -1
  249. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  251. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +4 -1
  253. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +4 -1
  255. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +4 -1
  257. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  259. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  261. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  263. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +4 -1
  265. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
  267. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +4 -1
  269. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  271. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  273. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +4 -1
  275. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  277. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +4 -1
  279. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
  281. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
  283. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
  285. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +4 -1
  287. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +2 -2
  289. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +4 -1
  291. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +2 -2
  293. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  295. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +4 -1
  297. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  299. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  301. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +4 -1
  303. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +4 -1
  305. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +4 -1
  307. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +4 -1
  309. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  311. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
  313. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +4 -1
  315. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  317. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  319. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
  320. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +4 -1
  321. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
  323. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  325. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +4 -1
  327. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  329. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  331. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +4 -1
  333. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +4 -1
  335. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
  336. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +4 -1
  337. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  338. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  339. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  341. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  343. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  345. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
  346. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +4 -1
  347. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +4 -1
  349. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  351. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.cjs +1 -0
  352. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.js +43 -0
  353. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -0
  354. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +4 -0
  355. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
  356. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +4 -1
  357. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  358. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  359. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +4 -1
  361. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  362. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  363. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +41 -1
  365. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -0
  366. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +4 -0
  367. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +4 -1
  369. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  370. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +4 -1
  371. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  372. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  373. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +4 -1
  375. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +4 -1
  377. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
  378. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +4 -1
  379. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  380. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +5 -5
  381. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +4 -1
  383. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -0
  384. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +87 -0
  385. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -0
  386. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +4 -0
  387. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -0
  388. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +138 -0
  389. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  390. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  391. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  392. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  393. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
  394. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +4 -1
  395. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -0
  396. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +114 -0
  397. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -0
  398. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +4 -0
  399. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
  400. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +4 -1
  401. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  402. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  403. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -0
  404. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +53 -0
  405. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -0
  406. package/dist/prometheus-framework/src/modules/products/products.client.js +56 -0
  407. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  408. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  409. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  410. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  411. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  412. package/dist/prometheus-framework/src/modules/products/store/products.js +3 -1
  413. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  414. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  415. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  416. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  417. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
  418. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +4 -1
  419. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  420. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  421. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  422. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  423. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
  424. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +4 -1
  425. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  426. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  427. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
  428. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +4 -1
  429. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  430. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  431. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  432. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +3 -3
  433. package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
  434. package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
  435. package/dist/prometheus-framework.cjs.js +1 -1
  436. package/dist/prometheus-framework.es.js +1 -1
  437. package/dist/style.css +1 -1
  438. package/dist/web-65c35f46.mjs +55 -0
  439. package/dist/web-adbe95b6.js +1 -0
  440. package/package.json +1 -1
  441. package/src/modules/products/components/pages/ProductRecommmendation.vue +2 -2
  442. package/src/modules/products/products.client.js +76 -20
  443. package/src/modules/products/products.server.js +10 -6
  444. package/src/modules/products/router/products.router.js +4 -2
@@ -1,8 +1,8 @@
1
- import { TransactionRevertedWithoutReasonError as E, TransactionRevertInstructionError as m, TransactionRevertWithCustomError as l } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
1
+ import { TransactionRevertedWithoutReasonError as m, TransactionRevertInstructionError as l, TransactionRevertWithCustomError as h } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
2
2
  import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
3
- import { parseTransactionError as h, getRevertReason as w } from "./get_revert_reason.js";
4
- var p = function(f, d, e, o) {
5
- function s(t) {
3
+ import { parseTransactionError as E, getRevertReason as g } from "./get_revert_reason.js";
4
+ var w = globalThis && globalThis.__awaiter || function(s, f, e, o) {
5
+ function d(t) {
6
6
  return t instanceof e ? t : new e(function(n) {
7
7
  n(t);
8
8
  });
@@ -23,28 +23,28 @@ var p = function(f, d, e, o) {
23
23
  }
24
24
  }
25
25
  function a(u) {
26
- u.done ? t(u.value) : s(u.value).then(i, r);
26
+ u.done ? t(u.value) : d(u.value).then(i, r);
27
27
  }
28
- a((o = o.apply(f, d || [])).next());
28
+ a((o = o.apply(s, f || [])).next());
29
29
  });
30
30
  };
31
- function T(f, d, e, o, s, t) {
32
- return p(this, void 0, void 0, function* () {
31
+ function y(s, f, e, o, d, t) {
32
+ return w(this, void 0, void 0, function* () {
33
33
  let n = t;
34
- n === void 0 && (o !== void 0 ? n = h(o) : f.handleRevert && d !== void 0 && (n = yield w(f, d, s)));
34
+ n === void 0 && (o !== void 0 ? n = E(o) : s.handleRevert && f !== void 0 && (n = yield g(s, f, d)));
35
35
  let i;
36
36
  if (n === void 0)
37
- i = new E(e);
37
+ i = new m(e);
38
38
  else if (typeof n == "string")
39
- i = new m(n, void 0, e);
39
+ i = new l(n, void 0, e);
40
40
  else if (n.customErrorName !== void 0 && n.customErrorDecodedSignature !== void 0 && n.customErrorArguments !== void 0) {
41
41
  const r = n;
42
- i = new l(r.reason, r.customErrorName, r.customErrorDecodedSignature, r.customErrorArguments, r.signature, e, r.data);
42
+ i = new h(r.reason, r.customErrorName, r.customErrorDecodedSignature, r.customErrorArguments, r.signature, e, r.data);
43
43
  } else
44
- i = new m(n.reason, n.signature, e, n.data);
44
+ i = new l(n.reason, n.signature, e, n.data);
45
45
  return i;
46
46
  });
47
47
  }
48
48
  export {
49
- T as getTransactionError
49
+ y as getTransactionError
50
50
  };
@@ -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 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"),d=require("../../../../web3-utils/lib/esm/formatter.cjs");var g=globalThis&&globalThis.__awaiter||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(l){a(l)}}function y(s){try{f(e.throw(s))}catch(l){a(l)}}function f(s){s.done?t(s.value):o(s.value).then(u,y)}f((e=e.apply(i,n||[])).next())})};function h(i,n,r){var e,o,t;return g(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=d.format({format:"uint"},i.gasPrice,r);return{maxPriorityFeePerGas:u,maxFeePerGas:u}}return{maxPriorityFeePerGas:d.format({format:"uint"},(e=i.maxPriorityFeePerGas)!==null&&e!==void 0?e:n.defaultMaxPriorityFeePerGas,r),maxFeePerGas:d.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 m(i,n,r){return g(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 h(i,n,r))}})}exports.getTransactionGasPricing=m;
@@ -5,72 +5,72 @@ import "../../../../web3-validator/lib/esm/default_validator.js";
5
5
  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
- import { isNullish as u } from "../../../../web3-validator/lib/esm/validation/object.js";
8
+ import { isNullish as c } from "../../../../web3-validator/lib/esm/validation/object.js";
9
9
  import { getGasPrice as y, getBlock as g } from "../rpc_method_wrappers.js";
10
- import { getTransactionType as x } from "./transaction_builder.js";
10
+ import { getTransactionType as h } 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) {
15
- o(t);
12
+ var p = globalThis && globalThis.__awaiter || function(r, t, e, i) {
13
+ function s(o) {
14
+ return o instanceof e ? o : new e(function(n) {
15
+ n(o);
16
16
  });
17
17
  }
18
- return new (i || (i = Promise))(function(t, o) {
19
- function s(a) {
18
+ return new (e || (e = Promise))(function(o, n) {
19
+ function f(a) {
20
20
  try {
21
- c(e.next(a));
21
+ u(i.next(a));
22
22
  } catch (d) {
23
- o(d);
23
+ n(d);
24
24
  }
25
25
  }
26
26
  function l(a) {
27
27
  try {
28
- c(e.throw(a));
28
+ u(i.throw(a));
29
29
  } catch (d) {
30
- o(d);
30
+ n(d);
31
31
  }
32
32
  }
33
- function c(a) {
34
- a.done ? t(a.value) : f(a.value).then(s, l);
33
+ function u(a) {
34
+ a.done ? o(a.value) : s(a.value).then(f, l);
35
35
  }
36
- c((e = e.apply(r, n || [])).next());
36
+ u((i = i.apply(r, t || [])).next());
37
37
  });
38
38
  };
39
- function h(r, n, i) {
40
- var e, f, t;
39
+ function x(r, t, e) {
40
+ var i, s, o;
41
41
  return p(this, void 0, void 0, function* () {
42
- const o = yield g(n, n.defaultBlock, !1, i);
43
- if (u(o.baseFeePerGas))
42
+ const n = yield g(t, t.defaultBlock, !1, e);
43
+ if (c(n.baseFeePerGas))
44
44
  throw new G();
45
- if (!u(r.gasPrice)) {
46
- const s = m({ format: "uint" }, r.gasPrice, i);
45
+ if (!c(r.gasPrice)) {
46
+ const f = m({ format: "uint" }, r.gasPrice, e);
47
47
  return {
48
- maxPriorityFeePerGas: s,
49
- maxFeePerGas: s
48
+ maxPriorityFeePerGas: f,
49
+ maxFeePerGas: f
50
50
  };
51
51
  }
52
52
  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)
53
+ maxPriorityFeePerGas: m({ format: "uint" }, (i = r.maxPriorityFeePerGas) !== null && i !== void 0 ? i : t.defaultMaxPriorityFeePerGas, e),
54
+ maxFeePerGas: m({ format: "uint" }, (s = r.maxFeePerGas) !== null && s !== void 0 ? s : BigInt(n.baseFeePerGas) * BigInt(2) + BigInt((o = r.maxPriorityFeePerGas) !== null && o !== void 0 ? o : t.defaultMaxPriorityFeePerGas), e)
55
55
  };
56
56
  });
57
57
  }
58
- function M(r, n, i) {
58
+ function M(r, t, e) {
59
59
  return p(this, void 0, void 0, function* () {
60
- const e = x(r, n);
61
- if (!u(e)) {
62
- if (e.startsWith("-"))
63
- throw new P(e);
64
- if (Number(e) < 0 || Number(e) > 127)
65
- throw new P(e);
66
- if (u(r.gasPrice) && (e === "0x0" || e === "0x1"))
60
+ const i = h(r, t);
61
+ if (!c(i)) {
62
+ if (i.startsWith("-"))
63
+ throw new P(i);
64
+ if (Number(i) < 0 || Number(i) > 127)
65
+ throw new P(i);
66
+ if (c(r.gasPrice) && (i === "0x0" || i === "0x1"))
67
67
  return {
68
- gasPrice: yield y(n, i),
68
+ gasPrice: yield y(t, e),
69
69
  maxPriorityFeePerGas: void 0,
70
70
  maxFeePerGas: void 0
71
71
  };
72
- if (e === "0x2")
73
- return Object.assign({ gasPrice: void 0 }, yield h(r, n, i));
72
+ if (i === "0x2")
73
+ return Object.assign({ gasPrice: void 0 }, yield x(r, t, e));
74
74
  }
75
75
  });
76
76
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=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");require("../../../../web3-eth-accounts/lib/esm/account.cjs");const b=require("../../../../web3-eth-accounts/lib/esm/common/common.cjs");require("../../../../web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../web3-eth-accounts/lib/esm/common/types.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 f=require("../../../../web3-validator/lib/esm/validation/object.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../@ethereumjs/rlp/dist/index.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/types.cjs");const S=require("../../../../web3-eth-accounts/lib/esm/tx/transactionFactory.cjs"),w=require("../validation.cjs"),O=require("./format_transaction.cjs"),G=require("./transaction_builder.cjs"),h=require("../../../../web3-utils/lib/esm/converters.cjs");var L=function(e,i,o,l){function m(u){return u instanceof o?u:new o(function(d){d(u)})}return new(o||(o=Promise))(function(u,d){function c(r){try{v(l.next(r))}catch(a){d(a)}}function s(r){try{v(l.throw(r))}catch(a){d(a)}}function v(r){r.done?u(r.value):m(r.value).then(c,s)}v((l=l.apply(e,i||[])).next())})};const A=e=>{var i,o;return{nonce:e.nonce,gasPrice:e.gasPrice,gasLimit:(i=e.gasLimit)!==null&&i!==void 0?i:e.gas,to:e.to,value:e.value,data:(o=e.data)!==null&&o!==void 0?o:e.input,type:e.type,chainId:e.chainId,accessList:e.accessList,maxPriorityFeePerGas:e.maxPriorityFeePerGas,maxFeePerGas:e.maxFeePerGas}},D=(e,i)=>{var o,l,m,u,d,c,s,v,r,a,t,_,q,k,p,g,T,y;const C=!f.isNullish(e.chain)&&!f.isNullish(e.hardfork)||!f.isNullish(e.common);let n;if(!C)i.defaultCommon?(n=Object.assign({},i.defaultCommon),f.isNullish(n.hardfork)&&(n.hardfork=(o=e.hardfork)!==null&&o!==void 0?o:i.defaultHardfork),f.isNullish(n.baseChain)&&(n.baseChain=i.defaultChain)):n=b.Common.custom({name:"custom-network",chainId:h.toNumber(e.chainId),networkId:f.isNullish(e.networkId)?void 0:h.toNumber(e.networkId),defaultHardfork:(l=e.hardfork)!==null&&l!==void 0?l:i.defaultHardfork},{baseChain:i.defaultChain});else{const I=(c=(d=(u=(m=e==null?void 0:e.common)===null||m===void 0?void 0:m.customChain)===null||u===void 0?void 0:u.name)!==null&&d!==void 0?d:e.chain)!==null&&c!==void 0?c:"custom-network",F=h.toNumber((r=(v=(s=e==null?void 0:e.common)===null||s===void 0?void 0:s.customChain)===null||v===void 0?void 0:v.chainId)!==null&&r!==void 0?r:e==null?void 0:e.chainId),N=h.toNumber((_=(t=(a=e==null?void 0:e.common)===null||a===void 0?void 0:a.customChain)===null||t===void 0?void 0:t.networkId)!==null&&_!==void 0?_:e==null?void 0:e.networkId),P=(p=(k=(q=e==null?void 0:e.common)===null||q===void 0?void 0:q.hardfork)!==null&&k!==void 0?k:e==null?void 0:e.hardfork)!==null&&p!==void 0?p:i.defaultHardfork,j=(y=(T=(g=e.common)===null||g===void 0?void 0:g.baseChain)!==null&&T!==void 0?T:e.chain)!==null&&y!==void 0?y:i.defaultChain;F&&N&&I&&(n=b.Common.custom({name:I,chainId:F,networkId:N,defaultHardfork:P},{baseChain:j}))}return{common:n}},E=(e,i,o,l=!1,m=!0)=>L(void 0,void 0,void 0,function*(){const u=yield G.transactionBuilder({transaction:e,web3Context:i,privateKey:o,fillGasPrice:l,fillGasLimit:m}),d=O.formatTransaction(u,H.ETH_DATA_FORMAT);return w.validateTransactionForSigning(d),S.TransactionFactory.fromTxData(A(d),D(d,i))});exports.prepareTransactionForSigning=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=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");require("../../../../web3-eth-accounts/lib/esm/account.cjs");const N=require("../../../../web3-eth-accounts/lib/esm/common/common.cjs");require("../../../../web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../web3-eth-accounts/lib/esm/common/types.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 f=require("../../../../web3-validator/lib/esm/validation/object.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../@ethereumjs/rlp/dist/index.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/types.cjs");const S=require("../../../../web3-eth-accounts/lib/esm/tx/transactionFactory.cjs"),w=require("../validation.cjs"),O=require("./format_transaction.cjs"),G=require("./transaction_builder.cjs"),h=require("../../../../web3-utils/lib/esm/converters.cjs");var L=globalThis&&globalThis.__awaiter||function(e,i,o,l){function m(d){return d instanceof o?d:new o(function(u){u(d)})}return new(o||(o=Promise))(function(d,u){function s(r){try{v(l.next(r))}catch(a){u(a)}}function c(r){try{v(l.throw(r))}catch(a){u(a)}}function v(r){r.done?d(r.value):m(r.value).then(s,c)}v((l=l.apply(e,i||[])).next())})};const A=e=>{var i,o;return{nonce:e.nonce,gasPrice:e.gasPrice,gasLimit:(i=e.gasLimit)!==null&&i!==void 0?i:e.gas,to:e.to,value:e.value,data:(o=e.data)!==null&&o!==void 0?o:e.input,type:e.type,chainId:e.chainId,accessList:e.accessList,maxPriorityFeePerGas:e.maxPriorityFeePerGas,maxFeePerGas:e.maxFeePerGas}},D=(e,i)=>{var o,l,m,d,u,s,c,v,r,a,t,_,q,k,g,p,T,y;const C=!f.isNullish(e.chain)&&!f.isNullish(e.hardfork)||!f.isNullish(e.common);let n;if(!C)i.defaultCommon?(n=Object.assign({},i.defaultCommon),f.isNullish(n.hardfork)&&(n.hardfork=(o=e.hardfork)!==null&&o!==void 0?o:i.defaultHardfork),f.isNullish(n.baseChain)&&(n.baseChain=i.defaultChain)):n=N.Common.custom({name:"custom-network",chainId:h.toNumber(e.chainId),networkId:f.isNullish(e.networkId)?void 0:h.toNumber(e.networkId),defaultHardfork:(l=e.hardfork)!==null&&l!==void 0?l:i.defaultHardfork},{baseChain:i.defaultChain});else{const I=(s=(u=(d=(m=e==null?void 0:e.common)===null||m===void 0?void 0:m.customChain)===null||d===void 0?void 0:d.name)!==null&&u!==void 0?u:e.chain)!==null&&s!==void 0?s:"custom-network",F=h.toNumber((r=(v=(c=e==null?void 0:e.common)===null||c===void 0?void 0:c.customChain)===null||v===void 0?void 0:v.chainId)!==null&&r!==void 0?r:e==null?void 0:e.chainId),b=h.toNumber((_=(t=(a=e==null?void 0:e.common)===null||a===void 0?void 0:a.customChain)===null||t===void 0?void 0:t.networkId)!==null&&_!==void 0?_:e==null?void 0:e.networkId),P=(g=(k=(q=e==null?void 0:e.common)===null||q===void 0?void 0:q.hardfork)!==null&&k!==void 0?k:e==null?void 0:e.hardfork)!==null&&g!==void 0?g:i.defaultHardfork,j=(y=(T=(p=e.common)===null||p===void 0?void 0:p.baseChain)!==null&&T!==void 0?T:e.chain)!==null&&y!==void 0?y:i.defaultChain;F&&b&&I&&(n=N.Common.custom({name:I,chainId:F,networkId:b,defaultHardfork:P},{baseChain:j}))}return{common:n}},E=(e,i,o,l=!1,m=!0)=>L(void 0,void 0,void 0,function*(){const d=yield G.transactionBuilder({transaction:e,web3Context:i,privateKey:o,fillGasPrice:l,fillGasLimit:m}),u=O.formatTransaction(d,H.ETH_DATA_FORMAT);return w.validateTransactionForSigning(u),S.TransactionFactory.fromTxData(A(u),D(u,i))});exports.prepareTransactionForSigning=E;
@@ -16,11 +16,11 @@ import "../../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.js";
16
16
  import "../../../../@ethereumjs/rlp/dist/index.js";
17
17
  import "../../../../web3-eth-accounts/lib/esm/tx/types.js";
18
18
  import { TransactionFactory as O } from "../../../../web3-eth-accounts/lib/esm/tx/transactionFactory.js";
19
- import { validateTransactionForSigning as A } from "../validation.js";
20
- import { formatTransaction as D } from "./format_transaction.js";
21
- import { transactionBuilder as E } from "./transaction_builder.js";
19
+ import { validateTransactionForSigning as b } from "../validation.js";
20
+ import { formatTransaction as A } from "./format_transaction.js";
21
+ import { transactionBuilder as D } from "./transaction_builder.js";
22
22
  import { toNumber as c } from "../../../../web3-utils/lib/esm/converters.js";
23
- var S = function(o, i, d, u) {
23
+ var E = globalThis && globalThis.__awaiter || function(o, i, d, u) {
24
24
  function f(m) {
25
25
  return m instanceof d ? m : new d(function(l) {
26
26
  l(m);
@@ -29,25 +29,25 @@ var S = function(o, i, d, u) {
29
29
  return new (d || (d = Promise))(function(m, l) {
30
30
  function p(e) {
31
31
  try {
32
- n(u.next(e));
33
- } catch (v) {
34
- l(v);
32
+ v(u.next(e));
33
+ } catch (n) {
34
+ l(n);
35
35
  }
36
36
  }
37
37
  function a(e) {
38
38
  try {
39
- n(u.throw(e));
40
- } catch (v) {
41
- l(v);
39
+ v(u.throw(e));
40
+ } catch (n) {
41
+ l(n);
42
42
  }
43
43
  }
44
- function n(e) {
44
+ function v(e) {
45
45
  e.done ? m(e.value) : f(e.value).then(p, a);
46
46
  }
47
- n((u = u.apply(o, i || [])).next());
47
+ v((u = u.apply(o, i || [])).next());
48
48
  });
49
49
  };
50
- const N = (o) => {
50
+ const S = (o) => {
51
51
  var i, d;
52
52
  return {
53
53
  nonce: o.nonce,
@@ -62,8 +62,8 @@ const N = (o) => {
62
62
  maxPriorityFeePerGas: o.maxPriorityFeePerGas,
63
63
  maxFeePerGas: o.maxFeePerGas
64
64
  };
65
- }, b = (o, i) => {
66
- var d, u, f, m, l, p, a, n, e, v, _, k, t, s, T, I, g, y;
65
+ }, N = (o, i) => {
66
+ var d, u, f, m, l, p, a, v, e, n, _, k, s, t, T, g, I, y;
67
67
  const w = !h(o.chain) && !h(o.hardfork) || !h(o.common);
68
68
  let r;
69
69
  if (!w)
@@ -76,7 +76,7 @@ const N = (o) => {
76
76
  baseChain: i.defaultChain
77
77
  });
78
78
  else {
79
- const F = (p = (l = (m = (f = o == null ? void 0 : o.common) === null || f === void 0 ? void 0 : f.customChain) === null || m === void 0 ? void 0 : m.name) !== null && l !== void 0 ? l : o.chain) !== null && p !== void 0 ? p : "custom-network", C = c((e = (n = (a = o == null ? void 0 : o.common) === null || a === void 0 ? void 0 : a.customChain) === null || n === void 0 ? void 0 : n.chainId) !== null && e !== void 0 ? e : o == null ? void 0 : o.chainId), H = c((k = (_ = (v = o == null ? void 0 : o.common) === null || v === void 0 ? void 0 : v.customChain) === null || _ === void 0 ? void 0 : _.networkId) !== null && k !== void 0 ? k : o == null ? void 0 : o.networkId), j = (T = (s = (t = o == null ? void 0 : o.common) === null || t === void 0 ? void 0 : t.hardfork) !== null && s !== void 0 ? s : o == null ? void 0 : o.hardfork) !== null && T !== void 0 ? T : i.defaultHardfork, G = (y = (g = (I = o.common) === null || I === void 0 ? void 0 : I.baseChain) !== null && g !== void 0 ? g : o.chain) !== null && y !== void 0 ? y : i.defaultChain;
79
+ const F = (p = (l = (m = (f = o == null ? void 0 : o.common) === null || f === void 0 ? void 0 : f.customChain) === null || m === void 0 ? void 0 : m.name) !== null && l !== void 0 ? l : o.chain) !== null && p !== void 0 ? p : "custom-network", C = c((e = (v = (a = o == null ? void 0 : o.common) === null || a === void 0 ? void 0 : a.customChain) === null || v === void 0 ? void 0 : v.chainId) !== null && e !== void 0 ? e : o == null ? void 0 : o.chainId), H = c((k = (_ = (n = o == null ? void 0 : o.common) === null || n === void 0 ? void 0 : n.customChain) === null || _ === void 0 ? void 0 : _.networkId) !== null && k !== void 0 ? k : o == null ? void 0 : o.networkId), j = (T = (t = (s = o == null ? void 0 : o.common) === null || s === void 0 ? void 0 : s.hardfork) !== null && t !== void 0 ? t : o == null ? void 0 : o.hardfork) !== null && T !== void 0 ? T : i.defaultHardfork, G = (y = (I = (g = o.common) === null || g === void 0 ? void 0 : g.baseChain) !== null && I !== void 0 ? I : o.chain) !== null && y !== void 0 ? y : i.defaultChain;
80
80
  C && H && F && (r = P.custom({
81
81
  name: F,
82
82
  chainId: C,
@@ -87,15 +87,15 @@ const N = (o) => {
87
87
  }));
88
88
  }
89
89
  return { common: r };
90
- }, ro = (o, i, d, u = !1, f = !0) => S(void 0, void 0, void 0, function* () {
91
- const m = yield E({
90
+ }, ro = (o, i, d, u = !1, f = !0) => E(void 0, void 0, void 0, function* () {
91
+ const m = yield D({
92
92
  transaction: o,
93
93
  web3Context: i,
94
94
  privateKey: d,
95
95
  fillGasPrice: u,
96
96
  fillGasLimit: f
97
- }), l = D(m, L);
98
- return A(l), O.fromTxData(N(l), b(l, i));
97
+ }), l = A(m, L);
98
+ return b(l), O.fromTxData(S(l), N(l, i));
99
99
  });
100
100
  export {
101
101
  ro as prepareTransactionForSigning
@@ -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("../constants.cjs"),h=require("../rpc_method_wrappers.cjs"),g=require("../../../../web3-utils/lib/esm/promise_helpers.cjs");var v=function(r,l,t,o){function s(n){return n instanceof t?n:new t(function(c){c(n)})}return new(t||(t=Promise))(function(n,c){function a(e){try{u(o.next(e))}catch(i){c(i)}}function d(e){try{u(o.throw(e))}catch(i){c(i)}}function u(e){e.done?n(e.value):s(e.value).then(a,d)}u((o=o.apply(r,l||[])).next())})};function p(r,l,t){const o=r.transactionPollingInterval,[s,n]=g.rejectIfConditionAtInterval(()=>v(this,void 0,void 0,function*(){let a;try{a=yield h.getBlockNumber(r,T.NUMBER_DATA_FORMAT)}catch(u){console.warn("An error happen while trying to get the block number",u);return}const d=a-l;if(d>=r.transactionBlockTimeout)return new m.TransactionBlockTimeoutError({starterBlockNumber:l,numberOfBlocks:d,transactionHash:t})}),o);return[n,{clean:()=>{clearInterval(s)}}]}function y(r,l,t){var o;return v(this,void 0,void 0,function*(){let s=!0,n,c;function a(u,e){e&&console.warn("error happened at subscription. So revert to polling...",e),c.clean(),s=!1;const[i,f]=p(r,l,t);c.clean=f.clean,i.catch(_=>u(_))}try{n=yield(o=r.subscriptionManager)===null||o===void 0?void 0:o.subscribe("newHeads"),c={clean:()=>{var u;n.id&&((u=r.subscriptionManager)===null||u===void 0||u.removeSubscription(n).then(()=>{}).catch(()=>{}))}}}catch{return p(r,l,t)}return[new Promise((u,e)=>{try{n.on("data",i=>{if(s=!1,!(i!=null&&i.number))return;const f=Number(BigInt(i.number)-BigInt(l));f>=r.transactionBlockTimeout&&e(new m.TransactionBlockTimeoutError({starterBlockNumber:l,numberOfBlocks:f,transactionHash:t}))}),n.on("error",i=>{a(e,i)})}catch(i){a(e,i)}setTimeout(()=>{s&&a(e)},r.blockHeaderTimeout*1e3)}),c]})}function B(r,l){var t,o;return v(this,void 0,void 0,function*(){const{provider:s}=r.requestManager;let n;const c=yield h.getBlockNumber(r,T.NUMBER_DATA_FORMAT);return!((o=(t=s).supportsSubscriptions)===null||o===void 0)&&o.call(t)&&r.enableExperimentalFeatures.useSubscriptionWhenCheckingBlockTimeout?n=yield y(r,c,l):n=p(r,c,l),n})}exports.rejectIfBlockTimeout=B;
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("../constants.cjs"),h=require("../rpc_method_wrappers.cjs"),_=require("../../../../web3-utils/lib/esm/promise_helpers.cjs");var v=globalThis&&globalThis.__awaiter||function(r,u,t,o){function s(n){return n instanceof t?n:new t(function(c){c(n)})}return new(t||(t=Promise))(function(n,c){function a(e){try{l(o.next(e))}catch(i){c(i)}}function d(e){try{l(o.throw(e))}catch(i){c(i)}}function l(e){e.done?n(e.value):s(e.value).then(a,d)}l((o=o.apply(r,u||[])).next())})};function p(r,u,t){const o=r.transactionPollingInterval,[s,n]=_.rejectIfConditionAtInterval(()=>v(this,void 0,void 0,function*(){let a;try{a=yield h.getBlockNumber(r,T.NUMBER_DATA_FORMAT)}catch(l){console.warn("An error happen while trying to get the block number",l);return}const d=a-u;if(d>=r.transactionBlockTimeout)return new m.TransactionBlockTimeoutError({starterBlockNumber:u,numberOfBlocks:d,transactionHash:t})}),o);return[n,{clean:()=>{clearInterval(s)}}]}function y(r,u,t){var o;return v(this,void 0,void 0,function*(){let s=!0,n,c;function a(l,e){e&&console.warn("error happened at subscription. So revert to polling...",e),c.clean(),s=!1;const[i,f]=p(r,u,t);c.clean=f.clean,i.catch(g=>l(g))}try{n=yield(o=r.subscriptionManager)===null||o===void 0?void 0:o.subscribe("newHeads"),c={clean:()=>{var l;n.id&&((l=r.subscriptionManager)===null||l===void 0||l.removeSubscription(n).then(()=>{}).catch(()=>{}))}}}catch{return p(r,u,t)}return[new Promise((l,e)=>{try{n.on("data",i=>{if(s=!1,!(i!=null&&i.number))return;const f=Number(BigInt(i.number)-BigInt(u));f>=r.transactionBlockTimeout&&e(new m.TransactionBlockTimeoutError({starterBlockNumber:u,numberOfBlocks:f,transactionHash:t}))}),n.on("error",i=>{a(e,i)})}catch(i){a(e,i)}setTimeout(()=>{s&&a(e)},r.blockHeaderTimeout*1e3)}),c]})}function b(r,u){var t,o;return v(this,void 0,void 0,function*(){const{provider:s}=r.requestManager;let n;const c=yield h.getBlockNumber(r,T.NUMBER_DATA_FORMAT);return!((o=(t=s).supportsSubscriptions)===null||o===void 0)&&o.call(t)&&r.enableExperimentalFeatures.useSubscriptionWhenCheckingBlockTimeout?n=yield y(r,c,u):n=p(r,c,u),n})}exports.rejectIfBlockTimeout=b;
@@ -2,36 +2,36 @@ import { TransactionBlockTimeoutError as v } from "../../../../web3-errors/lib/e
2
2
  import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
3
3
  import { NUMBER_DATA_FORMAT as h } from "../constants.js";
4
4
  import { getBlockNumber as T } from "../rpc_method_wrappers.js";
5
- import { rejectIfConditionAtInterval as g } from "../../../../web3-utils/lib/esm/promise_helpers.js";
6
- var m = function(n, u, t, o) {
5
+ import { rejectIfConditionAtInterval as y } from "../../../../web3-utils/lib/esm/promise_helpers.js";
6
+ var m = globalThis && globalThis.__awaiter || function(n, u, t, i) {
7
7
  function a(r) {
8
8
  return r instanceof t ? r : new t(function(c) {
9
9
  c(r);
10
10
  });
11
11
  }
12
12
  return new (t || (t = Promise))(function(r, c) {
13
- function s(i) {
13
+ function s(o) {
14
14
  try {
15
- l(o.next(i));
15
+ l(i.next(o));
16
16
  } catch (e) {
17
17
  c(e);
18
18
  }
19
19
  }
20
- function f(i) {
20
+ function f(o) {
21
21
  try {
22
- l(o.throw(i));
22
+ l(i.throw(o));
23
23
  } catch (e) {
24
24
  c(e);
25
25
  }
26
26
  }
27
- function l(i) {
28
- i.done ? r(i.value) : a(i.value).then(s, f);
27
+ function l(o) {
28
+ o.done ? r(o.value) : a(o.value).then(s, f);
29
29
  }
30
- l((o = o.apply(n, u || [])).next());
30
+ l((i = i.apply(n, u || [])).next());
31
31
  });
32
32
  };
33
33
  function p(n, u, t) {
34
- const o = n.transactionPollingInterval, [a, r] = g(() => m(this, void 0, void 0, function* () {
34
+ const i = n.transactionPollingInterval, [a, r] = y(() => m(this, void 0, void 0, function* () {
35
35
  let s;
36
36
  try {
37
37
  s = yield T(n, h);
@@ -46,22 +46,22 @@ function p(n, u, t) {
46
46
  numberOfBlocks: f,
47
47
  transactionHash: t
48
48
  });
49
- }), o);
49
+ }), i);
50
50
  return [r, { clean: () => {
51
51
  clearInterval(a);
52
52
  } }];
53
53
  }
54
54
  function _(n, u, t) {
55
- var o;
55
+ var i;
56
56
  return m(this, void 0, void 0, function* () {
57
57
  let a = !0, r, c;
58
- function s(l, i) {
59
- i && console.warn("error happened at subscription. So revert to polling...", i), c.clean(), a = !1;
58
+ function s(l, o) {
59
+ o && console.warn("error happened at subscription. So revert to polling...", o), c.clean(), a = !1;
60
60
  const [e, d] = p(n, u, t);
61
- c.clean = d.clean, e.catch((y) => l(y));
61
+ c.clean = d.clean, e.catch((g) => l(g));
62
62
  }
63
63
  try {
64
- r = yield (o = n.subscriptionManager) === null || o === void 0 ? void 0 : o.subscribe("newHeads"), c = {
64
+ r = yield (i = n.subscriptionManager) === null || i === void 0 ? void 0 : i.subscribe("newHeads"), c = {
65
65
  clean: () => {
66
66
  var l;
67
67
  r.id && ((l = n.subscriptionManager) === null || l === void 0 || l.removeSubscription(r).then(() => {
@@ -72,36 +72,36 @@ function _(n, u, t) {
72
72
  } catch {
73
73
  return p(n, u, t);
74
74
  }
75
- return [new Promise((l, i) => {
75
+ return [new Promise((l, o) => {
76
76
  try {
77
77
  r.on("data", (e) => {
78
78
  if (a = !1, !(e != null && e.number))
79
79
  return;
80
80
  const d = Number(BigInt(e.number) - BigInt(u));
81
- d >= n.transactionBlockTimeout && i(new v({
81
+ d >= n.transactionBlockTimeout && o(new v({
82
82
  starterBlockNumber: u,
83
83
  numberOfBlocks: d,
84
84
  transactionHash: t
85
85
  }));
86
86
  }), r.on("error", (e) => {
87
- s(i, e);
87
+ s(o, e);
88
88
  });
89
89
  } catch (e) {
90
- s(i, e);
90
+ s(o, e);
91
91
  }
92
92
  setTimeout(() => {
93
- a && s(i);
93
+ a && s(o);
94
94
  }, n.blockHeaderTimeout * 1e3);
95
95
  }), c];
96
96
  });
97
97
  }
98
98
  function A(n, u) {
99
- var t, o;
99
+ var t, i;
100
100
  return m(this, void 0, void 0, function* () {
101
101
  const { provider: a } = n.requestManager;
102
102
  let r;
103
103
  const c = yield T(n, h);
104
- return !((o = (t = a).supportsSubscriptions) === null || o === void 0) && o.call(t) && n.enableExperimentalFeatures.useSubscriptionWhenCheckingBlockTimeout ? r = yield _(n, c, u) : r = p(n, c, u), r;
104
+ return !((i = (t = a).supportsSubscriptions) === null || i === void 0) && i.call(t) && n.enableExperimentalFeatures.useSubscriptionWhenCheckingBlockTimeout ? r = yield _(n, c, u) : r = p(n, c, u), r;
105
105
  });
106
106
  }
107
107
  export {
@@ -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"),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 d=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"),x=require("./decoding.cjs");var a=globalThis&&globalThis.__awaiter||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 m(s){try{u(i.next(s))}catch(h){o(h)}}function _(s){try{u(i.throw(s))}catch(h){o(h)}}function u(s){s.done?r(s.value):e(s.value).then(m,_)}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)&&d.isNullish(t.gasPrice)&&(d.isNullish(n.maxPriorityFeePerGas)||d.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 g.trySendTransaction(this.web3Context,()=>a(this,void 0,void 0,function*(){return p.sendRawTransaction(this.web3Context.requestManager,i.rawTransaction)}),i.transactionHash)}return g.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,38 +1,38 @@
1
1
  import { ETH_DATA_FORMAT as E } 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";
6
- import { InvalidResponseError as T } from "../../../../web3-errors/lib/esm/errors/response_errors.js";
4
+ import { ContractExecutionError as u } from "../../../../web3-errors/lib/esm/errors/contract_errors.js";
5
+ import { TransactionRevertWithCustomError as g, TransactionRevertedWithoutReasonError as b, TransactionRevertInstructionError as C, TransactionPollingTimeoutError as T } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
6
+ import { InvalidResponseError as w } 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";
10
+ import { isNullish as f } from "../../../../web3-validator/lib/esm/validation/object.js";
11
11
  import { sendRawTransaction as R, sendTransaction as x } 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
14
  import { getTransactionGasPricing as _ } from "./get_transaction_gas_pricing.js";
15
- import { trySendTransaction as m } from "./try_send_transaction.js";
15
+ import { trySendTransaction as d } 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 v } 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) {
21
+ var a = globalThis && globalThis.__awaiter || function(m, t, n, e) {
22
22
  function i(o) {
23
23
  return o instanceof n ? o : new n(function(r) {
24
24
  r(o);
25
25
  });
26
26
  }
27
27
  return new (n || (n = Promise))(function(o, r) {
28
- function p(s) {
28
+ function l(s) {
29
29
  try {
30
30
  c(e.next(s));
31
31
  } catch (h) {
32
32
  r(h);
33
33
  }
34
34
  }
35
- function l(s) {
35
+ function p(s) {
36
36
  try {
37
37
  c(e.throw(s));
38
38
  } catch (h) {
@@ -40,9 +40,9 @@ var a = function(u, t, n, e) {
40
40
  }
41
41
  }
42
42
  function c(s) {
43
- s.done ? o(s.value) : i(s.value).then(p, l);
43
+ s.done ? o(s.value) : i(s.value).then(l, p);
44
44
  }
45
- c((e = e.apply(u, t || [])).next());
45
+ c((e = e.apply(m, t || [])).next());
46
46
  });
47
47
  };
48
48
  class X {
@@ -68,7 +68,7 @@ class X {
68
68
  if (this.options.checkRevertBeforeSending !== !1) {
69
69
  const n = yield S(this.web3Context, t, this.options.contractAbi);
70
70
  if (n !== void 0)
71
- throw yield f(this.web3Context, t, void 0, void 0, this.options.contractAbi, n);
71
+ throw yield v(this.web3Context, t, void 0, void 0, this.options.contractAbi, n);
72
72
  }
73
73
  });
74
74
  }
@@ -79,18 +79,18 @@ class X {
79
79
  var e;
80
80
  return a(this, void 0, void 0, function* () {
81
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;
82
+ return !(!((e = this.options) === null || e === void 0) && e.ignoreGasPricing) && f(t.gasPrice) && (f(n.maxPriorityFeePerGas) || f(n.maxFeePerGas)) && (i = Object.assign(Object.assign({}, t), yield _(t, this.web3Context, E))), i;
83
83
  });
84
84
  }
85
85
  signAndSend({ wallet: t, tx: n }) {
86
86
  return a(this, void 0, void 0, function* () {
87
87
  if (t) {
88
88
  const e = yield t.signTransaction(n);
89
- return m(this.web3Context, () => a(this, void 0, void 0, function* () {
89
+ return d(this.web3Context, () => a(this, void 0, void 0, function* () {
90
90
  return R(this.web3Context.requestManager, e.rawTransaction);
91
91
  }), e.transactionHash);
92
92
  }
93
- return m(this.web3Context, () => a(this, void 0, void 0, function* () {
93
+ return d(this.web3Context, () => a(this, void 0, void 0, function* () {
94
94
  return x(this.web3Context.requestManager, n);
95
95
  }));
96
96
  });
@@ -112,7 +112,7 @@ class X {
112
112
  var e;
113
113
  return a(this, void 0, void 0, function* () {
114
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;
115
+ return i instanceof u && this.web3Context.handleRevert && (i = yield v(this.web3Context, n, void 0, void 0, (e = this.options) === null || e === void 0 ? void 0 : e.contractAbi)), (i instanceof w || i instanceof u || i instanceof g || i instanceof b || i instanceof C || i instanceof T) && this.promiEvent.listenerCount("error") > 0 && this.promiEvent.emit("error", i), i;
116
116
  });
117
117
  }
118
118
  emitConfirmation({ receipt: t, transactionHash: n }) {
@@ -124,7 +124,7 @@ class X {
124
124
  if (!((e = this.options) === null || e === void 0) && e.transactionResolver)
125
125
  return (i = this.options) === null || i === void 0 ? void 0 : i.transactionResolver(t);
126
126
  if (t.status === BigInt(0)) {
127
- const r = yield f(
127
+ const r = yield v(
128
128
  this.web3Context,
129
129
  n,
130
130
  // @ts-expect-error unknown type fix
@@ -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 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 _=globalThis&&globalThis.__awaiter||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 g=(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}},N=(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)}),w=(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=g("from",i.web3Context,void 0,i.privateKey)),n.isNullish(e.nonce)&&(e.nonce=yield N(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=w(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=g;exports.getTransactionNonce=N;exports.getTransactionType=w;exports.transactionBuilder=F;