@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 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=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("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../web3-eth/lib/esm/schemas.cjs");require("../../../web3-eth/lib/esm/constants.cjs");require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=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("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../web3-eth/lib/esm/schemas.cjs");require("../../../web3-eth/lib/esm/constants.cjs");require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");const l=require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.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");require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");const T=require("../../../web3-eth-accounts/lib/esm/wallet.cjs"),r=require("../../../web3-eth-accounts/lib/esm/account.cjs");require("../../../crc-32/crc32.cjs");require("../../../web3-eth-accounts/lib/esm/common/types.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");const f=require("../../../web3-utils/lib/esm/formatter.cjs");var v=globalThis&&globalThis.__awaiter||function(y,s,c,a){function q(u){return u instanceof c?u:new c(function(e){e(u)})}return new(c||(c=Promise))(function(u,e){function t(i){try{o(a.next(i))}catch(d){e(d)}}function n(i){try{o(a.throw(i))}catch(d){e(d)}}function o(i){i.done?u(i.value):q(i.value).then(t,n)}o((a=a.apply(y,s||[])).next())})};const g=y=>{const s=(e,t)=>v(void 0,void 0,void 0,function*(){const n=yield l.prepareTransactionForSigning(e,y),o=f.format({format:"bytes"},t,p.ETH_DATA_FORMAT);return r.signTransaction(n,o)}),c=e=>{const t=r.privateKeyToAccount(e);return Object.assign(Object.assign({},t),{signTransaction:n=>v(void 0,void 0,void 0,function*(){return s(n,t.privateKey)})})},a=(e,t,n)=>v(void 0,void 0,void 0,function*(){var o;const i=yield r.decrypt(e,t,(o=n==null?void 0:n.nonStrict)!==null&&o!==void 0?o:!0);return Object.assign(Object.assign({},i),{signTransaction:d=>v(void 0,void 0,void 0,function*(){return s(d,i.privateKey)})})}),q=()=>{const e=r.create();return Object.assign(Object.assign({},e),{signTransaction:t=>v(void 0,void 0,void 0,function*(){return s(t,e.privateKey)})})},u=new T.Wallet({create:q,privateKeyToAccount:c,decrypt:a});return{signTransaction:s,create:q,privateKeyToAccount:c,decrypt:a,recoverTransaction:r.recoverTransaction,hashMessage:r.hashMessage,sign:r.sign,recover:r.recover,encrypt:r.encrypt,wallet:u,privateKeyToAddress:r.privateKeyToAddress,parseAndValidatePrivateKey:r.parseAndValidatePrivateKey,privateKeyToPublicKey:r.privateKeyToPublicKey}};exports.initAccountsForContext=g;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ETH_DATA_FORMAT as
|
1
|
+
import { ETH_DATA_FORMAT as d } 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 "../../../setimmediate/setImmediate.js";
|
@@ -10,7 +10,7 @@ import "../../../web3-eth-abi/lib/esm/coders/base/number.js";
|
|
10
10
|
import "../../../web3-eth/lib/esm/schemas.js";
|
11
11
|
import "../../../web3-eth/lib/esm/constants.js";
|
12
12
|
import "../../../web3-eth/lib/esm/rpc_method_wrappers.js";
|
13
|
-
import { prepareTransactionForSigning as
|
13
|
+
import { prepareTransactionForSigning as y } from "../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.js";
|
14
14
|
import "../../../web3-core/lib/esm/web3_config.js";
|
15
15
|
import "../../../web3-core/lib/esm/web3_request_manager.js";
|
16
16
|
import "../../../web3-core/lib/esm/web3_subscription_manager.js";
|
@@ -20,8 +20,8 @@ import "../../../web3-core/lib/esm/web3_batch_request.js";
|
|
20
20
|
import "../../../web3-eth-iban/lib/esm/iban.js";
|
21
21
|
import "../../../web3-core/lib/esm/web3_promi_event.js";
|
22
22
|
import "../../../web3-eth/lib/esm/utils/transaction_builder.js";
|
23
|
-
import { Wallet as
|
24
|
-
import { recoverTransaction as T, hashMessage as l, sign as g, recover as
|
23
|
+
import { Wallet as f } from "../../../web3-eth-accounts/lib/esm/wallet.js";
|
24
|
+
import { recoverTransaction as T, hashMessage as l, sign as g, recover as h, encrypt as K, privateKeyToAddress as b, parseAndValidatePrivateKey as A, privateKeyToPublicKey as x, signTransaction as w, privateKeyToAccount as O, decrypt as _, create as j } from "../../../web3-eth-accounts/lib/esm/account.js";
|
25
25
|
import "../../../crc-32/crc32.js";
|
26
26
|
import "../../../web3-eth-accounts/lib/esm/common/types.js";
|
27
27
|
import "../../../web3-eth-accounts/lib/esm/tx/constants.js";
|
@@ -31,72 +31,72 @@ import "../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.js";
|
|
31
31
|
import "../../../@ethereumjs/rlp/dist/index.js";
|
32
32
|
import "../../../web3-eth-accounts/lib/esm/tx/types.js";
|
33
33
|
import { format as C } from "../../../web3-utils/lib/esm/formatter.js";
|
34
|
-
var m = function(
|
35
|
-
function
|
34
|
+
var m = globalThis && globalThis.__awaiter || function(v, p, e, c) {
|
35
|
+
function u(a) {
|
36
36
|
return a instanceof e ? a : new e(function(t) {
|
37
37
|
t(a);
|
38
38
|
});
|
39
39
|
}
|
40
40
|
return new (e || (e = Promise))(function(a, t) {
|
41
|
-
function i
|
41
|
+
function o(i) {
|
42
42
|
try {
|
43
|
-
|
43
|
+
n(c.next(i));
|
44
44
|
} catch (s) {
|
45
45
|
t(s);
|
46
46
|
}
|
47
47
|
}
|
48
|
-
function
|
48
|
+
function r(i) {
|
49
49
|
try {
|
50
|
-
|
50
|
+
n(c.throw(i));
|
51
51
|
} catch (s) {
|
52
52
|
t(s);
|
53
53
|
}
|
54
54
|
}
|
55
|
-
function
|
56
|
-
|
55
|
+
function n(i) {
|
56
|
+
i.done ? a(i.value) : u(i.value).then(o, r);
|
57
57
|
}
|
58
|
-
|
58
|
+
n((c = c.apply(v, p || [])).next());
|
59
59
|
});
|
60
60
|
};
|
61
|
-
const pt = (
|
62
|
-
const p = (t,
|
63
|
-
const
|
64
|
-
return w(
|
61
|
+
const pt = (v) => {
|
62
|
+
const p = (t, o) => m(void 0, void 0, void 0, function* () {
|
63
|
+
const r = yield y(t, v), n = C({ format: "bytes" }, o, d);
|
64
|
+
return w(r, n);
|
65
65
|
}), e = (t) => {
|
66
|
-
const
|
67
|
-
return Object.assign(Object.assign({},
|
68
|
-
return p(
|
66
|
+
const o = O(t);
|
67
|
+
return Object.assign(Object.assign({}, o), { signTransaction: (r) => m(void 0, void 0, void 0, function* () {
|
68
|
+
return p(r, o.privateKey);
|
69
69
|
}) });
|
70
|
-
}, c = (t,
|
71
|
-
var
|
72
|
-
const
|
73
|
-
return Object.assign(Object.assign({},
|
74
|
-
return p(s,
|
70
|
+
}, c = (t, o, r) => m(void 0, void 0, void 0, function* () {
|
71
|
+
var n;
|
72
|
+
const i = yield _(t, o, (n = r == null ? void 0 : r.nonStrict) !== null && n !== void 0 ? n : !0);
|
73
|
+
return Object.assign(Object.assign({}, i), { signTransaction: (s) => m(void 0, void 0, void 0, function* () {
|
74
|
+
return p(s, i.privateKey);
|
75
75
|
}) });
|
76
|
-
}),
|
76
|
+
}), u = () => {
|
77
77
|
const t = j();
|
78
|
-
return Object.assign(Object.assign({}, t), { signTransaction: (
|
79
|
-
return p(
|
78
|
+
return Object.assign(Object.assign({}, t), { signTransaction: (o) => m(void 0, void 0, void 0, function* () {
|
79
|
+
return p(o, t.privateKey);
|
80
80
|
}) });
|
81
|
-
}, a = new
|
82
|
-
create:
|
81
|
+
}, a = new f({
|
82
|
+
create: u,
|
83
83
|
privateKeyToAccount: e,
|
84
84
|
decrypt: c
|
85
85
|
});
|
86
86
|
return {
|
87
87
|
signTransaction: p,
|
88
|
-
create:
|
88
|
+
create: u,
|
89
89
|
privateKeyToAccount: e,
|
90
90
|
decrypt: c,
|
91
91
|
recoverTransaction: T,
|
92
92
|
hashMessage: l,
|
93
93
|
sign: g,
|
94
|
-
recover:
|
95
|
-
encrypt:
|
94
|
+
recover: h,
|
95
|
+
encrypt: K,
|
96
96
|
wallet: a,
|
97
|
-
privateKeyToAddress:
|
98
|
-
parseAndValidatePrivateKey:
|
99
|
-
privateKeyToPublicKey:
|
97
|
+
privateKeyToAddress: b,
|
98
|
+
parseAndValidatePrivateKey: A,
|
99
|
+
privateKeyToPublicKey: x
|
100
100
|
};
|
101
101
|
};
|
102
102
|
export {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs"),_=require("../../../web3-errors/lib/esm/errors/response_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const p=require("../../../web3-utils/lib/esm/web3_deferred_promise.cjs"),l=require("../../../web3-utils/lib/esm/json_rpc.cjs");var f=function(d,r,t
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs"),_=require("../../../web3-errors/lib/esm/errors/response_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const p=require("../../../web3-utils/lib/esm/web3_deferred_promise.cjs"),l=require("../../../web3-utils/lib/esm/json_rpc.cjs");var f=globalThis&&globalThis.__awaiter||function(d,r,s,t){function o(i){return i instanceof s?i:new s(function(n){n(i)})}return new(s||(s=Promise))(function(i,n){function e(u){try{c(t.next(u))}catch(h){n(h)}}function a(u){try{c(t.throw(u))}catch(h){n(h)}}function c(u){u.done?i(u.value):o(u.value).then(e,a)}c((t=t.apply(d,r||[])).next())})};const m=1e3;class v{constructor(r){this._requestManager=r,this._requests=new Map}get requests(){return[...this._requests.values()].map(r=>r.payload)}add(r){const s=l.toPayload(r),t=new p.Web3DeferredPromise;return this._requests.set(s.id,{payload:s,promise:t}),t}execute(r){var s;return f(this,void 0,void 0,function*(){if(this.requests.length===0)return Promise.resolve([]);const t=new p.Web3DeferredPromise({timeout:(s=r==null?void 0:r.timeout)!==null&&s!==void 0?s:m,eagerStart:!0,timeoutMessage:"Batch request timeout"});return this._processBatchRequest(t).catch(o=>t.reject(o)),t.catch(o=>{o instanceof q.OperationTimeoutError&&this._abortAllRequests("Batch request timeout"),t.reject(o)}),t})}_processBatchRequest(r){var s,t;return f(this,void 0,void 0,function*(){const o=yield this._requestManager.sendBatch([...this._requests.values()].map(e=>e.payload));if(o.length!==this._requests.size)throw this._abortAllRequests("Invalid batch response"),new _.ResponseError(o,`Batch request size mismatch the results size. Requests: ${this._requests.size}, Responses: ${o.length}`);const i=this.requests.map(e=>e.id).map(Number).sort((e,a)=>e-a),n=o.map(e=>e.id).map(Number).sort((e,a)=>e-a);if(JSON.stringify(i)!==JSON.stringify(n))throw this._abortAllRequests("Invalid batch response"),new _.ResponseError(o,`Batch request mismatch the results. Requests: [${i.join()}], Responses: [${n.join()}]`);for(const e of o)l.isResponseWithResult(e)?(s=this._requests.get(e.id))===null||s===void 0||s.promise.resolve(e.result):l.isResponseWithError(e)&&((t=this._requests.get(e.id))===null||t===void 0||t.promise.reject(e.error));r.resolve(o)})}_abortAllRequests(r){for(const{promise:s}of this._requests.values())s.reject(new q.OperationAbortError(r))}}exports.DEFAULT_BATCH_REQUEST_TIMEOUT=m;exports.Web3BatchRequest=v;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { OperationTimeoutError as f, OperationAbortError as q } from "../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
-
import { ResponseError as
|
2
|
+
import { ResponseError as p } from "../../../web3-errors/lib/esm/errors/response_errors.js";
|
3
3
|
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
4
|
-
import { Web3DeferredPromise as
|
4
|
+
import { Web3DeferredPromise as m } from "../../../web3-utils/lib/esm/web3_deferred_promise.js";
|
5
5
|
import { toPayload as _, isResponseWithResult as v, isResponseWithError as R } from "../../../web3-utils/lib/esm/json_rpc.js";
|
6
|
-
var
|
7
|
-
function i
|
8
|
-
return
|
9
|
-
n(
|
6
|
+
var d = globalThis && globalThis.__awaiter || function(l, r, t, s) {
|
7
|
+
function o(i) {
|
8
|
+
return i instanceof t ? i : new t(function(n) {
|
9
|
+
n(i);
|
10
10
|
});
|
11
11
|
}
|
12
|
-
return new (t || (t = Promise))(function(
|
12
|
+
return new (t || (t = Promise))(function(i, n) {
|
13
13
|
function e(u) {
|
14
14
|
try {
|
15
15
|
c(s.next(u));
|
@@ -25,13 +25,13 @@ var m = function(l, r, t, s) {
|
|
25
25
|
}
|
26
26
|
}
|
27
27
|
function c(u) {
|
28
|
-
u.done ?
|
28
|
+
u.done ? i(u.value) : o(u.value).then(e, a);
|
29
29
|
}
|
30
30
|
c((s = s.apply(l, r || [])).next());
|
31
31
|
});
|
32
32
|
};
|
33
|
-
const
|
34
|
-
class
|
33
|
+
const b = 1e3;
|
34
|
+
class T {
|
35
35
|
constructor(r) {
|
36
36
|
this._requestManager = r, this._requests = /* @__PURE__ */ new Map();
|
37
37
|
}
|
@@ -39,37 +39,37 @@ class A {
|
|
39
39
|
return [...this._requests.values()].map((r) => r.payload);
|
40
40
|
}
|
41
41
|
add(r) {
|
42
|
-
const t = _(r), s = new
|
42
|
+
const t = _(r), s = new m();
|
43
43
|
return this._requests.set(t.id, { payload: t, promise: s }), s;
|
44
44
|
}
|
45
45
|
// eslint-disable-next-line class-methods-use-this
|
46
46
|
execute(r) {
|
47
47
|
var t;
|
48
|
-
return
|
48
|
+
return d(this, void 0, void 0, function* () {
|
49
49
|
if (this.requests.length === 0)
|
50
50
|
return Promise.resolve([]);
|
51
|
-
const s = new
|
52
|
-
timeout: (t = r == null ? void 0 : r.timeout) !== null && t !== void 0 ? t :
|
51
|
+
const s = new m({
|
52
|
+
timeout: (t = r == null ? void 0 : r.timeout) !== null && t !== void 0 ? t : b,
|
53
53
|
eagerStart: !0,
|
54
54
|
timeoutMessage: "Batch request timeout"
|
55
55
|
});
|
56
|
-
return this._processBatchRequest(s).catch((
|
57
|
-
|
56
|
+
return this._processBatchRequest(s).catch((o) => s.reject(o)), s.catch((o) => {
|
57
|
+
o instanceof f && this._abortAllRequests("Batch request timeout"), s.reject(o);
|
58
58
|
}), s;
|
59
59
|
});
|
60
60
|
}
|
61
61
|
_processBatchRequest(r) {
|
62
62
|
var t, s;
|
63
|
-
return
|
64
|
-
const
|
65
|
-
if (
|
66
|
-
throw this._abortAllRequests("Invalid batch response"), new
|
67
|
-
const
|
68
|
-
if (JSON.stringify(
|
69
|
-
throw this._abortAllRequests("Invalid batch response"), new
|
70
|
-
for (const e of
|
63
|
+
return d(this, void 0, void 0, function* () {
|
64
|
+
const o = yield this._requestManager.sendBatch([...this._requests.values()].map((e) => e.payload));
|
65
|
+
if (o.length !== this._requests.size)
|
66
|
+
throw this._abortAllRequests("Invalid batch response"), new p(o, `Batch request size mismatch the results size. Requests: ${this._requests.size}, Responses: ${o.length}`);
|
67
|
+
const i = this.requests.map((e) => e.id).map(Number).sort((e, a) => e - a), n = o.map((e) => e.id).map(Number).sort((e, a) => e - a);
|
68
|
+
if (JSON.stringify(i) !== JSON.stringify(n))
|
69
|
+
throw this._abortAllRequests("Invalid batch response"), new p(o, `Batch request mismatch the results. Requests: [${i.join()}], Responses: [${n.join()}]`);
|
70
|
+
for (const e of o)
|
71
71
|
v(e) ? (t = this._requests.get(e.id)) === null || t === void 0 || t.promise.resolve(e.result) : R(e) && ((s = this._requests.get(e.id)) === null || s === void 0 || s.promise.reject(e.error));
|
72
|
-
r.resolve(
|
72
|
+
r.resolve(o);
|
73
73
|
});
|
74
74
|
}
|
75
75
|
_abortAllRequests(r) {
|
@@ -78,6 +78,6 @@ class A {
|
|
78
78
|
}
|
79
79
|
}
|
80
80
|
export {
|
81
|
-
|
82
|
-
|
81
|
+
b as DEFAULT_BATCH_REQUEST_TIMEOUT,
|
82
|
+
T as Web3BatchRequest
|
83
83
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-accounts/lib/esm/wallet.cjs");require("../../../web3-eth-accounts/lib/esm/account.cjs");require("../../../crc-32/crc32.cjs");require("../../../web3-eth-accounts/lib/esm/common/types.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");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");const b=require("./utils.cjs"),f=require("./web3_batch_request.cjs"),l=require("./web3_config.cjs"),g=require("./web3_request_manager.cjs"),p=require("./web3_subscription_manager.cjs"),_=require("../../../web3-utils/lib/esm/validation.cjs");var M=function(v,e,r,i){function s(t){return t instanceof r?t:new r(function(n){n(t)})}return new(r||(r=Promise))(function(t,n){function o(
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-accounts/lib/esm/wallet.cjs");require("../../../web3-eth-accounts/lib/esm/account.cjs");require("../../../crc-32/crc32.cjs");require("../../../web3-eth-accounts/lib/esm/common/types.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");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");const b=require("./utils.cjs"),f=require("./web3_batch_request.cjs"),l=require("./web3_config.cjs"),g=require("./web3_request_manager.cjs"),p=require("./web3_subscription_manager.cjs"),_=require("../../../web3-utils/lib/esm/validation.cjs");var M=globalThis&&globalThis.__awaiter||function(v,e,r,i){function s(t){return t instanceof r?t:new r(function(n){n(t)})}return new(r||(r=Promise))(function(t,n){function o(a){try{u(i.next(a))}catch(d){n(d)}}function c(a){try{u(i.throw(a))}catch(d){n(d)}}function u(a){a.done?t(a.value):s(a.value).then(o,c)}u((i=i.apply(v,e||[])).next())})};class h extends l.Web3Config{constructor(e){var r;if(super(),this.providers=g.Web3RequestManager.providers,_.isNullish(e)||typeof e=="string"&&e.trim()!==""||b.isSupportedProvider(e)){this._requestManager=new g.Web3RequestManager(e),this._subscriptionManager=new p.Web3SubscriptionManager(this._requestManager,{});return}const{config:i,provider:s,requestManager:t,subscriptionManager:n,registeredSubscriptions:o,accountProvider:c,wallet:u}=e;this.setConfig(i??{}),this._requestManager=t??new g.Web3RequestManager(s,(r=i==null?void 0:i.enableExperimentalFeatures)===null||r===void 0?void 0:r.useSubscriptionWhenCheckingBlockTimeout),n?this._subscriptionManager=n:this._subscriptionManager=new p.Web3SubscriptionManager(this.requestManager,o??{}),c&&(this._accountProvider=c),u&&(this._wallet=u)}get requestManager(){return this._requestManager}get subscriptionManager(){return this._subscriptionManager}get wallet(){return this._wallet}get accountProvider(){return this._accountProvider}static fromContextObject(...e){return new this(...e.reverse())}getContextObject(){var e;return{config:this.config,provider:this.provider,requestManager:this.requestManager,subscriptionManager:this.subscriptionManager,registeredSubscriptions:(e=this.subscriptionManager)===null||e===void 0?void 0:e.registeredSubscriptions,providers:this.providers,wallet:this.wallet,accountProvider:this.accountProvider}}use(e,...r){const i=new e(...r,this.getContextObject());return this.on(l.Web3ConfigEvent.CONFIG_CHANGE,s=>{i.setConfig({[s.name]:s.newValue})}),i}link(e){this.setConfig(e.config),this._requestManager=e.requestManager,this.provider=e.provider,this._subscriptionManager=e.subscriptionManager,this._wallet=e.wallet,this._accountProvider=e._accountProvider,e.on(l.Web3ConfigEvent.CONFIG_CHANGE,r=>{this.setConfig({[r.name]:r.newValue})})}registerPlugin(e){if(this[e.pluginNamespace]!==void 0)throw new q.ExistingPluginNamespaceError(e.pluginNamespace);const r={[e.pluginNamespace]:e};r[e.pluginNamespace].link(this),Object.assign(this,r)}get provider(){return this.currentProvider}set provider(e){this.requestManager.setProvider(e)}get currentProvider(){return this.requestManager.provider}set currentProvider(e){this.requestManager.setProvider(e)}get givenProvider(){return h.givenProvider}setProvider(e){return this.provider=e,!0}get BatchRequest(){return f.Web3BatchRequest.bind(void 0,this._requestManager)}extend(e){var r;return e.property&&!this[e.property]&&(this[e.property]={}),(r=e.methods)===null||r===void 0||r.forEach(i=>{const s=(...t)=>M(this,void 0,void 0,function*(){return this.requestManager.send({method:i.call,params:t})});e.property?this[e.property][i.name]=s:this[i.name]=s}),this}}h.providers=g.Web3RequestManager.providers;exports.Web3Context=h;
|
@@ -17,46 +17,46 @@ import "../../../@ethereumjs/rlp/dist/index.js";
|
|
17
17
|
import "../../../web3-eth-accounts/lib/esm/tx/types.js";
|
18
18
|
import { isSupportedProvider as f } from "./utils.js";
|
19
19
|
import { Web3BatchRequest as M } from "./web3_batch_request.js";
|
20
|
-
import { Web3Config as _, Web3ConfigEvent as
|
20
|
+
import { Web3Config as _, Web3ConfigEvent as d } from "./web3_config.js";
|
21
21
|
import { Web3RequestManager as p } from "./web3_request_manager.js";
|
22
22
|
import { Web3SubscriptionManager as l } from "./web3_subscription_manager.js";
|
23
|
-
import { isNullish as
|
24
|
-
var
|
23
|
+
import { isNullish as b } from "../../../web3-utils/lib/esm/validation.js";
|
24
|
+
var w = globalThis && globalThis.__awaiter || function(m, r, e, i) {
|
25
25
|
function s(t) {
|
26
|
-
return t instanceof e ? t : new e(function(
|
27
|
-
|
26
|
+
return t instanceof e ? t : new e(function(o) {
|
27
|
+
o(t);
|
28
28
|
});
|
29
29
|
}
|
30
|
-
return new (e || (e = Promise))(function(t,
|
31
|
-
function u(
|
30
|
+
return new (e || (e = Promise))(function(t, o) {
|
31
|
+
function u(n) {
|
32
32
|
try {
|
33
|
-
a(i.next(
|
33
|
+
a(i.next(n));
|
34
34
|
} catch (h) {
|
35
|
-
|
35
|
+
o(h);
|
36
36
|
}
|
37
37
|
}
|
38
|
-
function c(
|
38
|
+
function c(n) {
|
39
39
|
try {
|
40
|
-
a(i.throw(
|
40
|
+
a(i.throw(n));
|
41
41
|
} catch (h) {
|
42
|
-
|
42
|
+
o(h);
|
43
43
|
}
|
44
44
|
}
|
45
|
-
function a(
|
46
|
-
|
45
|
+
function a(n) {
|
46
|
+
n.done ? t(n.value) : s(n.value).then(u, c);
|
47
47
|
}
|
48
48
|
a((i = i.apply(m, r || [])).next());
|
49
49
|
});
|
50
50
|
};
|
51
|
-
class
|
51
|
+
class g extends _ {
|
52
52
|
constructor(r) {
|
53
53
|
var e;
|
54
|
-
if (super(), this.providers = p.providers,
|
54
|
+
if (super(), this.providers = p.providers, b(r) || typeof r == "string" && r.trim() !== "" || f(r)) {
|
55
55
|
this._requestManager = new p(r), this._subscriptionManager = new l(this._requestManager, {});
|
56
56
|
return;
|
57
57
|
}
|
58
|
-
const { config: i, provider: s, requestManager: t, subscriptionManager:
|
59
|
-
this.setConfig(i ?? {}), this._requestManager = t ?? new p(s, (e = i == null ? void 0 : i.enableExperimentalFeatures) === null || e === void 0 ? void 0 : e.useSubscriptionWhenCheckingBlockTimeout),
|
58
|
+
const { config: i, provider: s, requestManager: t, subscriptionManager: o, registeredSubscriptions: u, accountProvider: c, wallet: a } = r;
|
59
|
+
this.setConfig(i ?? {}), this._requestManager = t ?? new p(s, (e = i == null ? void 0 : i.enableExperimentalFeatures) === null || e === void 0 ? void 0 : e.useSubscriptionWhenCheckingBlockTimeout), o ? this._subscriptionManager = o : this._subscriptionManager = new l(this.requestManager, u ?? {}), c && (this._accountProvider = c), a && (this._wallet = a);
|
60
60
|
}
|
61
61
|
get requestManager() {
|
62
62
|
return this._requestManager;
|
@@ -97,7 +97,7 @@ class d extends _ {
|
|
97
97
|
*/
|
98
98
|
use(r, ...e) {
|
99
99
|
const i = new r(...e, this.getContextObject());
|
100
|
-
return this.on(
|
100
|
+
return this.on(d.CONFIG_CHANGE, (s) => {
|
101
101
|
i.setConfig({ [s.name]: s.newValue });
|
102
102
|
}), i;
|
103
103
|
}
|
@@ -105,7 +105,7 @@ class d extends _ {
|
|
105
105
|
* Link current context to another context.
|
106
106
|
*/
|
107
107
|
link(r) {
|
108
|
-
this.setConfig(r.config), this._requestManager = r.requestManager, this.provider = r.provider, this._subscriptionManager = r.subscriptionManager, this._wallet = r.wallet, this._accountProvider = r._accountProvider, r.on(
|
108
|
+
this.setConfig(r.config), this._requestManager = r.requestManager, this.provider = r.provider, this._subscriptionManager = r.subscriptionManager, this._wallet = r.wallet, this._accountProvider = r._accountProvider, r.on(d.CONFIG_CHANGE, (e) => {
|
109
109
|
this.setConfig({ [e.name]: e.newValue });
|
110
110
|
});
|
111
111
|
}
|
@@ -202,7 +202,7 @@ class d extends _ {
|
|
202
202
|
*/
|
203
203
|
// eslint-disable-next-line class-methods-use-this
|
204
204
|
get givenProvider() {
|
205
|
-
return
|
205
|
+
return g.givenProvider;
|
206
206
|
}
|
207
207
|
/**
|
208
208
|
* Will set the provider.
|
@@ -226,7 +226,7 @@ class d extends _ {
|
|
226
226
|
extend(r) {
|
227
227
|
var e;
|
228
228
|
return r.property && !this[r.property] && (this[r.property] = {}), (e = r.methods) === null || e === void 0 || e.forEach((i) => {
|
229
|
-
const s = (...t) =>
|
229
|
+
const s = (...t) => w(this, void 0, void 0, function* () {
|
230
230
|
return this.requestManager.send({
|
231
231
|
method: i.call,
|
232
232
|
params: t
|
@@ -236,7 +236,7 @@ class d extends _ {
|
|
236
236
|
}), this;
|
237
237
|
}
|
238
238
|
}
|
239
|
-
|
239
|
+
g.providers = p.providers;
|
240
240
|
export {
|
241
|
-
|
241
|
+
g as Web3Context
|
242
242
|
};
|
@@ -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_event_emitter.cjs");var u=globalThis&&globalThis.__awaiter||function(h,t,e,r){function f(i){return i instanceof e?i:new e(function(o){o(i)})}return new(e||(e=Promise))(function(i,o){function l(n){try{s(r.next(n))}catch(c){o(c)}}function d(n){try{s(r.throw(n))}catch(c){o(c)}}function s(n){n.done?i(n.value):f(n.value).then(l,d)}s((r=r.apply(h,t||[])).next())})},a;class v extends m.Web3EventEmitter{constructor(t){super(),this[a]="Promise",this._promise=new Promise(t)}then(t,e){return u(this,void 0,void 0,function*(){return this._promise.then(t,e)})}catch(t){return u(this,void 0,void 0,function*(){return this._promise.catch(t)})}finally(t){return u(this,void 0,void 0,function*(){return this._promise.finally(t)})}on(t,e){return super.on(t,e),this}once(t,e){return super.once(t,e),this}}a=Symbol.toStringTag;exports.Web3PromiEvent=v;
|
@@ -1,58 +1,58 @@
|
|
1
1
|
import { Web3EventEmitter as m } from "./web3_event_emitter.js";
|
2
|
-
var
|
3
|
-
function
|
4
|
-
return e instanceof
|
5
|
-
|
2
|
+
var u = globalThis && globalThis.__awaiter || function(h, t, n, o) {
|
3
|
+
function f(e) {
|
4
|
+
return e instanceof n ? e : new n(function(r) {
|
5
|
+
r(e);
|
6
6
|
});
|
7
7
|
}
|
8
|
-
return new (
|
9
|
-
function
|
8
|
+
return new (n || (n = Promise))(function(e, r) {
|
9
|
+
function p(i) {
|
10
10
|
try {
|
11
|
-
|
11
|
+
s(o.next(i));
|
12
12
|
} catch (c) {
|
13
|
-
|
13
|
+
r(c);
|
14
14
|
}
|
15
15
|
}
|
16
|
-
function
|
16
|
+
function l(i) {
|
17
17
|
try {
|
18
|
-
|
18
|
+
s(o.throw(i));
|
19
19
|
} catch (c) {
|
20
|
-
|
20
|
+
r(c);
|
21
21
|
}
|
22
22
|
}
|
23
|
-
function
|
24
|
-
i.done ? e(i.value) :
|
23
|
+
function s(i) {
|
24
|
+
i.done ? e(i.value) : f(i.value).then(p, l);
|
25
25
|
}
|
26
|
-
|
26
|
+
s((o = o.apply(h, t || [])).next());
|
27
27
|
});
|
28
|
-
},
|
29
|
-
class
|
30
|
-
constructor(
|
31
|
-
super(), this[
|
28
|
+
}, a;
|
29
|
+
class v extends m {
|
30
|
+
constructor(t) {
|
31
|
+
super(), this[a] = "Promise", this._promise = new Promise(t);
|
32
32
|
}
|
33
|
-
then(
|
34
|
-
return
|
35
|
-
return this._promise.then(
|
33
|
+
then(t, n) {
|
34
|
+
return u(this, void 0, void 0, function* () {
|
35
|
+
return this._promise.then(t, n);
|
36
36
|
});
|
37
37
|
}
|
38
|
-
catch(
|
39
|
-
return
|
40
|
-
return this._promise.catch(
|
38
|
+
catch(t) {
|
39
|
+
return u(this, void 0, void 0, function* () {
|
40
|
+
return this._promise.catch(t);
|
41
41
|
});
|
42
42
|
}
|
43
|
-
finally(
|
44
|
-
return
|
45
|
-
return this._promise.finally(
|
43
|
+
finally(t) {
|
44
|
+
return u(this, void 0, void 0, function* () {
|
45
|
+
return this._promise.finally(t);
|
46
46
|
});
|
47
47
|
}
|
48
|
-
on(
|
49
|
-
return super.on(
|
48
|
+
on(t, n) {
|
49
|
+
return super.on(t, n), this;
|
50
50
|
}
|
51
|
-
once(
|
52
|
-
return super.once(
|
51
|
+
once(t, n) {
|
52
|
+
return super.once(t, n), this;
|
53
53
|
}
|
54
54
|
}
|
55
|
-
|
55
|
+
a = Symbol.toStringTag;
|
56
56
|
export {
|
57
|
-
|
57
|
+
v as Web3PromiEvent
|
58
58
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../../../web3-errors/lib/esm/errors/contract_errors.cjs"),E=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs"),R=require("../../../web3-errors/lib/esm/errors/response_errors.cjs"),_=require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs"),g=require("../../../web3-providers-http/lib/esm/index.cjs"),b=require("../../../web3-providers-ws/lib/esm/index.cjs"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../../../web3-errors/lib/esm/errors/contract_errors.cjs"),E=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs"),R=require("../../../web3-errors/lib/esm/errors/response_errors.cjs"),_=require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs"),g=require("../../../web3-providers-http/lib/esm/index.cjs"),b=require("../../../web3-providers-ws/lib/esm/index.cjs"),a=require("./utils.cjs"),W=require("./web3_event_emitter.cjs"),m=require("../../../web3-utils/lib/esm/promise_helpers.cjs"),i=require("../../../web3-utils/lib/esm/json_rpc.cjs"),l=require("../../../web3-utils/lib/esm/validation.cjs");var w=globalThis&&globalThis.__awaiter||function(d,r,e,t){function s(o){return o instanceof e?o:new e(function(n){n(o)})}return new(e||(e=Promise))(function(o,n){function h(u){try{c(t.next(u))}catch(p){n(p)}}function f(u){try{c(t.throw(u))}catch(p){n(p)}}function c(u){u.done?o(u.value):s(u.value).then(h,f)}c((t=t.apply(d,r||[])).next())})};exports.Web3RequestManagerEvent=void 0;(function(d){d.PROVIDER_CHANGED="PROVIDER_CHANGED",d.BEFORE_PROVIDER_CHANGE="BEFORE_PROVIDER_CHANGE"})(exports.Web3RequestManagerEvent||(exports.Web3RequestManagerEvent={}));const P={HttpProvider:g.default,WebsocketProvider:b.default};class v extends W.Web3EventEmitter{constructor(r,e){super(),l.isNullish(r)||this.setProvider(r),this.useRpcCallSpecification=e}static get providers(){return P}get provider(){return this._provider}get providers(){return P}setProvider(r){let e;if(r&&typeof r=="string"&&this.providers)if(/^http(s)?:\/\//i.test(r))e=new this.providers.HttpProvider(r);else if(/^ws(s)?:\/\//i.test(r))e=new this.providers.WebsocketProvider(r);else throw new E.ProviderError(`Can't autodetect provider for "${r}"`);else l.isNullish(r)?e=void 0:e=r;return this.emit(exports.Web3RequestManagerEvent.BEFORE_PROVIDER_CHANGE,this._provider),this._provider=e,this.emit(exports.Web3RequestManagerEvent.PROVIDER_CHANGED,this._provider),!0}send(r){return w(this,void 0,void 0,function*(){const e=yield this._sendRequest(r);if(i.isResponseWithResult(e))return e.result;throw new R.ResponseError(e)})}sendBatch(r){return w(this,void 0,void 0,function*(){return yield this._sendRequest(r)})}_sendRequest(r){return w(this,void 0,void 0,function*(){const{provider:e}=this;if(l.isNullish(e))throw new E.ProviderError("Provider not available. Use `.setProvider` or `.provider=` to initialize the provider.");const t=i.isBatchRequest(r)?i.toBatchPayload(r):i.toPayload(r);if(a.isWeb3Provider(e)){let s;try{s=yield e.request(t)}catch(o){s=o}return this._processJsonRpcResponse(t,s,{legacy:!1,error:!1})}if(a.isEIP1193Provider(e))return e.request(t).then(s=>this._processJsonRpcResponse(t,s,{legacy:!0,error:!1})).catch(s=>this._processJsonRpcResponse(t,s,{legacy:!0,error:!0}));if(a.isLegacyRequestProvider(e))return new Promise((s,o)=>{const n=c=>o(this._processJsonRpcResponse(t,c,{legacy:!0,error:!0})),h=c=>s(this._processJsonRpcResponse(t,c,{legacy:!0,error:!1})),f=e.request(t,(c,u)=>c?n(c):h(u));m.isPromise(f)&&f.then(h).catch(n)});if(a.isLegacySendProvider(e))return new Promise((s,o)=>{e.send(t,(n,h)=>{if(n)return o(this._processJsonRpcResponse(t,n,{legacy:!0,error:!0}));if(l.isNullish(h))throw new R.ResponseError("",'Got a "nullish" response from provider.');return s(this._processJsonRpcResponse(t,h,{legacy:!0,error:!1}))})});if(a.isLegacySendAsyncProvider(e))return e.sendAsync(t).then(s=>this._processJsonRpcResponse(t,s,{legacy:!0,error:!1})).catch(s=>this._processJsonRpcResponse(t,s,{legacy:!0,error:!0}));throw new E.ProviderError("Provider does not have a request or send method to use.")})}_processJsonRpcResponse(r,e,{legacy:t,error:s}){if(l.isNullish(e))return this._buildResponse(r,null,s);if(i.isResponseWithError(e)){if(this.useRpcCallSpecification&&i.isResponseRpcError(e)){const o=e;if(_.rpcErrorsMap.get(o.error.code)){const n=_.rpcErrorsMap.get(o.error.code).error;throw new n(o)}else throw new _.RpcError(o)}else if(!v._isReverted(e))throw new R.InvalidResponseError(e,r)}if(i.isResponseWithResult(e))return e;if(e instanceof Error)throw v._isReverted(e),e;if(!t&&i.isBatchRequest(r)&&i.isBatchResponse(e)||t&&!s&&i.isBatchRequest(r))return e;if(t&&s&&i.isBatchRequest(r))throw e;if(t&&!i.isResponseWithError(e)&&!i.isResponseWithResult(e))return this._buildResponse(r,e,s);throw i.isBatchRequest(r)&&!Array.isArray(e)?new R.ResponseError(e,"Got normal response for a batch request."):!i.isBatchRequest(r)&&Array.isArray(e)?new R.ResponseError(e,"Got batch response for a normal request."):(i.isResponseWithError(e)||i.isResponseWithResult(e))&&!i.isBatchRequest(r)&&e.id&&r.id!==e.id?new R.InvalidResponseError(e):new R.ResponseError(e,"Invalid response")}static _isReverted(r){let e;if(i.isResponseWithError(r)?e=r.error:r instanceof Error&&(e=r),e!=null&&e.message.includes("revert"))throw new q.ContractExecutionError(e);return!1}_buildResponse(r,e,t){const s={jsonrpc:"2.0",id:i.isBatchRequest(r)?r[0].id:"id"in r?r.id:null};return t?Object.assign(Object.assign({},s),{error:e}):Object.assign(Object.assign({},s),{result:e})}}exports.Web3RequestManager=v;
|
@@ -7,9 +7,9 @@ import C from "../../../web3-providers-ws/lib/esm/index.js";
|
|
7
7
|
import { isWeb3Provider as J, isEIP1193Provider as D, isLegacyRequestProvider as G, isLegacySendProvider as H, isLegacySendAsyncProvider as I } from "./utils.js";
|
8
8
|
import { Web3EventEmitter as q } from "./web3_event_emitter.js";
|
9
9
|
import { isPromise as W } from "../../../web3-utils/lib/esm/promise_helpers.js";
|
10
|
-
import { isResponseWithResult as
|
10
|
+
import { isResponseWithResult as a, isBatchRequest as u, toBatchPayload as B, toPayload as N, isResponseWithError as p, isResponseRpcError as j, isBatchResponse as V } from "../../../web3-utils/lib/esm/json_rpc.js";
|
11
11
|
import { isNullish as d } from "../../../web3-utils/lib/esm/validation.js";
|
12
|
-
var E = function(R, e, r, t) {
|
12
|
+
var E = globalThis && globalThis.__awaiter || function(R, e, r, t) {
|
13
13
|
function i(s) {
|
14
14
|
return s instanceof r ? s : new r(function(o) {
|
15
15
|
o(s);
|
@@ -23,7 +23,7 @@ var E = function(R, e, r, t) {
|
|
23
23
|
o(w);
|
24
24
|
}
|
25
25
|
}
|
26
|
-
function
|
26
|
+
function l(c) {
|
27
27
|
try {
|
28
28
|
n(t.throw(c));
|
29
29
|
} catch (w) {
|
@@ -31,7 +31,7 @@ var E = function(R, e, r, t) {
|
|
31
31
|
}
|
32
32
|
}
|
33
33
|
function n(c) {
|
34
|
-
c.done ? s(c.value) : i(c.value).then(f,
|
34
|
+
c.done ? s(c.value) : i(c.value).then(f, l);
|
35
35
|
}
|
36
36
|
n((t = t.apply(R, e || [])).next());
|
37
37
|
});
|
@@ -98,7 +98,7 @@ class _ extends q {
|
|
98
98
|
send(e) {
|
99
99
|
return E(this, void 0, void 0, function* () {
|
100
100
|
const r = yield this._sendRequest(e);
|
101
|
-
if (
|
101
|
+
if (a(r))
|
102
102
|
return r.result;
|
103
103
|
throw new h(r);
|
104
104
|
});
|
@@ -141,12 +141,12 @@ class _ extends q {
|
|
141
141
|
})), f = (n) => i(this._processJsonRpcResponse(t, n, {
|
142
142
|
legacy: !0,
|
143
143
|
error: !1
|
144
|
-
})),
|
144
|
+
})), l = r.request(
|
145
145
|
t,
|
146
146
|
// a callback that is expected to be called after getting the response:
|
147
147
|
(n, c) => n ? o(n) : f(c)
|
148
148
|
);
|
149
|
-
W(
|
149
|
+
W(l) && l.then(f).catch(o);
|
150
150
|
});
|
151
151
|
if (H(r))
|
152
152
|
return new Promise((i, s) => {
|
@@ -193,7 +193,7 @@ class _ extends q {
|
|
193
193
|
} else if (!_._isReverted(r))
|
194
194
|
throw new P(r, e);
|
195
195
|
}
|
196
|
-
if (
|
196
|
+
if (a(r))
|
197
197
|
return r;
|
198
198
|
if (r instanceof Error)
|
199
199
|
throw _._isReverted(r), r;
|
@@ -201,9 +201,9 @@ class _ extends q {
|
|
201
201
|
return r;
|
202
202
|
if (t && i && u(e))
|
203
203
|
throw r;
|
204
|
-
if (t && !p(r) && !
|
204
|
+
if (t && !p(r) && !a(r))
|
205
205
|
return this._buildResponse(e, r, i);
|
206
|
-
throw u(e) && !Array.isArray(r) ? new h(r, "Got normal response for a batch request.") : !u(e) && Array.isArray(r) ? new h(r, "Got batch response for a normal request.") : (p(r) ||
|
206
|
+
throw u(e) && !Array.isArray(r) ? new h(r, "Got normal response for a batch request.") : !u(e) && Array.isArray(r) ? new h(r, "Got batch response for a normal request.") : (p(r) || a(r)) && !u(e) && r.id && e.id !== r.id ? new P(r) : new h(r, "Invalid response");
|
207
207
|
}
|
208
208
|
static _isReverted(e) {
|
209
209
|
let r;
|