@ozdao/prometheus-framework 0.2.47 → 0.2.50
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +27 -25
- package/dist/auth.server.mjs +27 -25
- package/dist/community.server.js +1 -1
- package/dist/community.server.mjs +1 -1
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/index-3981e903.mjs +217 -0
- package/dist/index-4eecfdb9.js +216 -0
- package/dist/main-203b36b6.mjs +13628 -0
- package/dist/main-610fd21a.mjs +13628 -0
- package/dist/main-669fac33.js +91 -0
- package/dist/main-_b1_i8mt.mjs +13606 -0
- package/dist/main-a7ae4ce5.js +91 -0
- package/dist/main-uiQFxEks.js +91 -0
- package/dist/main.css +1 -1
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +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/vue-select/dist/vue-select.es.cjs +1 -3
- package/dist/node_modules/vue-select/dist/vue-select.es.js +49 -645
- 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/organizations.server.js +13 -27
- package/dist/organizations.server.mjs +13 -27
- package/dist/products.server.js +95 -15
- package/dist/products.server.mjs +95 -15
- 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 +4 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +4 -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 +4 -1
- 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.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.js +6 -6
- 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/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 +42 -30
- 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.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.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.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 +47 -46
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +5 -5
- 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 +2 -2
- 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/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.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 +4 -4
- 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 +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 +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 +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 +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 +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 +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/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +22 -21
- 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 +1 -1
- 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 +13 -1
- 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 +2 -11
- 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.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 +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.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +17 -17
- 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 +50 -43
- 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.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +47 -15
- 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/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +38 -37
- 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 +249 -61
- 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 +78 -45
- 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 +161 -86
- 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 +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 +4 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -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 +52 -54
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.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 +19 -25
- 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/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +40 -46
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +35 -31
- 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 +30 -28
- 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 +17 -17
- 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 +50 -47
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +4 -1
- 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.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +4 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +4 -1
- 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 +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 +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.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +33 -28
- 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 +123 -113
- 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.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +4 -1
- 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.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.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +4 -1
- 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/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 +2 -2
- 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 +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 +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 +4 -1
- 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 +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/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/web-0410cac1.js +1 -0
- package/dist/web-7p76PGnO.mjs +55 -0
- package/dist/web-c1619455.mjs +55 -0
- package/dist/web-c63f0ecc.js +1 -0
- package/dist/web-d8173758.mjs +55 -0
- package/dist/web-dn8vgptQ.js +1 -0
- package/package.json +1 -1
- package/src/components/SelectMulti/SelectMulti.vue +1 -1
- package/src/modules/auth/components/pages/Invite.vue +17 -6
- package/src/modules/auth/controllers/auth.controller.js +24 -16
- package/src/modules/auth/controllers/invites.controller.js +17 -8
- package/src/modules/auth/store/auth.js +8 -1
- package/src/modules/auth/store/invites.js +1 -0
- package/src/modules/globals/store/globals.js +5 -1
- package/src/modules/landing/components/blocks/MapBlock.vue +37 -0
- package/src/modules/landing/components/pages/404.vue +3 -0
- package/src/modules/landing/components/pages/Governance.vue +155 -0
- package/src/modules/landing/components/pages/Home.vue +52 -0
- package/src/modules/landing/components/pages/Hotel.vue +54 -0
- package/src/modules/landing/components/pages/Page.vue +184 -0
- package/src/modules/landing/components/sections/AboutSection.vue +69 -0
- package/src/modules/landing/components/sections/Examples.vue +90 -0
- package/src/modules/landing/components/sections/FeatureSection.vue +80 -0
- package/src/modules/landing/components/sections/GiftSection.vue +63 -0
- package/src/modules/landing/components/sections/HeroSection.vue +74 -0
- package/src/modules/landing/components/sections/HowItWorksSection.vue +88 -0
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +131 -0
- package/src/modules/landing/components/sections/InstagramSection.vue +181 -0
- package/src/modules/landing/components/sections/MapSection.vue +91 -0
- package/src/modules/landing/components/sections/SectionsSection.vue +69 -0
- package/src/modules/landing/components/sections/SliderFeatures.vue +131 -0
- package/src/modules/landing/components/sections/WhatIsWDRSection.vue +116 -0
- package/src/modules/landing/router/landing.js +34 -0
- package/src/modules/middlewares/server/verifySignUp.js +4 -0
- package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +52 -44
- package/src/modules/organizations/components/blocks/User.vue +42 -10
- package/src/modules/organizations/components/pages/Department.vue +7 -6
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +110 -134
- package/src/modules/organizations/components/pages/Members.vue +85 -26
- package/src/modules/organizations/components/pages/Organization.vue +60 -4
- package/src/modules/organizations/components/sections/MembersAdd.vue +27 -34
- package/src/modules/organizations/components/sections/Organizations.vue +0 -1
- package/src/modules/organizations/controllers/memberships.controller.js +6 -2
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/department.model.js +0 -19
- package/src/modules/organizations/models/membership.model.js +4 -0
- package/src/modules/organizations/organizations.client.js +1 -6
- package/src/modules/organizations/store/departments.js +48 -44
- package/src/modules/organizations/store/memberships.js +11 -3
- package/src/modules/products/components/blocks/CardPosition.vue +2 -2
- package/src/modules/products/components/blocks/CardProduct.vue +1 -1
- package/src/modules/products/components/pages/Product.vue +6 -1
- package/src/modules/products/components/pages/ProductEdit.vue +48 -28
- package/src/modules/products/controllers/products.controller.js +87 -24
- package/src/modules/products/models/product.model.js +16 -1
- package/src/modules/products/store/products.js +1 -1
- package/src/modules/users/components/pages/ProfileOrganizations.vue +41 -7
- package/src/modules/organizations/components/sections/FeedDepartments.vue +0 -64
- package/src/modules/organizations/components/sections/MembersList.vue +0 -85
- package/src/modules/organizations/store/invites.js +0 -93
@@ -1,38 +1,38 @@
|
|
1
1
|
import { ETH_DATA_FORMAT as E } from "../../../../web3-types/lib/esm/data_format_types.js";
|
2
2
|
import "../../../../web3-types/lib/esm/eth_types.js";
|
3
3
|
import "../../../../web3-types/lib/esm/web3_base_provider.js";
|
4
|
-
import { ContractExecutionError as
|
5
|
-
import { TransactionRevertWithCustomError as g, TransactionRevertedWithoutReasonError as b, TransactionRevertInstructionError as C, TransactionPollingTimeoutError as
|
6
|
-
import { InvalidResponseError as
|
4
|
+
import { ContractExecutionError as u } from "../../../../web3-errors/lib/esm/errors/contract_errors.js";
|
5
|
+
import { TransactionRevertWithCustomError as g, TransactionRevertedWithoutReasonError as b, TransactionRevertInstructionError as C, TransactionPollingTimeoutError as T } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
6
|
+
import { InvalidResponseError as w } from "../../../../web3-errors/lib/esm/errors/response_errors.js";
|
7
7
|
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
8
8
|
import "../../../../web3-validator/lib/esm/formats.js";
|
9
9
|
import "../../../../web3-validator/lib/esm/default_validator.js";
|
10
|
-
import { isNullish as
|
10
|
+
import { isNullish as f } from "../../../../web3-validator/lib/esm/validation/object.js";
|
11
11
|
import { sendRawTransaction as R, sendTransaction as x } from "../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
|
12
12
|
import "../../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
|
13
13
|
import "../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
|
14
14
|
import { getTransactionGasPricing as _ } from "./get_transaction_gas_pricing.js";
|
15
|
-
import { trySendTransaction as
|
15
|
+
import { trySendTransaction as d } from "./try_send_transaction.js";
|
16
16
|
import { watchTransactionForConfirmations as A } from "./watch_transaction_for_confirmations.js";
|
17
17
|
import { ALL_EVENTS_ABI as y } from "../constants.js";
|
18
|
-
import { getTransactionError as
|
18
|
+
import { getTransactionError as v } from "./get_transaction_error.js";
|
19
19
|
import { getRevertReason as S } from "./get_revert_reason.js";
|
20
20
|
import { decodeEventABI as B } from "./decoding.js";
|
21
|
-
var a = function(
|
21
|
+
var a = globalThis && globalThis.__awaiter || function(m, t, n, e) {
|
22
22
|
function i(o) {
|
23
23
|
return o instanceof n ? o : new n(function(r) {
|
24
24
|
r(o);
|
25
25
|
});
|
26
26
|
}
|
27
27
|
return new (n || (n = Promise))(function(o, r) {
|
28
|
-
function
|
28
|
+
function l(s) {
|
29
29
|
try {
|
30
30
|
c(e.next(s));
|
31
31
|
} catch (h) {
|
32
32
|
r(h);
|
33
33
|
}
|
34
34
|
}
|
35
|
-
function
|
35
|
+
function p(s) {
|
36
36
|
try {
|
37
37
|
c(e.throw(s));
|
38
38
|
} catch (h) {
|
@@ -40,9 +40,9 @@ var a = function(u, t, n, e) {
|
|
40
40
|
}
|
41
41
|
}
|
42
42
|
function c(s) {
|
43
|
-
s.done ? o(s.value) : i(s.value).then(
|
43
|
+
s.done ? o(s.value) : i(s.value).then(l, p);
|
44
44
|
}
|
45
|
-
c((e = e.apply(
|
45
|
+
c((e = e.apply(m, t || [])).next());
|
46
46
|
});
|
47
47
|
};
|
48
48
|
class X {
|
@@ -68,7 +68,7 @@ class X {
|
|
68
68
|
if (this.options.checkRevertBeforeSending !== !1) {
|
69
69
|
const n = yield S(this.web3Context, t, this.options.contractAbi);
|
70
70
|
if (n !== void 0)
|
71
|
-
throw yield
|
71
|
+
throw yield v(this.web3Context, t, void 0, void 0, this.options.contractAbi, n);
|
72
72
|
}
|
73
73
|
});
|
74
74
|
}
|
@@ -79,18 +79,18 @@ class X {
|
|
79
79
|
var e;
|
80
80
|
return a(this, void 0, void 0, function* () {
|
81
81
|
let i = t;
|
82
|
-
return !(!((e = this.options) === null || e === void 0) && e.ignoreGasPricing) &&
|
82
|
+
return !(!((e = this.options) === null || e === void 0) && e.ignoreGasPricing) && f(t.gasPrice) && (f(n.maxPriorityFeePerGas) || f(n.maxFeePerGas)) && (i = Object.assign(Object.assign({}, t), yield _(t, this.web3Context, E))), i;
|
83
83
|
});
|
84
84
|
}
|
85
85
|
signAndSend({ wallet: t, tx: n }) {
|
86
86
|
return a(this, void 0, void 0, function* () {
|
87
87
|
if (t) {
|
88
88
|
const e = yield t.signTransaction(n);
|
89
|
-
return
|
89
|
+
return d(this.web3Context, () => a(this, void 0, void 0, function* () {
|
90
90
|
return R(this.web3Context.requestManager, e.rawTransaction);
|
91
91
|
}), e.transactionHash);
|
92
92
|
}
|
93
|
-
return
|
93
|
+
return d(this.web3Context, () => a(this, void 0, void 0, function* () {
|
94
94
|
return x(this.web3Context.requestManager, n);
|
95
95
|
}));
|
96
96
|
});
|
@@ -112,7 +112,7 @@ class X {
|
|
112
112
|
var e;
|
113
113
|
return a(this, void 0, void 0, function* () {
|
114
114
|
let i = t;
|
115
|
-
return i instanceof
|
115
|
+
return i instanceof u && this.web3Context.handleRevert && (i = yield v(this.web3Context, n, void 0, void 0, (e = this.options) === null || e === void 0 ? void 0 : e.contractAbi)), (i instanceof w || i instanceof u || i instanceof g || i instanceof b || i instanceof C || i instanceof T) && this.promiEvent.listenerCount("error") > 0 && this.promiEvent.emit("error", i), i;
|
116
116
|
});
|
117
117
|
}
|
118
118
|
emitConfirmation({ receipt: t, transactionHash: n }) {
|
@@ -124,7 +124,7 @@ class X {
|
|
124
124
|
if (!((e = this.options) === null || e === void 0) && e.transactionResolver)
|
125
125
|
return (i = this.options) === null || i === void 0 ? void 0 : i.transactionResolver(t);
|
126
126
|
if (t.status === BigInt(0)) {
|
127
|
-
const r = yield
|
127
|
+
const r = yield v(
|
128
128
|
this.web3Context,
|
129
129
|
n,
|
130
130
|
// @ts-expect-error unknown type fix
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");require("../../../../web3-eth-accounts/lib/esm/wallet.cjs");const v=require("../../../../web3-eth-accounts/lib/esm/account.cjs");require("../../../../crc-32/crc32.cjs");require("../../../../web3-eth-accounts/lib/esm/common/types.cjs");const l=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");const y=require("../../../../web3-validator/lib/esm/validation/string.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");const p=require("../../../../web3-validator/lib/esm/validation/address.cjs"),O=require("../../../../web3-validator/lib/esm/validation/numbers.cjs"),n=require("../../../../web3-validator/lib/esm/validation/object.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../@ethereumjs/rlp/dist/index.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/types.cjs");require("../../../../web3-net/lib/esm/net.cjs");const x=require("../../../../web3-net/lib/esm/rpc_method_wrappers.cjs"),C=require("../constants.cjs"),m=require("../rpc_method_wrappers.cjs"),E=require("./detect_transaction_type.cjs"),R=require("../schemas.cjs"),I=require("./get_transaction_gas_pricing.cjs"),d=require("../../../../web3-utils/lib/esm/formatter.cjs"),A=require("../../../../web3-utils/lib/esm/converters.cjs");var _=function(i,r,t,e){function a(u){return u instanceof t?u:new t(function(c){c(u)})}return new(t||(t=Promise))(function(u,c){function f(o){try{T(e.next(o))}catch(h){c(h)}}function b(o){try{T(e.throw(o))}catch(h){c(h)}}function T(o){o.done?u(o.value):a(o.value).then(f,b)}T((e=e.apply(i,r||[])).next())})};const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");require("../../../../web3-eth-accounts/lib/esm/wallet.cjs");const v=require("../../../../web3-eth-accounts/lib/esm/account.cjs");require("../../../../crc-32/crc32.cjs");require("../../../../web3-eth-accounts/lib/esm/common/types.cjs");const l=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");const y=require("../../../../web3-validator/lib/esm/validation/string.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");const p=require("../../../../web3-validator/lib/esm/validation/address.cjs"),O=require("../../../../web3-validator/lib/esm/validation/numbers.cjs"),n=require("../../../../web3-validator/lib/esm/validation/object.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../@ethereumjs/rlp/dist/index.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/types.cjs");require("../../../../web3-net/lib/esm/net.cjs");const x=require("../../../../web3-net/lib/esm/rpc_method_wrappers.cjs"),C=require("../constants.cjs"),m=require("../rpc_method_wrappers.cjs"),E=require("./detect_transaction_type.cjs"),R=require("../schemas.cjs"),I=require("./get_transaction_gas_pricing.cjs"),d=require("../../../../web3-utils/lib/esm/formatter.cjs"),A=require("../../../../web3-utils/lib/esm/converters.cjs");var _=globalThis&&globalThis.__awaiter||function(i,r,t,e){function a(u){return u instanceof t?u:new t(function(c){c(u)})}return new(t||(t=Promise))(function(u,c){function f(o){try{T(e.next(o))}catch(h){c(h)}}function b(o){try{T(e.throw(o))}catch(h){c(h)}}function T(o){o.done?u(o.value):a(o.value).then(f,b)}T((e=e.apply(i,r||[])).next())})};const g=(i,r,t,e)=>{if(t!==void 0&&i in t&&t[i]!==void 0){if(typeof t[i]=="string"&&p.isAddress(t[i]))return t[i];if(!y.isHexStrict(t[i])&&O.isNumber(t[i])){if(r.wallet){const a=r.wallet.get(d.format({format:"uint"},t[i],C.NUMBER_DATA_FORMAT));if(!n.isNullish(a))return a.address;throw new l.LocalWalletNotAvailableError}throw new l.LocalWalletNotAvailableError}else throw i==="from"?new l.InvalidTransactionWithSender(t.from):new l.InvalidTransactionWithReceiver(t.to)}if(i==="from"){if(!n.isNullish(e))return v.privateKeyToAddress(e);if(!n.isNullish(r.defaultAccount))return r.defaultAccount}},N=(i,r,t=s.DEFAULT_RETURN_FORMAT)=>_(void 0,void 0,void 0,function*(){if(n.isNullish(r))throw new l.UnableToPopulateNonceError;return m.getTransactionCount(i,r,i.defaultBlock,t)}),w=(i,r)=>{const t=E.detectTransactionType(i,r);if(!n.isNullish(t))return t;if(!n.isNullish(r.defaultTransactionType))return d.format({format:"uint"},r.defaultTransactionType,s.ETH_DATA_FORMAT)};function q(i){var r,t;return _(this,void 0,void 0,function*(){let e=d.format(R.transactionSchema,i.transaction,s.DEFAULT_RETURN_FORMAT);if(n.isNullish(e.from)&&(e.from=g("from",i.web3Context,void 0,i.privateKey)),n.isNullish(e.nonce)&&(e.nonce=yield N(i.web3Context,e.from,s.ETH_DATA_FORMAT)),n.isNullish(e.value)&&(e.value="0x0"),n.isNullish(e.data))n.isNullish(e.input)?e.input="0x":e.input.startsWith("0x")||(e.input=`0x${e.input}`);else{if(!n.isNullish(e.input)&&e.data!==e.input)throw new l.TransactionDataAndInputError({data:A.bytesToHex(e.data),input:A.bytesToHex(e.input)});e.data.startsWith("0x")||(e.data=`0x${e.data}`)}if(n.isNullish(e.common)){if(i.web3Context.defaultCommon){const a=i.web3Context.defaultCommon,u=a.customChain.chainId,c=a.customChain.networkId,f=a.customChain.name;e.common=Object.assign(Object.assign({},a),{customChain:{chainId:u,networkId:c,name:f}})}n.isNullish(e.chain)&&(e.chain=i.web3Context.defaultChain),n.isNullish(e.hardfork)&&(e.hardfork=i.web3Context.defaultHardfork)}if(n.isNullish(e.chainId)&&n.isNullish((r=e.common)===null||r===void 0?void 0:r.customChain.chainId)&&(e.chainId=yield m.getChainId(i.web3Context,s.ETH_DATA_FORMAT)),n.isNullish(e.networkId)&&(e.networkId=(t=i.web3Context.defaultNetworkId)!==null&&t!==void 0?t:yield x.getId(i.web3Context,s.ETH_DATA_FORMAT)),n.isNullish(e.gasLimit)&&!n.isNullish(e.gas)&&(e.gasLimit=e.gas),e.type=w(e,i.web3Context),n.isNullish(e.accessList)&&(e.type==="0x1"||e.type==="0x2")&&(e.accessList=[]),i.fillGasPrice&&(e=Object.assign(Object.assign({},e),yield I.getTransactionGasPricing(e,i.web3Context,s.ETH_DATA_FORMAT))),n.isNullish(e.gas)&&n.isNullish(e.gasLimit)&&i.fillGasLimit){const a=yield m.estimateGas(i.web3Context,e,"latest",s.ETH_DATA_FORMAT);e=Object.assign(Object.assign({},e),{gas:d.format({format:"uint"},a,s.ETH_DATA_FORMAT)})}return e})}const F=i=>_(void 0,void 0,void 0,function*(){var r;return((r=i.web3Context.transactionBuilder)!==null&&r!==void 0?r:q)(Object.assign(Object.assign({},i),{transaction:i.transaction}))});exports.defaultTransactionBuilder=q;exports.getTransactionFromOrToAttr=g;exports.getTransactionNonce=N;exports.getTransactionType=w;exports.transactionBuilder=F;
|
@@ -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
|
};
|