@ozdao/prometheus-framework 0.2.46 → 0.2.47
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-AMWMdo3t.js +91 -0
- package/dist/main-R6dlNKp-.mjs +13606 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
- package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
- package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +6 -6
- package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
- package/dist/node_modules/ethereum-cryptography/esm/utils.js +3 -4
- package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
- package/dist/node_modules/vue3-carousel/dist/carousel.css.js +1 -4
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +110 -110
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +7 -7
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +15 -15
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +26 -26
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
- package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
- package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +5 -5
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +15 -15
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +5 -5
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +1 -63
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +20 -20
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -4
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +1 -4
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +1 -4
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -72
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -97
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -4
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +1 -4
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +20 -21
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +90 -80
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +7 -6
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +51 -62
- package/dist/prometheus-framework/src/modules/products/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 +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-HvAJWryM.js +1 -0
- package/dist/web-XMv5d7hK.mjs +55 -0
- package/package.json +1 -1
- package/src/components/Feed/Feed.vue +9 -7
- package/src/modules/products/components/blocks/CardPosition.vue +1 -1
- package/src/modules/products/components/blocks/CardProduct.vue +2 -3
- package/src/modules/products/components/pages/Product.vue +1 -1
- package/src/modules/products/components/pages/ProductEdit.vue +15 -0
- package/src/modules/products/components/pages/Products.vue +1 -0
- package/src/modules/products/components/sections/SectionProduct.vue +10 -10
- package/src/styles/base/all.scss +4 -1
@@ -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 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;
|
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;
|
@@ -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 z, getCode as J, getBlockByHash as K, getBlockByNumber as b, 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 rt, sendRawTransaction as ot, 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 Bt, accessListResultSchema as Tt } 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 =
|
45
|
-
function
|
44
|
+
var u = function(t, n, e, r) {
|
45
|
+
function o(a) {
|
46
46
|
return a instanceof e ? a : new e(function(d) {
|
47
47
|
d(a);
|
48
48
|
});
|
@@ -50,30 +50,30 @@ var u = globalThis && globalThis.__awaiter || function(t, n, e, o) {
|
|
50
50
|
return new (e || (e = Promise))(function(a, d) {
|
51
51
|
function s(m) {
|
52
52
|
try {
|
53
|
-
g(
|
53
|
+
g(r.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(r.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) : o(m.value).then(s, f);
|
67
67
|
}
|
68
|
-
g((
|
68
|
+
g((r = r.apply(t, n || [])).next());
|
69
69
|
});
|
70
|
-
}, Ht =
|
70
|
+
}, Ht = function(t, n) {
|
71
71
|
var e = {};
|
72
|
-
for (var
|
73
|
-
Object.prototype.hasOwnProperty.call(t,
|
72
|
+
for (var r in t)
|
73
|
+
Object.prototype.hasOwnProperty.call(t, r) && n.indexOf(r) < 0 && (e[r] = t[r]);
|
74
74
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
75
|
-
for (var
|
76
|
-
n.indexOf(o
|
75
|
+
for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
|
76
|
+
n.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (e[r[o]] = t[r[o]]);
|
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 Be(t, n, e = t.defaultBlock, r) {
|
101
101
|
return u(this, void 0, void 0, function* () {
|
102
|
-
const
|
103
|
-
return i({ format: "uint" }, a,
|
102
|
+
const o = l(e) ? e : i({ format: "uint" }, e, c), a = yield W(t.requestManager, n, o);
|
103
|
+
return i({ format: "uint" }, a, r);
|
104
104
|
});
|
105
105
|
}
|
106
|
-
function
|
106
|
+
function Te(t, n, e, r = t.defaultBlock, o) {
|
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(r) ? r : i({ format: "uint" }, r, c), s = yield z(t.requestManager, n, a, d);
|
109
|
+
return i({ format: "bytes" }, s, o);
|
110
110
|
});
|
111
111
|
}
|
112
|
-
function Fe(t, n, e = t.defaultBlock,
|
112
|
+
function Fe(t, n, e = t.defaultBlock, r) {
|
113
113
|
return u(this, void 0, void 0, function* () {
|
114
|
-
const
|
115
|
-
return i({ format: "bytes" }, a,
|
114
|
+
const o = l(e) ? e : i({ format: "uint" }, e, c), a = yield J(t.requestManager, n, o);
|
115
|
+
return i({ format: "bytes" }, a, r);
|
116
116
|
});
|
117
117
|
}
|
118
|
-
function Se(t, n = t.defaultBlock, e = !1,
|
118
|
+
function Se(t, n = t.defaultBlock, e = !1, r) {
|
119
119
|
return u(this, void 0, void 0, function* () {
|
120
|
-
let
|
120
|
+
let o;
|
121
121
|
if (v(n)) {
|
122
122
|
const a = i({ format: "bytes32" }, n, c);
|
123
|
-
|
123
|
+
o = yield K(t.requestManager, a, e);
|
124
124
|
} else {
|
125
125
|
const a = l(n) ? n : i({ format: "uint" }, n, c);
|
126
|
-
|
126
|
+
o = yield b(t.requestManager, a, e);
|
127
127
|
}
|
128
|
-
return i(k,
|
128
|
+
return i(k, o, r);
|
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 r;
|
134
134
|
if (v(n)) {
|
135
|
-
const
|
136
|
-
|
135
|
+
const o = i({ format: "bytes32" }, n, c);
|
136
|
+
r = yield Q(t.requestManager, o);
|
137
137
|
} else {
|
138
|
-
const
|
139
|
-
|
138
|
+
const o = l(n) ? n : i({ format: "uint" }, n, c);
|
139
|
+
r = yield V(t.requestManager, o);
|
140
140
|
}
|
141
|
-
return i({ format: "uint" },
|
141
|
+
return i({ format: "uint" }, r, 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 r;
|
147
147
|
if (v(n)) {
|
148
|
-
const
|
149
|
-
|
148
|
+
const o = i({ format: "bytes32" }, n, c);
|
149
|
+
r = yield X(t.requestManager, o);
|
150
150
|
} else {
|
151
|
-
const
|
152
|
-
|
151
|
+
const o = l(n) ? n : i({ format: "uint" }, n, c);
|
152
|
+
r = yield Y(t.requestManager, o);
|
153
153
|
}
|
154
|
-
return i({ format: "uint" },
|
154
|
+
return i({ format: "uint" }, r, e);
|
155
155
|
});
|
156
156
|
}
|
157
|
-
function He(t, n = t.defaultBlock, e,
|
157
|
+
function He(t, n = t.defaultBlock, e, r) {
|
158
158
|
return u(this, void 0, void 0, function* () {
|
159
|
-
const
|
159
|
+
const o = 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, o);
|
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, o);
|
167
167
|
}
|
168
|
-
return i(k, a,
|
168
|
+
return i(k, a, r);
|
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 r = i({ format: "bytes32" }, n, S), o = yield x(t.requestManager, r);
|
174
|
+
return h(o) ? o : p(o, 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((r) => p(r, 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, r) {
|
185
185
|
return u(this, void 0, void 0, function* () {
|
186
|
-
const
|
186
|
+
const o = 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, o);
|
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, o);
|
194
194
|
}
|
195
|
-
return h(a) ? a : p(a,
|
195
|
+
return h(a) ? a : p(a, r, { 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 r = i({ format: "bytes32" }, n, S), o = yield nt(t.requestManager, r);
|
201
|
+
return h(o) ? o : i(M, o, e);
|
202
202
|
});
|
203
203
|
}
|
204
|
-
function Oe(t, n, e = t.defaultBlock,
|
204
|
+
function Oe(t, n, e = t.defaultBlock, r) {
|
205
205
|
return u(this, void 0, void 0, function* () {
|
206
|
-
const
|
207
|
-
return i({ format: "uint" }, a,
|
206
|
+
const o = l(e) ? e : i({ format: "uint" }, e, c), a = yield rt(t.requestManager, n, o);
|
207
|
+
return i({ format: "uint" }, a, r);
|
208
208
|
});
|
209
209
|
}
|
210
|
-
function _e(t, n, e,
|
211
|
-
const
|
210
|
+
function _e(t, n, e, r = { checkRevertBeforeSending: !0 }) {
|
211
|
+
const o = 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: o,
|
217
|
+
options: r,
|
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, o = { 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), B = s.getReceiptWithEvents(i(M, q, e));
|
234
|
+
s.emitReceipt(B), a(yield s.handleResolve({
|
235
|
+
receipt: B,
|
236
236
|
tx: f
|
237
237
|
})), s.emitConfirmation({
|
238
|
-
receipt:
|
238
|
+
receipt: B,
|
239
239
|
transactionHash: m
|
240
240
|
});
|
241
241
|
} catch (g) {
|
@@ -247,16 +247,16 @@ function _e(t, n, e, o = { checkRevertBeforeSending: !0 }) {
|
|
247
247
|
});
|
248
248
|
});
|
249
249
|
});
|
250
|
-
return
|
250
|
+
return o;
|
251
251
|
}
|
252
|
-
function Pe(t, n, e,
|
253
|
-
const
|
252
|
+
function Pe(t, n, e, r = { checkRevertBeforeSending: !0 }) {
|
253
|
+
const o = 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: o,
|
259
|
+
options: r,
|
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, o = { 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: B } = m, _ = Ht(m, ["v", "r", "s"]);
|
271
271
|
yield s.checkRevertBeforeSending(_), s.emitSending(f);
|
272
|
-
const
|
273
|
-
return
|
272
|
+
const T = yield Ft(t, () => u(this, void 0, void 0, function* () {
|
273
|
+
return ot(t.requestManager, f);
|
274
274
|
}));
|
275
275
|
s.emitSent(f);
|
276
|
-
const P = i({ format: "bytes32" },
|
276
|
+
const P = i({ format: "bytes32" }, T, e);
|
277
277
|
s.emitTransactionHash(P);
|
278
|
-
const I = yield $(t,
|
278
|
+
const I = yield $(t, T, 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: T
|
285
285
|
});
|
286
286
|
} catch (y) {
|
287
287
|
d(yield s.handleError({
|
@@ -292,52 +292,52 @@ function Pe(t, n, e, o = { checkRevertBeforeSending: !0 }) {
|
|
292
292
|
});
|
293
293
|
});
|
294
294
|
});
|
295
|
-
return
|
295
|
+
return o;
|
296
296
|
}
|
297
|
-
function Ie(t, n, e,
|
298
|
-
var
|
297
|
+
function Ie(t, n, e, r) {
|
298
|
+
var o;
|
299
299
|
return u(this, void 0, void 0, function* () {
|
300
300
|
const a = i({ format: "bytes" }, n, S);
|
301
|
-
if (!((
|
301
|
+
if (!((o = t.wallet) === null || o === void 0) && o.get(e)) {
|
302
302
|
const f = t.wallet.get(e).sign(a);
|
303
|
-
return i(yt, f,
|
303
|
+
return i(yt, f, r);
|
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, r);
|
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 r = yield at(t.requestManager, p(n, c));
|
314
|
+
return D(r) ? pt(r, e, {
|
315
315
|
fillInputAndData: !0
|
316
316
|
}) : {
|
317
|
-
raw: i({ format: "bytes" },
|
318
|
-
tx: p(
|
317
|
+
raw: i({ format: "bytes" }, r.raw, e),
|
318
|
+
tx: p(r.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, r) {
|
325
325
|
return u(this, void 0, void 0, function* () {
|
326
|
-
const
|
327
|
-
return i({ format: "bytes" }, a,
|
326
|
+
const o = l(e) ? e : i({ format: "uint" }, e, c), a = yield st(t.requestManager, p(n, c), o);
|
327
|
+
return i({ format: "bytes" }, a, r);
|
328
328
|
});
|
329
329
|
}
|
330
|
-
function je(t, n, e = t.defaultBlock,
|
330
|
+
function je(t, n, e = t.defaultBlock, r) {
|
331
331
|
return u(this, void 0, void 0, function* () {
|
332
|
-
const
|
333
|
-
return i({ format: "uint" }, d,
|
332
|
+
const o = p(n, c), a = l(e) ? e : i({ format: "uint" }, e, c), d = yield ct(t.requestManager, o, a);
|
333
|
+
return i({ format: "uint" }, d, r);
|
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: r, fromBlock: o } = n;
|
339
|
+
h(r) || (typeof r == "number" || typeof r == "bigint") && (r = R(r)), h(o) || (typeof o == "number" || typeof o == "bigint") && (o = R(o));
|
340
|
+
const a = Object.assign(Object.assign({}, n), { fromBlock: o, toBlock: r });
|
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, r = t.defaultBlock, o) {
|
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(r) ? r : i({ format: "uint" }, r, c), s = yield ft(t.requestManager, n, a, d);
|
358
|
+
return i(vt, s, o);
|
359
359
|
});
|
360
360
|
}
|
361
|
-
function Ge(t, n, e = t.defaultBlock,
|
361
|
+
function Ge(t, n, e = t.defaultBlock, r, o) {
|
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
|
+
}, r, St), f = yield mt(t.requestManager, a, d, s);
|
369
|
+
return i(Bt, f, o);
|
370
370
|
});
|
371
371
|
}
|
372
|
-
function We(t, n, e = t.defaultBlock,
|
372
|
+
function We(t, n, e = t.defaultBlock, r) {
|
373
373
|
return u(this, void 0, void 0, function* () {
|
374
|
-
const
|
375
|
-
return i(
|
374
|
+
const o = l(e) ? e : i({ format: "uint" }, e, c), a = yield lt(t.requestManager, p(n, c), o);
|
375
|
+
return i(Tt, a, r);
|
376
376
|
});
|
377
377
|
}
|
378
|
-
function
|
378
|
+
function ze(t, n, e, r, o) {
|
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, r);
|
381
|
+
return i({ format: "bytes" }, a, o);
|
382
382
|
});
|
383
383
|
}
|
384
384
|
export {
|
385
385
|
De as call,
|
386
386
|
We as createAccessList,
|
387
387
|
je as estimateGas,
|
388
|
-
|
388
|
+
Be 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
|
+
Te 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
|
+
ze as signTypedData
|
413
413
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../../../web3-errors/lib/esm/errors/contract_errors.cjs"),v=require("../../../../web3-errors/lib/esm/errors/response_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const E=require("../../../../web3-eth-abi/lib/esm/utils.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");const m=require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");require("../../../../web3-eth-abi/lib/esm/coders/base/number.cjs");const p=require("../../../../web3-eth-abi/lib/esm/decode_contract_error_data.cjs"),g=require("../rpc_method_wrappers.cjs");var q=function(e,u,n,r){function i(t){return t instanceof n?t:new n(function(a){a(t)})}return new(n||(n=Promise))(function(t,a){function c(s){try{d(r.next(s))}catch(f){a(f)}}function o(s){try{d(r.throw(s))}catch(f){a(f)}}function d(s){s.done?t(s.value):i(s.value).then(c,o)}d((r=r.apply(e,u||[])).next())})};const _=(e,u)=>{var n,r,i,t,a;if(e instanceof l.ContractExecutionError&&e.cause instanceof l.Eip838ExecutionError){if(u!==void 0){const c=u.filter(o=>E.isAbiErrorFragment(o));return p.decodeContractErrorData(c,e.cause),{reason:e.cause.message,signature:(n=e.cause.data)===null||n===void 0?void 0:n.slice(0,10),data:(r=e.cause.data)===null||r===void 0?void 0:r.substring(10),customErrorName:e.cause.errorName,customErrorDecodedSignature:e.cause.errorSignature,customErrorArguments:e.cause.errorArgs}}return{reason:e.cause.message,signature:(i=e.cause.data)===null||i===void 0?void 0:i.slice(0,10),data:(t=e.cause.data)===null||t===void 0?void 0:t.substring(10)}}if(e instanceof v.InvalidResponseError&&!Array.isArray((a=e.cause)===null||a===void 0?void 0:a.errors)&&e.cause!==void 0)return e.cause.message;throw e};function y(e,u,n,r=m.DEFAULT_RETURN_FORMAT){return q(this,void 0,void 0,function*(){try{yield g.call(e,u,e.defaultBlock,r);return}catch(i){return _(i,n)}})}exports.getRevertReason=y;exports.parseTransactionError=_;
|
@@ -8,44 +8,44 @@ import { DEFAULT_RETURN_FORMAT as E } from "../../../../web3-types/lib/esm/data_
|
|
8
8
|
import "../../../../web3-types/lib/esm/eth_types.js";
|
9
9
|
import "../../../../web3-types/lib/esm/web3_base_provider.js";
|
10
10
|
import "../../../../web3-eth-abi/lib/esm/coders/base/number.js";
|
11
|
-
import { decodeContractErrorData as
|
12
|
-
import { call as
|
13
|
-
var h =
|
14
|
-
function o(
|
15
|
-
return
|
16
|
-
e
|
11
|
+
import { decodeContractErrorData as _ } from "../../../../web3-eth-abi/lib/esm/decode_contract_error_data.js";
|
12
|
+
import { call as g } from "../rpc_method_wrappers.js";
|
13
|
+
var h = function(t, u, n, i) {
|
14
|
+
function o(e) {
|
15
|
+
return e instanceof n ? e : new n(function(a) {
|
16
|
+
a(e);
|
17
17
|
});
|
18
18
|
}
|
19
|
-
return new (
|
20
|
-
function
|
19
|
+
return new (n || (n = Promise))(function(e, a) {
|
20
|
+
function s(r) {
|
21
21
|
try {
|
22
|
-
d(
|
22
|
+
d(i.next(r));
|
23
23
|
} catch (f) {
|
24
|
-
|
24
|
+
a(f);
|
25
25
|
}
|
26
26
|
}
|
27
27
|
function c(r) {
|
28
28
|
try {
|
29
|
-
d(
|
29
|
+
d(i.throw(r));
|
30
30
|
} catch (f) {
|
31
|
-
|
31
|
+
a(f);
|
32
32
|
}
|
33
33
|
}
|
34
34
|
function d(r) {
|
35
|
-
r.done ?
|
35
|
+
r.done ? e(r.value) : o(r.value).then(s, c);
|
36
36
|
}
|
37
|
-
d((
|
37
|
+
d((i = i.apply(t, u || [])).next());
|
38
38
|
});
|
39
39
|
};
|
40
|
-
const y = (t,
|
41
|
-
var
|
40
|
+
const y = (t, u) => {
|
41
|
+
var n, i, o, e, a;
|
42
42
|
if (t instanceof m && t.cause instanceof l) {
|
43
|
-
if (
|
44
|
-
const
|
45
|
-
return
|
43
|
+
if (u !== void 0) {
|
44
|
+
const s = u.filter((c) => v(c));
|
45
|
+
return _(s, t.cause), {
|
46
46
|
reason: t.cause.message,
|
47
|
-
signature: (
|
48
|
-
data: (
|
47
|
+
signature: (n = t.cause.data) === null || n === void 0 ? void 0 : n.slice(0, 10),
|
48
|
+
data: (i = t.cause.data) === null || i === void 0 ? void 0 : i.substring(10),
|
49
49
|
customErrorName: t.cause.errorName,
|
50
50
|
customErrorDecodedSignature: t.cause.errorSignature,
|
51
51
|
customErrorArguments: t.cause.errorArgs
|
@@ -54,20 +54,20 @@ const y = (t, s) => {
|
|
54
54
|
return {
|
55
55
|
reason: t.cause.message,
|
56
56
|
signature: (o = t.cause.data) === null || o === void 0 ? void 0 : o.slice(0, 10),
|
57
|
-
data: (
|
57
|
+
data: (e = t.cause.data) === null || e === void 0 ? void 0 : e.substring(10)
|
58
58
|
};
|
59
59
|
}
|
60
|
-
if (t instanceof p && !Array.isArray((
|
60
|
+
if (t instanceof p && !Array.isArray((a = t.cause) === null || a === void 0 ? void 0 : a.errors) && t.cause !== void 0)
|
61
61
|
return t.cause.message;
|
62
62
|
throw t;
|
63
63
|
};
|
64
|
-
function B(t,
|
64
|
+
function B(t, u, n, i = E) {
|
65
65
|
return h(this, void 0, void 0, function* () {
|
66
66
|
try {
|
67
|
-
yield
|
67
|
+
yield g(t, u, t.defaultBlock, i);
|
68
68
|
return;
|
69
69
|
} catch (o) {
|
70
|
-
return y(o,
|
70
|
+
return y(o, n);
|
71
71
|
}
|
72
72
|
});
|
73
73
|
}
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const E=require("./get_revert_reason.cjs");var g=function(s,a,r,t){function f(o){return o instanceof r?o:new r(function(e){e(o)})}return new(r||(r=Promise))(function(o,e){function i(u){try{c(t.next(u))}catch(l){e(l)}}function n(u){try{c(t.throw(u))}catch(l){e(l)}}function c(u){u.done?o(u.value):f(u.value).then(i,n)}c((t=t.apply(s,a||[])).next())})};function m(s,a,r,t,f,o){return g(this,void 0,void 0,function*(){let e=o;e===void 0&&(t!==void 0?e=E.parseTransactionError(t):s.handleRevert&&a!==void 0&&(e=yield E.getRevertReason(s,a,f)));let i;if(e===void 0)i=new d.TransactionRevertedWithoutReasonError(r);else if(typeof e=="string")i=new d.TransactionRevertInstructionError(e,void 0,r);else if(e.customErrorName!==void 0&&e.customErrorDecodedSignature!==void 0&&e.customErrorArguments!==void 0){const n=e;i=new d.TransactionRevertWithCustomError(n.reason,n.customErrorName,n.customErrorDecodedSignature,n.customErrorArguments,n.signature,r,n.data)}else i=new d.TransactionRevertInstructionError(e.reason,e.signature,r,e.data);return i})}exports.getTransactionError=m;
|