@ozdao/prometheus-framework 0.2.44 → 0.2.47
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-AMWMdo3t.js +91 -0
- package/dist/main-R6dlNKp-.mjs +13606 -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 +3 -4
- package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
- package/dist/node_modules/vue3-carousel/dist/carousel.css.js +1 -4
- 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 +1 -4
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +1 -63
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +20 -20
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -4
- 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 +1 -4
- 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 +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +1 -4
- 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 +1 -4
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +1 -4
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -72
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -97
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -4
- 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 +1 -4
- 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/pages/EnterPassword.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +1 -4
- 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 +1 -4
- 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 +1 -4
- 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 +1 -4
- 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 +1 -4
- 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 +1 -4
- 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 +1 -4
- 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 +1 -4
- 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 +3 -3
- 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 +1 -4
- 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 +1 -4
- 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/H2.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +1 -4
- 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 +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
- 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.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +1 -4
- 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 +5 -5
- 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 +1 -4
- 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 +2 -2
- 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 +1 -4
- 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 +1 -4
- 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 +1 -4
- 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 +1 -1
- 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 +1 -4
- 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 +1 -1
- 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 +1 -4
- 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/landing/components/sections/MobileApp.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +1 -4
- 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 +1 -4
- 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 +1 -4
- 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 +1 -4
- 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 +1 -1
- 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 +1 -4
- 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 +1 -1
- 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 +1 -4
- 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 +1 -1
- 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 +1 -4
- 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 +1 -4
- 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 +1 -4
- 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 +1 -4
- 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 +3 -3
- 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 +1 -4
- 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 +1 -4
- 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 +2 -2
- 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 +1 -1
- 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 +1 -4
- 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 +1 -1
- 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 +2 -2
- 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 +1 -4
- 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 +1 -4
- 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 +1 -4
- 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 +1 -4
- 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 +1 -4
- 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 +14 -14
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +14 -14
- 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 +1 -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 +1 -4
- 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 +1 -4
- 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/LeftoverPositions.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +1 -4
- 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 +39 -2
- 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 +1 -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 +1 -4
- 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 +1 -4
- 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 +1 -1
- 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 +1 -4
- 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 +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +20 -21
- 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 +1 -4
- 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 +90 -80
- 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 +1 -4
- 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 +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +7 -6
- 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 +1 -1
- 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 +1 -4
- 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 +1 -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 +1 -4
- 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 +51 -62
- 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 +2 -2
- 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 +1 -4
- 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.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +1 -4
- 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 +1 -4
- 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 +2 -2
- 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-HvAJWryM.js +1 -0
- package/dist/web-XMv5d7hK.mjs +55 -0
- package/package.json +1 -1
- package/src/components/Feed/Feed.vue +9 -7
- package/src/modules/products/components/blocks/CardPosition.vue +1 -1
- package/src/modules/products/components/blocks/CardProduct.vue +2 -3
- package/src/modules/products/components/pages/Product.vue +1 -1
- package/src/modules/products/components/pages/ProductEdit.vue +15 -0
- package/src/modules/products/components/pages/ProductRecommmendation.vue +2 -2
- package/src/modules/products/components/pages/Products.vue +1 -0
- package/src/modules/products/components/sections/SectionProduct.vue +10 -10
- package/src/modules/products/products.client.js +76 -20
- package/src/modules/products/products.server.js +8 -4
- package/src/modules/products/router/products.router.js +4 -2
- package/src/styles/base/all.scss +4 -1
@@ -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 T } 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 v } 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 b, 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 =
|
30
|
+
import { bytesToHex as w } from "../../../../web3-utils/lib/esm/converters.js";
|
31
|
+
var p = 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 b(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 v(t);
|
79
79
|
if (!n(r.defaultAccount))
|
80
80
|
return r.defaultAccount;
|
81
81
|
}
|
82
|
-
}, G = (i, r, e =
|
82
|
+
}, G = (i, r, e = T) => 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, T);
|
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: w(t.data),
|
103
|
+
input: w(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 l=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=function(r,c,e,i){function u(n){return n instanceof e?n:new e(function(o){o(n)})}return new(e||(e=Promise))(function(n,o){function f(t){try{a(i.next(t))}catch(d){o(d)}}function s(t){try{a(i.throw(t))}catch(d){o(d)}}function a(t){t.done?n(t.value):u(t.value).then(f,s)}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 l.TransactionSendTimeoutError({numberOfSeconds:r.transactionSendTimeout/1e3,transactionHash:e})),[n,o]=yield m.rejectIfBlockTimeout(r,e);try{return yield Promise.race([c(),u,n])}finally{clearTimeout(i),o.clean()}})}exports.trySendTransaction=_;
|
@@ -1,45 +1,45 @@
|
|
1
|
-
import { TransactionSendTimeoutError as
|
1
|
+
import { TransactionSendTimeoutError as l } 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 p } from "../../../../web3-utils/lib/esm/promise_helpers.js";
|
5
|
+
var s = function(r, c, n, o) {
|
6
|
+
function u(e) {
|
7
|
+
return e instanceof n ? e : new n(function(i) {
|
8
|
+
i(e);
|
9
9
|
});
|
10
10
|
}
|
11
|
-
return new (
|
12
|
-
function
|
11
|
+
return new (n || (n = Promise))(function(e, i) {
|
12
|
+
function d(t) {
|
13
13
|
try {
|
14
|
-
|
15
|
-
} catch (
|
16
|
-
i(
|
14
|
+
f(o.next(t));
|
15
|
+
} catch (m) {
|
16
|
+
i(m);
|
17
17
|
}
|
18
18
|
}
|
19
|
-
function
|
19
|
+
function a(t) {
|
20
20
|
try {
|
21
|
-
|
22
|
-
} catch (
|
23
|
-
i(
|
21
|
+
f(o.throw(t));
|
22
|
+
} catch (m) {
|
23
|
+
i(m);
|
24
24
|
}
|
25
25
|
}
|
26
|
-
function
|
27
|
-
|
26
|
+
function f(t) {
|
27
|
+
t.done ? e(t.value) : u(t.value).then(d, a);
|
28
28
|
}
|
29
|
-
|
29
|
+
f((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, n) {
|
33
|
+
return s(this, void 0, void 0, function* () {
|
34
|
+
const [o, u] = p(r.transactionSendTimeout, new l({
|
35
35
|
numberOfSeconds: r.transactionSendTimeout / 1e3,
|
36
|
-
transactionHash:
|
37
|
-
})), [
|
36
|
+
transactionHash: n
|
37
|
+
})), [e, i] = yield T(r, n);
|
38
38
|
try {
|
39
39
|
return yield Promise.race([
|
40
40
|
c(),
|
41
41
|
u,
|
42
|
-
|
42
|
+
e
|
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 m=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const T=require("./reject_if_block_timeout.cjs"),v=require("../rpc_method_wrappers.cjs"),f=require("../../../../web3-utils/lib/esm/promise_helpers.cjs");var p=function(n,c,o,t){function s(i){return i instanceof o?i:new o(function(r){r(i)})}return new(o||(o=Promise))(function(i,r){function u(e){try{a(t.next(e))}catch(l){r(l)}}function d(e){try{a(t.throw(e))}catch(l){r(l)}}function a(e){e.done?i(e.value):s(e.value).then(u,d)}a((t=t.apply(n,c||[])).next())})};function _(n,c,o){var t;return p(this,void 0,void 0,function*(){const s=(t=n.transactionReceiptPollingInterval)!==null&&t!==void 0?t:n.transactionPollingInterval,[i,r]=f.pollTillDefinedAndReturnIntervalId(()=>p(this,void 0,void 0,function*(){try{return v.getTransactionReceipt(n,c,o)}catch(l){console.warn("An error happen while trying to get the transaction receipt",l);return}}),s),[u,d]=f.rejectIfTimeout(n.transactionPollingTimeout,new m.TransactionPollingTimeoutError({numberOfSeconds:n.transactionPollingTimeout/1e3,transactionHash:c})),[a,e]=yield T.rejectIfBlockTimeout(n,c);try{return yield Promise.race([i,d,a])}finally{u&&clearTimeout(u),r&&clearInterval(r),e.clean()}})}exports.waitForTransactionReceipt=_;
|
@@ -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 m = function(t, c, r, e) {
|
7
|
+
function f(i) {
|
8
|
+
return i instanceof r ? i : new r(function(o) {
|
9
|
+
o(i);
|
10
10
|
});
|
11
11
|
}
|
12
|
-
return new (r || (r = Promise))(function(
|
12
|
+
return new (r || (r = Promise))(function(i, o) {
|
13
13
|
function u(n) {
|
14
14
|
try {
|
15
|
-
|
16
|
-
} catch (
|
17
|
-
o(
|
15
|
+
a(e.next(n));
|
16
|
+
} catch (l) {
|
17
|
+
o(l);
|
18
18
|
}
|
19
19
|
}
|
20
|
-
function
|
20
|
+
function d(n) {
|
21
21
|
try {
|
22
|
-
|
23
|
-
} catch (
|
24
|
-
o(
|
22
|
+
a(e.throw(n));
|
23
|
+
} catch (l) {
|
24
|
+
o(l);
|
25
25
|
}
|
26
26
|
}
|
27
|
-
function
|
28
|
-
n.done ?
|
27
|
+
function a(n) {
|
28
|
+
n.done ? i(n.value) : f(n.value).then(u, d);
|
29
29
|
}
|
30
|
-
|
30
|
+
a((e = e.apply(t, c || [])).next());
|
31
31
|
});
|
32
32
|
};
|
33
33
|
function _(t, c, r) {
|
34
|
-
var
|
35
|
-
return
|
36
|
-
const f = (
|
34
|
+
var e;
|
35
|
+
return m(this, void 0, void 0, function* () {
|
36
|
+
const f = (e = t.transactionReceiptPollingInterval) !== null && e !== void 0 ? e : t.transactionPollingInterval, [i, o] = v(() => m(this, void 0, void 0, function* () {
|
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 (l) {
|
40
|
+
console.warn("An error happen while trying to get the transaction receipt", l);
|
41
41
|
return;
|
42
42
|
}
|
43
|
-
}), f), [u,
|
43
|
+
}), f), [u, d] = I(t.transactionPollingTimeout, new p({
|
44
44
|
numberOfSeconds: t.transactionPollingTimeout / 1e3,
|
45
45
|
transactionHash: c
|
46
|
-
})), [
|
46
|
+
})), [a, n] = yield s(t, c);
|
47
47
|
try {
|
48
48
|
return yield Promise.race([
|
49
|
-
|
50
|
-
|
51
|
-
|
49
|
+
i,
|
50
|
+
d,
|
51
|
+
a
|
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 h=require("../schemas.cjs"),v=require("../../../../web3-utils/lib/esm/converters.cjs"),u=require("../../../../web3-utils/lib/esm/formatter.cjs");var y=function(i,l,o,t){function c(n){return n instanceof o?n:new o(function(a){a(n)})}return new(o||(o=Promise))(function(n,a){function r(e){try{s(t.next(e))}catch(f){a(f)}}function d(e){try{s(t.throw(e))}catch(f){a(f)}}function s(e){e.done?n(e.value):c(e.value).then(r,d)}s((t=t.apply(i,l||[])).next())})};const B=({web3Context:i,transactionReceipt:l,transactionPromiEvent:o,returnFormat:t})=>{var c;let n=1;const a=setInterval(()=>{y(void 0,void 0,void 0,function*(){n>=i.transactionConfirmationBlocks&&clearInterval(a);const r=yield m.getBlockByNumber(i.requestManager,v.numberToHex(BigInt(l.blockNumber)+BigInt(n)),!1);r!=null&&r.hash&&(n+=1,o.emit("confirmation",{confirmations:u.format({format:"uint"},n,t),receipt:u.format(h.transactionReceiptSchema,l,t),latestBlockHash:u.format({format:"bytes32"},r.hash,t)}))})},(c=i.transactionReceiptPollingInterval)!==null&&c!==void 0?c:i.transactionPollingInterval)};exports.watchTransactionByPolling=B;
|
@@ -1,51 +1,51 @@
|
|
1
|
-
import { getBlockByNumber as
|
1
|
+
import { getBlockByNumber as u } from "../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
|
2
2
|
import "../../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
|
3
3
|
import "../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
|
4
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 h = function(o, f, a, i) {
|
8
|
+
function r(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 e(t) {
|
15
15
|
try {
|
16
|
-
|
16
|
+
l(i.next(t));
|
17
17
|
} catch (m) {
|
18
18
|
c(m);
|
19
19
|
}
|
20
20
|
}
|
21
|
-
function
|
21
|
+
function d(t) {
|
22
22
|
try {
|
23
|
-
|
23
|
+
l(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 l(t) {
|
29
|
+
t.done ? n(t.value) : r(t.value).then(e, d);
|
30
30
|
}
|
31
|
-
|
31
|
+
l((i = i.apply(o, f || [])).next());
|
32
32
|
});
|
33
33
|
};
|
34
|
-
const
|
35
|
-
var
|
34
|
+
const w = ({ web3Context: o, transactionReceipt: f, transactionPromiEvent: a, returnFormat: i }) => {
|
35
|
+
var r;
|
36
36
|
let n = 1;
|
37
37
|
const c = setInterval(() => {
|
38
|
-
|
38
|
+
h(void 0, void 0, void 0, function* () {
|
39
39
|
n >= o.transactionConfirmationBlocks && clearInterval(c);
|
40
|
-
const
|
41
|
-
|
40
|
+
const e = yield u(o.requestManager, v(BigInt(f.blockNumber) + BigInt(n)), !1);
|
41
|
+
e != null && e.hash && (n += 1, a.emit("confirmation", {
|
42
42
|
confirmations: s({ format: "uint" }, n, i),
|
43
|
-
receipt: s(p,
|
44
|
-
latestBlockHash: s({ format: "bytes32" },
|
43
|
+
receipt: s(p, f, i),
|
44
|
+
latestBlockHash: s({ format: "bytes32" }, e.hash, i)
|
45
45
|
}));
|
46
46
|
});
|
47
|
-
}, (
|
47
|
+
}, (r = o.transactionReceiptPollingInterval) !== null && r !== void 0 ? r : o.transactionPollingInterval);
|
48
48
|
};
|
49
49
|
export {
|
50
|
-
|
50
|
+
w 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 e=require("../schemas.cjs"),v=require("./watch_transaction_by_polling.cjs"),h=require("../../../../web3-utils/lib/esm/formatter.cjs");var m=function(o,u,t,n){function l(c){return c instanceof t?c:new t(function(s){s(c)})}return new(t||(t=Promise))(function(c,s){function d(a){try{f(n.next(a))}catch(r){s(r)}}function i(a){try{f(n.throw(a))}catch(r){s(r)}}function f(a){a.done?c(a.value):l(a.value).then(d,i)}f((n=n.apply(o,u||[])).next())})};const y=({web3Context:o,transactionReceipt:u,transactionPromiEvent:t,returnFormat:n})=>{let l=!0,c;setImmediate(()=>{var s;(s=o.subscriptionManager)===null||s===void 0||s.subscribe("newHeads").then(d=>{d.on("data",i=>m(void 0,void 0,void 0,function*(){var f;if(l=!1,!(i!=null&&i.number)||c===(i==null?void 0:i.parentHash))return;c=i==null?void 0:i.parentHash;const a=BigInt(i.number)-BigInt(u.blockNumber)+BigInt(1);t.emit("confirmation",{confirmations:h.format({format:"uint"},a,n),receipt:h.format(e.transactionReceiptSchema,u,n),latestBlockHash:h.format({format:"bytes32"},i.parentHash,n)}),a>=o.transactionConfirmationBlocks&&(yield(f=o.subscriptionManager)===null||f===void 0?void 0:f.removeSubscription(d))})),d.on("error",()=>m(void 0,void 0,void 0,function*(){var i;yield(i=o.subscriptionManager)===null||i===void 0?void 0:i.removeSubscription(d),l=!1,v.watchTransactionByPolling({web3Context:o,transactionReceipt:u,transactionPromiEvent:t,returnFormat:n})}))}).catch(()=>{l=!1,v.watchTransactionByPolling({web3Context:o,transactionReceipt:u,transactionPromiEvent:t,returnFormat:n})})}),setTimeout(()=>{l&&v.watchTransactionByPolling({web3Context:o,transactionReceipt:u,transactionPromiEvent:t,returnFormat:n})},o.blockHeaderTimeout*1e3)};exports.watchTransactionBySubscription=y;
|
@@ -1,77 +1,77 @@
|
|
1
1
|
import { transactionReceiptSchema as p } from "../schemas.js";
|
2
|
-
import { watchTransactionByPolling as
|
3
|
-
import { format as
|
4
|
-
var r =
|
2
|
+
import { watchTransactionByPolling as m } from "./watch_transaction_by_polling.js";
|
3
|
+
import { format as h } from "../../../../web3-utils/lib/esm/formatter.js";
|
4
|
+
var r = function(n, d, a, o) {
|
5
5
|
function v(t) {
|
6
|
-
return t instanceof
|
7
|
-
|
6
|
+
return t instanceof a ? t : new a(function(u) {
|
7
|
+
u(t);
|
8
8
|
});
|
9
9
|
}
|
10
|
-
return new (
|
11
|
-
function
|
10
|
+
return new (a || (a = Promise))(function(t, u) {
|
11
|
+
function l(f) {
|
12
12
|
try {
|
13
|
-
|
14
|
-
} catch (
|
15
|
-
|
13
|
+
s(o.next(f));
|
14
|
+
} catch (c) {
|
15
|
+
u(c);
|
16
16
|
}
|
17
17
|
}
|
18
|
-
function i(
|
18
|
+
function i(f) {
|
19
19
|
try {
|
20
|
-
|
21
|
-
} catch (
|
22
|
-
|
20
|
+
s(o.throw(f));
|
21
|
+
} catch (c) {
|
22
|
+
u(c);
|
23
23
|
}
|
24
24
|
}
|
25
|
-
function
|
26
|
-
|
25
|
+
function s(f) {
|
26
|
+
f.done ? t(f.value) : v(f.value).then(l, i);
|
27
27
|
}
|
28
|
-
|
28
|
+
s((o = o.apply(n, d || [])).next());
|
29
29
|
});
|
30
30
|
};
|
31
|
-
const
|
31
|
+
const g = ({ web3Context: n, transactionReceipt: d, transactionPromiEvent: a, returnFormat: o }) => {
|
32
32
|
let v = !0, t;
|
33
33
|
setImmediate(() => {
|
34
|
-
var
|
35
|
-
(
|
36
|
-
|
37
|
-
var
|
34
|
+
var u;
|
35
|
+
(u = n.subscriptionManager) === null || u === void 0 || u.subscribe("newHeads").then((l) => {
|
36
|
+
l.on("data", (i) => r(void 0, void 0, void 0, function* () {
|
37
|
+
var s;
|
38
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 f = BigInt(i.number) - BigInt(d.blockNumber) + BigInt(1);
|
44
|
+
a.emit("confirmation", {
|
45
|
+
confirmations: h({ format: "uint" }, f, o),
|
46
|
+
receipt: h(p, d, o),
|
47
|
+
latestBlockHash: h({ format: "bytes32" }, i.parentHash, o)
|
48
|
+
}), f >= n.transactionConfirmationBlocks && (yield (s = n.subscriptionManager) === null || s === void 0 ? void 0 : s.removeSubscription(l));
|
49
|
+
})), l.on("error", () => r(void 0, void 0, void 0, function* () {
|
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(l), v = !1, m({
|
52
52
|
web3Context: n,
|
53
|
-
transactionReceipt:
|
54
|
-
transactionPromiEvent:
|
53
|
+
transactionReceipt: d,
|
54
|
+
transactionPromiEvent: a,
|
55
55
|
returnFormat: o
|
56
56
|
});
|
57
57
|
}));
|
58
58
|
}).catch(() => {
|
59
|
-
v = !1,
|
59
|
+
v = !1, m({
|
60
60
|
web3Context: n,
|
61
|
-
transactionReceipt:
|
62
|
-
transactionPromiEvent:
|
61
|
+
transactionReceipt: d,
|
62
|
+
transactionPromiEvent: a,
|
63
63
|
returnFormat: o
|
64
64
|
});
|
65
65
|
});
|
66
66
|
}), setTimeout(() => {
|
67
|
-
v &&
|
67
|
+
v && m({
|
68
68
|
web3Context: n,
|
69
|
-
transactionReceipt:
|
70
|
-
transactionPromiEvent:
|
69
|
+
transactionReceipt: d,
|
70
|
+
transactionPromiEvent: a,
|
71
71
|
returnFormat: o
|
72
72
|
});
|
73
73
|
}, n.blockHeaderTimeout * 1e3);
|
74
74
|
};
|
75
75
|
export {
|
76
|
-
|
76
|
+
g 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=
|
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 f={logs:d.LogsSubscription,newPendingTransactions:d.NewPendingTransactionsSubscription,newHeads:d.NewHeadsSubscription,syncing:d.SyncingSubscription,pendingTransactions:d.NewPendingTransactionsSubscription,newBlockHeaders:d.NewHeadsSubscription};class l extends F.Web3Context{constructor(t){if(typeof t=="string"||U.isSupportedProvider(t)){super({provider:t,registeredSubscriptions:f});return}if(t.registeredSubscriptions){super(t);return}super(Object.assign(Object.assign({},t),{registeredSubscriptions:f}))}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?l.shouldClearSubscription:void 0)}}exports.Web3Eth=l;exports.registeredSubscriptions=f;
|
@@ -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 f } 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 g, 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 =
|
24
|
+
var e = 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 = globalThis && globalThis.__awaiter || function(k, t, i, n) {
|
|
50
50
|
};
|
51
51
|
const v = {
|
52
52
|
logs: p,
|
53
|
-
newPendingTransactions:
|
53
|
+
newPendingTransactions: g,
|
54
54
|
newHeads: l,
|
55
55
|
syncing: m,
|
56
|
-
pendingTransactions:
|
56
|
+
pendingTransactions: g,
|
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 f();
|
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 f();
|
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"),b=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"),s=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=function(r,n,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,n||[])).next())})};const p=(r,n)=>{let e;if(!n&&typeof r=="string"&&A.isHexStrict(r)&&r.length!==66)throw new v.PrivateKeyLengthError;try{e=T.isUint8Array(r)?r:s.bytesToUint8Array(r)}catch{throw new v.InvalidPrivateKeyError}if(!n&&e.byteLength!==32)throw new v.PrivateKeyLengthError;return e},H=r=>{const n=A.isHexStrict(r)?r:s.utf8ToHex(r),e=s.hexToBytes(n),t=s.hexToBytes(s.fromUtf8(`Ethereum Signed Message:
|
2
|
+
${e.byteLength}`)),i=T.uint8ArrayConcat(t,e);return g.sha3Raw(i)},I=(r,n)=>{const e=p(n),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:s.numberToHex(u),r:`0x${a}`,s:`0x${y}`,signature:`${s.bytesToHex(c)}${u.toString(16)}`}},F=(r,n)=>m(void 0,void 0,void 0,function*(){const e=r.sign(s.hexToBytes(n));if(f.isNullish(e.v)||f.isNullish(e.r)||f.isNullish(e.s))throw new b.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 b.TransactionSigningError(a)}const i=s.bytesToHex(e.serialize()),c=g.sha3Raw(i);return{messageHash:s.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:s.bytesToHex(c)}}),J=r=>{if(f.isNullish(r))throw new b.UndefinedRawTransactionError;const n=D.TransactionFactory.fromSerializedData(s.hexToBytes(r));return s.toChecksumAddress(n.getSenderAddress().toString())},k=(r,n,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 n=="string"&&typeof e=="string"&&!f.isNullish(t)){const d=`${e}${t.slice(2)}${n.slice(2)}`;return k(r,d,i)}if(f.isNullish(n))throw new v.InvalidSignatureError("signature string undefined");const c=130,a=e?r:H(r);let y=parseInt(n.substring(c),16);y>26&&(y-=27);const u=w.secp256k1.Signature.fromCompact(n.slice(2,c)).addRecoveryBit(y).recoverPublicKey(a.replace("0x","")).toRawBytes(!1),o=g.sha3Raw(u.subarray(1));return s.toChecksumAddress(`0x${o.slice(-40)}`)},q=r=>{const n=p(r),e=w.secp256k1.getPublicKey(n,!1),i=g.sha3Raw(e.slice(1)).slice(-40);return s.toChecksumAddress(`0x${i}`)},V=(r,n)=>{const e=p(r);return`0x${s.bytesToHex(w.secp256k1.getPublicKey(e,n)).slice(4)}`},M=(r,n,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"?s.hexToBytes(e.salt):e.salt:d=P.randomBytes(32),!(A.isString(n)||T.isUint8Array(n)))throw new v.InvalidPasswordError;const E=typeof n=="string"?s.hexToBytes(s.utf8ToHex(n)):n;let x;if(e!=null&&e.iv){if(x=typeof e.iv=="string"?s.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 S,h;if(K==="pbkdf2"){if(h={dklen:(i=e==null?void 0:e.dklen)!==null&&i!==void 0?i:32,salt:s.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;S=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:s.bytesToHex(d).replace("0x","")},S=N.scryptSync(E,d,h.n,h.p,h.r,h.dklen);else throw new v.InvalidKdfError;const $=yield U.encrypt(l,S.slice(0,16),x,"aes-128-ctr"),R=s.bytesToHex($).slice(2),L=g.sha3Raw(T.uint8ArrayConcat(S.slice(16,32),$)).replace("0x","");return{version:3,id:z.uuidV4(),address:q(l).toLowerCase().replace("0x",""),crypto:{ciphertext:R,cipherparams:{iv:s.bytesToHex(x).replace("0x","")},cipher:"aes-128-ctr",kdf:K,kdfparams:h,mac:L}}}),B=(r,n)=>{const e=p(r,n);return{address:q(e),privateKey:s.bytesToHex(e),signTransaction:t=>{throw new b.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(`${s.bytesToHex(r)}`)},G=(r,n,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 n=="string"?s.hexToBytes(s.utf8ToHex(n)):n;_.validator.validate(["bytes"],[i]);let c;if(t.crypto.kdf==="scrypt"){const o=t.crypto.kdfparams,l=typeof o.salt=="string"?s.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"?s.hexToBytes(o.salt):o.salt;c=C.pbkdf2Sync(i,l,o.c,o.dklen,"sha256")}else throw new v.InvalidKdfError;const a=s.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(s.hexToBytes(t.crypto.ciphertext),c.slice(0,16),s.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;
|