@ozdao/prometheus-framework 0.2.44 → 0.2.47
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-AMWMdo3t.js +91 -0
- package/dist/main-R6dlNKp-.mjs +13606 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
- package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
- package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +6 -6
- package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
- package/dist/node_modules/ethereum-cryptography/esm/utils.js +3 -4
- package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
- package/dist/node_modules/vue3-carousel/dist/carousel.css.js +1 -4
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +110 -110
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +7 -7
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +15 -15
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +26 -26
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
- package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
- package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +5 -5
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +15 -15
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +5 -5
- package/dist/products.server.js +875 -0
- package/dist/products.server.mjs +875 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +1 -63
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +20 -20
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -4
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +18 -18
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +1 -4
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +1 -4
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -72
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -97
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -4
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +1 -4
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.js +43 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +39 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +20 -21
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +90 -80
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +87 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +7 -6
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +138 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +114 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +51 -62
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +53 -0
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/products.client.js +56 -0
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +3 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-HvAJWryM.js +1 -0
- package/dist/web-XMv5d7hK.mjs +55 -0
- package/package.json +1 -1
- package/src/components/Feed/Feed.vue +9 -7
- package/src/modules/products/components/blocks/CardPosition.vue +1 -1
- package/src/modules/products/components/blocks/CardProduct.vue +2 -3
- package/src/modules/products/components/pages/Product.vue +1 -1
- package/src/modules/products/components/pages/ProductEdit.vue +15 -0
- package/src/modules/products/components/pages/ProductRecommmendation.vue +2 -2
- package/src/modules/products/components/pages/Products.vue +1 -0
- package/src/modules/products/components/sections/SectionProduct.vue +10 -10
- package/src/modules/products/products.client.js +76 -20
- package/src/modules/products/products.server.js +8 -4
- package/src/modules/products/router/products.router.js +4 -2
- package/src/styles/base/all.scss +4 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ResolverMethodMissingError as
|
1
|
+
import { ResolverMethodMissingError as h } from "../../../web3-errors/lib/esm/errors/contract_errors.js";
|
2
2
|
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
3
|
import "../../../web3-validator/lib/esm/formats.js";
|
4
4
|
import { isHexStrict as y } from "../../../web3-validator/lib/esm/validation/string.js";
|
@@ -6,38 +6,38 @@ import "../../../web3-validator/lib/esm/default_validator.js";
|
|
6
6
|
import "../../../web3-types/lib/esm/data_format_types.js";
|
7
7
|
import "../../../web3-types/lib/esm/eth_types.js";
|
8
8
|
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
9
|
-
import { interfaceIds as f, methodsInInterface as
|
10
|
-
import { namehash as
|
11
|
-
import { sha3 as
|
12
|
-
import { isNullish as
|
13
|
-
var s =
|
14
|
-
function
|
9
|
+
import { interfaceIds as f, methodsInInterface as p } from "./config.js";
|
10
|
+
import { namehash as u } from "./utils.js";
|
11
|
+
import { sha3 as w } from "../../../web3-utils/lib/esm/hash.js";
|
12
|
+
import { isNullish as I } from "../../../web3-utils/lib/esm/validation.js";
|
13
|
+
var s = function(l, r, t, e) {
|
14
|
+
function n(o) {
|
15
15
|
return o instanceof t ? o : new t(function(c) {
|
16
16
|
c(o);
|
17
17
|
});
|
18
18
|
}
|
19
19
|
return new (t || (t = Promise))(function(o, c) {
|
20
|
-
function v(
|
20
|
+
function v(i) {
|
21
21
|
try {
|
22
|
-
d(e.next(
|
22
|
+
d(e.next(i));
|
23
23
|
} catch (a) {
|
24
24
|
c(a);
|
25
25
|
}
|
26
26
|
}
|
27
|
-
function m(
|
27
|
+
function m(i) {
|
28
28
|
try {
|
29
|
-
d(e.throw(
|
29
|
+
d(e.throw(i));
|
30
30
|
} catch (a) {
|
31
31
|
c(a);
|
32
32
|
}
|
33
33
|
}
|
34
|
-
function d(
|
35
|
-
|
34
|
+
function d(i) {
|
35
|
+
i.done ? o(i.value) : n(i.value).then(v, m);
|
36
36
|
}
|
37
|
-
d((e = e.apply(
|
37
|
+
d((e = e.apply(l, r || [])).next());
|
38
38
|
});
|
39
39
|
};
|
40
|
-
class
|
40
|
+
class q {
|
41
41
|
constructor(r) {
|
42
42
|
this.registry = r;
|
43
43
|
}
|
@@ -49,47 +49,47 @@ class j {
|
|
49
49
|
// https://eips.ethereum.org/EIPS/eip-165
|
50
50
|
// eslint-disable-next-line class-methods-use-this
|
51
51
|
checkInterfaceSupport(r, t) {
|
52
|
-
var e,
|
52
|
+
var e, n;
|
53
53
|
return s(this, void 0, void 0, function* () {
|
54
|
-
if (
|
55
|
-
throw new
|
54
|
+
if (I(f[t]))
|
55
|
+
throw new h((e = r.options.address) !== null && e !== void 0 ? e : "", t);
|
56
56
|
if (!(yield r.methods.supportsInterface(f[t]).call()))
|
57
|
-
throw new
|
57
|
+
throw new h((n = r.options.address) !== null && n !== void 0 ? n : "", t);
|
58
58
|
});
|
59
59
|
}
|
60
60
|
supportsInterface(r, t) {
|
61
61
|
var e;
|
62
62
|
return s(this, void 0, void 0, function* () {
|
63
|
-
const
|
63
|
+
const n = yield this.getResolverContractAdapter(r);
|
64
64
|
let o = t;
|
65
65
|
if (!y(o)) {
|
66
|
-
if (o = (e =
|
66
|
+
if (o = (e = w(t)) !== null && e !== void 0 ? e : "", t === "")
|
67
67
|
throw new Error("Invalid interface Id");
|
68
68
|
o = o.slice(0, 10);
|
69
69
|
}
|
70
|
-
return
|
70
|
+
return n.methods.supportsInterface(o).call();
|
71
71
|
});
|
72
72
|
}
|
73
73
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
74
74
|
getAddress(r, t = 60) {
|
75
75
|
return s(this, void 0, void 0, function* () {
|
76
76
|
const e = yield this.getResolverContractAdapter(r);
|
77
|
-
return yield this.checkInterfaceSupport(e,
|
77
|
+
return yield this.checkInterfaceSupport(e, p.addr), e.methods.addr(u(r), t).call();
|
78
78
|
});
|
79
79
|
}
|
80
80
|
getPubkey(r) {
|
81
81
|
return s(this, void 0, void 0, function* () {
|
82
82
|
const t = yield this.getResolverContractAdapter(r);
|
83
|
-
return yield this.checkInterfaceSupport(t,
|
83
|
+
return yield this.checkInterfaceSupport(t, p.pubkey), t.methods.pubkey(u(r)).call();
|
84
84
|
});
|
85
85
|
}
|
86
86
|
getContenthash(r) {
|
87
87
|
return s(this, void 0, void 0, function* () {
|
88
88
|
const t = yield this.getResolverContractAdapter(r);
|
89
|
-
return yield this.checkInterfaceSupport(t,
|
89
|
+
return yield this.checkInterfaceSupport(t, p.contenthash), t.methods.contenthash(u(r)).call();
|
90
90
|
});
|
91
91
|
}
|
92
92
|
}
|
93
93
|
export {
|
94
|
-
|
94
|
+
q as Resolver
|
95
95
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../web3-errors/lib/esm/errors/utils_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");const l=require("../../../web3-validator/lib/esm/validation/address.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const d=require("../../../web3-utils/lib/esm/string_manipulation.cjs"),a=require("../../../web3-utils/lib/esm/converters.cjs");class e{constructor(t){if(this.toAddress=()=>{if(this.isDirect()){const r=this._iban.slice(4),i=e._parseInt(r,36),n=d.leftPad(i,40);return a.toChecksumAddress(n)}throw new Error("Iban is indirect and cannot be converted. Must be length of 34 or 35")},e.isIndirect(t)||e.isDirect(t))this._iban=t;else throw new Error("Invalid IBAN was provided")}static isDirect(t){return t.length===34||t.length===35}isDirect(){return e.isDirect(this._iban)}static isIndirect(t){return t.length===20}isIndirect(){return e.isIndirect(this._iban)}static isValid(t){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(t)&&e._mod9710(e._iso13616Prepare(t))===1}isValid(){return e.isValid(this._iban)}static fromBban(t){const r="XE",n=`0${(98-this._mod9710(this._iso13616Prepare(`${r}00${t}`))).toString()}`.slice(-2);return new e(`${r}${n}${t}`)}static createIndirect(t){return e.fromBban(`ETH${t.institution}${t.identifier}`)}static fromAddress(t){if(!l.isAddress(t))throw new u.InvalidAddressError(t);const i=BigInt(a.hexToNumber(t)).toString(36),n=d.leftPad(i,15);return e.fromBban(n.toUpperCase())}static toIban(t){return e.fromAddress(t).toString()}client(){return this.isIndirect()?this._iban.slice(11):""}checksum(){return this._iban.slice(2,4)}institution(){return this.isIndirect()?this._iban.slice(7,11):""}toString(){return this._iban}}e._iso13616Prepare=s=>{const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../web3-errors/lib/esm/errors/utils_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");const l=require("../../../web3-validator/lib/esm/validation/address.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const d=require("../../../web3-utils/lib/esm/string_manipulation.cjs"),a=require("../../../web3-utils/lib/esm/converters.cjs");class e{constructor(t){if(this.toAddress=()=>{if(this.isDirect()){const r=this._iban.slice(4),i=e._parseInt(r,36),n=d.leftPad(i,40);return a.toChecksumAddress(n)}throw new Error("Iban is indirect and cannot be converted. Must be length of 34 or 35")},e.isIndirect(t)||e.isDirect(t))this._iban=t;else throw new Error("Invalid IBAN was provided")}static isDirect(t){return t.length===34||t.length===35}isDirect(){return e.isDirect(this._iban)}static isIndirect(t){return t.length===20}isIndirect(){return e.isIndirect(this._iban)}static isValid(t){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(t)&&e._mod9710(e._iso13616Prepare(t))===1}isValid(){return e.isValid(this._iban)}static fromBban(t){const r="XE",n=`0${(98-this._mod9710(this._iso13616Prepare(`${r}00${t}`))).toString()}`.slice(-2);return new e(`${r}${n}${t}`)}static createIndirect(t){return e.fromBban(`ETH${t.institution}${t.identifier}`)}static fromAddress(t){if(!l.isAddress(t))throw new u.InvalidAddressError(t);const i=BigInt(a.hexToNumber(t)).toString(36),n=d.leftPad(i,15);return e.fromBban(n.toUpperCase())}static toIban(t){return e.fromAddress(t).toString()}client(){return this.isIndirect()?this._iban.slice(11):""}checksum(){return this._iban.slice(2,4)}institution(){return this.isIndirect()?this._iban.slice(7,11):""}toString(){return this._iban}}e._iso13616Prepare=s=>{const i=s.toUpperCase();return`${i.slice(4)}${i.slice(0,4)}`.split("").map(c=>{const o=c.charCodeAt(0);return o>=65&&o<=90?o-65+10:c}).join("")};e._parseInt=(s,t)=>[...s].reduce((r,i)=>BigInt(parseInt(i,t))+BigInt(t)*r,BigInt(0));e._mod9710=s=>{let t=s,r;for(;t.length>2;)r=t.slice(0,9),t=`${(parseInt(r,10)%97).toString()}${t.slice(r.length)}`;return parseInt(t,10)%97};e.toAddress=s=>new e(s).toAddress();exports.Iban=e;
|
@@ -264,10 +264,10 @@ class r {
|
|
264
264
|
}
|
265
265
|
}
|
266
266
|
r._iso13616Prepare = (s) => {
|
267
|
-
const
|
267
|
+
const e = s.toUpperCase();
|
268
268
|
return `${e.slice(4)}${e.slice(0, 4)}`.split("").map((c) => {
|
269
269
|
const o = c.charCodeAt(0);
|
270
|
-
return o >=
|
270
|
+
return o >= 65 && o <= 90 ? o - 65 + 10 : c;
|
271
271
|
}).join("");
|
272
272
|
};
|
273
273
|
r._parseInt = (s, t) => [...s].reduce((i, e) => BigInt(parseInt(e, t)) + BigInt(t) * i, BigInt(0));
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");const v=require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");const r=require("./rpc_method_wrappers.cjs");var t=function(d,e,n,i){function q(o){return o instanceof n?o:new n(function(c){c(o)})}return new(n||(n=Promise))(function(o,c){function h(u){try{s(i.next(u))}catch(a){c(a)}}function f(u){try{s(i.throw(u))}catch(a){c(a)}}function s(u){u.done?o(u.value):q(u.value).then(h,f)}s((i=i.apply(d,e||[])).next())})};class g extends v.Web3Context{getAccounts(){return t(this,void 0,void 0,function*(){return r.getAccounts(this.requestManager)})}newAccount(e){return t(this,void 0,void 0,function*(){return r.newAccount(this.requestManager,e)})}unlockAccount(e,n,i){return t(this,void 0,void 0,function*(){return r.unlockAccount(this.requestManager,e,n,i)})}lockAccount(e){return t(this,void 0,void 0,function*(){return r.lockAccount(this.requestManager,e)})}importRawKey(e,n){return t(this,void 0,void 0,function*(){return r.importRawKey(this.requestManager,e,n)})}sendTransaction(e,n){return t(this,void 0,void 0,function*(){return r.sendTransaction(this.requestManager,e,n)})}signTransaction(e,n){return t(this,void 0,void 0,function*(){return r.signTransaction(this.requestManager,e,n)})}sign(e,n,i){return t(this,void 0,void 0,function*(){return r.sign(this.requestManager,e,n,i)})}ecRecover(e,n){return t(this,void 0,void 0,function*(){return r.ecRecover(this.requestManager,e,n)})}}exports.Personal=g;
|
@@ -2,7 +2,7 @@ import "../../../web3-core/lib/esm/web3_config.js";
|
|
2
2
|
import "../../../web3-core/lib/esm/web3_request_manager.js";
|
3
3
|
import "../../../web3-core/lib/esm/web3_subscription_manager.js";
|
4
4
|
import "../../../web3-core/lib/esm/web3_subscriptions.js";
|
5
|
-
import { Web3Context as
|
5
|
+
import { Web3Context as p } from "../../../web3-core/lib/esm/web3_context.js";
|
6
6
|
import "../../../web3-core/lib/esm/web3_batch_request.js";
|
7
7
|
import "../../../web3-types/lib/esm/data_format_types.js";
|
8
8
|
import "../../../web3-types/lib/esm/eth_types.js";
|
@@ -12,35 +12,35 @@ import "../../../web3-eth-iban/lib/esm/iban.js";
|
|
12
12
|
import "../../../web3-validator/lib/esm/formats.js";
|
13
13
|
import "../../../web3-validator/lib/esm/default_validator.js";
|
14
14
|
import "../../../web3-core/lib/esm/web3_promi_event.js";
|
15
|
-
import { getAccounts as v, newAccount as m, unlockAccount as g, lockAccount as
|
16
|
-
var i =
|
17
|
-
function d(
|
18
|
-
return
|
19
|
-
u(
|
15
|
+
import { getAccounts as v, newAccount as m, unlockAccount as g, lockAccount as q, importRawKey as w, sendTransaction as M, signTransaction as l, sign as A, ecRecover as x } from "./rpc_method_wrappers.js";
|
16
|
+
var i = function(a, t, n, r) {
|
17
|
+
function d(o) {
|
18
|
+
return o instanceof n ? o : new n(function(u) {
|
19
|
+
u(o);
|
20
20
|
});
|
21
21
|
}
|
22
|
-
return new (n || (n = Promise))(function(
|
23
|
-
function
|
22
|
+
return new (n || (n = Promise))(function(o, u) {
|
23
|
+
function f(e) {
|
24
24
|
try {
|
25
|
-
c(r.next(
|
25
|
+
c(r.next(e));
|
26
26
|
} catch (s) {
|
27
27
|
u(s);
|
28
28
|
}
|
29
29
|
}
|
30
|
-
function
|
30
|
+
function h(e) {
|
31
31
|
try {
|
32
|
-
c(r.throw(
|
32
|
+
c(r.throw(e));
|
33
33
|
} catch (s) {
|
34
34
|
u(s);
|
35
35
|
}
|
36
36
|
}
|
37
|
-
function c(
|
38
|
-
|
37
|
+
function c(e) {
|
38
|
+
e.done ? o(e.value) : d(e.value).then(f, h);
|
39
39
|
}
|
40
40
|
c((r = r.apply(a, t || [])).next());
|
41
41
|
});
|
42
42
|
};
|
43
|
-
class G extends
|
43
|
+
class G extends p {
|
44
44
|
/**
|
45
45
|
*Returns a list of accounts the node controls by using the provider and calling the RPC method personal_listAccounts. Using `web3.eth.accounts.create()` will not add accounts into this list. For that use `web3.eth.personal.newAccount()`.
|
46
46
|
* @returns - An array of addresses controlled by the node.
|
@@ -116,7 +116,7 @@ class G extends f {
|
|
116
116
|
*/
|
117
117
|
lockAccount(t) {
|
118
118
|
return i(this, void 0, void 0, function* () {
|
119
|
-
return
|
119
|
+
return q(this.requestManager, t);
|
120
120
|
});
|
121
121
|
}
|
122
122
|
/**
|
@@ -137,7 +137,7 @@ class G extends f {
|
|
137
137
|
*/
|
138
138
|
importRawKey(t, n) {
|
139
139
|
return i(this, void 0, void 0, function* () {
|
140
|
-
return
|
140
|
+
return w(this.requestManager, t, n);
|
141
141
|
});
|
142
142
|
}
|
143
143
|
/**
|
@@ -166,7 +166,7 @@ class G extends f {
|
|
166
166
|
*/
|
167
167
|
sendTransaction(t, n) {
|
168
168
|
return i(this, void 0, void 0, function* () {
|
169
|
-
return
|
169
|
+
return M(this.requestManager, t, n);
|
170
170
|
});
|
171
171
|
}
|
172
172
|
/**
|
@@ -213,7 +213,7 @@ class G extends f {
|
|
213
213
|
*/
|
214
214
|
signTransaction(t, n) {
|
215
215
|
return i(this, void 0, void 0, function* () {
|
216
|
-
return
|
216
|
+
return l(this.requestManager, t, n);
|
217
217
|
});
|
218
218
|
}
|
219
219
|
/**
|
@@ -256,7 +256,7 @@ class G extends f {
|
|
256
256
|
*/
|
257
257
|
ecRecover(t, n) {
|
258
258
|
return i(this, void 0, void 0, function* () {
|
259
|
-
return
|
259
|
+
return x(this.requestManager, t, n);
|
260
260
|
});
|
261
261
|
}
|
262
262
|
}
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");const q=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-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");const q=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-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const A=require("../../../web3-validator/lib/esm/validation/string.cjs"),u=require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../web3-eth/lib/esm/schemas.cjs");require("../../../web3-eth/lib/esm/constants.cjs");const T=require("../../../web3-eth/lib/esm/utils/format_transaction.cjs");require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../web3-rpc-methods/lib/esm/net_rpc_methods.cjs");const r=require("../../../web3-rpc-methods/lib/esm/personal_rpc_methods.cjs"),a=require("../../../web3-utils/lib/esm/converters.cjs");var o=function(e,t,n,i){function v(d){return d instanceof n?d:new n(function(s){s(d)})}return new(n||(n=Promise))(function(d,s){function g(c){try{f(i.next(c))}catch(l){s(l)}}function m(c){try{f(i.throw(c))}catch(l){s(l)}}function f(c){c.done?d(c.value):v(c.value).then(g,m)}f((i=i.apply(e,t||[])).next())})};const _=e=>o(void 0,void 0,void 0,function*(){return(yield r.getAccounts(e)).map(a.toChecksumAddress)}),y=(e,t)=>o(void 0,void 0,void 0,function*(){u.validator.validate(["string"],[t]);const n=yield r.newAccount(e,t);return a.toChecksumAddress(n)}),w=(e,t,n,i)=>o(void 0,void 0,void 0,function*(){return u.validator.validate(["address","string","uint"],[t,n,i]),r.unlockAccount(e,t,n,i)}),x=(e,t)=>o(void 0,void 0,void 0,function*(){return u.validator.validate(["address"],[t]),r.lockAccount(e,t)}),R=(e,t,n)=>o(void 0,void 0,void 0,function*(){return u.validator.validate(["string","string"],[t,n]),r.importRawKey(e,t,n)}),k=(e,t,n)=>o(void 0,void 0,void 0,function*(){const i=T.formatTransaction(t,q.ETH_DATA_FORMAT);return r.sendTransaction(e,i,n)}),p=(e,t,n)=>o(void 0,void 0,void 0,function*(){const i=T.formatTransaction(t,q.ETH_DATA_FORMAT);return r.signTransaction(e,i,n)}),H=(e,t,n,i)=>o(void 0,void 0,void 0,function*(){u.validator.validate(["string","address","string"],[t,n,i]);const v=A.isHexStrict(t)?t:a.utf8ToHex(t);return r.sign(e,v,n,i)}),S=(e,t,n)=>o(void 0,void 0,void 0,function*(){u.validator.validate(["string","string"],[t,n]);const i=A.isHexStrict(t)?t:a.utf8ToHex(t);return r.ecRecover(e,i,n)});exports.ecRecover=S;exports.getAccounts=_;exports.importRawKey=R;exports.lockAccount=x;exports.newAccount=y;exports.sendTransaction=k;exports.sign=H;exports.signTransaction=p;exports.unlockAccount=w;
|
@@ -5,12 +5,12 @@ import "../../../web3-types/lib/esm/eth_types.js";
|
|
5
5
|
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
6
6
|
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
7
7
|
import "../../../web3-validator/lib/esm/formats.js";
|
8
|
-
import { isHexStrict as
|
8
|
+
import { isHexStrict as f } from "../../../web3-validator/lib/esm/validation/string.js";
|
9
9
|
import { validator as e } from "../../../web3-validator/lib/esm/default_validator.js";
|
10
10
|
import "../../../web3-eth-abi/lib/esm/coders/base/number.js";
|
11
11
|
import "../../../web3-eth/lib/esm/schemas.js";
|
12
12
|
import "../../../web3-eth/lib/esm/constants.js";
|
13
|
-
import { formatTransaction as
|
13
|
+
import { formatTransaction as p } from "../../../web3-eth/lib/esm/utils/format_transaction.js";
|
14
14
|
import "../../../web3-eth/lib/esm/rpc_method_wrappers.js";
|
15
15
|
import "../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.js";
|
16
16
|
import "../../../web3-core/lib/esm/web3_config.js";
|
@@ -24,10 +24,10 @@ import "../../../web3-core/lib/esm/web3_promi_event.js";
|
|
24
24
|
import "../../../web3-eth/lib/esm/utils/transaction_builder.js";
|
25
25
|
import "../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
|
26
26
|
import "../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
|
27
|
-
import { getAccounts as w, newAccount as $, unlockAccount as x, lockAccount as y, importRawKey as R, sendTransaction as _, signTransaction as
|
27
|
+
import { getAccounts as w, newAccount as $, unlockAccount as x, lockAccount as y, importRawKey as R, sendTransaction as _, signTransaction as k, sign as h, ecRecover as H } from "../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
|
28
28
|
import { toChecksumAddress as l, utf8ToHex as A } from "../../../web3-utils/lib/esm/converters.js";
|
29
|
-
var r =
|
30
|
-
function
|
29
|
+
var r = function(n, o, t, i) {
|
30
|
+
function d(s) {
|
31
31
|
return s instanceof t ? s : new t(function(u) {
|
32
32
|
u(s);
|
33
33
|
});
|
@@ -35,57 +35,57 @@ var r = globalThis && globalThis.__awaiter || function(i, o, t, n) {
|
|
35
35
|
return new (t || (t = Promise))(function(s, u) {
|
36
36
|
function T(c) {
|
37
37
|
try {
|
38
|
-
|
38
|
+
m(i.next(c));
|
39
39
|
} catch (v) {
|
40
40
|
u(v);
|
41
41
|
}
|
42
42
|
}
|
43
43
|
function g(c) {
|
44
44
|
try {
|
45
|
-
|
45
|
+
m(i.throw(c));
|
46
46
|
} catch (v) {
|
47
47
|
u(v);
|
48
48
|
}
|
49
49
|
}
|
50
|
-
function
|
51
|
-
c.done ? s(c.value) :
|
50
|
+
function m(c) {
|
51
|
+
c.done ? s(c.value) : d(c.value).then(T, g);
|
52
52
|
}
|
53
|
-
|
53
|
+
m((i = i.apply(n, o || [])).next());
|
54
54
|
});
|
55
55
|
};
|
56
|
-
const
|
57
|
-
return (yield w(
|
58
|
-
}),
|
56
|
+
const no = (n) => r(void 0, void 0, void 0, function* () {
|
57
|
+
return (yield w(n)).map(l);
|
58
|
+
}), io = (n, o) => r(void 0, void 0, void 0, function* () {
|
59
59
|
e.validate(["string"], [o]);
|
60
|
-
const t = yield $(
|
60
|
+
const t = yield $(n, o);
|
61
61
|
return l(t);
|
62
|
-
}), ro = (
|
63
|
-
return e.validate(["address", "string", "uint"], [o, t,
|
64
|
-
}), co = (
|
65
|
-
return e.validate(["address"], [o]), y(
|
66
|
-
}), eo = (
|
67
|
-
return e.validate(["string", "string"], [o, t]), R(
|
68
|
-
}), so = (
|
69
|
-
const
|
70
|
-
return _(
|
71
|
-
}), uo = (
|
72
|
-
const
|
73
|
-
return
|
74
|
-
}), mo = (
|
75
|
-
e.validate(["string", "address", "string"], [o, t,
|
76
|
-
const
|
77
|
-
return
|
78
|
-
}), vo = (
|
62
|
+
}), ro = (n, o, t, i) => r(void 0, void 0, void 0, function* () {
|
63
|
+
return e.validate(["address", "string", "uint"], [o, t, i]), x(n, o, t, i);
|
64
|
+
}), co = (n, o) => r(void 0, void 0, void 0, function* () {
|
65
|
+
return e.validate(["address"], [o]), y(n, o);
|
66
|
+
}), eo = (n, o, t) => r(void 0, void 0, void 0, function* () {
|
67
|
+
return e.validate(["string", "string"], [o, t]), R(n, o, t);
|
68
|
+
}), so = (n, o, t) => r(void 0, void 0, void 0, function* () {
|
69
|
+
const i = p(o, a);
|
70
|
+
return _(n, i, t);
|
71
|
+
}), uo = (n, o, t) => r(void 0, void 0, void 0, function* () {
|
72
|
+
const i = p(o, a);
|
73
|
+
return k(n, i, t);
|
74
|
+
}), mo = (n, o, t, i) => r(void 0, void 0, void 0, function* () {
|
75
|
+
e.validate(["string", "address", "string"], [o, t, i]);
|
76
|
+
const d = f(o) ? o : A(o);
|
77
|
+
return h(n, d, t, i);
|
78
|
+
}), vo = (n, o, t) => r(void 0, void 0, void 0, function* () {
|
79
79
|
e.validate(["string", "string"], [o, t]);
|
80
|
-
const
|
81
|
-
return H(
|
80
|
+
const i = f(o) ? o : A(o);
|
81
|
+
return H(n, i, t);
|
82
82
|
});
|
83
83
|
export {
|
84
84
|
vo as ecRecover,
|
85
|
-
|
85
|
+
no as getAccounts,
|
86
86
|
eo as importRawKey,
|
87
87
|
co as lockAccount,
|
88
|
-
|
88
|
+
io as newAccount,
|
89
89
|
so as sendTransaction,
|
90
90
|
mo as sign,
|
91
91
|
uo as signTransaction,
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");const p=require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");const q=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-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");const d=require("./rpc_method_wrappers.cjs");var s=function(f,t,i,n){function a(r){return r instanceof i?r:new i(function(u){u(r)})}return new(i||(i=Promise))(function(r,u){function _(e){try{o(n.next(e))}catch(c){u(c)}}function h(e){try{o(n.throw(e))}catch(c){u(c)}}function o(e){e.done?r(e.value):a(e.value).then(_,h)}o((n=n.apply(f,t||[])).next())})};class v extends p.Web3Context{getId(t=q.DEFAULT_RETURN_FORMAT){return s(this,void 0,void 0,function*(){return d.getId(this,t)})}getPeerCount(t=q.DEFAULT_RETURN_FORMAT){return s(this,void 0,void 0,function*(){return d.getPeerCount(this,t)})}isListening(){return s(this,void 0,void 0,function*(){return d.isListening(this)})}}exports.Net=v;
|
@@ -4,7 +4,7 @@ import "../../../web3-core/lib/esm/web3_subscription_manager.js";
|
|
4
4
|
import "../../../web3-core/lib/esm/web3_subscriptions.js";
|
5
5
|
import { Web3Context as a } from "../../../web3-core/lib/esm/web3_context.js";
|
6
6
|
import "../../../web3-core/lib/esm/web3_batch_request.js";
|
7
|
-
import { DEFAULT_RETURN_FORMAT as
|
7
|
+
import { DEFAULT_RETURN_FORMAT as d } from "../../../web3-types/lib/esm/data_format_types.js";
|
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-errors/lib/esm/errors/rpc_errors.js";
|
@@ -12,32 +12,32 @@ import "../../../web3-eth-iban/lib/esm/iban.js";
|
|
12
12
|
import "../../../web3-validator/lib/esm/formats.js";
|
13
13
|
import "../../../web3-validator/lib/esm/default_validator.js";
|
14
14
|
import "../../../web3-core/lib/esm/web3_promi_event.js";
|
15
|
-
import { getId as
|
16
|
-
var
|
17
|
-
function
|
18
|
-
return
|
19
|
-
e(
|
15
|
+
import { getId as v, getPeerCount as _, isListening as w } from "./rpc_method_wrappers.js";
|
16
|
+
var m = function(f, i, o, r) {
|
17
|
+
function c(n) {
|
18
|
+
return n instanceof o ? n : new o(function(e) {
|
19
|
+
e(n);
|
20
20
|
});
|
21
21
|
}
|
22
|
-
return new (
|
23
|
-
function
|
22
|
+
return new (o || (o = Promise))(function(n, e) {
|
23
|
+
function s(t) {
|
24
24
|
try {
|
25
|
-
|
26
|
-
} catch (
|
27
|
-
e(
|
25
|
+
u(r.next(t));
|
26
|
+
} catch (p) {
|
27
|
+
e(p);
|
28
28
|
}
|
29
29
|
}
|
30
30
|
function h(t) {
|
31
31
|
try {
|
32
|
-
|
33
|
-
} catch (
|
34
|
-
e(
|
32
|
+
u(r.throw(t));
|
33
|
+
} catch (p) {
|
34
|
+
e(p);
|
35
35
|
}
|
36
36
|
}
|
37
|
-
function
|
38
|
-
t.done ?
|
37
|
+
function u(t) {
|
38
|
+
t.done ? n(t.value) : c(t.value).then(s, h);
|
39
39
|
}
|
40
|
-
|
40
|
+
u((r = r.apply(f, i || [])).next());
|
41
41
|
});
|
42
42
|
};
|
43
43
|
class D extends a {
|
@@ -53,9 +53,9 @@ class D extends a {
|
|
53
53
|
* > 1
|
54
54
|
* ```
|
55
55
|
*/
|
56
|
-
getId(i =
|
57
|
-
return
|
58
|
-
return
|
56
|
+
getId(i = d) {
|
57
|
+
return m(this, void 0, void 0, function* () {
|
58
|
+
return v(this, i);
|
59
59
|
});
|
60
60
|
}
|
61
61
|
/**
|
@@ -70,9 +70,9 @@ class D extends a {
|
|
70
70
|
* > 0
|
71
71
|
* ```
|
72
72
|
*/
|
73
|
-
getPeerCount(i =
|
74
|
-
return
|
75
|
-
return
|
73
|
+
getPeerCount(i = d) {
|
74
|
+
return m(this, void 0, void 0, function* () {
|
75
|
+
return _(this, i);
|
76
76
|
});
|
77
77
|
}
|
78
78
|
/**
|
@@ -87,8 +87,8 @@ class D extends a {
|
|
87
87
|
* ```
|
88
88
|
*/
|
89
89
|
isListening() {
|
90
|
-
return
|
91
|
-
return
|
90
|
+
return m(this, void 0, void 0, function* () {
|
91
|
+
return w(this);
|
92
92
|
});
|
93
93
|
}
|
94
94
|
}
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");const d=require("../../../web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const a=require("../../../web3-utils/lib/esm/formatter.cjs");var f=function(t,i,e,o){function g(r){return r instanceof e?r:new e(function(u){u(r)})}return new(e||(e=Promise))(function(r,u){function v(n){try{c(o.next(n))}catch(s){u(s)}}function m(n){try{c(o.throw(n))}catch(s){u(s)}}function c(n){n.done?r(n.value):g(n.value).then(v,m)}c((o=o.apply(t,i||[])).next())})};function p(t,i){return f(this,void 0,void 0,function*(){const e=yield d.getId(t.requestManager);return a.format({format:"uint"},e,i)})}function h(t,i){return f(this,void 0,void 0,function*(){const e=yield d.getPeerCount(t.requestManager);return a.format({format:"uint"},e,i)})}const l=t=>f(void 0,void 0,void 0,function*(){return d.isListening(t.requestManager)});exports.getId=p;exports.getPeerCount=h;exports.isListening=l;
|
@@ -1,48 +1,48 @@
|
|
1
1
|
import "../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
|
2
|
-
import { getId as
|
2
|
+
import { getId as g, getPeerCount as v, isListening as h } from "../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
|
3
3
|
import "../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
|
4
|
-
import { format as
|
5
|
-
var c =
|
6
|
-
function
|
7
|
-
return o instanceof
|
4
|
+
import { format as d } from "../../../web3-utils/lib/esm/formatter.js";
|
5
|
+
var c = function(t, i, n, r) {
|
6
|
+
function a(o) {
|
7
|
+
return o instanceof n ? o : new n(function(u) {
|
8
8
|
u(o);
|
9
9
|
});
|
10
10
|
}
|
11
|
-
return new (
|
12
|
-
function
|
11
|
+
return new (n || (n = Promise))(function(o, u) {
|
12
|
+
function p(e) {
|
13
13
|
try {
|
14
|
-
|
15
|
-
} catch (
|
16
|
-
u(
|
14
|
+
f(r.next(e));
|
15
|
+
} catch (s) {
|
16
|
+
u(s);
|
17
17
|
}
|
18
18
|
}
|
19
|
-
function
|
19
|
+
function m(e) {
|
20
20
|
try {
|
21
|
-
|
22
|
-
} catch (
|
23
|
-
u(
|
21
|
+
f(r.throw(e));
|
22
|
+
} catch (s) {
|
23
|
+
u(s);
|
24
24
|
}
|
25
25
|
}
|
26
|
-
function
|
27
|
-
e.done ? o(e.value) :
|
26
|
+
function f(e) {
|
27
|
+
e.done ? o(e.value) : a(e.value).then(p, m);
|
28
28
|
}
|
29
|
-
|
29
|
+
f((r = r.apply(t, i || [])).next());
|
30
30
|
});
|
31
31
|
};
|
32
|
-
function q(
|
32
|
+
function q(t, i) {
|
33
33
|
return c(this, void 0, void 0, function* () {
|
34
|
-
const
|
35
|
-
return
|
34
|
+
const n = yield g(t.requestManager);
|
35
|
+
return d({ format: "uint" }, n, i);
|
36
36
|
});
|
37
37
|
}
|
38
|
-
function x(
|
38
|
+
function x(t, i) {
|
39
39
|
return c(this, void 0, void 0, function* () {
|
40
|
-
const
|
41
|
-
return
|
40
|
+
const n = yield v(t.requestManager);
|
41
|
+
return d({ format: "uint" }, n, i);
|
42
42
|
});
|
43
43
|
}
|
44
|
-
const C = (
|
45
|
-
return
|
44
|
+
const C = (t) => c(void 0, void 0, void 0, function* () {
|
45
|
+
return h(t.requestManager);
|
46
46
|
});
|
47
47
|
export {
|
48
48
|
q as getId,
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const w=require("../../../cross-fetch/dist/browser-ponyfill.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");const m=require("../../../web3-types/lib/esm/web3_base_provider.cjs"),r=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs"),f=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs"),v=require("../../../web3-errors/lib/esm/errors/response_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");var b=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const w=require("../../../cross-fetch/dist/browser-ponyfill.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");const m=require("../../../web3-types/lib/esm/web3_base_provider.cjs"),r=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs"),f=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs"),v=require("../../../web3-errors/lib/esm/errors/response_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");var b=function(p,e,o,n){function s(t){return t instanceof o?t:new o(function(d){d(t)})}return new(o||(o=Promise))(function(t,d){function a(i){try{u(n.next(i))}catch(l){d(l)}}function h(i){try{u(n.throw(i))}catch(l){d(l)}}function u(i){i.done?t(i.value):s(i.value).then(a,h)}u((n=n.apply(p,e||[])).next())})};class c extends m.Web3BaseProvider{constructor(e,o){if(super(),!c.validateClientUrl(e))throw new f.InvalidClientError(e);this.clientUrl=e,this.httpProviderOptions=o}static validateClientUrl(e){return typeof e=="string"?/^http(s)?:\/\//i.test(e):!1}getStatus(){throw new r.MethodNotImplementedError}supportsSubscriptions(){return!1}request(e,o){var n;return b(this,void 0,void 0,function*(){const s=Object.assign(Object.assign({},(n=this.httpProviderOptions)===null||n===void 0?void 0:n.providerOptions),o),t=yield w.default(this.clientUrl,Object.assign(Object.assign({},s),{method:"POST",headers:Object.assign(Object.assign({},s.headers),{"Content-Type":"application/json"}),body:JSON.stringify(e)}));if(!t.ok)throw new v.ResponseError(yield t.json());return yield t.json()})}on(){throw new r.MethodNotImplementedError}removeListener(){throw new r.MethodNotImplementedError}once(){throw new r.MethodNotImplementedError}removeAllListeners(){throw new r.MethodNotImplementedError}connect(){throw new r.MethodNotImplementedError}disconnect(){throw new r.MethodNotImplementedError}reset(){throw new r.MethodNotImplementedError}reconnect(){throw new r.MethodNotImplementedError}}exports.HttpProvider=c;exports.default=c;
|