@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.
- package/dist/main-2247448a.js +91 -0
- package/dist/main-6c51a895.mjs +13628 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
- package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
- package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +6 -6
- package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
- package/dist/node_modules/ethereum-cryptography/esm/utils.js +4 -3
- package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
- package/dist/node_modules/vue3-carousel/dist/carousel.css.js +4 -1
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +110 -110
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +7 -7
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +15 -15
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +26 -26
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
- package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
- package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +5 -5
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +15 -15
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +5 -5
- package/dist/products.server.js +875 -0
- package/dist/products.server.mjs +875 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +4 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +4 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -225
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +227 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +2 -61
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +63 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +4 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +4 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +4 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +78 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +18 -18
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +4 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +4 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +4 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +4 -1
- package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +4 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +4 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +4 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +4 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +4 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -70
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -95
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +97 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +4 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +4 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +4 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +4 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +4 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -65
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +4 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +4 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.js +43 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +41 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +87 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +138 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +114 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +53 -0
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/products.client.js +56 -0
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +3 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-65c35f46.mjs +55 -0
- package/dist/web-adbe95b6.js +1 -0
- package/package.json +1 -1
- package/src/modules/products/components/pages/ProductRecommmendation.vue +2 -2
- package/src/modules/products/products.client.js +76 -20
- package/src/modules/products/products.server.js +10 -6
- package/src/modules/products/router/products.router.js +4 -2
@@ -1,11 +1,11 @@
|
|
1
|
-
import { ETH_DATA_FORMAT as m, DEFAULT_RETURN_FORMAT as
|
1
|
+
import { ETH_DATA_FORMAT as m, DEFAULT_RETURN_FORMAT as w } from "../../../../web3-types/lib/esm/data_format_types.js";
|
2
2
|
import "../../../../web3-types/lib/esm/eth_types.js";
|
3
3
|
import "../../../../web3-types/lib/esm/web3_base_provider.js";
|
4
4
|
import "../../../../web3-eth-accounts/lib/esm/wallet.js";
|
5
|
-
import { privateKeyToAddress as
|
5
|
+
import { privateKeyToAddress as b } from "../../../../web3-eth-accounts/lib/esm/account.js";
|
6
6
|
import "../../../../crc-32/crc32.js";
|
7
7
|
import "../../../../web3-eth-accounts/lib/esm/common/types.js";
|
8
|
-
import { LocalWalletNotAvailableError as h, InvalidTransactionWithSender as
|
8
|
+
import { LocalWalletNotAvailableError as h, InvalidTransactionWithSender as v, InvalidTransactionWithReceiver as x, TransactionDataAndInputError as y, UnableToPopulateNonceError as C } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
9
9
|
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
10
10
|
import "../../../../web3-validator/lib/esm/formats.js";
|
11
11
|
import { isHexStrict as A } from "../../../../web3-validator/lib/esm/validation/string.js";
|
@@ -27,8 +27,8 @@ import { detectTransactionType as E } from "./detect_transaction_type.js";
|
|
27
27
|
import { transactionSchema as R } from "../schemas.js";
|
28
28
|
import { getTransactionGasPricing as B } from "./get_transaction_gas_pricing.js";
|
29
29
|
import { format as d } from "../../../../web3-utils/lib/esm/formatter.js";
|
30
|
-
import { bytesToHex as
|
31
|
-
var p = function(i, r, e, t) {
|
30
|
+
import { bytesToHex as T } from "../../../../web3-utils/lib/esm/converters.js";
|
31
|
+
var p = globalThis && globalThis.__awaiter || function(i, r, e, t) {
|
32
32
|
function o(a) {
|
33
33
|
return a instanceof e ? a : new e(function(c) {
|
34
34
|
c(a);
|
@@ -68,18 +68,18 @@ const F = (i, r, e, t) => {
|
|
68
68
|
}
|
69
69
|
throw new h();
|
70
70
|
} else
|
71
|
-
throw i === "from" ? new
|
71
|
+
throw i === "from" ? new v(e.from) : (
|
72
72
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
73
73
|
new x(e.to)
|
74
74
|
);
|
75
75
|
}
|
76
76
|
if (i === "from") {
|
77
77
|
if (!n(t))
|
78
|
-
return
|
78
|
+
return b(t);
|
79
79
|
if (!n(r.defaultAccount))
|
80
80
|
return r.defaultAccount;
|
81
81
|
}
|
82
|
-
}, G = (i, r, e =
|
82
|
+
}, G = (i, r, e = w) => p(void 0, void 0, void 0, function* () {
|
83
83
|
if (n(r))
|
84
84
|
throw new C();
|
85
85
|
return N(i, r, i.defaultBlock, e);
|
@@ -93,14 +93,14 @@ const F = (i, r, e, t) => {
|
|
93
93
|
function D(i) {
|
94
94
|
var r, e;
|
95
95
|
return p(this, void 0, void 0, function* () {
|
96
|
-
let t = d(R, i.transaction,
|
96
|
+
let t = d(R, i.transaction, w);
|
97
97
|
if (n(t.from) && (t.from = F("from", i.web3Context, void 0, i.privateKey)), n(t.nonce) && (t.nonce = yield G(i.web3Context, t.from, m)), n(t.value) && (t.value = "0x0"), n(t.data))
|
98
98
|
n(t.input) ? t.input = "0x" : t.input.startsWith("0x") || (t.input = `0x${t.input}`);
|
99
99
|
else {
|
100
100
|
if (!n(t.input) && t.data !== t.input)
|
101
101
|
throw new y({
|
102
|
-
data:
|
103
|
-
input:
|
102
|
+
data: T(t.data),
|
103
|
+
input: T(t.input)
|
104
104
|
});
|
105
105
|
t.data.startsWith("0x") || (t.data = `0x${t.data}`);
|
106
106
|
}
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const m=require("./reject_if_block_timeout.cjs"),T=require("../../../../web3-utils/lib/esm/promise_helpers.cjs");var y=globalThis&&globalThis.__awaiter||function(r,c,e,i){function u(t){return t instanceof e?t:new e(function(o){o(t)})}return new(e||(e=Promise))(function(t,o){function s(n){try{a(i.next(n))}catch(l){o(l)}}function f(n){try{a(i.throw(n))}catch(l){o(l)}}function a(n){n.done?t(n.value):u(n.value).then(s,f)}a((i=i.apply(r,c||[])).next())})};function _(r,c,e){return y(this,void 0,void 0,function*(){const[i,u]=T.rejectIfTimeout(r.transactionSendTimeout,new d.TransactionSendTimeoutError({numberOfSeconds:r.transactionSendTimeout/1e3,transactionHash:e})),[t,o]=yield m.rejectIfBlockTimeout(r,e);try{return yield Promise.race([c(),u,t])}finally{clearTimeout(i),o.clean()}})}exports.trySendTransaction=_;
|
@@ -1,45 +1,45 @@
|
|
1
|
-
import { TransactionSendTimeoutError as
|
1
|
+
import { TransactionSendTimeoutError as d } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
2
2
|
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
3
|
import { rejectIfBlockTimeout as T } from "./reject_if_block_timeout.js";
|
4
|
-
import { rejectIfTimeout as
|
5
|
-
var
|
6
|
-
function u(
|
7
|
-
return
|
8
|
-
i(
|
4
|
+
import { rejectIfTimeout as s } from "../../../../web3-utils/lib/esm/promise_helpers.js";
|
5
|
+
var p = globalThis && globalThis.__awaiter || function(r, c, t, o) {
|
6
|
+
function u(n) {
|
7
|
+
return n instanceof t ? n : new t(function(i) {
|
8
|
+
i(n);
|
9
9
|
});
|
10
10
|
}
|
11
|
-
return new (
|
12
|
-
function
|
11
|
+
return new (t || (t = Promise))(function(n, i) {
|
12
|
+
function f(e) {
|
13
13
|
try {
|
14
|
-
|
15
|
-
} catch (
|
16
|
-
i(
|
14
|
+
m(o.next(e));
|
15
|
+
} catch (a) {
|
16
|
+
i(a);
|
17
17
|
}
|
18
18
|
}
|
19
|
-
function
|
19
|
+
function l(e) {
|
20
20
|
try {
|
21
|
-
|
22
|
-
} catch (
|
23
|
-
i(
|
21
|
+
m(o.throw(e));
|
22
|
+
} catch (a) {
|
23
|
+
i(a);
|
24
24
|
}
|
25
25
|
}
|
26
|
-
function
|
27
|
-
|
26
|
+
function m(e) {
|
27
|
+
e.done ? n(e.value) : u(e.value).then(f, l);
|
28
28
|
}
|
29
|
-
|
29
|
+
m((o = o.apply(r, c || [])).next());
|
30
30
|
});
|
31
31
|
};
|
32
|
-
function w(r, c,
|
33
|
-
return
|
34
|
-
const [o, u] =
|
32
|
+
function w(r, c, t) {
|
33
|
+
return p(this, void 0, void 0, function* () {
|
34
|
+
const [o, u] = s(r.transactionSendTimeout, new d({
|
35
35
|
numberOfSeconds: r.transactionSendTimeout / 1e3,
|
36
|
-
transactionHash:
|
37
|
-
})), [
|
36
|
+
transactionHash: t
|
37
|
+
})), [n, i] = yield T(r, t);
|
38
38
|
try {
|
39
39
|
return yield Promise.race([
|
40
40
|
c(),
|
41
41
|
u,
|
42
|
-
|
42
|
+
n
|
43
43
|
// this will throw an error on Transaction Block Timeout
|
44
44
|
]);
|
45
45
|
} finally {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const m=require("./reject_if_block_timeout.cjs"),v=require("../rpc_method_wrappers.cjs"),d=require("../../../../web3-utils/lib/esm/promise_helpers.cjs");var p=globalThis&&globalThis.__awaiter||function(t,c,o,n){function s(i){return i instanceof o?i:new o(function(r){r(i)})}return new(o||(o=Promise))(function(i,r){function u(e){try{a(n.next(e))}catch(l){r(l)}}function f(e){try{a(n.throw(e))}catch(l){r(l)}}function a(e){e.done?i(e.value):s(e.value).then(u,f)}a((n=n.apply(t,c||[])).next())})};function h(t,c,o){var n;return p(this,void 0,void 0,function*(){const s=(n=t.transactionReceiptPollingInterval)!==null&&n!==void 0?n:t.transactionPollingInterval,[i,r]=d.pollTillDefinedAndReturnIntervalId(()=>p(this,void 0,void 0,function*(){try{return v.getTransactionReceipt(t,c,o)}catch(l){console.warn("An error happen while trying to get the transaction receipt",l);return}}),s),[u,f]=d.rejectIfTimeout(t.transactionPollingTimeout,new T.TransactionPollingTimeoutError({numberOfSeconds:t.transactionPollingTimeout/1e3,transactionHash:c})),[a,e]=yield m.rejectIfBlockTimeout(t,c);try{return yield Promise.race([i,f,a])}finally{u&&clearTimeout(u),r&&clearInterval(r),e.clean()}})}exports.waitForTransactionReceipt=h;
|
@@ -3,52 +3,52 @@ import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
|
3
3
|
import { rejectIfBlockTimeout as s } from "./reject_if_block_timeout.js";
|
4
4
|
import { getTransactionReceipt as T } from "../rpc_method_wrappers.js";
|
5
5
|
import { pollTillDefinedAndReturnIntervalId as v, rejectIfTimeout as I } from "../../../../web3-utils/lib/esm/promise_helpers.js";
|
6
|
-
var
|
7
|
-
function f(
|
8
|
-
return
|
9
|
-
o(
|
6
|
+
var d = globalThis && globalThis.__awaiter || function(t, c, r, i) {
|
7
|
+
function f(e) {
|
8
|
+
return e instanceof r ? e : new r(function(o) {
|
9
|
+
o(e);
|
10
10
|
});
|
11
11
|
}
|
12
|
-
return new (r || (r = Promise))(function(
|
12
|
+
return new (r || (r = Promise))(function(e, o) {
|
13
13
|
function u(n) {
|
14
14
|
try {
|
15
|
-
|
16
|
-
} catch (
|
17
|
-
o(
|
15
|
+
l(i.next(n));
|
16
|
+
} catch (a) {
|
17
|
+
o(a);
|
18
18
|
}
|
19
19
|
}
|
20
|
-
function
|
20
|
+
function m(n) {
|
21
21
|
try {
|
22
|
-
|
23
|
-
} catch (
|
24
|
-
o(
|
22
|
+
l(i.throw(n));
|
23
|
+
} catch (a) {
|
24
|
+
o(a);
|
25
25
|
}
|
26
26
|
}
|
27
|
-
function
|
28
|
-
n.done ?
|
27
|
+
function l(n) {
|
28
|
+
n.done ? e(n.value) : f(n.value).then(u, m);
|
29
29
|
}
|
30
|
-
|
30
|
+
l((i = i.apply(t, c || [])).next());
|
31
31
|
});
|
32
32
|
};
|
33
33
|
function _(t, c, r) {
|
34
|
-
var
|
35
|
-
return
|
36
|
-
const f = (
|
34
|
+
var i;
|
35
|
+
return d(this, void 0, void 0, function* () {
|
36
|
+
const f = (i = t.transactionReceiptPollingInterval) !== null && i !== void 0 ? i : t.transactionPollingInterval, [e, o] = v(() => d(this, void 0, void 0, function* () {
|
37
37
|
try {
|
38
38
|
return T(t, c, r);
|
39
|
-
} catch (
|
40
|
-
console.warn("An error happen while trying to get the transaction receipt",
|
39
|
+
} catch (a) {
|
40
|
+
console.warn("An error happen while trying to get the transaction receipt", a);
|
41
41
|
return;
|
42
42
|
}
|
43
|
-
}), f), [u,
|
43
|
+
}), f), [u, m] = I(t.transactionPollingTimeout, new p({
|
44
44
|
numberOfSeconds: t.transactionPollingTimeout / 1e3,
|
45
45
|
transactionHash: c
|
46
|
-
})), [
|
46
|
+
})), [l, n] = yield s(t, c);
|
47
47
|
try {
|
48
48
|
return yield Promise.race([
|
49
|
-
|
50
|
-
|
51
|
-
|
49
|
+
e,
|
50
|
+
m,
|
51
|
+
l
|
52
52
|
// this will throw an error on Transaction Block Timeout
|
53
53
|
]);
|
54
54
|
} finally {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../../web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../../web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const d=require("../schemas.cjs"),v=require("../../../../web3-utils/lib/esm/converters.cjs"),u=require("../../../../web3-utils/lib/esm/formatter.cjs");var y=globalThis&&globalThis.__awaiter||function(o,l,e,n){function c(t){return t instanceof e?t:new e(function(a){a(t)})}return new(e||(e=Promise))(function(t,a){function r(i){try{s(n.next(i))}catch(f){a(f)}}function h(i){try{s(n.throw(i))}catch(f){a(f)}}function s(i){i.done?t(i.value):c(i.value).then(r,h)}s((n=n.apply(o,l||[])).next())})};const g=({web3Context:o,transactionReceipt:l,transactionPromiEvent:e,returnFormat:n})=>{var c;let t=1;const a=setInterval(()=>{y(void 0,void 0,void 0,function*(){t>=o.transactionConfirmationBlocks&&clearInterval(a);const r=yield m.getBlockByNumber(o.requestManager,v.numberToHex(BigInt(l.blockNumber)+BigInt(t)),!1);r!=null&&r.hash&&(t+=1,e.emit("confirmation",{confirmations:u.format({format:"uint"},t,n),receipt:u.format(d.transactionReceiptSchema,l,n),latestBlockHash:u.format({format:"bytes32"},r.hash,n)}))})},(c=o.transactionReceiptPollingInterval)!==null&&c!==void 0?c:o.transactionPollingInterval)};exports.watchTransactionByPolling=g;
|
@@ -1,51 +1,51 @@
|
|
1
|
-
import { getBlockByNumber as
|
1
|
+
import { getBlockByNumber as h } from "../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
|
2
2
|
import "../../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
|
3
3
|
import "../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
|
4
4
|
import { transactionReceiptSchema as p } from "../schemas.js";
|
5
5
|
import { numberToHex as v } from "../../../../web3-utils/lib/esm/converters.js";
|
6
6
|
import { format as s } from "../../../../web3-utils/lib/esm/formatter.js";
|
7
|
-
var
|
8
|
-
function
|
7
|
+
var d = globalThis && globalThis.__awaiter || function(o, e, a, i) {
|
8
|
+
function l(n) {
|
9
9
|
return n instanceof a ? n : new a(function(c) {
|
10
10
|
c(n);
|
11
11
|
});
|
12
12
|
}
|
13
13
|
return new (a || (a = Promise))(function(n, c) {
|
14
|
-
function
|
14
|
+
function r(t) {
|
15
15
|
try {
|
16
|
-
|
16
|
+
f(i.next(t));
|
17
17
|
} catch (m) {
|
18
18
|
c(m);
|
19
19
|
}
|
20
20
|
}
|
21
|
-
function
|
21
|
+
function u(t) {
|
22
22
|
try {
|
23
|
-
|
23
|
+
f(i.throw(t));
|
24
24
|
} catch (m) {
|
25
25
|
c(m);
|
26
26
|
}
|
27
27
|
}
|
28
|
-
function
|
29
|
-
t.done ? n(t.value) :
|
28
|
+
function f(t) {
|
29
|
+
t.done ? n(t.value) : l(t.value).then(r, u);
|
30
30
|
}
|
31
|
-
|
31
|
+
f((i = i.apply(o, e || [])).next());
|
32
32
|
});
|
33
33
|
};
|
34
|
-
const
|
35
|
-
var
|
34
|
+
const b = ({ web3Context: o, transactionReceipt: e, transactionPromiEvent: a, returnFormat: i }) => {
|
35
|
+
var l;
|
36
36
|
let n = 1;
|
37
37
|
const c = setInterval(() => {
|
38
|
-
|
38
|
+
d(void 0, void 0, void 0, function* () {
|
39
39
|
n >= o.transactionConfirmationBlocks && clearInterval(c);
|
40
|
-
const
|
41
|
-
|
40
|
+
const r = yield h(o.requestManager, v(BigInt(e.blockNumber) + BigInt(n)), !1);
|
41
|
+
r != null && r.hash && (n += 1, a.emit("confirmation", {
|
42
42
|
confirmations: s({ format: "uint" }, n, i),
|
43
|
-
receipt: s(p,
|
44
|
-
latestBlockHash: s({ format: "bytes32" },
|
43
|
+
receipt: s(p, e, i),
|
44
|
+
latestBlockHash: s({ format: "bytes32" }, r.hash, i)
|
45
45
|
}));
|
46
46
|
});
|
47
|
-
}, (
|
47
|
+
}, (l = o.transactionReceiptPollingInterval) !== null && l !== void 0 ? l : o.transactionPollingInterval);
|
48
48
|
};
|
49
49
|
export {
|
50
|
-
|
50
|
+
b as watchTransactionByPolling
|
51
51
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../schemas.cjs"),v=require("./watch_transaction_by_polling.cjs"),d=require("../../../../web3-utils/lib/esm/formatter.cjs");var m=globalThis&&globalThis.__awaiter||function(a,l,t,o){function f(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function r(n){try{u(o.next(n))}catch(h){c(h)}}function i(n){try{u(o.throw(n))}catch(h){c(h)}}function u(n){n.done?s(n.value):f(n.value).then(r,i)}u((o=o.apply(a,l||[])).next())})};const g=({web3Context:a,transactionReceipt:l,transactionPromiEvent:t,returnFormat:o})=>{let f=!0,s;setImmediate(()=>{var c;(c=a.subscriptionManager)===null||c===void 0||c.subscribe("newHeads").then(r=>{r.on("data",i=>m(void 0,void 0,void 0,function*(){var u;if(f=!1,!(i!=null&&i.number)||s===(i==null?void 0:i.parentHash))return;s=i==null?void 0:i.parentHash;const n=BigInt(i.number)-BigInt(l.blockNumber)+BigInt(1);t.emit("confirmation",{confirmations:d.format({format:"uint"},n,o),receipt:d.format(y.transactionReceiptSchema,l,o),latestBlockHash:d.format({format:"bytes32"},i.parentHash,o)}),n>=a.transactionConfirmationBlocks&&(yield(u=a.subscriptionManager)===null||u===void 0?void 0:u.removeSubscription(r))})),r.on("error",()=>m(void 0,void 0,void 0,function*(){var i;yield(i=a.subscriptionManager)===null||i===void 0?void 0:i.removeSubscription(r),f=!1,v.watchTransactionByPolling({web3Context:a,transactionReceipt:l,transactionPromiEvent:t,returnFormat:o})}))}).catch(()=>{f=!1,v.watchTransactionByPolling({web3Context:a,transactionReceipt:l,transactionPromiEvent:t,returnFormat:o})})}),setTimeout(()=>{f&&v.watchTransactionByPolling({web3Context:a,transactionReceipt:l,transactionPromiEvent:t,returnFormat:o})},a.blockHeaderTimeout*1e3)};exports.watchTransactionBySubscription=g;
|
@@ -1,77 +1,77 @@
|
|
1
1
|
import { transactionReceiptSchema as p } from "../schemas.js";
|
2
|
-
import { watchTransactionByPolling as
|
3
|
-
import { format as
|
4
|
-
var r = function(n,
|
2
|
+
import { watchTransactionByPolling as h } from "./watch_transaction_by_polling.js";
|
3
|
+
import { format as m } from "../../../../web3-utils/lib/esm/formatter.js";
|
4
|
+
var r = globalThis && globalThis.__awaiter || function(n, s, f, o) {
|
5
5
|
function v(t) {
|
6
|
-
return t instanceof
|
7
|
-
|
6
|
+
return t instanceof f ? t : new f(function(l) {
|
7
|
+
l(t);
|
8
8
|
});
|
9
9
|
}
|
10
|
-
return new (
|
11
|
-
function
|
10
|
+
return new (f || (f = Promise))(function(t, l) {
|
11
|
+
function c(a) {
|
12
12
|
try {
|
13
|
-
|
14
|
-
} catch (
|
15
|
-
|
13
|
+
u(o.next(a));
|
14
|
+
} catch (d) {
|
15
|
+
l(d);
|
16
16
|
}
|
17
17
|
}
|
18
|
-
function i(
|
18
|
+
function i(a) {
|
19
19
|
try {
|
20
|
-
|
21
|
-
} catch (
|
22
|
-
|
20
|
+
u(o.throw(a));
|
21
|
+
} catch (d) {
|
22
|
+
l(d);
|
23
23
|
}
|
24
24
|
}
|
25
|
-
function
|
26
|
-
|
25
|
+
function u(a) {
|
26
|
+
a.done ? t(a.value) : v(a.value).then(c, i);
|
27
27
|
}
|
28
|
-
|
28
|
+
u((o = o.apply(n, s || [])).next());
|
29
29
|
});
|
30
30
|
};
|
31
|
-
const
|
31
|
+
const T = ({ web3Context: n, transactionReceipt: s, transactionPromiEvent: f, returnFormat: o }) => {
|
32
32
|
let v = !0, t;
|
33
33
|
setImmediate(() => {
|
34
|
-
var
|
35
|
-
(
|
36
|
-
|
37
|
-
var
|
34
|
+
var l;
|
35
|
+
(l = n.subscriptionManager) === null || l === void 0 || l.subscribe("newHeads").then((c) => {
|
36
|
+
c.on("data", (i) => r(void 0, void 0, void 0, function* () {
|
37
|
+
var u;
|
38
38
|
if (v = !1, !(i != null && i.number) || // For some cases, the on-data event is fired couple times for the same block!
|
39
39
|
// This needs investigation but seems to be because of multiple `subscription.on('data'...)` even this should not cause that.
|
40
40
|
t === (i == null ? void 0 : i.parentHash))
|
41
41
|
return;
|
42
42
|
t = i == null ? void 0 : i.parentHash;
|
43
|
-
const
|
44
|
-
|
45
|
-
confirmations:
|
46
|
-
receipt:
|
47
|
-
latestBlockHash:
|
48
|
-
}),
|
49
|
-
})),
|
43
|
+
const a = BigInt(i.number) - BigInt(s.blockNumber) + BigInt(1);
|
44
|
+
f.emit("confirmation", {
|
45
|
+
confirmations: m({ format: "uint" }, a, o),
|
46
|
+
receipt: m(p, s, o),
|
47
|
+
latestBlockHash: m({ format: "bytes32" }, i.parentHash, o)
|
48
|
+
}), a >= n.transactionConfirmationBlocks && (yield (u = n.subscriptionManager) === null || u === void 0 ? void 0 : u.removeSubscription(c));
|
49
|
+
})), c.on("error", () => r(void 0, void 0, void 0, function* () {
|
50
50
|
var i;
|
51
|
-
yield (i = n.subscriptionManager) === null || i === void 0 ? void 0 : i.removeSubscription(
|
51
|
+
yield (i = n.subscriptionManager) === null || i === void 0 ? void 0 : i.removeSubscription(c), v = !1, h({
|
52
52
|
web3Context: n,
|
53
|
-
transactionReceipt:
|
54
|
-
transactionPromiEvent:
|
53
|
+
transactionReceipt: s,
|
54
|
+
transactionPromiEvent: f,
|
55
55
|
returnFormat: o
|
56
56
|
});
|
57
57
|
}));
|
58
58
|
}).catch(() => {
|
59
|
-
v = !1,
|
59
|
+
v = !1, h({
|
60
60
|
web3Context: n,
|
61
|
-
transactionReceipt:
|
62
|
-
transactionPromiEvent:
|
61
|
+
transactionReceipt: s,
|
62
|
+
transactionPromiEvent: f,
|
63
63
|
returnFormat: o
|
64
64
|
});
|
65
65
|
});
|
66
66
|
}), setTimeout(() => {
|
67
|
-
v &&
|
67
|
+
v && h({
|
68
68
|
web3Context: n,
|
69
|
-
transactionReceipt:
|
70
|
-
transactionPromiEvent:
|
69
|
+
transactionReceipt: s,
|
70
|
+
transactionPromiEvent: f,
|
71
71
|
returnFormat: o
|
72
72
|
});
|
73
73
|
}, n.blockHeaderTimeout * 1e3);
|
74
74
|
};
|
75
75
|
export {
|
76
|
-
|
76
|
+
T as watchTransactionBySubscription
|
77
77
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=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-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");const F=require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");const U=require("../../../web3-core/lib/esm/utils.cjs"),v=require("../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");const c=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 o=require("./rpc_method_wrappers.cjs"),d=require("./web3_subscriptions.cjs"),E=require("../../../web3-utils/lib/esm/converters.cjs"),b=require("../../../web3-utils/lib/esm/validation.cjs");var n=function(_,t,i,e){function s(u){return u instanceof i?u:new i(function(a){a(u)})}return new(i||(i=Promise))(function(u,a){function T(h){try{g(e.next(h))}catch(R){a(R)}}function A(h){try{g(e.throw(h))}catch(R){a(R)}}function g(h){h.done?u(h.value):s(h.value).then(T,A)}g((e=e.apply(_,t||[])).next())})};const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=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-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");const F=require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");const U=require("../../../web3-core/lib/esm/utils.cjs"),v=require("../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");const c=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 o=require("./rpc_method_wrappers.cjs"),d=require("./web3_subscriptions.cjs"),E=require("../../../web3-utils/lib/esm/converters.cjs"),b=require("../../../web3-utils/lib/esm/validation.cjs");var n=globalThis&&globalThis.__awaiter||function(_,t,i,e){function s(u){return u instanceof i?u:new i(function(a){a(u)})}return new(i||(i=Promise))(function(u,a){function T(h){try{g(e.next(h))}catch(R){a(R)}}function A(h){try{g(e.throw(h))}catch(R){a(R)}}function g(h){h.done?u(h.value):s(h.value).then(T,A)}g((e=e.apply(_,t||[])).next())})};const l={logs:d.LogsSubscription,newPendingTransactions:d.NewPendingTransactionsSubscription,newHeads:d.NewHeadsSubscription,syncing:d.SyncingSubscription,pendingTransactions:d.NewPendingTransactionsSubscription,newBlockHeaders:d.NewHeadsSubscription};class f extends F.Web3Context{constructor(t){if(typeof t=="string"||U.isSupportedProvider(t)){super({provider:t,registeredSubscriptions:l});return}if(t.registeredSubscriptions){super(t);return}super(Object.assign(Object.assign({},t),{registeredSubscriptions:l}))}getProtocolVersion(){return n(this,void 0,void 0,function*(){return c.getProtocolVersion(this.requestManager)})}isSyncing(){return n(this,void 0,void 0,function*(){return c.getSyncing(this.requestManager)})}getCoinbase(){return n(this,void 0,void 0,function*(){return c.getCoinbase(this.requestManager)})}isMining(){return n(this,void 0,void 0,function*(){return c.getMining(this.requestManager)})}getHashrate(t=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return this.getHashRate(t)})}getHashRate(t=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getHashRate(this,t)})}getGasPrice(t=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getGasPrice(this,t)})}getAccounts(){var t;return n(this,void 0,void 0,function*(){return((t=yield c.getAccounts(this.requestManager))!==null&&t!==void 0?t:[]).map(e=>E.toChecksumAddress(e))})}getBlockNumber(t=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getBlockNumber(this,t)})}getBalance(t,i=this.defaultBlock,e=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getBalance(this,t,i,e)})}getStorageAt(t,i,e=this.defaultBlock,s=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getStorageAt(this,t,i,e,s)})}getCode(t,i=this.defaultBlock,e=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getCode(this,t,i,e)})}getBlock(t=this.defaultBlock,i=!1,e=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getBlock(this,t,i,e)})}getBlockTransactionCount(t=this.defaultBlock,i=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getBlockTransactionCount(this,t,i)})}getBlockUncleCount(t=this.defaultBlock,i=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getBlockUncleCount(this,t,i)})}getUncle(t=this.defaultBlock,i,e=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getUncle(this,t,i,e)})}getTransaction(t,i=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){const e=yield o.getTransaction(this,t,i);if(!e)throw new v.TransactionNotFound;return e})}getPendingTransactions(t=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getPendingTransactions(this,t)})}getTransactionFromBlock(t=this.defaultBlock,i,e=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getTransactionFromBlock(this,t,i,e)})}getTransactionReceipt(t,i=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){const e=yield o.getTransactionReceipt(this,t,i);if(!e)throw new v.TransactionNotFound;return e})}getTransactionCount(t,i=this.defaultBlock,e=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getTransactionCount(this,t,i,e)})}sendTransaction(t,i=r.DEFAULT_RETURN_FORMAT,e){return o.sendTransaction(this,t,i,e)}sendSignedTransaction(t,i=r.DEFAULT_RETURN_FORMAT,e){return o.sendSignedTransaction(this,t,i,e)}sign(t,i,e=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.sign(this,t,i,e)})}signTransaction(t,i=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.signTransaction(this,t,i)})}call(t,i=this.defaultBlock,e=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.call(this,t,i,e)})}estimateGas(t,i=this.defaultBlock,e=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.estimateGas(this,t,i,e)})}getPastLogs(t,i=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getLogs(this,t,i)})}getWork(){return n(this,void 0,void 0,function*(){return c.getWork(this.requestManager)})}submitWork(t,i,e){return n(this,void 0,void 0,function*(){return c.submitWork(this.requestManager,t,i,e)})}requestAccounts(){return n(this,void 0,void 0,function*(){return c.requestAccounts(this.requestManager)})}getChainId(t=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getChainId(this,t)})}getNodeInfo(){return n(this,void 0,void 0,function*(){return c.getNodeInfo(this.requestManager)})}getProof(t,i,e=this.defaultBlock,s=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getProof(this,t,i,e,s)})}getFeeHistory(t,i=this.defaultBlock,e,s=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.getFeeHistory(this,t,i,e,s)})}createAccessList(t,i=this.defaultBlock,e=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.createAccessList(this,t,i,e)})}signTypedData(t,i,e=!1,s=r.DEFAULT_RETURN_FORMAT){return n(this,void 0,void 0,function*(){return o.signTypedData(this,t,i,e,s)})}subscribe(t,i,e=r.DEFAULT_RETURN_FORMAT){var s;return n(this,void 0,void 0,function*(){const u=yield(s=this.subscriptionManager)===null||s===void 0?void 0:s.subscribe(t,i,e);return u instanceof d.LogsSubscription&&t==="logs"&&typeof i=="object"&&!b.isNullish(i.fromBlock)&&Number.isFinite(Number(i.fromBlock))&&setImmediate(()=>{this.getPastLogs(i).then(a=>{for(const T of a)u._processSubscriptionResult(T)}).catch(a=>{u._processSubscriptionError(a)})}),u})}static shouldClearSubscription({sub:t}){return!(t instanceof d.SyncingSubscription)}clearSubscriptions(t=!1){var i;return(i=this.subscriptionManager)===null||i===void 0?void 0:i.unsubscribe(t?f.shouldClearSubscription:void 0)}}exports.Web3Eth=f;exports.registeredSubscriptions=l;
|
@@ -8,7 +8,7 @@ import "../../../web3-core/lib/esm/web3_subscriptions.js";
|
|
8
8
|
import { Web3Context as T } from "../../../web3-core/lib/esm/web3_context.js";
|
9
9
|
import "../../../web3-core/lib/esm/web3_batch_request.js";
|
10
10
|
import { isSupportedProvider as S } from "../../../web3-core/lib/esm/utils.js";
|
11
|
-
import { TransactionNotFound as
|
11
|
+
import { TransactionNotFound as g } from "../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
12
12
|
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
13
13
|
import "../../../web3-eth-iban/lib/esm/iban.js";
|
14
14
|
import "../../../web3-validator/lib/esm/formats.js";
|
@@ -18,10 +18,10 @@ import { getProtocolVersion as y, getSyncing as w, getCoinbase as M, getMining a
|
|
18
18
|
import "../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
|
19
19
|
import "../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
|
20
20
|
import { getHashRate as H, getGasPrice as R, getBlockNumber as F, getBalance as L, getStorageAt as U, getCode as I, getBlock as W, getBlockTransactionCount as G, getBlockUncleCount as j, getUncle as D, getTransaction as E, getPendingTransactions as x, getTransactionFromBlock as V, getTransactionReceipt as z, getTransactionCount as J, sendTransaction as K, sendSignedTransaction as Q, sign as X, signTransaction as Y, call as Z, estimateGas as $, getLogs as O, getChainId as tt, getProof as it, getFeeHistory as nt, createAccessList as et, signTypedData as rt } from "./rpc_method_wrappers.js";
|
21
|
-
import { LogsSubscription as p, NewPendingTransactionsSubscription as
|
21
|
+
import { LogsSubscription as p, NewPendingTransactionsSubscription as f, NewHeadsSubscription as l, SyncingSubscription as m } from "./web3_subscriptions.js";
|
22
22
|
import { toChecksumAddress as ot } from "../../../web3-utils/lib/esm/converters.js";
|
23
23
|
import { isNullish as st } from "../../../web3-utils/lib/esm/validation.js";
|
24
|
-
var e = function(k, t, i, n) {
|
24
|
+
var e = globalThis && globalThis.__awaiter || function(k, t, i, n) {
|
25
25
|
function o(s) {
|
26
26
|
return s instanceof i ? s : new i(function(u) {
|
27
27
|
u(s);
|
@@ -50,10 +50,10 @@ var e = function(k, t, i, n) {
|
|
50
50
|
};
|
51
51
|
const v = {
|
52
52
|
logs: p,
|
53
|
-
newPendingTransactions:
|
53
|
+
newPendingTransactions: f,
|
54
54
|
newHeads: l,
|
55
55
|
syncing: m,
|
56
|
-
pendingTransactions:
|
56
|
+
pendingTransactions: f,
|
57
57
|
newBlockHeaders: l
|
58
58
|
// the same as newHeads. just for support API like in version 1.x
|
59
59
|
};
|
@@ -535,7 +535,7 @@ class b extends T {
|
|
535
535
|
return e(this, void 0, void 0, function* () {
|
536
536
|
const n = yield E(this, t, i);
|
537
537
|
if (!n)
|
538
|
-
throw new
|
538
|
+
throw new g();
|
539
539
|
return n;
|
540
540
|
});
|
541
541
|
}
|
@@ -729,7 +729,7 @@ class b extends T {
|
|
729
729
|
return e(this, void 0, void 0, function* () {
|
730
730
|
const n = yield z(this, t, i);
|
731
731
|
if (!n)
|
732
|
-
throw new
|
732
|
+
throw new g();
|
733
733
|
return n;
|
734
734
|
});
|
735
735
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("../../../ethereum-cryptography/esm/aes.cjs"),C=require("../../../ethereum-cryptography/esm/pbkdf2.cjs"),N=require("../../../ethereum-cryptography/esm/scrypt.cjs"),v=require("../../../web3-errors/lib/esm/errors/account_errors.cjs"),
|
2
|
-
${e.byteLength}`)),i=T.uint8ArrayConcat(t,e);return g.sha3Raw(i)},I=(r,
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("../../../ethereum-cryptography/esm/aes.cjs"),C=require("../../../ethereum-cryptography/esm/pbkdf2.cjs"),N=require("../../../ethereum-cryptography/esm/scrypt.cjs"),v=require("../../../web3-errors/lib/esm/errors/account_errors.cjs"),S=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 A=require("../../../web3-validator/lib/esm/validation/string.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 f=require("../../../web3-validator/lib/esm/validation/object.cjs"),w=require("./tx/constants.cjs"),j=require("./schemas.cjs"),D=require("./tx/transactionFactory.cjs"),n=require("../../../web3-utils/lib/esm/converters.cjs"),g=require("../../../web3-utils/lib/esm/hash.cjs"),P=require("../../../web3-utils/lib/esm/random.cjs"),z=require("../../../web3-utils/lib/esm/uuid.cjs"),T=require("../../../web3-utils/lib/esm/uint8array.cjs");var m=globalThis&&globalThis.__awaiter||function(r,s,e,t){function i(c){return c instanceof e?c:new e(function(a){a(c)})}return new(e||(e=Promise))(function(c,a){function y(l){try{o(t.next(l))}catch(d){a(d)}}function u(l){try{o(t.throw(l))}catch(d){a(d)}}function o(l){l.done?c(l.value):i(l.value).then(y,u)}o((t=t.apply(r,s||[])).next())})};const p=(r,s)=>{let e;if(!s&&typeof r=="string"&&A.isHexStrict(r)&&r.length!==66)throw new v.PrivateKeyLengthError;try{e=T.isUint8Array(r)?r:n.bytesToUint8Array(r)}catch{throw new v.InvalidPrivateKeyError}if(!s&&e.byteLength!==32)throw new v.PrivateKeyLengthError;return e},H=r=>{const s=A.isHexStrict(r)?r:n.utf8ToHex(r),e=n.hexToBytes(s),t=n.hexToBytes(n.fromUtf8(`Ethereum Signed Message:
|
2
|
+
${e.byteLength}`)),i=T.uint8ArrayConcat(t,e);return g.sha3Raw(i)},I=(r,s)=>{const e=p(s),t=H(r),i=w.secp256k1.sign(t.substring(2),e),c=i.toCompactRawBytes(),a=i.r.toString(16).padStart(64,"0"),y=i.s.toString(16).padStart(64,"0"),u=i.recovery+27;return{message:r,messageHash:t,v:n.numberToHex(u),r:`0x${a}`,s:`0x${y}`,signature:`${n.bytesToHex(c)}${u.toString(16)}`}},F=(r,s)=>m(void 0,void 0,void 0,function*(){const e=r.sign(n.hexToBytes(s));if(f.isNullish(e.v)||f.isNullish(e.r)||f.isNullish(e.s))throw new S.TransactionSigningError("Signer Error");const t=e.validate(!0);if(t.length>0){let a="Signer Error ";for(const y of t)a+=`${a} ${y}.`;throw new S.TransactionSigningError(a)}const i=n.bytesToHex(e.serialize()),c=g.sha3Raw(i);return{messageHash:n.bytesToHex(e.getMessageToSign(!0)),v:`0x${e.v.toString(16)}`,r:`0x${e.r.toString(16).padStart(64,"0")}`,s:`0x${e.s.toString(16).padStart(64,"0")}`,rawTransaction:i,transactionHash:n.bytesToHex(c)}}),J=r=>{if(f.isNullish(r))throw new S.UndefinedRawTransactionError;const s=D.TransactionFactory.fromSerializedData(n.hexToBytes(r));return n.toChecksumAddress(s.getSenderAddress().toString())},k=(r,s,e,t,i)=>{if(typeof r=="object"){const d=`${r.r}${r.s.slice(2)}${r.v.slice(2)}`;return k(r.messageHash,d,e)}if(typeof s=="string"&&typeof e=="string"&&!f.isNullish(t)){const d=`${e}${t.slice(2)}${s.slice(2)}`;return k(r,d,i)}if(f.isNullish(s))throw new v.InvalidSignatureError("signature string undefined");const c=130,a=e?r:H(r);let y=parseInt(s.substring(c),16);y>26&&(y-=27);const u=w.secp256k1.Signature.fromCompact(s.slice(2,c)).addRecoveryBit(y).recoverPublicKey(a.replace("0x","")).toRawBytes(!1),o=g.sha3Raw(u.subarray(1));return n.toChecksumAddress(`0x${o.slice(-40)}`)},q=r=>{const s=p(r),e=w.secp256k1.getPublicKey(s,!1),i=g.sha3Raw(e.slice(1)).slice(-40);return n.toChecksumAddress(`0x${i}`)},V=(r,s)=>{const e=p(r);return`0x${n.bytesToHex(w.secp256k1.getPublicKey(e,s)).slice(4)}`},M=(r,s,e)=>m(void 0,void 0,void 0,function*(){var t,i,c,a,y,u,o;const l=p(r);let d;if(e!=null&&e.salt?d=typeof e.salt=="string"?n.hexToBytes(e.salt):e.salt:d=P.randomBytes(32),!(A.isString(s)||T.isUint8Array(s)))throw new v.InvalidPasswordError;const E=typeof s=="string"?n.hexToBytes(n.utf8ToHex(s)):s;let x;if(e!=null&&e.iv){if(x=typeof e.iv=="string"?n.hexToBytes(e.iv):e.iv,x.length!==16)throw new v.IVLengthError}else x=P.randomBytes(16);const K=(t=e==null?void 0:e.kdf)!==null&&t!==void 0?t:"scrypt";let b,h;if(K==="pbkdf2"){if(h={dklen:(i=e==null?void 0:e.dklen)!==null&&i!==void 0?i:32,salt:n.bytesToHex(d).replace("0x",""),c:(c=e==null?void 0:e.c)!==null&&c!==void 0?c:262144,prf:"hmac-sha256"},h.c<1e3)throw new v.PBKDF2IterationsError;b=C.pbkdf2Sync(E,d,h.c,h.dklen,"sha256")}else if(K==="scrypt")h={n:(a=e==null?void 0:e.n)!==null&&a!==void 0?a:8192,r:(y=e==null?void 0:e.r)!==null&&y!==void 0?y:8,p:(u=e==null?void 0:e.p)!==null&&u!==void 0?u:1,dklen:(o=e==null?void 0:e.dklen)!==null&&o!==void 0?o:32,salt:n.bytesToHex(d).replace("0x","")},b=N.scryptSync(E,d,h.n,h.p,h.r,h.dklen);else throw new v.InvalidKdfError;const $=yield U.encrypt(l,b.slice(0,16),x,"aes-128-ctr"),R=n.bytesToHex($).slice(2),L=g.sha3Raw(T.uint8ArrayConcat(b.slice(16,32),$)).replace("0x","");return{version:3,id:z.uuidV4(),address:q(l).toLowerCase().replace("0x",""),crypto:{ciphertext:R,cipherparams:{iv:n.bytesToHex(x).replace("0x","")},cipher:"aes-128-ctr",kdf:K,kdfparams:h,mac:L}}}),B=(r,s)=>{const e=p(r,s);return{address:q(e),privateKey:n.bytesToHex(e),signTransaction:t=>{throw new S.TransactionSigningError("Do not have network access to sign the transaction")},sign:t=>I(typeof t=="string"?t:JSON.stringify(t),e),encrypt:(t,i)=>m(void 0,void 0,void 0,function*(){return M(e,t,i)})}},X=()=>{const r=w.secp256k1.utils.randomPrivateKey();return B(`${n.bytesToHex(r)}`)},G=(r,s,e)=>m(void 0,void 0,void 0,function*(){const t=typeof r=="object"?r:JSON.parse(e?r.toLowerCase():r);if(_.validator.validateJSONSchema(j.keyStoreSchema,t),t.version!==3)throw new v.KeyStoreVersionError;const i=typeof s=="string"?n.hexToBytes(n.utf8ToHex(s)):s;_.validator.validate(["bytes"],[i]);let c;if(t.crypto.kdf==="scrypt"){const o=t.crypto.kdfparams,l=typeof o.salt=="string"?n.hexToBytes(o.salt):o.salt;c=N.scryptSync(i,l,o.n,o.p,o.r,o.dklen)}else if(t.crypto.kdf==="pbkdf2"){const o=t.crypto.kdfparams,l=typeof o.salt=="string"?n.hexToBytes(o.salt):o.salt;c=C.pbkdf2Sync(i,l,o.c,o.dklen,"sha256")}else throw new v.InvalidKdfError;const a=n.hexToBytes(t.crypto.ciphertext);if(g.sha3Raw(T.uint8ArrayConcat(c.slice(16,32),a)).replace("0x","")!==t.crypto.mac)throw new v.KeyDerivationError;const u=yield U.decrypt(n.hexToBytes(t.crypto.ciphertext),c.slice(0,16),n.hexToBytes(t.crypto.cipherparams.iv));return B(u)});exports.create=X;exports.decrypt=G;exports.encrypt=M;exports.hashMessage=H;exports.parseAndValidatePrivateKey=p;exports.privateKeyToAccount=B;exports.privateKeyToAddress=q;exports.privateKeyToPublicKey=V;exports.recover=k;exports.recoverTransaction=J;exports.sign=I;exports.signTransaction=F;
|