@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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const o=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const S=require("./utils.cjs"),h=require("./web3_request_manager.cjs"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const o=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const S=require("./utils.cjs"),h=require("./web3_request_manager.cjs"),d=require("../../../web3-utils/lib/esm/validation.cjs");var c=globalThis&&globalThis.__awaiter||function(b,i,r,s){function t(e){return e instanceof r?e:new r(function(n){n(e)})}return new(r||(r=Promise))(function(e,n){function l(u){try{a(s.next(u))}catch(p){n(p)}}function v(u){try{a(s.throw(u))}catch(p){n(p)}}function a(u){u.done?e(u.value):t(u.value).then(l,v)}a((s=s.apply(b,i||[])).next())})};class g{constructor(i,r,s=!1){this.requestManager=i,this.registeredSubscriptions=r,this.tolerateUnlinkedSubscription=s,this._subscriptions=new Map,this.requestManager.on(h.Web3RequestManagerEvent.BEFORE_PROVIDER_CHANGE,()=>c(this,void 0,void 0,function*(){yield this.unsubscribe()})),this.requestManager.on(h.Web3RequestManagerEvent.PROVIDER_CHANGED,()=>{this.clear(),this.listenToProviderEvents()}),this.listenToProviderEvents()}listenToProviderEvents(){const i=this.requestManager.provider;!this.requestManager.provider||typeof(i==null?void 0:i.supportsSubscriptions)=="function"&&!(i!=null&&i.supportsSubscriptions())||typeof this.requestManager.provider.on=="function"&&(typeof this.requestManager.provider.request=="function"?this.requestManager.provider.on("message",r=>this.messageListener(r)):i.on("data",r=>this.messageListener(r)))}messageListener(i){var r,s,t;if(!i)throw new o.SubscriptionError("Should not call messageListener with no data. Type was");const e=((r=i.params)===null||r===void 0?void 0:r.subscription)||((s=i.data)===null||s===void 0?void 0:s.subscription)||((t=i.id)===null||t===void 0?void 0:t.toString(16));if(e){const n=this._subscriptions.get(e);n==null||n.processSubscriptionData(i)}}subscribe(i,r,s=f.DEFAULT_RETURN_FORMAT){return c(this,void 0,void 0,function*(){const t=this.registeredSubscriptions[i];if(!t)throw new o.SubscriptionError("Invalid subscription type");const e=new t(r??void 0,{subscriptionManager:this,returnFormat:s});return yield this.addSubscription(e),e})}get subscriptions(){return this._subscriptions}addSubscription(i){return c(this,void 0,void 0,function*(){if(!this.requestManager.provider)throw new o.ProviderError("Provider not available");if(!this.supportsSubscriptions())throw new o.SubscriptionError("The current provider does not support subscriptions");if(i.id&&this._subscriptions.has(i.id))throw new o.SubscriptionError(`Subscription with id "${i.id}" already exists`);if(yield i.sendSubscriptionRequest(),d.isNullish(i.id))throw new o.SubscriptionError("Subscription is not subscribed yet.");return this._subscriptions.set(i.id,i),i.id})}removeSubscription(i){return c(this,void 0,void 0,function*(){const{id:r}=i;if(d.isNullish(r))throw new o.SubscriptionError("Subscription is not subscribed yet. Or, had already been unsubscribed but not through the Subscription Manager.");if(!this._subscriptions.has(r)&&!this.tolerateUnlinkedSubscription)throw new o.SubscriptionError(`Subscription with id "${r.toString()}" does not exists`);return yield i.sendUnsubscribeRequest(),this._subscriptions.delete(r),r})}unsubscribe(i){return c(this,void 0,void 0,function*(){const r=[];for(const[s,t]of this.subscriptions.entries())(!i||typeof i=="function"&&i({id:s,sub:t}))&&r.push(this.removeSubscription(t));return Promise.all(r)})}clear(){this._subscriptions.clear()}supportsSubscriptions(){return d.isNullish(this.requestManager.provider)?!1:S.isSupportSubscriptions(this.requestManager.provider)}}exports.Web3SubscriptionManager=g;
|
@@ -6,7 +6,7 @@ import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
|
6
6
|
import { isSupportSubscriptions as S } from "./utils.js";
|
7
7
|
import { Web3RequestManagerEvent as b } from "./web3_request_manager.js";
|
8
8
|
import { isNullish as a } from "../../../web3-utils/lib/esm/validation.js";
|
9
|
-
var p = function(h, i, t, s) {
|
9
|
+
var p = globalThis && globalThis.__awaiter || function(h, i, t, s) {
|
10
10
|
function r(e) {
|
11
11
|
return e instanceof t ? e : new t(function(n) {
|
12
12
|
n(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");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");const d=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const _=require("./web3_subscription_manager.cjs"),v=require("./web3_event_emitter.cjs"),f=require("../../../web3-utils/lib/esm/json_rpc.cjs");var o=globalThis&&globalThis.__awaiter||function(b,i,r,t){function n(e){return e instanceof r?e:new r(function(u){u(e)})}return new(r||(r=Promise))(function(e,u){function h(s){try{c(t.next(s))}catch(a){u(a)}}function l(s){try{c(t.throw(s))}catch(a){u(a)}}function c(s){s.done?e(s.value):n(s.value).then(h,l)}c((t=t.apply(b,i||[])).next())})};class m extends v.Web3EventEmitter{constructor(i,r){var t;super(),this.args=i;const{requestManager:n}=r,{subscriptionManager:e}=r;if(n&&e)throw new d.SubscriptionError("Only requestManager or subscriptionManager should be provided at Subscription constructor");if(!n&&!e)throw new d.SubscriptionError("Either requestManager or subscriptionManager should be provided at Subscription constructor");n?this._subscriptionManager=new _.Web3SubscriptionManager(n,{},!0):this._subscriptionManager=e,this._returnFormat=(t=r==null?void 0:r.returnFormat)!==null&&t!==void 0?t:p.DEFAULT_RETURN_FORMAT}get id(){return this._id}get lastBlock(){return this._lastBlock}subscribe(){return o(this,void 0,void 0,function*(){return this._subscriptionManager.addSubscription(this)})}processSubscriptionData(i){var r,t;i!=null&&i.data?this._processSubscriptionResult((t=(r=i==null?void 0:i.data)===null||r===void 0?void 0:r.result)!==null&&t!==void 0?t:i==null?void 0:i.data):i&&f.isResponseWithNotification(i)&&this._processSubscriptionResult(i==null?void 0:i.params.result)}sendSubscriptionRequest(){return o(this,void 0,void 0,function*(){return this._id=yield this._subscriptionManager.requestManager.send({method:"eth_subscribe",params:this._buildSubscriptionParams()}),this.emit("connected",this._id),this._id})}get returnFormat(){return this._returnFormat}get subscriptionManager(){return this._subscriptionManager}resubscribe(){return o(this,void 0,void 0,function*(){yield this.unsubscribe(),yield this.subscribe()})}unsubscribe(){return o(this,void 0,void 0,function*(){this.id&&(yield this._subscriptionManager.removeSubscription(this))})}sendUnsubscribeRequest(){return o(this,void 0,void 0,function*(){yield this._subscriptionManager.requestManager.send({method:"eth_unsubscribe",params:[this.id]}),this._id=void 0})}formatSubscriptionResult(i){return i}_processSubscriptionResult(i){this.emit("data",this.formatSubscriptionResult(i))}_processSubscriptionError(i){this.emit("error",i)}_buildSubscriptionParams(){throw new Error("Implement in the child class")}}exports.Web3Subscription=m;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { DEFAULT_RETURN_FORMAT as l } 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 { SubscriptionError as
|
4
|
+
import { SubscriptionError as d } from "../../../web3-errors/lib/esm/errors/provider_errors.js";
|
5
5
|
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
6
6
|
import { Web3SubscriptionManager as m } from "./web3_subscription_manager.js";
|
7
|
-
import { Web3EventEmitter as
|
8
|
-
import { isResponseWithNotification as
|
9
|
-
var o = function(
|
7
|
+
import { Web3EventEmitter as _ } from "./web3_event_emitter.js";
|
8
|
+
import { isResponseWithNotification as v } from "../../../web3-utils/lib/esm/json_rpc.js";
|
9
|
+
var o = globalThis && globalThis.__awaiter || function(b, i, r, t) {
|
10
10
|
function n(s) {
|
11
11
|
return s instanceof r ? s : new r(function(u) {
|
12
12
|
u(s);
|
@@ -16,32 +16,32 @@ var o = function(a, i, r, t) {
|
|
16
16
|
function h(e) {
|
17
17
|
try {
|
18
18
|
c(t.next(e));
|
19
|
-
} catch (
|
20
|
-
u(
|
19
|
+
} catch (a) {
|
20
|
+
u(a);
|
21
21
|
}
|
22
22
|
}
|
23
23
|
function p(e) {
|
24
24
|
try {
|
25
25
|
c(t.throw(e));
|
26
|
-
} catch (
|
27
|
-
u(
|
26
|
+
} catch (a) {
|
27
|
+
u(a);
|
28
28
|
}
|
29
29
|
}
|
30
30
|
function c(e) {
|
31
31
|
e.done ? s(e.value) : n(e.value).then(h, p);
|
32
32
|
}
|
33
|
-
c((t = t.apply(
|
33
|
+
c((t = t.apply(b, i || [])).next());
|
34
34
|
});
|
35
35
|
};
|
36
|
-
class q extends
|
36
|
+
class q extends _ {
|
37
37
|
constructor(i, r) {
|
38
38
|
var t;
|
39
39
|
super(), this.args = i;
|
40
40
|
const { requestManager: n } = r, { subscriptionManager: s } = r;
|
41
41
|
if (n && s)
|
42
|
-
throw new
|
42
|
+
throw new d("Only requestManager or subscriptionManager should be provided at Subscription constructor");
|
43
43
|
if (!n && !s)
|
44
|
-
throw new
|
44
|
+
throw new d("Either requestManager or subscriptionManager should be provided at Subscription constructor");
|
45
45
|
n ? this._subscriptionManager = new m(n, {}, !0) : this._subscriptionManager = s, this._returnFormat = (t = r == null ? void 0 : r.returnFormat) !== null && t !== void 0 ? t : l;
|
46
46
|
}
|
47
47
|
get id() {
|
@@ -57,7 +57,7 @@ class q extends f {
|
|
57
57
|
}
|
58
58
|
processSubscriptionData(i) {
|
59
59
|
var r, t;
|
60
|
-
i != null && i.data ? this._processSubscriptionResult((t = (r = i == null ? void 0 : i.data) === null || r === void 0 ? void 0 : r.result) !== null && t !== void 0 ? t : i == null ? void 0 : i.data) : i &&
|
60
|
+
i != null && i.data ? this._processSubscriptionResult((t = (r = i == null ? void 0 : i.data) === null || r === void 0 ? void 0 : r.result) !== null && t !== void 0 ? t : i == null ? void 0 : i.data) : i && v(i) && this._processSubscriptionResult(i == null ? void 0 : i.params.result);
|
61
61
|
}
|
62
62
|
sendSubscriptionRequest() {
|
63
63
|
return o(this, void 0, void 0, function* () {
|
@@ -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-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");const P=require("../../../web3-errors/lib/esm/errors/signature_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const N=require("../../../web3-validator/lib/esm/validation/string.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");const p=require("../../../web3-validator/lib/esm/validation/bytes.cjs"),T=require("../../../web3-validator/lib/esm/validation/block.cjs"),_=require("../../../web3-validator/lib/esm/validation/object.cjs"),H=require("../../../web3-core/lib/esm/web3_promi_event.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-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 U=require("../../../web3-eth-accounts/lib/esm/tx/transactionFactory.cjs"),c=require("../../../web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const I=require("./utils/decode_signed_transaction.cjs"),A=require("./schemas.cjs"),M=require("./utils/transaction_builder.cjs"),y=require("./utils/format_transaction.cjs"),j=require("./utils/try_send_transaction.cjs"),O=require("./utils/wait_for_transaction_receipt.cjs"),b=require("./constants.cjs"),E=require("./utils/send_tx_helper.cjs"),i=require("../../../web3-utils/lib/esm/formatter.cjs"),F=require("../../../web3-utils/lib/esm/converters.cjs");var f=function(t,n,e,r){function o(a){return a instanceof e?a:new e(function(d){d(a)})}return new(e||(e=Promise))(function(a,d){function u(l){try{g(r.next(l))}catch(h){d(h)}}function m(l){try{g(r.throw(l))}catch(h){d(h)}}function g(l){l.done?a(l.value):o(l.value).then(u,m)}g((r=r.apply(t,n||[])).next())})},L=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]]);return e};const G=t=>f(void 0,void 0,void 0,function*(){return c.getSyncing(t.requestManager)});function W(t,n){return f(this,void 0,void 0,function*(){const e=yield c.getHashRate(t.requestManager);return i.format({format:"uint"},e,n)})}function z(t,n){return f(this,void 0,void 0,function*(){const e=yield c.getGasPrice(t.requestManager);return i.format({format:"uint"},e,n)})}function J(t,n){return f(this,void 0,void 0,function*(){const e=yield c.getBlockNumber(t.requestManager);return i.format({format:"uint"},e,n)})}function K(t,n,e=t.defaultBlock,r){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:i.format({format:"uint"},e,s.ETH_DATA_FORMAT),a=yield c.getBalance(t.requestManager,n,o);return i.format({format:"uint"},a,r)})}function Q(t,n,e,r=t.defaultBlock,o){return f(this,void 0,void 0,function*(){const a=i.format({format:"uint"},e,s.ETH_DATA_FORMAT),d=T.isBlockTag(r)?r:i.format({format:"uint"},r,s.ETH_DATA_FORMAT),u=yield c.getStorageAt(t.requestManager,n,a,d);return i.format({format:"bytes"},u,o)})}function V(t,n,e=t.defaultBlock,r){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:i.format({format:"uint"},e,s.ETH_DATA_FORMAT),a=yield c.getCode(t.requestManager,n,o);return i.format({format:"bytes"},a,r)})}function X(t,n=t.defaultBlock,e=!1,r){return f(this,void 0,void 0,function*(){let o;if(p.isBytes(n)){const a=i.format({format:"bytes32"},n,s.ETH_DATA_FORMAT);o=yield c.getBlockByHash(t.requestManager,a,e)}else{const a=T.isBlockTag(n)?n:i.format({format:"uint"},n,s.ETH_DATA_FORMAT);o=yield c.getBlockByNumber(t.requestManager,a,e)}return i.format(A.blockSchema,o,r)})}function Y(t,n=t.defaultBlock,e){return f(this,void 0,void 0,function*(){let r;if(p.isBytes(n)){const o=i.format({format:"bytes32"},n,s.ETH_DATA_FORMAT);r=yield c.getBlockTransactionCountByHash(t.requestManager,o)}else{const o=T.isBlockTag(n)?n:i.format({format:"uint"},n,s.ETH_DATA_FORMAT);r=yield c.getBlockTransactionCountByNumber(t.requestManager,o)}return i.format({format:"uint"},r,e)})}function Z(t,n=t.defaultBlock,e){return f(this,void 0,void 0,function*(){let r;if(p.isBytes(n)){const o=i.format({format:"bytes32"},n,s.ETH_DATA_FORMAT);r=yield c.getUncleCountByBlockHash(t.requestManager,o)}else{const o=T.isBlockTag(n)?n:i.format({format:"uint"},n,s.ETH_DATA_FORMAT);r=yield c.getUncleCountByBlockNumber(t.requestManager,o)}return i.format({format:"uint"},r,e)})}function w(t,n=t.defaultBlock,e,r){return f(this,void 0,void 0,function*(){const o=i.format({format:"uint"},e,s.ETH_DATA_FORMAT);let a;if(p.isBytes(n)){const d=i.format({format:"bytes32"},n,s.ETH_DATA_FORMAT);a=yield c.getUncleByBlockHashAndIndex(t.requestManager,d,o)}else{const d=T.isBlockTag(n)?n:i.format({format:"uint"},n,s.ETH_DATA_FORMAT);a=yield c.getUncleByBlockNumberAndIndex(t.requestManager,d,o)}return i.format(A.blockSchema,a,r)})}function x(t,n,e){return f(this,void 0,void 0,function*(){const r=i.format({format:"bytes32"},n,s.DEFAULT_RETURN_FORMAT),o=yield c.getTransactionByHash(t.requestManager,r);return _.isNullish(o)?o:y.formatTransaction(o,e,{fillInputAndData:!0})})}function C(t,n){return f(this,void 0,void 0,function*(){return(yield c.getPendingTransactions(t.requestManager)).map(r=>y.formatTransaction(r,n,{fillInputAndData:!0}))})}function $(t,n=t.defaultBlock,e,r){return f(this,void 0,void 0,function*(){const o=i.format({format:"uint"},e,s.ETH_DATA_FORMAT);let a;if(p.isBytes(n)){const d=i.format({format:"bytes32"},n,s.ETH_DATA_FORMAT);a=yield c.getTransactionByBlockHashAndIndex(t.requestManager,d,o)}else{const d=T.isBlockTag(n)?n:i.format({format:"uint"},n,s.ETH_DATA_FORMAT);a=yield c.getTransactionByBlockNumberAndIndex(t.requestManager,d,o)}return _.isNullish(a)?a:y.formatTransaction(a,r,{fillInputAndData:!0})})}function tt(t,n,e){return f(this,void 0,void 0,function*(){const r=i.format({format:"bytes32"},n,s.DEFAULT_RETURN_FORMAT),o=yield c.getTransactionReceipt(t.requestManager,r);return _.isNullish(o)?o:i.format(A.transactionReceiptSchema,o,e)})}function et(t,n,e=t.defaultBlock,r){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:i.format({format:"uint"},e,s.ETH_DATA_FORMAT),a=yield c.getTransactionCount(t.requestManager,n,o);return i.format({format:"uint"},a,r)})}function nt(t,n,e,r={checkRevertBeforeSending:!0}){const o=new H.Web3PromiEvent((a,d)=>{setImmediate(()=>{f(this,void 0,void 0,function*(){const u=new E.SendTxHelper({web3Context:t,promiEvent:o,options:r,returnFormat:e});let m=y.formatTransaction(Object.assign(Object.assign({},n),{from:M.getTransactionFromOrToAttr("from",t,n),to:M.getTransactionFromOrToAttr("to",t,n)}),s.ETH_DATA_FORMAT);try{m=yield u.populateGasPrice({transaction:n,transactionFormatted:m}),yield u.checkRevertBeforeSending(m),u.emitSending(m);let g;t.wallet&&!_.isNullish(m.from)&&(g=t.wallet.get(m.from));const l=yield u.signAndSend({wallet:g,tx:m}),h=i.format({format:"bytes32"},l,e);u.emitSent(m),u.emitTransactionHash(h);const R=yield O.waitForTransactionReceipt(t,l,e),v=u.getReceiptWithEvents(i.format(A.transactionReceiptSchema,R,e));u.emitReceipt(v),a(yield u.handleResolve({receipt:v,tx:m})),u.emitConfirmation({receipt:v,transactionHash:l})}catch(g){d(yield u.handleError({error:g,tx:m}))}})})});return o}function rt(t,n,e,r={checkRevertBeforeSending:!0}){const o=new H.Web3PromiEvent((a,d)=>{setImmediate(()=>{f(this,void 0,void 0,function*(){const u=new E.SendTxHelper({web3Context:t,promiEvent:o,options:r,returnFormat:e}),m=i.format({format:"bytes"},n,s.ETH_DATA_FORMAT),g=U.TransactionFactory.fromSerializedData(F.bytesToUint8Array(F.hexToBytes(m))),l=Object.assign(Object.assign({},g.toJSON()),{from:g.getSenderAddress().toString()});try{const{v:h,r:R,s:v}=l,S=L(l,["v","r","s"]);yield u.checkRevertBeforeSending(S),u.emitSending(m);const q=yield j.trySendTransaction(t,()=>f(this,void 0,void 0,function*(){return c.sendRawTransaction(t.requestManager,m)}));u.emitSent(m);const D=i.format({format:"bytes32"},q,e);u.emitTransactionHash(D);const k=yield O.waitForTransactionReceipt(t,q,e),B=u.getReceiptWithEvents(i.format(A.transactionReceiptSchema,k,e));u.emitReceipt(B),a(yield u.handleResolve({receipt:B,tx:l})),u.emitConfirmation({receipt:B,transactionHash:q})}catch(h){d(yield u.handleError({error:h,tx:l}))}})})});return o}function ot(t,n,e,r){var o;return f(this,void 0,void 0,function*(){const a=i.format({format:"bytes"},n,s.DEFAULT_RETURN_FORMAT);if(!((o=t.wallet)===null||o===void 0)&&o.get(e)){const m=t.wallet.get(e).sign(a);return i.format(A.SignatureObjectSchema,m,r)}if(typeof e=="number")throw new P.SignatureError(n,'RPC method "eth_sign" does not support index signatures');const d=yield c.sign(t.requestManager,e,a);return i.format({format:"bytes"},d,r)})}function it(t,n,e){return f(this,void 0,void 0,function*(){const r=yield c.signTransaction(t.requestManager,y.formatTransaction(n,s.ETH_DATA_FORMAT));return N.isString(r)?I.decodeSignedTransaction(r,e,{fillInputAndData:!0}):{raw:i.format({format:"bytes"},r.raw,e),tx:y.formatTransaction(r.tx,e,{fillInputAndData:!0})}})}function at(t,n,e=t.defaultBlock,r){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:i.format({format:"uint"},e,s.ETH_DATA_FORMAT),a=yield c.call(t.requestManager,y.formatTransaction(n,s.ETH_DATA_FORMAT),o);return i.format({format:"bytes"},a,r)})}function st(t,n,e=t.defaultBlock,r){return f(this,void 0,void 0,function*(){const o=y.formatTransaction(n,s.ETH_DATA_FORMAT),a=T.isBlockTag(e)?e:i.format({format:"uint"},e,s.ETH_DATA_FORMAT),d=yield c.estimateGas(t.requestManager,o,a);return i.format({format:"uint"},d,r)})}function ct(t,n,e){return f(this,void 0,void 0,function*(){let{toBlock:r,fromBlock:o}=n;_.isNullish(r)||(typeof r=="number"||typeof r=="bigint")&&(r=F.numberToHex(r)),_.isNullish(o)||(typeof o=="number"||typeof o=="bigint")&&(o=F.numberToHex(o));const a=Object.assign(Object.assign({},n),{fromBlock:o,toBlock:r});return(yield c.getLogs(t.requestManager,a)).map(m=>typeof m=="string"?m:i.format(A.logSchema,m,e))})}function ut(t,n){return f(this,void 0,void 0,function*(){const e=yield c.getChainId(t.requestManager);return i.format({format:"uint"},e,n)})}function ft(t,n,e,r=t.defaultBlock,o){return f(this,void 0,void 0,function*(){const a=e.map(m=>i.format({format:"bytes"},m,s.ETH_DATA_FORMAT)),d=T.isBlockTag(r)?r:i.format({format:"uint"},r,s.ETH_DATA_FORMAT),u=yield c.getProof(t.requestManager,n,a,d);return i.format(A.accountSchema,u,o)})}function dt(t,n,e=t.defaultBlock,r,o){return f(this,void 0,void 0,function*(){const a=i.format({format:"uint"},n,s.ETH_DATA_FORMAT),d=T.isBlockTag(e)?e:i.format({format:"uint"},e,s.ETH_DATA_FORMAT),u=i.format({type:"array",items:{format:"uint"}},r,b.NUMBER_DATA_FORMAT),m=yield c.getFeeHistory(t.requestManager,a,d,u);return i.format(A.feeHistorySchema,m,o)})}function mt(t,n,e=t.defaultBlock,r){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:i.format({format:"uint"},e,s.ETH_DATA_FORMAT),a=yield c.createAccessList(t.requestManager,y.formatTransaction(n,s.ETH_DATA_FORMAT),o);return i.format(A.accessListResultSchema,a,r)})}function lt(t,n,e,r,o){return f(this,void 0,void 0,function*(){const a=yield c.signTypedData(t.requestManager,n,e,r);return i.format({format:"bytes"},a,o)})}exports.call=at;exports.createAccessList=mt;exports.estimateGas=st;exports.getBalance=K;exports.getBlock=X;exports.getBlockNumber=J;exports.getBlockTransactionCount=Y;exports.getBlockUncleCount=Z;exports.getChainId=ut;exports.getCode=V;exports.getFeeHistory=dt;exports.getGasPrice=z;exports.getHashRate=W;exports.getLogs=ct;exports.getPendingTransactions=C;exports.getProof=ft;exports.getStorageAt=Q;exports.getTransaction=x;exports.getTransactionCount=et;exports.getTransactionFromBlock=$;exports.getTransactionReceipt=tt;exports.getUncle=w;exports.isSyncing=G;exports.sendSignedTransaction=rt;exports.sendTransaction=nt;exports.sign=ot;exports.signTransaction=it;exports.signTypedData=lt;
|
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-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");const P=require("../../../web3-errors/lib/esm/errors/signature_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const N=require("../../../web3-validator/lib/esm/validation/string.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");const p=require("../../../web3-validator/lib/esm/validation/bytes.cjs"),T=require("../../../web3-validator/lib/esm/validation/block.cjs"),_=require("../../../web3-validator/lib/esm/validation/object.cjs"),H=require("../../../web3-core/lib/esm/web3_promi_event.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-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 U=require("../../../web3-eth-accounts/lib/esm/tx/transactionFactory.cjs"),c=require("../../../web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const b=require("./utils/decode_signed_transaction.cjs"),A=require("./schemas.cjs"),M=require("./utils/transaction_builder.cjs"),y=require("./utils/format_transaction.cjs"),I=require("./utils/try_send_transaction.cjs"),O=require("./utils/wait_for_transaction_receipt.cjs"),j=require("./constants.cjs"),E=require("./utils/send_tx_helper.cjs"),a=require("../../../web3-utils/lib/esm/formatter.cjs"),F=require("../../../web3-utils/lib/esm/converters.cjs");var f=globalThis&&globalThis.__awaiter||function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(d){d(i)})}return new(e||(e=Promise))(function(i,d){function u(l){try{g(n.next(l))}catch(h){d(h)}}function m(l){try{g(n.throw(l))}catch(h){d(h)}}function g(l){l.done?i(l.value):o(l.value).then(u,m)}g((n=n.apply(t,r||[])).next())})},L=globalThis&&globalThis.__rest||function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e};const G=t=>f(void 0,void 0,void 0,function*(){return c.getSyncing(t.requestManager)});function W(t,r){return f(this,void 0,void 0,function*(){const e=yield c.getHashRate(t.requestManager);return a.format({format:"uint"},e,r)})}function z(t,r){return f(this,void 0,void 0,function*(){const e=yield c.getGasPrice(t.requestManager);return a.format({format:"uint"},e,r)})}function J(t,r){return f(this,void 0,void 0,function*(){const e=yield c.getBlockNumber(t.requestManager);return a.format({format:"uint"},e,r)})}function K(t,r,e=t.defaultBlock,n){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:a.format({format:"uint"},e,s.ETH_DATA_FORMAT),i=yield c.getBalance(t.requestManager,r,o);return a.format({format:"uint"},i,n)})}function Q(t,r,e,n=t.defaultBlock,o){return f(this,void 0,void 0,function*(){const i=a.format({format:"uint"},e,s.ETH_DATA_FORMAT),d=T.isBlockTag(n)?n:a.format({format:"uint"},n,s.ETH_DATA_FORMAT),u=yield c.getStorageAt(t.requestManager,r,i,d);return a.format({format:"bytes"},u,o)})}function V(t,r,e=t.defaultBlock,n){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:a.format({format:"uint"},e,s.ETH_DATA_FORMAT),i=yield c.getCode(t.requestManager,r,o);return a.format({format:"bytes"},i,n)})}function X(t,r=t.defaultBlock,e=!1,n){return f(this,void 0,void 0,function*(){let o;if(p.isBytes(r)){const i=a.format({format:"bytes32"},r,s.ETH_DATA_FORMAT);o=yield c.getBlockByHash(t.requestManager,i,e)}else{const i=T.isBlockTag(r)?r:a.format({format:"uint"},r,s.ETH_DATA_FORMAT);o=yield c.getBlockByNumber(t.requestManager,i,e)}return a.format(A.blockSchema,o,n)})}function Y(t,r=t.defaultBlock,e){return f(this,void 0,void 0,function*(){let n;if(p.isBytes(r)){const o=a.format({format:"bytes32"},r,s.ETH_DATA_FORMAT);n=yield c.getBlockTransactionCountByHash(t.requestManager,o)}else{const o=T.isBlockTag(r)?r:a.format({format:"uint"},r,s.ETH_DATA_FORMAT);n=yield c.getBlockTransactionCountByNumber(t.requestManager,o)}return a.format({format:"uint"},n,e)})}function Z(t,r=t.defaultBlock,e){return f(this,void 0,void 0,function*(){let n;if(p.isBytes(r)){const o=a.format({format:"bytes32"},r,s.ETH_DATA_FORMAT);n=yield c.getUncleCountByBlockHash(t.requestManager,o)}else{const o=T.isBlockTag(r)?r:a.format({format:"uint"},r,s.ETH_DATA_FORMAT);n=yield c.getUncleCountByBlockNumber(t.requestManager,o)}return a.format({format:"uint"},n,e)})}function w(t,r=t.defaultBlock,e,n){return f(this,void 0,void 0,function*(){const o=a.format({format:"uint"},e,s.ETH_DATA_FORMAT);let i;if(p.isBytes(r)){const d=a.format({format:"bytes32"},r,s.ETH_DATA_FORMAT);i=yield c.getUncleByBlockHashAndIndex(t.requestManager,d,o)}else{const d=T.isBlockTag(r)?r:a.format({format:"uint"},r,s.ETH_DATA_FORMAT);i=yield c.getUncleByBlockNumberAndIndex(t.requestManager,d,o)}return a.format(A.blockSchema,i,n)})}function x(t,r,e){return f(this,void 0,void 0,function*(){const n=a.format({format:"bytes32"},r,s.DEFAULT_RETURN_FORMAT),o=yield c.getTransactionByHash(t.requestManager,n);return _.isNullish(o)?o:y.formatTransaction(o,e,{fillInputAndData:!0})})}function C(t,r){return f(this,void 0,void 0,function*(){return(yield c.getPendingTransactions(t.requestManager)).map(n=>y.formatTransaction(n,r,{fillInputAndData:!0}))})}function $(t,r=t.defaultBlock,e,n){return f(this,void 0,void 0,function*(){const o=a.format({format:"uint"},e,s.ETH_DATA_FORMAT);let i;if(p.isBytes(r)){const d=a.format({format:"bytes32"},r,s.ETH_DATA_FORMAT);i=yield c.getTransactionByBlockHashAndIndex(t.requestManager,d,o)}else{const d=T.isBlockTag(r)?r:a.format({format:"uint"},r,s.ETH_DATA_FORMAT);i=yield c.getTransactionByBlockNumberAndIndex(t.requestManager,d,o)}return _.isNullish(i)?i:y.formatTransaction(i,n,{fillInputAndData:!0})})}function tt(t,r,e){return f(this,void 0,void 0,function*(){const n=a.format({format:"bytes32"},r,s.DEFAULT_RETURN_FORMAT),o=yield c.getTransactionReceipt(t.requestManager,n);return _.isNullish(o)?o:a.format(A.transactionReceiptSchema,o,e)})}function et(t,r,e=t.defaultBlock,n){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:a.format({format:"uint"},e,s.ETH_DATA_FORMAT),i=yield c.getTransactionCount(t.requestManager,r,o);return a.format({format:"uint"},i,n)})}function rt(t,r,e,n={checkRevertBeforeSending:!0}){const o=new H.Web3PromiEvent((i,d)=>{setImmediate(()=>{f(this,void 0,void 0,function*(){const u=new E.SendTxHelper({web3Context:t,promiEvent:o,options:n,returnFormat:e});let m=y.formatTransaction(Object.assign(Object.assign({},r),{from:M.getTransactionFromOrToAttr("from",t,r),to:M.getTransactionFromOrToAttr("to",t,r)}),s.ETH_DATA_FORMAT);try{m=yield u.populateGasPrice({transaction:r,transactionFormatted:m}),yield u.checkRevertBeforeSending(m),u.emitSending(m);let g;t.wallet&&!_.isNullish(m.from)&&(g=t.wallet.get(m.from));const l=yield u.signAndSend({wallet:g,tx:m}),h=a.format({format:"bytes32"},l,e);u.emitSent(m),u.emitTransactionHash(h);const R=yield O.waitForTransactionReceipt(t,l,e),v=u.getReceiptWithEvents(a.format(A.transactionReceiptSchema,R,e));u.emitReceipt(v),i(yield u.handleResolve({receipt:v,tx:m})),u.emitConfirmation({receipt:v,transactionHash:l})}catch(g){d(yield u.handleError({error:g,tx:m}))}})})});return o}function nt(t,r,e,n={checkRevertBeforeSending:!0}){const o=new H.Web3PromiEvent((i,d)=>{setImmediate(()=>{f(this,void 0,void 0,function*(){const u=new E.SendTxHelper({web3Context:t,promiEvent:o,options:n,returnFormat:e}),m=a.format({format:"bytes"},r,s.ETH_DATA_FORMAT),g=U.TransactionFactory.fromSerializedData(F.bytesToUint8Array(F.hexToBytes(m))),l=Object.assign(Object.assign({},g.toJSON()),{from:g.getSenderAddress().toString()});try{const{v:h,r:R,s:v}=l,S=L(l,["v","r","s"]);yield u.checkRevertBeforeSending(S),u.emitSending(m);const q=yield I.trySendTransaction(t,()=>f(this,void 0,void 0,function*(){return c.sendRawTransaction(t.requestManager,m)}));u.emitSent(m);const D=a.format({format:"bytes32"},q,e);u.emitTransactionHash(D);const k=yield O.waitForTransactionReceipt(t,q,e),B=u.getReceiptWithEvents(a.format(A.transactionReceiptSchema,k,e));u.emitReceipt(B),i(yield u.handleResolve({receipt:B,tx:l})),u.emitConfirmation({receipt:B,transactionHash:q})}catch(h){d(yield u.handleError({error:h,tx:l}))}})})});return o}function ot(t,r,e,n){var o;return f(this,void 0,void 0,function*(){const i=a.format({format:"bytes"},r,s.DEFAULT_RETURN_FORMAT);if(!((o=t.wallet)===null||o===void 0)&&o.get(e)){const m=t.wallet.get(e).sign(i);return a.format(A.SignatureObjectSchema,m,n)}if(typeof e=="number")throw new P.SignatureError(r,'RPC method "eth_sign" does not support index signatures');const d=yield c.sign(t.requestManager,e,i);return a.format({format:"bytes"},d,n)})}function at(t,r,e){return f(this,void 0,void 0,function*(){const n=yield c.signTransaction(t.requestManager,y.formatTransaction(r,s.ETH_DATA_FORMAT));return N.isString(n)?b.decodeSignedTransaction(n,e,{fillInputAndData:!0}):{raw:a.format({format:"bytes"},n.raw,e),tx:y.formatTransaction(n.tx,e,{fillInputAndData:!0})}})}function it(t,r,e=t.defaultBlock,n){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:a.format({format:"uint"},e,s.ETH_DATA_FORMAT),i=yield c.call(t.requestManager,y.formatTransaction(r,s.ETH_DATA_FORMAT),o);return a.format({format:"bytes"},i,n)})}function st(t,r,e=t.defaultBlock,n){return f(this,void 0,void 0,function*(){const o=y.formatTransaction(r,s.ETH_DATA_FORMAT),i=T.isBlockTag(e)?e:a.format({format:"uint"},e,s.ETH_DATA_FORMAT),d=yield c.estimateGas(t.requestManager,o,i);return a.format({format:"uint"},d,n)})}function ct(t,r,e){return f(this,void 0,void 0,function*(){let{toBlock:n,fromBlock:o}=r;_.isNullish(n)||(typeof n=="number"||typeof n=="bigint")&&(n=F.numberToHex(n)),_.isNullish(o)||(typeof o=="number"||typeof o=="bigint")&&(o=F.numberToHex(o));const i=Object.assign(Object.assign({},r),{fromBlock:o,toBlock:n});return(yield c.getLogs(t.requestManager,i)).map(m=>typeof m=="string"?m:a.format(A.logSchema,m,e))})}function ut(t,r){return f(this,void 0,void 0,function*(){const e=yield c.getChainId(t.requestManager);return a.format({format:"uint"},e,r)})}function ft(t,r,e,n=t.defaultBlock,o){return f(this,void 0,void 0,function*(){const i=e.map(m=>a.format({format:"bytes"},m,s.ETH_DATA_FORMAT)),d=T.isBlockTag(n)?n:a.format({format:"uint"},n,s.ETH_DATA_FORMAT),u=yield c.getProof(t.requestManager,r,i,d);return a.format(A.accountSchema,u,o)})}function dt(t,r,e=t.defaultBlock,n,o){return f(this,void 0,void 0,function*(){const i=a.format({format:"uint"},r,s.ETH_DATA_FORMAT),d=T.isBlockTag(e)?e:a.format({format:"uint"},e,s.ETH_DATA_FORMAT),u=a.format({type:"array",items:{format:"uint"}},n,j.NUMBER_DATA_FORMAT),m=yield c.getFeeHistory(t.requestManager,i,d,u);return a.format(A.feeHistorySchema,m,o)})}function mt(t,r,e=t.defaultBlock,n){return f(this,void 0,void 0,function*(){const o=T.isBlockTag(e)?e:a.format({format:"uint"},e,s.ETH_DATA_FORMAT),i=yield c.createAccessList(t.requestManager,y.formatTransaction(r,s.ETH_DATA_FORMAT),o);return a.format(A.accessListResultSchema,i,n)})}function lt(t,r,e,n,o){return f(this,void 0,void 0,function*(){const i=yield c.signTypedData(t.requestManager,r,e,n);return a.format({format:"bytes"},i,o)})}exports.call=it;exports.createAccessList=mt;exports.estimateGas=st;exports.getBalance=K;exports.getBlock=X;exports.getBlockNumber=J;exports.getBlockTransactionCount=Y;exports.getBlockUncleCount=Z;exports.getChainId=ut;exports.getCode=V;exports.getFeeHistory=dt;exports.getGasPrice=z;exports.getHashRate=W;exports.getLogs=ct;exports.getPendingTransactions=C;exports.getProof=ft;exports.getStorageAt=Q;exports.getTransaction=x;exports.getTransactionCount=et;exports.getTransactionFromBlock=$;exports.getTransactionReceipt=tt;exports.getUncle=w;exports.isSyncing=G;exports.sendSignedTransaction=nt;exports.sendTransaction=rt;exports.sign=ot;exports.signTransaction=at;exports.signTypedData=lt;
|
@@ -28,11 +28,11 @@ import "../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.js";
|
|
28
28
|
import "../../../@ethereumjs/rlp/dist/index.js";
|
29
29
|
import "../../../web3-eth-accounts/lib/esm/tx/types.js";
|
30
30
|
import { TransactionFactory as j } from "../../../web3-eth-accounts/lib/esm/tx/transactionFactory.js";
|
31
|
-
import { getSyncing as U, getHashRate as N, getGasPrice as L, getBlockNumber as G, getBalance as W, getStorageAt as
|
31
|
+
import { getSyncing as U, getHashRate as N, getGasPrice as L, getBlockNumber as G, getBalance as W, getStorageAt as b, getCode as z, getBlockByHash as J, getBlockByNumber as K, getBlockTransactionCountByHash as Q, getBlockTransactionCountByNumber as V, getUncleCountByBlockHash as X, getUncleCountByBlockNumber as Y, getUncleByBlockHashAndIndex as Z, getUncleByBlockNumberAndIndex as w, getTransactionByHash as x, getPendingTransactions as C, getTransactionByBlockHashAndIndex as tt, getTransactionByBlockNumberAndIndex as et, getTransactionReceipt as nt, getTransactionCount as ot, sendRawTransaction as rt, sign as it, signTransaction as at, call as st, estimateGas as ct, getLogs as ut, getChainId as dt, getProof as ft, getFeeHistory as mt, createAccessList as lt, signTypedData as gt } from "../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
|
32
32
|
import "../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
|
33
33
|
import "../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
|
34
34
|
import { decodeSignedTransaction as pt } from "./utils/decode_signed_transaction.js";
|
35
|
-
import { blockSchema as k, transactionReceiptSchema as M, SignatureObjectSchema as yt, logSchema as ht, accountSchema as vt, feeHistorySchema as
|
35
|
+
import { blockSchema as k, transactionReceiptSchema as M, SignatureObjectSchema as yt, logSchema as ht, accountSchema as vt, feeHistorySchema as Tt, accessListResultSchema as Bt } from "./schemas.js";
|
36
36
|
import { getTransactionFromOrToAttr as H } from "./utils/transaction_builder.js";
|
37
37
|
import { formatTransaction as p } from "./utils/format_transaction.js";
|
38
38
|
import { trySendTransaction as Ft } from "./utils/try_send_transaction.js";
|
@@ -41,8 +41,8 @@ import { NUMBER_DATA_FORMAT as St } from "./constants.js";
|
|
41
41
|
import { SendTxHelper as O } from "./utils/send_tx_helper.js";
|
42
42
|
import { format as i } from "../../../web3-utils/lib/esm/formatter.js";
|
43
43
|
import { bytesToUint8Array as Mt, hexToBytes as qt, numberToHex as R } from "../../../web3-utils/lib/esm/converters.js";
|
44
|
-
var u = function(t, n, e,
|
45
|
-
function
|
44
|
+
var u = globalThis && globalThis.__awaiter || function(t, n, e, o) {
|
45
|
+
function r(a) {
|
46
46
|
return a instanceof e ? a : new e(function(d) {
|
47
47
|
d(a);
|
48
48
|
});
|
@@ -50,30 +50,30 @@ var u = function(t, n, e, r) {
|
|
50
50
|
return new (e || (e = Promise))(function(a, d) {
|
51
51
|
function s(m) {
|
52
52
|
try {
|
53
|
-
g(
|
53
|
+
g(o.next(m));
|
54
54
|
} catch (y) {
|
55
55
|
d(y);
|
56
56
|
}
|
57
57
|
}
|
58
58
|
function f(m) {
|
59
59
|
try {
|
60
|
-
g(
|
60
|
+
g(o.throw(m));
|
61
61
|
} catch (y) {
|
62
62
|
d(y);
|
63
63
|
}
|
64
64
|
}
|
65
65
|
function g(m) {
|
66
|
-
m.done ? a(m.value) :
|
66
|
+
m.done ? a(m.value) : r(m.value).then(s, f);
|
67
67
|
}
|
68
|
-
g((
|
68
|
+
g((o = o.apply(t, n || [])).next());
|
69
69
|
});
|
70
|
-
}, Ht = function(t, n) {
|
70
|
+
}, Ht = globalThis && globalThis.__rest || function(t, n) {
|
71
71
|
var e = {};
|
72
|
-
for (var
|
73
|
-
Object.prototype.hasOwnProperty.call(t,
|
72
|
+
for (var o in t)
|
73
|
+
Object.prototype.hasOwnProperty.call(t, o) && n.indexOf(o) < 0 && (e[o] = t[o]);
|
74
74
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
75
|
-
for (var
|
76
|
-
n.indexOf(r
|
75
|
+
for (var r = 0, o = Object.getOwnPropertySymbols(t); r < o.length; r++)
|
76
|
+
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, o[r]) && (e[o[r]] = t[o[r]]);
|
77
77
|
return e;
|
78
78
|
};
|
79
79
|
const pe = (t) => u(void 0, void 0, void 0, function* () {
|
@@ -97,124 +97,124 @@ function ve(t, n) {
|
|
97
97
|
return i({ format: "uint" }, e, n);
|
98
98
|
});
|
99
99
|
}
|
100
|
-
function
|
100
|
+
function Te(t, n, e = t.defaultBlock, o) {
|
101
101
|
return u(this, void 0, void 0, function* () {
|
102
|
-
const
|
103
|
-
return i({ format: "uint" }, a,
|
102
|
+
const r = l(e) ? e : i({ format: "uint" }, e, c), a = yield W(t.requestManager, n, r);
|
103
|
+
return i({ format: "uint" }, a, o);
|
104
104
|
});
|
105
105
|
}
|
106
|
-
function
|
106
|
+
function Be(t, n, e, o = t.defaultBlock, r) {
|
107
107
|
return u(this, void 0, void 0, function* () {
|
108
|
-
const a = i({ format: "uint" }, e, c), d = l(
|
109
|
-
return i({ format: "bytes" }, s,
|
108
|
+
const a = i({ format: "uint" }, e, c), d = l(o) ? o : i({ format: "uint" }, o, c), s = yield b(t.requestManager, n, a, d);
|
109
|
+
return i({ format: "bytes" }, s, r);
|
110
110
|
});
|
111
111
|
}
|
112
|
-
function Fe(t, n, e = t.defaultBlock,
|
112
|
+
function Fe(t, n, e = t.defaultBlock, o) {
|
113
113
|
return u(this, void 0, void 0, function* () {
|
114
|
-
const
|
115
|
-
return i({ format: "bytes" }, a,
|
114
|
+
const r = l(e) ? e : i({ format: "uint" }, e, c), a = yield z(t.requestManager, n, r);
|
115
|
+
return i({ format: "bytes" }, a, o);
|
116
116
|
});
|
117
117
|
}
|
118
|
-
function Se(t, n = t.defaultBlock, e = !1,
|
118
|
+
function Se(t, n = t.defaultBlock, e = !1, o) {
|
119
119
|
return u(this, void 0, void 0, function* () {
|
120
|
-
let
|
120
|
+
let r;
|
121
121
|
if (v(n)) {
|
122
122
|
const a = i({ format: "bytes32" }, n, c);
|
123
|
-
|
123
|
+
r = yield J(t.requestManager, a, e);
|
124
124
|
} else {
|
125
125
|
const a = l(n) ? n : i({ format: "uint" }, n, c);
|
126
|
-
|
126
|
+
r = yield K(t.requestManager, a, e);
|
127
127
|
}
|
128
|
-
return i(k,
|
128
|
+
return i(k, r, o);
|
129
129
|
});
|
130
130
|
}
|
131
131
|
function Me(t, n = t.defaultBlock, e) {
|
132
132
|
return u(this, void 0, void 0, function* () {
|
133
|
-
let
|
133
|
+
let o;
|
134
134
|
if (v(n)) {
|
135
|
-
const
|
136
|
-
|
135
|
+
const r = i({ format: "bytes32" }, n, c);
|
136
|
+
o = yield Q(t.requestManager, r);
|
137
137
|
} else {
|
138
|
-
const
|
139
|
-
|
138
|
+
const r = l(n) ? n : i({ format: "uint" }, n, c);
|
139
|
+
o = yield V(t.requestManager, r);
|
140
140
|
}
|
141
|
-
return i({ format: "uint" },
|
141
|
+
return i({ format: "uint" }, o, e);
|
142
142
|
});
|
143
143
|
}
|
144
144
|
function qe(t, n = t.defaultBlock, e) {
|
145
145
|
return u(this, void 0, void 0, function* () {
|
146
|
-
let
|
146
|
+
let o;
|
147
147
|
if (v(n)) {
|
148
|
-
const
|
149
|
-
|
148
|
+
const r = i({ format: "bytes32" }, n, c);
|
149
|
+
o = yield X(t.requestManager, r);
|
150
150
|
} else {
|
151
|
-
const
|
152
|
-
|
151
|
+
const r = l(n) ? n : i({ format: "uint" }, n, c);
|
152
|
+
o = yield Y(t.requestManager, r);
|
153
153
|
}
|
154
|
-
return i({ format: "uint" },
|
154
|
+
return i({ format: "uint" }, o, e);
|
155
155
|
});
|
156
156
|
}
|
157
|
-
function He(t, n = t.defaultBlock, e,
|
157
|
+
function He(t, n = t.defaultBlock, e, o) {
|
158
158
|
return u(this, void 0, void 0, function* () {
|
159
|
-
const
|
159
|
+
const r = i({ format: "uint" }, e, c);
|
160
160
|
let a;
|
161
161
|
if (v(n)) {
|
162
162
|
const d = i({ format: "bytes32" }, n, c);
|
163
|
-
a = yield Z(t.requestManager, d,
|
163
|
+
a = yield Z(t.requestManager, d, r);
|
164
164
|
} else {
|
165
165
|
const d = l(n) ? n : i({ format: "uint" }, n, c);
|
166
|
-
a = yield w(t.requestManager, d,
|
166
|
+
a = yield w(t.requestManager, d, r);
|
167
167
|
}
|
168
|
-
return i(k, a,
|
168
|
+
return i(k, a, o);
|
169
169
|
});
|
170
170
|
}
|
171
171
|
function Re(t, n, e) {
|
172
172
|
return u(this, void 0, void 0, function* () {
|
173
|
-
const
|
174
|
-
return h(
|
173
|
+
const o = i({ format: "bytes32" }, n, S), r = yield x(t.requestManager, o);
|
174
|
+
return h(r) ? r : p(r, e, { fillInputAndData: !0 });
|
175
175
|
});
|
176
176
|
}
|
177
177
|
function Ae(t, n) {
|
178
178
|
return u(this, void 0, void 0, function* () {
|
179
|
-
return (yield C(t.requestManager)).map((
|
179
|
+
return (yield C(t.requestManager)).map((o) => p(o, n, {
|
180
180
|
fillInputAndData: !0
|
181
181
|
}));
|
182
182
|
});
|
183
183
|
}
|
184
|
-
function ke(t, n = t.defaultBlock, e,
|
184
|
+
function ke(t, n = t.defaultBlock, e, o) {
|
185
185
|
return u(this, void 0, void 0, function* () {
|
186
|
-
const
|
186
|
+
const r = i({ format: "uint" }, e, c);
|
187
187
|
let a;
|
188
188
|
if (v(n)) {
|
189
189
|
const d = i({ format: "bytes32" }, n, c);
|
190
|
-
a = yield tt(t.requestManager, d,
|
190
|
+
a = yield tt(t.requestManager, d, r);
|
191
191
|
} else {
|
192
192
|
const d = l(n) ? n : i({ format: "uint" }, n, c);
|
193
|
-
a = yield et(t.requestManager, d,
|
193
|
+
a = yield et(t.requestManager, d, r);
|
194
194
|
}
|
195
|
-
return h(a) ? a : p(a,
|
195
|
+
return h(a) ? a : p(a, o, { fillInputAndData: !0 });
|
196
196
|
});
|
197
197
|
}
|
198
198
|
function $e(t, n, e) {
|
199
199
|
return u(this, void 0, void 0, function* () {
|
200
|
-
const
|
201
|
-
return h(
|
200
|
+
const o = i({ format: "bytes32" }, n, S), r = yield nt(t.requestManager, o);
|
201
|
+
return h(r) ? r : i(M, r, e);
|
202
202
|
});
|
203
203
|
}
|
204
|
-
function Oe(t, n, e = t.defaultBlock,
|
204
|
+
function Oe(t, n, e = t.defaultBlock, o) {
|
205
205
|
return u(this, void 0, void 0, function* () {
|
206
|
-
const
|
207
|
-
return i({ format: "uint" }, a,
|
206
|
+
const r = l(e) ? e : i({ format: "uint" }, e, c), a = yield ot(t.requestManager, n, r);
|
207
|
+
return i({ format: "uint" }, a, o);
|
208
208
|
});
|
209
209
|
}
|
210
|
-
function _e(t, n, e,
|
211
|
-
const
|
210
|
+
function _e(t, n, e, o = { checkRevertBeforeSending: !0 }) {
|
211
|
+
const r = new A((a, d) => {
|
212
212
|
setImmediate(() => {
|
213
213
|
u(this, void 0, void 0, function* () {
|
214
214
|
const s = new O({
|
215
215
|
web3Context: t,
|
216
|
-
promiEvent:
|
217
|
-
options:
|
216
|
+
promiEvent: r,
|
217
|
+
options: o,
|
218
218
|
returnFormat: e
|
219
219
|
});
|
220
220
|
let f = p(Object.assign(Object.assign({}, n), { from: H("from", t, n), to: H("to", t, n) }), c);
|
@@ -230,12 +230,12 @@ function _e(t, n, e, r = { checkRevertBeforeSending: !0 }) {
|
|
230
230
|
tx: f
|
231
231
|
}), y = i({ format: "bytes32" }, m, e);
|
232
232
|
s.emitSent(f), s.emitTransactionHash(y);
|
233
|
-
const q = yield $(t, m, e),
|
234
|
-
s.emitReceipt(
|
235
|
-
receipt:
|
233
|
+
const q = yield $(t, m, e), T = s.getReceiptWithEvents(i(M, q, e));
|
234
|
+
s.emitReceipt(T), a(yield s.handleResolve({
|
235
|
+
receipt: T,
|
236
236
|
tx: f
|
237
237
|
})), s.emitConfirmation({
|
238
|
-
receipt:
|
238
|
+
receipt: T,
|
239
239
|
transactionHash: m
|
240
240
|
});
|
241
241
|
} catch (g) {
|
@@ -247,16 +247,16 @@ function _e(t, n, e, r = { checkRevertBeforeSending: !0 }) {
|
|
247
247
|
});
|
248
248
|
});
|
249
249
|
});
|
250
|
-
return
|
250
|
+
return r;
|
251
251
|
}
|
252
|
-
function Pe(t, n, e,
|
253
|
-
const
|
252
|
+
function Pe(t, n, e, o = { checkRevertBeforeSending: !0 }) {
|
253
|
+
const r = new A((a, d) => {
|
254
254
|
setImmediate(() => {
|
255
255
|
u(this, void 0, void 0, function* () {
|
256
256
|
const s = new O({
|
257
257
|
web3Context: t,
|
258
|
-
promiEvent:
|
259
|
-
options:
|
258
|
+
promiEvent: r,
|
259
|
+
options: o,
|
260
260
|
returnFormat: e
|
261
261
|
}), f = i({ format: "bytes" }, n, c), g = j.fromSerializedData(Mt(qt(f))), m = Object.assign(Object.assign({}, g.toJSON()), {
|
262
262
|
// Some providers will default `from` to address(0) causing the error
|
@@ -267,21 +267,21 @@ function Pe(t, n, e, r = { checkRevertBeforeSending: !0 }) {
|
|
267
267
|
from: g.getSenderAddress().toString()
|
268
268
|
});
|
269
269
|
try {
|
270
|
-
const { v: y, r: q, s:
|
270
|
+
const { v: y, r: q, s: T } = m, _ = Ht(m, ["v", "r", "s"]);
|
271
271
|
yield s.checkRevertBeforeSending(_), s.emitSending(f);
|
272
|
-
const
|
273
|
-
return
|
272
|
+
const B = yield Ft(t, () => u(this, void 0, void 0, function* () {
|
273
|
+
return rt(t.requestManager, f);
|
274
274
|
}));
|
275
275
|
s.emitSent(f);
|
276
|
-
const P = i({ format: "bytes32" },
|
276
|
+
const P = i({ format: "bytes32" }, B, e);
|
277
277
|
s.emitTransactionHash(P);
|
278
|
-
const I = yield $(t,
|
278
|
+
const I = yield $(t, B, e), F = s.getReceiptWithEvents(i(M, I, e));
|
279
279
|
s.emitReceipt(F), a(yield s.handleResolve({
|
280
280
|
receipt: F,
|
281
281
|
tx: m
|
282
282
|
})), s.emitConfirmation({
|
283
283
|
receipt: F,
|
284
|
-
transactionHash:
|
284
|
+
transactionHash: B
|
285
285
|
});
|
286
286
|
} catch (y) {
|
287
287
|
d(yield s.handleError({
|
@@ -292,52 +292,52 @@ function Pe(t, n, e, r = { checkRevertBeforeSending: !0 }) {
|
|
292
292
|
});
|
293
293
|
});
|
294
294
|
});
|
295
|
-
return
|
295
|
+
return r;
|
296
296
|
}
|
297
|
-
function Ie(t, n, e,
|
298
|
-
var
|
297
|
+
function Ie(t, n, e, o) {
|
298
|
+
var r;
|
299
299
|
return u(this, void 0, void 0, function* () {
|
300
300
|
const a = i({ format: "bytes" }, n, S);
|
301
|
-
if (!((
|
301
|
+
if (!((r = t.wallet) === null || r === void 0) && r.get(e)) {
|
302
302
|
const f = t.wallet.get(e).sign(a);
|
303
|
-
return i(yt, f,
|
303
|
+
return i(yt, f, o);
|
304
304
|
}
|
305
305
|
if (typeof e == "number")
|
306
306
|
throw new E(n, 'RPC method "eth_sign" does not support index signatures');
|
307
307
|
const d = yield it(t.requestManager, e, a);
|
308
|
-
return i({ format: "bytes" }, d,
|
308
|
+
return i({ format: "bytes" }, d, o);
|
309
309
|
});
|
310
310
|
}
|
311
311
|
function Ee(t, n, e) {
|
312
312
|
return u(this, void 0, void 0, function* () {
|
313
|
-
const
|
314
|
-
return D(
|
313
|
+
const o = yield at(t.requestManager, p(n, c));
|
314
|
+
return D(o) ? pt(o, e, {
|
315
315
|
fillInputAndData: !0
|
316
316
|
}) : {
|
317
|
-
raw: i({ format: "bytes" },
|
318
|
-
tx: p(
|
317
|
+
raw: i({ format: "bytes" }, o.raw, e),
|
318
|
+
tx: p(o.tx, e, {
|
319
319
|
fillInputAndData: !0
|
320
320
|
})
|
321
321
|
};
|
322
322
|
});
|
323
323
|
}
|
324
|
-
function De(t, n, e = t.defaultBlock,
|
324
|
+
function De(t, n, e = t.defaultBlock, o) {
|
325
325
|
return u(this, void 0, void 0, function* () {
|
326
|
-
const
|
327
|
-
return i({ format: "bytes" }, a,
|
326
|
+
const r = l(e) ? e : i({ format: "uint" }, e, c), a = yield st(t.requestManager, p(n, c), r);
|
327
|
+
return i({ format: "bytes" }, a, o);
|
328
328
|
});
|
329
329
|
}
|
330
|
-
function je(t, n, e = t.defaultBlock,
|
330
|
+
function je(t, n, e = t.defaultBlock, o) {
|
331
331
|
return u(this, void 0, void 0, function* () {
|
332
|
-
const
|
333
|
-
return i({ format: "uint" }, d,
|
332
|
+
const r = p(n, c), a = l(e) ? e : i({ format: "uint" }, e, c), d = yield ct(t.requestManager, r, a);
|
333
|
+
return i({ format: "uint" }, d, o);
|
334
334
|
});
|
335
335
|
}
|
336
336
|
function Ue(t, n, e) {
|
337
337
|
return u(this, void 0, void 0, function* () {
|
338
|
-
let { toBlock:
|
339
|
-
h(
|
340
|
-
const a = Object.assign(Object.assign({}, n), { fromBlock:
|
338
|
+
let { toBlock: o, fromBlock: r } = n;
|
339
|
+
h(o) || (typeof o == "number" || typeof o == "bigint") && (o = R(o)), h(r) || (typeof r == "number" || typeof r == "bigint") && (r = R(r));
|
340
|
+
const a = Object.assign(Object.assign({}, n), { fromBlock: r, toBlock: o });
|
341
341
|
return (yield ut(t.requestManager, a)).map((f) => typeof f == "string" ? f : i(ht, f, e));
|
342
342
|
});
|
343
343
|
}
|
@@ -352,40 +352,40 @@ function Ne(t, n) {
|
|
352
352
|
);
|
353
353
|
});
|
354
354
|
}
|
355
|
-
function Le(t, n, e,
|
355
|
+
function Le(t, n, e, o = t.defaultBlock, r) {
|
356
356
|
return u(this, void 0, void 0, function* () {
|
357
|
-
const a = e.map((f) => i({ format: "bytes" }, f, c)), d = l(
|
358
|
-
return i(vt, s,
|
357
|
+
const a = e.map((f) => i({ format: "bytes" }, f, c)), d = l(o) ? o : i({ format: "uint" }, o, c), s = yield ft(t.requestManager, n, a, d);
|
358
|
+
return i(vt, s, r);
|
359
359
|
});
|
360
360
|
}
|
361
|
-
function Ge(t, n, e = t.defaultBlock,
|
361
|
+
function Ge(t, n, e = t.defaultBlock, o, r) {
|
362
362
|
return u(this, void 0, void 0, function* () {
|
363
363
|
const a = i({ format: "uint" }, n, c), d = l(e) ? e : i({ format: "uint" }, e, c), s = i({
|
364
364
|
type: "array",
|
365
365
|
items: {
|
366
366
|
format: "uint"
|
367
367
|
}
|
368
|
-
},
|
369
|
-
return i(
|
368
|
+
}, o, St), f = yield mt(t.requestManager, a, d, s);
|
369
|
+
return i(Tt, f, r);
|
370
370
|
});
|
371
371
|
}
|
372
|
-
function We(t, n, e = t.defaultBlock,
|
372
|
+
function We(t, n, e = t.defaultBlock, o) {
|
373
373
|
return u(this, void 0, void 0, function* () {
|
374
|
-
const
|
375
|
-
return i(
|
374
|
+
const r = l(e) ? e : i({ format: "uint" }, e, c), a = yield lt(t.requestManager, p(n, c), r);
|
375
|
+
return i(Bt, a, o);
|
376
376
|
});
|
377
377
|
}
|
378
|
-
function
|
378
|
+
function be(t, n, e, o, r) {
|
379
379
|
return u(this, void 0, void 0, function* () {
|
380
|
-
const a = yield gt(t.requestManager, n, e,
|
381
|
-
return i({ format: "bytes" }, a,
|
380
|
+
const a = yield gt(t.requestManager, n, e, o);
|
381
|
+
return i({ format: "bytes" }, a, r);
|
382
382
|
});
|
383
383
|
}
|
384
384
|
export {
|
385
385
|
De as call,
|
386
386
|
We as createAccessList,
|
387
387
|
je as estimateGas,
|
388
|
-
|
388
|
+
Te as getBalance,
|
389
389
|
Se as getBlock,
|
390
390
|
ve as getBlockNumber,
|
391
391
|
Me as getBlockTransactionCount,
|
@@ -398,7 +398,7 @@ export {
|
|
398
398
|
Ue as getLogs,
|
399
399
|
Ae as getPendingTransactions,
|
400
400
|
Le as getProof,
|
401
|
-
|
401
|
+
Be as getStorageAt,
|
402
402
|
Re as getTransaction,
|
403
403
|
Oe as getTransactionCount,
|
404
404
|
ke as getTransactionFromBlock,
|
@@ -409,5 +409,5 @@ export {
|
|
409
409
|
_e as sendTransaction,
|
410
410
|
Ie as sign,
|
411
411
|
Ee as signTransaction,
|
412
|
-
|
412
|
+
be as signTypedData
|
413
413
|
};
|