@ozdao/prometheus-framework 0.2.112 → 0.2.113
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/common.schema-BFhpUXUt.js +12 -0
- package/dist/common.schema-ChBVARrs.mjs +13 -0
- package/dist/community.server.js +6 -4
- package/dist/community.server.mjs +4 -2
- package/dist/engagement.schema-CI2ifjXN.mjs +28 -0
- package/dist/engagement.schema-fdLNO2_6.js +27 -0
- package/dist/events.server.js +6 -4
- package/dist/events.server.mjs +4 -2
- package/dist/files.server.js +81 -29
- package/dist/files.server.mjs +81 -29
- package/dist/gallery.server.js +66 -39
- package/dist/gallery.server.mjs +66 -39
- package/dist/main-8APITHuW.mjs +14201 -0
- package/dist/main-8N2Jmsuk.js +2 -2
- package/dist/main-BJvlNekm.mjs +5 -5
- package/dist/main-BQisDfLk.js +2 -2
- package/dist/main-BV1Yv9Hy.js +2 -2
- package/dist/main-Bw0PvTs-.mjs +5 -5
- package/dist/main-ByCtZbHD.mjs +5 -5
- package/dist/main-CX2ISR43.mjs +5 -5
- package/dist/main-CXObXjv-.js +2 -2
- package/dist/main-CkeuHuCY.mjs +5 -5
- package/dist/main-CnfcBov2.mjs +5 -5
- package/dist/main-D50VqYhy.js +2 -2
- package/dist/main-D8gNZLSa.js +2 -2
- package/dist/main-DPsHxX0l.mjs +5 -5
- package/dist/main-DTlUA63C.mjs +5 -5
- package/dist/main-DfD5hLQo.mjs +5 -5
- package/dist/main-Dh6Zfei9.js +2 -2
- package/dist/main-DmNP-t33.mjs +5 -5
- package/dist/main-DwyUYWFX.js +2 -2
- package/dist/main-VcxO-jAt.js +92 -0
- package/dist/main-cffh4bbv.js +2 -2
- package/dist/main-pGo7JpSP.js +2 -2
- package/dist/main.css +1 -1
- package/dist/metadata.schema-6slGhpQS.js +40 -0
- package/dist/metadata.schema-CK5e2O3f.mjs +41 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +410 -407
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +469 -456
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/accounts.js +5 -2
- package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/index.js +45 -42
- package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/version.js +1 -1
- package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/web3.js +40 -37
- package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_config.js +28 -18
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +56 -53
- 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 +100 -87
- package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/error_codes.js +97 -95
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +8 -8
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +20 -20
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +4 -4
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +2 -2
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +33 -27
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +33 -12
- 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 +183 -179
- 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 +10 -10
- 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 +45 -44
- 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 +59 -57
- 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 +43 -43
- 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 +31 -31
- 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 +26 -26
- 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 +53 -51
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +25 -23
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +103 -101
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +2 -2
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +159 -156
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +11 -8
- package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/index.js +3 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +5 -2
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +19 -16
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +5 -2
- 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 +50 -47
- package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/net.js +27 -27
- package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/converters.js +100 -83
- package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/formatter.js +123 -104
- package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/utils.js +21 -21
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +10 -10
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +30 -28
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +56 -59
- package/dist/organizations.server.mjs +56 -59
- package/dist/products.server.js +1 -1
- package/dist/products.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +17 -17
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +4 -4
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +33 -30
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -9
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.js +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +165 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +22 -19
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +132 -64
- package/dist/prometheus-framework/src/components/Feed/Feed.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue2.js +1 -0
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +9 -9
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +12 -12
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +16 -16
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +14 -13
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.js +8 -8
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +29 -36
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +10 -10
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +26 -26
- 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 +14 -14
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +6 -6
- 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 +45 -45
- 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 +13 -13
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +19 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.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 +213 -213
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +23 -23
- 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 +9 -9
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +8 -8
- 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 +167 -202
- 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 +73 -165
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +3 -47
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.js +75 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +96 -77
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +27 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -19
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +10 -4
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.js +59 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +80 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.js +8 -6
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +21 -45
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +36 -36
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +53 -53
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +33 -33
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +10 -10
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/applications.js +37 -0
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +11 -11
- 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/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +16 -16
- 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 +41 -41
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +16 -16
- 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 +36 -36
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +20 -20
- 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 +12 -12
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +33 -34
- 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 +16 -16
- 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 +15 -15
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +8 -8
- 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 +8 -8
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +9 -9
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +22 -22
- 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 +6 -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 +8 -8
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +51 -56
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +4 -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 +32 -32
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +28 -30
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +30 -26
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +34 -34
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +41 -41
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.js +19 -19
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +13 -10
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/queryProcessor-BJoJAetd.mjs +162 -0
- package/dist/queryProcessor-DWf9tsis.js +161 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/dist/web-TGdVOTnw.js +1 -0
- package/dist/web-_W9a_nWD.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +1 -1
- package/src/components/AskToLogin/AskToLogin.vue +1 -1
- package/src/components/Block/Block.vue +1 -1
- package/src/components/Checkbox/Checkbox.vue +40 -43
- package/src/components/Chips/Chips.vue +2 -2
- package/src/components/DatePicker/Calendar.vue +29 -31
- package/src/components/Dropdown/Dropdown.vue +5 -11
- package/src/components/Feed/Feed.vue +98 -15
- package/src/components/FieldTags/BlockTags.vue +3 -3
- package/src/components/FieldTags/FieldTags.vue +1 -1
- package/src/components/FieldTags/vue-tags-input.scss +1 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/LocationSelection/LocationSelection.vue +5 -30
- package/src/components/Map/LoaderGMaps.js +66 -0
- package/src/components/Map/Map.vue +2 -1
- package/src/components/Marquee/Marquee.vue +1 -1
- package/src/components/Radio/Radio.vue +36 -13
- package/src/configurator/components/pages/Styles.vue +1 -1
- package/src/modules/auth/components/layouts/Auth.vue +1 -1
- package/src/modules/auth/components/pages/EnterCode.vue +4 -4
- package/src/modules/auth/components/pages/EnterPassword.vue +2 -2
- package/src/modules/auth/components/pages/Invite.vue +2 -2
- package/src/modules/auth/components/pages/ResetPassword.vue +3 -3
- package/src/modules/auth/components/pages/SignIn.vue +4 -4
- package/src/modules/auth/components/pages/SignUp.vue +3 -3
- package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
- package/src/modules/backoffice/components/admin/Pages.vue +1 -1
- package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/Users.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +3 -3
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/layouts/Community.vue +2 -2
- package/src/modules/community/components/pages/BlogPost.vue +2 -2
- package/src/modules/community/components/pages/CreateBlogPost.vue +4 -4
- package/src/modules/community/components/sections/Comments.vue +2 -2
- package/src/modules/community/components/sections/Feed.vue +1 -1
- package/src/modules/community/components/sections/HotPosts.vue +1 -1
- package/src/modules/constructor/components/elements/Image.vue +1 -1
- package/src/modules/constructor/components/elements/Video.vue +2 -2
- package/src/modules/events/components/blocks/CardEvent.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +32 -32
- package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
- package/src/modules/events/components/pages/Event.vue +3 -3
- package/src/modules/events/components/pages/Events.vue +4 -3
- package/src/modules/events/components/sections/Feed.vue +3 -3
- package/src/modules/events/components/sections/List.vue +2 -2
- package/src/modules/files/controllers/files.controller.js +8 -6
- package/src/modules/files/middlewares/server/middlewareBusboy.js +79 -14
- package/src/modules/files/routes/files.routes.js +11 -9
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +158 -355
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +26 -244
- package/src/modules/gallery/controllers/gallery.controller.js +57 -38
- package/src/modules/gallery/models/photo.model.js +20 -11
- package/src/modules/gallery/routes/gallery.routes.js +3 -3
- package/src/modules/gallery/store/gallery.js +3 -78
- package/src/modules/globals/components/blocks/BlockSearch.vue +1 -1
- package/src/modules/globals/components/blocks/BlockSorting.vue +77 -0
- package/src/modules/globals/components/blocks/CardHeader.vue +27 -25
- package/src/modules/globals/components/elements/ButtonDate.vue +66 -0
- package/src/modules/globals/components/elements/ButtonSort.vue +41 -0
- package/src/modules/globals/components/layouts/Client.vue +273 -0
- package/src/{components/Footer → modules/globals/components/partials}/Footer.vue +1 -1
- package/src/{components/Header → modules/globals/components/partials}/Header.vue +98 -84
- package/src/modules/globals/controllers/utils/queryProcessor.js +3 -3
- package/src/modules/globals/models/common.schema.js +1 -1
- package/src/modules/globals/services/globals.store.js +11 -6
- package/src/modules/globals/store/globals.js +12 -10
- package/src/modules/icons/logos/Logotype.vue +23 -19
- package/src/modules/icons/navigation/IconCalendar.vue +18 -0
- package/src/modules/icons/navigation/IconFilter.vue +18 -0
- package/src/modules/icons/navigation/IconSearch.vue +1 -3
- package/src/modules/icons/navigation/IconSort.vue +21 -0
- package/src/modules/landing/components/pages/Home.vue +4 -4
- package/src/modules/landing/components/sections/FeatureSection.vue +5 -5
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -2
- package/src/modules/landing/components/sections/SectionFeature.vue +2 -2
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
- package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
- package/src/modules/{orders → landing}/components/sections/SubscribeNewsletter.vue +0 -2
- package/src/modules/landing/components/sections/WhatIsWDRSection.vue +6 -6
- package/src/modules/landing/landing.client.js +2 -0
- package/src/modules/landing/router/landing.js +1 -1
- package/src/modules/legal/components/pages/Legal.vue +2 -2
- package/src/modules/legal/components/pages/legal/Cookies.vue +1 -1
- package/src/modules/legal/components/pages/legal/EULA.vue +1 -1
- package/src/modules/legal/components/pages/legal/Privacy.vue +1 -1
- package/src/modules/legal/components/pages/legal/Terms.vue +1 -1
- package/src/modules/marketplace/components/layouts/Marketplace.vue +37 -49
- package/src/modules/marketplace/components/pages/Catalog.vue +43 -131
- package/src/modules/marketplace/components/sections/Filters.vue +63 -115
- package/src/modules/marketplace/store/marketplace.js +22 -167
- package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +1 -1
- package/src/modules/orders/components/blocks/CardOrderItem.vue +6 -6
- package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
- package/src/modules/orders/components/blocks/StatusHistory.vue +1 -1
- package/src/modules/orders/components/pages/Order.vue +8 -8
- package/src/modules/orders/components/pages/OrderBackoffice.vue +7 -7
- package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
- package/src/modules/orders/components/pages/Orders.vue +3 -5
- package/src/modules/orders/components/partials/ShopCart.vue +5 -1
- package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
- package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
- package/src/modules/orders/store/applications.js +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
- package/src/modules/organizations/components/pages/Department.vue +3 -3
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +6 -6
- package/src/modules/organizations/components/pages/Members.vue +4 -4
- package/src/modules/organizations/components/pages/Organization.vue +3 -3
- package/src/modules/organizations/components/pages/OrganizationCreate.vue +2 -2
- package/src/modules/organizations/components/pages/OrganizationDetails.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +9 -9
- package/src/modules/organizations/components/pages/OrganizationPeople.vue +1 -1
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- package/src/modules/organizations/components/sections/DetailsTab.vue +4 -4
- package/src/modules/organizations/components/sections/Feed.vue +2 -2
- package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
- package/src/modules/organizations/components/sections/Publics.vue +1 -1
- package/src/modules/organizations/controllers/organizations.controller.js +103 -93
- package/src/modules/organizations/models/organization.model.js +10 -7
- package/src/modules/organizations/store/organizations.js +3 -34
- package/src/modules/products/components/blocks/CardPosition.vue +2 -2
- package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
- package/src/modules/products/components/pages/Categories.vue +1 -1
- package/src/modules/products/components/pages/EditLeftover.vue +1 -1
- package/src/modules/products/components/pages/Leftovers.vue +4 -4
- package/src/modules/products/components/pages/Product.vue +1 -5
- package/src/modules/products/components/pages/ProductEdit.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +2 -2
- package/src/modules/products/components/sections/EditProductInfo.vue +1 -1
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +67 -74
- package/src/modules/products/components/sections/MenuSection.vue +2 -2
- package/src/modules/products/components/sections/PopularProducts.vue +2 -2
- package/src/modules/products/components/sections/SectionProduct.vue +3 -3
- package/src/modules/products/products.client.js +0 -2
- package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
- package/src/modules/spots/components/blocks/CardSpot.vue +9 -1
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
- package/src/modules/spots/components/layouts/Spots.vue +0 -2
- package/src/modules/spots/components/pages/Spot.vue +4 -4
- package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
- package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
- package/src/modules/spots/components/sections/Places.vue +1 -1
- package/src/modules/users/components/pages/Profile.vue +5 -5
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/modules/users/components/pages/ProfileComments.vue +1 -1
- package/src/modules/users/components/pages/ProfileEdit.vue +11 -11
- package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
- package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
- package/src/modules/users/components/sections/FeaturedUsers.vue +3 -3
- package/src/modules/wallet/views/components/pages/Payments.vue +2 -2
- package/src/modules/wallet/views/components/pages/Wallet.vue +3 -3
- package/src/styles/base/borders.scss +4 -0
- package/src/styles/base/shadow_transitions_hover_refactor.scss +4 -0
- package/src/styles/config.scss +15 -9
- package/src/styles/layout.scss +37 -8
- package/src/styles/typography.scss +24 -24
- package/src/modules/products/components/sections/SortProducts.vue +0 -74
- /package/src/{components/Navigation → modules/globals/components/partials}/Navigation.vue +0 -0
@@ -17,46 +17,46 @@ import "../../../@ethereumjs/rlp/dist/index.js";
|
|
17
17
|
import "../../../web3-eth-accounts/lib/esm/tx/types.js";
|
18
18
|
import { isSupportedProvider as f } from "./utils.js";
|
19
19
|
import { Web3BatchRequest as M } from "./web3_batch_request.js";
|
20
|
-
import { Web3Config as
|
20
|
+
import { Web3Config as w, Web3ConfigEvent as g } from "./web3_config.js";
|
21
21
|
import { Web3RequestManager as p } from "./web3_request_manager.js";
|
22
22
|
import { Web3SubscriptionManager as l } from "./web3_subscription_manager.js";
|
23
|
-
import { isNullish as
|
24
|
-
var b = function(m,
|
23
|
+
import { isNullish as _ } from "../../../web3-utils/lib/esm/validation.js";
|
24
|
+
var b = function(m, e, r, i) {
|
25
25
|
function s(t) {
|
26
|
-
return t instanceof
|
27
|
-
|
26
|
+
return t instanceof r ? t : new r(function(o) {
|
27
|
+
o(t);
|
28
28
|
});
|
29
29
|
}
|
30
|
-
return new (
|
31
|
-
function u(
|
30
|
+
return new (r || (r = Promise))(function(t, o) {
|
31
|
+
function u(n) {
|
32
32
|
try {
|
33
|
-
a(i.next(
|
34
|
-
} catch (
|
35
|
-
|
33
|
+
a(i.next(n));
|
34
|
+
} catch (d) {
|
35
|
+
o(d);
|
36
36
|
}
|
37
37
|
}
|
38
|
-
function c(
|
38
|
+
function c(n) {
|
39
39
|
try {
|
40
|
-
a(i.throw(
|
41
|
-
} catch (
|
42
|
-
|
40
|
+
a(i.throw(n));
|
41
|
+
} catch (d) {
|
42
|
+
o(d);
|
43
43
|
}
|
44
44
|
}
|
45
|
-
function a(
|
46
|
-
|
45
|
+
function a(n) {
|
46
|
+
n.done ? t(n.value) : s(n.value).then(u, c);
|
47
47
|
}
|
48
|
-
a((i = i.apply(m,
|
48
|
+
a((i = i.apply(m, e || [])).next());
|
49
49
|
});
|
50
50
|
};
|
51
|
-
class
|
52
|
-
constructor(
|
53
|
-
var
|
54
|
-
if (super(), this.providers = p.providers,
|
55
|
-
this._requestManager = new p(
|
51
|
+
class h extends w {
|
52
|
+
constructor(e) {
|
53
|
+
var r;
|
54
|
+
if (super(), this.providers = p.providers, _(e) || typeof e == "string" && e.trim() !== "" || f(e)) {
|
55
|
+
this._requestManager = new p(e), this._subscriptionManager = new l(this._requestManager, {});
|
56
56
|
return;
|
57
57
|
}
|
58
|
-
const { config: i, provider: s, requestManager: t, subscriptionManager:
|
59
|
-
this.setConfig(i ?? {}), this._requestManager = t ?? new p(s, (
|
58
|
+
const { config: i, provider: s, requestManager: t, subscriptionManager: o, registeredSubscriptions: u, accountProvider: c, wallet: a, requestManagerMiddleware: n } = e;
|
59
|
+
this.setConfig(i ?? {}), this._requestManager = t ?? new p(s, (r = i == null ? void 0 : i.enableExperimentalFeatures) === null || r === void 0 ? void 0 : r.useSubscriptionWhenCheckingBlockTimeout, n), o ? this._subscriptionManager = o : this._subscriptionManager = new l(this.requestManager, u ?? {}), c && (this._accountProvider = c), a && (this._wallet = a);
|
60
60
|
}
|
61
61
|
get requestManager() {
|
62
62
|
return this._requestManager;
|
@@ -74,17 +74,17 @@ class d extends _ {
|
|
74
74
|
return this._accountProvider;
|
75
75
|
}
|
76
76
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
77
|
-
static fromContextObject(...
|
78
|
-
return new this(...
|
77
|
+
static fromContextObject(...e) {
|
78
|
+
return new this(...e.reverse());
|
79
79
|
}
|
80
80
|
getContextObject() {
|
81
|
-
var
|
81
|
+
var e;
|
82
82
|
return {
|
83
83
|
config: this.config,
|
84
84
|
provider: this.provider,
|
85
85
|
requestManager: this.requestManager,
|
86
86
|
subscriptionManager: this.subscriptionManager,
|
87
|
-
registeredSubscriptions: (
|
87
|
+
registeredSubscriptions: (e = this.subscriptionManager) === null || e === void 0 ? void 0 : e.registeredSubscriptions,
|
88
88
|
providers: this.providers,
|
89
89
|
wallet: this.wallet,
|
90
90
|
accountProvider: this.accountProvider
|
@@ -95,8 +95,8 @@ class d extends _ {
|
|
95
95
|
* and link it to current context. This can be used to initiate a global context object
|
96
96
|
* and then use it to create new objects of any type extended by `Web3Context`.
|
97
97
|
*/
|
98
|
-
use(
|
99
|
-
const i = new
|
98
|
+
use(e, ...r) {
|
99
|
+
const i = new e(...r, this.getContextObject());
|
100
100
|
return this.on(g.CONFIG_CHANGE, (s) => {
|
101
101
|
i.setConfig({ [s.name]: s.newValue });
|
102
102
|
}), i;
|
@@ -104,19 +104,19 @@ class d extends _ {
|
|
104
104
|
/**
|
105
105
|
* Link current context to another context.
|
106
106
|
*/
|
107
|
-
link(
|
108
|
-
this.setConfig(
|
109
|
-
this.setConfig({ [
|
107
|
+
link(e) {
|
108
|
+
this.setConfig(e.config), this._requestManager = e.requestManager, this.provider = e.provider, this._subscriptionManager = e.subscriptionManager, this._wallet = e.wallet, this._accountProvider = e._accountProvider, e.on(g.CONFIG_CHANGE, (r) => {
|
109
|
+
this.setConfig({ [r.name]: r.newValue });
|
110
110
|
});
|
111
111
|
}
|
112
112
|
// eslint-disable-next-line no-use-before-define
|
113
|
-
registerPlugin(
|
114
|
-
if (this[
|
115
|
-
throw new v(
|
116
|
-
const
|
117
|
-
[
|
113
|
+
registerPlugin(e) {
|
114
|
+
if (this[e.pluginNamespace] !== void 0)
|
115
|
+
throw new v(e.pluginNamespace);
|
116
|
+
const r = {
|
117
|
+
[e.pluginNamespace]: e
|
118
118
|
};
|
119
|
-
e
|
119
|
+
r[e.pluginNamespace].link(this), Object.assign(this, r);
|
120
120
|
}
|
121
121
|
/**
|
122
122
|
* Will return the current provider.
|
@@ -154,8 +154,8 @@ class d extends _ {
|
|
154
154
|
* }
|
155
155
|
* ```
|
156
156
|
*/
|
157
|
-
set provider(
|
158
|
-
this.requestManager.setProvider(
|
157
|
+
set provider(e) {
|
158
|
+
this.requestManager.setProvider(e);
|
159
159
|
}
|
160
160
|
/**
|
161
161
|
* Will return the current provider. (The same as `provider`)
|
@@ -192,8 +192,8 @@ class d extends _ {
|
|
192
192
|
* }
|
193
193
|
* ```
|
194
194
|
*/
|
195
|
-
set currentProvider(
|
196
|
-
this.requestManager.setProvider(
|
195
|
+
set currentProvider(e) {
|
196
|
+
this.requestManager.setProvider(e);
|
197
197
|
}
|
198
198
|
/**
|
199
199
|
* Will return the givenProvider if available.
|
@@ -202,7 +202,7 @@ class d extends _ {
|
|
202
202
|
*/
|
203
203
|
// eslint-disable-next-line class-methods-use-this
|
204
204
|
get givenProvider() {
|
205
|
-
return
|
205
|
+
return h.givenProvider;
|
206
206
|
}
|
207
207
|
/**
|
208
208
|
* Will set the provider.
|
@@ -210,8 +210,11 @@ class d extends _ {
|
|
210
210
|
* @param provider - {@link SupportedProviders} The provider to set
|
211
211
|
* @returns Returns true if the provider was set
|
212
212
|
*/
|
213
|
-
setProvider(
|
214
|
-
return this.provider =
|
213
|
+
setProvider(e) {
|
214
|
+
return this.provider = e, !0;
|
215
|
+
}
|
216
|
+
setRequestManagerMiddleware(e) {
|
217
|
+
this.requestManager.setMiddleware(e);
|
215
218
|
}
|
216
219
|
/**
|
217
220
|
* Will return the {@link Web3BatchRequest} constructor.
|
@@ -221,22 +224,22 @@ class d extends _ {
|
|
221
224
|
}
|
222
225
|
/**
|
223
226
|
* This method allows extending the web3 modules.
|
224
|
-
* Note: This method is only for backward compatibility, and It is recommended to use Web3 v4 Plugin feature for extending web3.js functionality if you are developing
|
227
|
+
* Note: This method is only for backward compatibility, and It is recommended to use Web3 v4 Plugin feature for extending web3.js functionality if you are developing something new.
|
225
228
|
*/
|
226
|
-
extend(
|
227
|
-
var
|
228
|
-
return
|
229
|
+
extend(e) {
|
230
|
+
var r;
|
231
|
+
return e.property && !this[e.property] && (this[e.property] = {}), (r = e.methods) === null || r === void 0 || r.forEach((i) => {
|
229
232
|
const s = (...t) => b(this, void 0, void 0, function* () {
|
230
233
|
return this.requestManager.send({
|
231
234
|
method: i.call,
|
232
235
|
params: t
|
233
236
|
});
|
234
237
|
});
|
235
|
-
|
238
|
+
e.property ? this[e.property][i.name] = s : this[i.name] = s;
|
236
239
|
}), this;
|
237
240
|
}
|
238
241
|
}
|
239
|
-
|
242
|
+
h.providers = p.providers;
|
240
243
|
export {
|
241
|
-
|
244
|
+
h as Web3Context
|
242
245
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("../../../web3-errors/lib/esm/errors/contract_errors.cjs"),E=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs"),R=require("../../../web3-errors/lib/esm/errors/response_errors.cjs"),w=require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs"),g=require("../../../web3-providers-http/lib/esm/index.cjs"),b=require("../../../web3-providers-ws/lib/esm/index.cjs"),a=require("./utils.cjs"),m=require("./web3_event_emitter.cjs"),y=require("../../../web3-utils/lib/esm/promise_helpers.cjs"),i=require("../../../web3-utils/lib/esm/json_rpc.cjs"),h=require("../../../web3-utils/lib/esm/validation.cjs");var _=function(f,r,e,s){function t(o){return o instanceof e?o:new e(function(n){n(o)})}return new(e||(e=Promise))(function(o,n){function d(u){try{c(s.next(u))}catch(l){n(l)}}function p(u){try{c(s.throw(u))}catch(l){n(l)}}function c(u){u.done?o(u.value):t(u.value).then(d,p)}c((s=s.apply(f,r||[])).next())})};exports.Web3RequestManagerEvent=void 0;(function(f){f.PROVIDER_CHANGED="PROVIDER_CHANGED",f.BEFORE_PROVIDER_CHANGE="BEFORE_PROVIDER_CHANGE"})(exports.Web3RequestManagerEvent||(exports.Web3RequestManagerEvent={}));const q={HttpProvider:g.default,WebsocketProvider:b.default};class v extends m.Web3EventEmitter{constructor(r,e,s){super(),h.isNullish(r)||this.setProvider(r),this.useRpcCallSpecification=e,h.isNullish(s)||(this.middleware=s)}static get providers(){return q}get provider(){return this._provider}get providers(){return q}setProvider(r){let e;if(r&&typeof r=="string"&&this.providers)if(/^http(s)?:\/\//i.test(r))e=new this.providers.HttpProvider(r);else if(/^ws(s)?:\/\//i.test(r))e=new this.providers.WebsocketProvider(r);else throw new E.ProviderError(`Can't autodetect provider for "${r}"`);else h.isNullish(r)?e=void 0:e=r;return this.emit(exports.Web3RequestManagerEvent.BEFORE_PROVIDER_CHANGE,this._provider),this._provider=e,this.emit(exports.Web3RequestManagerEvent.PROVIDER_CHANGED,this._provider),!0}setMiddleware(r){this.middleware=r}send(r){return _(this,void 0,void 0,function*(){const e=Object.assign({},r);let s=yield this._sendRequest(e);if(h.isNullish(this.middleware)||(s=yield this.middleware.processResponse(s)),i.isResponseWithResult(s))return s.result;throw new R.ResponseError(s)})}sendBatch(r){return _(this,void 0,void 0,function*(){return yield this._sendRequest(r)})}_sendRequest(r){return _(this,void 0,void 0,function*(){const{provider:e}=this;if(h.isNullish(e))throw new E.ProviderError("Provider not available. Use `.setProvider` or `.provider=` to initialize the provider.");let s=i.isBatchRequest(r)?i.toBatchPayload(r):i.toPayload(r);if(h.isNullish(this.middleware)||(s=yield this.middleware.processRequest(s)),a.isWeb3Provider(e)){let t;try{t=yield e.request(s)}catch(o){t=o}return this._processJsonRpcResponse(s,t,{legacy:!1,error:!1})}if(a.isEIP1193Provider(e))return e.request(s).then(t=>this._processJsonRpcResponse(s,t,{legacy:!0,error:!1})).catch(t=>this._processJsonRpcResponse(s,t,{legacy:!0,error:!0}));if(a.isLegacyRequestProvider(e))return new Promise((t,o)=>{const n=c=>{o(this._processJsonRpcResponse(s,c,{legacy:!0,error:!0}))},d=c=>t(this._processJsonRpcResponse(s,c,{legacy:!0,error:!1})),p=e.request(s,(c,u)=>c?n(c):d(u));y.isPromise(p)&&p.then(d).catch(u=>{try{const l=this._processJsonRpcResponse(s,u,{legacy:!0,error:!0});o(l)}catch(l){o(l)}})});if(a.isLegacySendProvider(e))return new Promise((t,o)=>{e.send(s,(n,d)=>{if(n)return o(this._processJsonRpcResponse(s,n,{legacy:!0,error:!0}));if(h.isNullish(d))throw new R.ResponseError({},'Got a "nullish" response from provider.');return t(this._processJsonRpcResponse(s,d,{legacy:!0,error:!1}))})});if(a.isLegacySendAsyncProvider(e))return e.sendAsync(s).then(t=>this._processJsonRpcResponse(s,t,{legacy:!0,error:!1})).catch(t=>this._processJsonRpcResponse(s,t,{legacy:!0,error:!0}));throw new E.ProviderError("Provider does not have a request or send method to use.")})}_processJsonRpcResponse(r,e,{legacy:s,error:t}){if(h.isNullish(e))return this._buildResponse(r,null,t);if(i.isResponseWithError(e)){if(this.useRpcCallSpecification&&i.isResponseRpcError(e)){const o=e;if(w.rpcErrorsMap.get(o.error.code)){const n=w.rpcErrorsMap.get(o.error.code).error;throw new n(o)}else throw new w.RpcError(o)}else if(!v._isReverted(e))throw new R.InvalidResponseError(e,r)}if(i.isResponseWithResult(e))return e;if(e instanceof Error)throw v._isReverted(e),e;if(!s&&i.isBatchRequest(r)&&i.isBatchResponse(e)||s&&!t&&i.isBatchRequest(r))return e;if(s&&t&&i.isBatchRequest(r))throw e;if(s&&!i.isResponseWithError(e)&&!i.isResponseWithResult(e))return this._buildResponse(r,e,t);throw i.isBatchRequest(r)&&!Array.isArray(e)?new R.ResponseError(e,"Got normal response for a batch request."):!i.isBatchRequest(r)&&Array.isArray(e)?new R.ResponseError(e,"Got batch response for a normal request."):(i.isResponseWithError(e)||i.isResponseWithResult(e))&&!i.isBatchRequest(r)&&e.id&&r.id!==e.id?new R.InvalidResponseError(e):new R.ResponseError(e,"Invalid response")}static _isReverted(r){let e;if(i.isResponseWithError(r)?e=r.error:r instanceof Error&&(e=r),e!=null&&e.message.includes("revert"))throw new P.ContractExecutionError(e);return!1}_buildResponse(r,e,s){const t={jsonrpc:"2.0",id:i.isBatchRequest(r)?r[0].id:"id"in r?r.id:null};return s?Object.assign(Object.assign({},t),{error:e}):Object.assign(Object.assign({},t),{result:e})}}exports.Web3RequestManager=v;
|
@@ -1,57 +1,57 @@
|
|
1
|
-
import { ContractExecutionError as
|
1
|
+
import { ContractExecutionError as b } from "../../../web3-errors/lib/esm/errors/contract_errors.js";
|
2
2
|
import { ProviderError as m } from "../../../web3-errors/lib/esm/errors/provider_errors.js";
|
3
|
-
import { ResponseError as
|
3
|
+
import { ResponseError as l, InvalidResponseError as P } from "../../../web3-errors/lib/esm/errors/response_errors.js";
|
4
4
|
import { rpcErrorsMap as g, RpcError as O } from "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
5
5
|
import A from "../../../web3-providers-http/lib/esm/index.js";
|
6
|
-
import
|
7
|
-
import { isWeb3Provider as
|
8
|
-
import { Web3EventEmitter as
|
6
|
+
import J from "../../../web3-providers-ws/lib/esm/index.js";
|
7
|
+
import { isWeb3Provider as C, isEIP1193Provider as q, isLegacyRequestProvider as D, isLegacySendProvider as G, isLegacySendAsyncProvider as H } from "./utils.js";
|
8
|
+
import { Web3EventEmitter as I } from "./web3_event_emitter.js";
|
9
9
|
import { isPromise as W } from "../../../web3-utils/lib/esm/promise_helpers.js";
|
10
|
-
import { isResponseWithResult as
|
10
|
+
import { isResponseWithResult as p, isBatchRequest as u, toBatchPayload as B, toPayload as N, isResponseWithError as v, isResponseRpcError as j, isBatchResponse as V } from "../../../web3-utils/lib/esm/json_rpc.js";
|
11
11
|
import { isNullish as d } from "../../../web3-utils/lib/esm/validation.js";
|
12
|
-
var E = function(R,
|
12
|
+
var E = function(R, r, e, t) {
|
13
13
|
function i(s) {
|
14
|
-
return s instanceof
|
14
|
+
return s instanceof e ? s : new e(function(o) {
|
15
15
|
o(s);
|
16
16
|
});
|
17
17
|
}
|
18
|
-
return new (
|
18
|
+
return new (e || (e = Promise))(function(s, o) {
|
19
19
|
function f(c) {
|
20
20
|
try {
|
21
21
|
n(t.next(c));
|
22
|
-
} catch (
|
23
|
-
o(
|
22
|
+
} catch (h) {
|
23
|
+
o(h);
|
24
24
|
}
|
25
25
|
}
|
26
26
|
function a(c) {
|
27
27
|
try {
|
28
28
|
n(t.throw(c));
|
29
|
-
} catch (
|
30
|
-
o(
|
29
|
+
} catch (h) {
|
30
|
+
o(h);
|
31
31
|
}
|
32
32
|
}
|
33
33
|
function n(c) {
|
34
34
|
c.done ? s(c.value) : i(c.value).then(f, a);
|
35
35
|
}
|
36
|
-
n((t = t.apply(R,
|
36
|
+
n((t = t.apply(R, r || [])).next());
|
37
37
|
});
|
38
|
-
},
|
38
|
+
}, w;
|
39
39
|
(function(R) {
|
40
40
|
R.PROVIDER_CHANGED = "PROVIDER_CHANGED", R.BEFORE_PROVIDER_CHANGE = "BEFORE_PROVIDER_CHANGE";
|
41
|
-
})(
|
42
|
-
const
|
41
|
+
})(w || (w = {}));
|
42
|
+
const y = {
|
43
43
|
HttpProvider: A,
|
44
|
-
WebsocketProvider:
|
44
|
+
WebsocketProvider: J
|
45
45
|
};
|
46
|
-
class _ extends
|
47
|
-
constructor(e,
|
48
|
-
super(), d(
|
46
|
+
class _ extends I {
|
47
|
+
constructor(r, e, t) {
|
48
|
+
super(), d(r) || this.setProvider(r), this.useRpcCallSpecification = e, d(t) || (this.middleware = t);
|
49
49
|
}
|
50
50
|
/**
|
51
51
|
* Will return all available providers
|
52
52
|
*/
|
53
53
|
static get providers() {
|
54
|
-
return
|
54
|
+
return y;
|
55
55
|
}
|
56
56
|
/**
|
57
57
|
* Will return the current provider.
|
@@ -66,25 +66,28 @@ class _ extends q {
|
|
66
66
|
*/
|
67
67
|
// eslint-disable-next-line class-methods-use-this
|
68
68
|
get providers() {
|
69
|
-
return
|
69
|
+
return y;
|
70
70
|
}
|
71
71
|
/**
|
72
72
|
* Use to set provider. Provider can be a provider instance or a string.
|
73
73
|
*
|
74
74
|
* @param provider - The provider to set
|
75
75
|
*/
|
76
|
-
setProvider(
|
77
|
-
let
|
78
|
-
if (
|
79
|
-
if (/^http(s)?:\/\//i.test(
|
80
|
-
|
81
|
-
else if (/^ws(s)?:\/\//i.test(
|
82
|
-
|
76
|
+
setProvider(r) {
|
77
|
+
let e;
|
78
|
+
if (r && typeof r == "string" && this.providers)
|
79
|
+
if (/^http(s)?:\/\//i.test(r))
|
80
|
+
e = new this.providers.HttpProvider(r);
|
81
|
+
else if (/^ws(s)?:\/\//i.test(r))
|
82
|
+
e = new this.providers.WebsocketProvider(r);
|
83
83
|
else
|
84
|
-
throw new m(`Can't autodetect provider for "${
|
84
|
+
throw new m(`Can't autodetect provider for "${r}"`);
|
85
85
|
else
|
86
|
-
d(
|
87
|
-
return this.emit(
|
86
|
+
d(r) ? e = void 0 : e = r;
|
87
|
+
return this.emit(w.BEFORE_PROVIDER_CHANGE, this._provider), this._provider = e, this.emit(w.PROVIDER_CHANGED, this._provider), !0;
|
88
|
+
}
|
89
|
+
setMiddleware(r) {
|
90
|
+
this.middleware = r;
|
88
91
|
}
|
89
92
|
/**
|
90
93
|
*
|
@@ -95,12 +98,13 @@ class _ extends q {
|
|
95
98
|
* @returns The response of the request {@link ResponseType}. If there is error
|
96
99
|
* in the response, will throw an error
|
97
100
|
*/
|
98
|
-
send(
|
101
|
+
send(r) {
|
99
102
|
return E(this, void 0, void 0, function* () {
|
100
|
-
const
|
101
|
-
|
102
|
-
|
103
|
-
|
103
|
+
const e = Object.assign({}, r);
|
104
|
+
let t = yield this._sendRequest(e);
|
105
|
+
if (d(this.middleware) || (t = yield this.middleware.processResponse(t)), p(t))
|
106
|
+
return t.result;
|
107
|
+
throw new l(t);
|
104
108
|
});
|
105
109
|
}
|
106
110
|
/**
|
@@ -108,64 +112,73 @@ class _ extends q {
|
|
108
112
|
*
|
109
113
|
* @param request {@link JsonRpcBatchRequest} The batch request to send
|
110
114
|
*/
|
111
|
-
sendBatch(
|
115
|
+
sendBatch(r) {
|
112
116
|
return E(this, void 0, void 0, function* () {
|
113
|
-
return yield this._sendRequest(
|
117
|
+
return yield this._sendRequest(r);
|
114
118
|
});
|
115
119
|
}
|
116
|
-
_sendRequest(
|
120
|
+
_sendRequest(r) {
|
117
121
|
return E(this, void 0, void 0, function* () {
|
118
|
-
const { provider:
|
119
|
-
if (d(
|
122
|
+
const { provider: e } = this;
|
123
|
+
if (d(e))
|
120
124
|
throw new m("Provider not available. Use `.setProvider` or `.provider=` to initialize the provider.");
|
121
|
-
|
122
|
-
if (
|
125
|
+
let t = u(r) ? B(r) : N(r);
|
126
|
+
if (d(this.middleware) || (t = yield this.middleware.processRequest(t)), C(e)) {
|
123
127
|
let i;
|
124
128
|
try {
|
125
|
-
i = yield
|
129
|
+
i = yield e.request(t);
|
126
130
|
} catch (s) {
|
127
131
|
i = s;
|
128
132
|
}
|
129
133
|
return this._processJsonRpcResponse(t, i, { legacy: !1, error: !1 });
|
130
134
|
}
|
131
|
-
if (
|
132
|
-
return
|
135
|
+
if (q(e))
|
136
|
+
return e.request(t).then((i) => this._processJsonRpcResponse(t, i, {
|
133
137
|
legacy: !0,
|
134
138
|
error: !1
|
135
139
|
})).catch((i) => this._processJsonRpcResponse(t, i, { legacy: !0, error: !0 }));
|
136
|
-
if (
|
140
|
+
if (D(e))
|
137
141
|
return new Promise((i, s) => {
|
138
|
-
const o = (n) =>
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
+
const o = (n) => {
|
143
|
+
s(this._processJsonRpcResponse(t, n, {
|
144
|
+
legacy: !0,
|
145
|
+
error: !0
|
146
|
+
}));
|
147
|
+
}, f = (n) => i(this._processJsonRpcResponse(t, n, {
|
142
148
|
legacy: !0,
|
143
149
|
error: !1
|
144
|
-
})), a =
|
150
|
+
})), a = e.request(
|
145
151
|
t,
|
146
152
|
// a callback that is expected to be called after getting the response:
|
147
153
|
(n, c) => n ? o(n) : f(c)
|
148
154
|
);
|
149
|
-
W(a) && a.then(f).catch(
|
155
|
+
W(a) && a.then(f).catch((c) => {
|
156
|
+
try {
|
157
|
+
const h = this._processJsonRpcResponse(t, c, { legacy: !0, error: !0 });
|
158
|
+
s(h);
|
159
|
+
} catch (h) {
|
160
|
+
s(h);
|
161
|
+
}
|
162
|
+
});
|
150
163
|
});
|
151
|
-
if (
|
164
|
+
if (G(e))
|
152
165
|
return new Promise((i, s) => {
|
153
|
-
|
166
|
+
e.send(t, (o, f) => {
|
154
167
|
if (o)
|
155
168
|
return s(this._processJsonRpcResponse(t, o, {
|
156
169
|
legacy: !0,
|
157
170
|
error: !0
|
158
171
|
}));
|
159
172
|
if (d(f))
|
160
|
-
throw new
|
173
|
+
throw new l({}, 'Got a "nullish" response from provider.');
|
161
174
|
return i(this._processJsonRpcResponse(t, f, {
|
162
175
|
legacy: !0,
|
163
176
|
error: !1
|
164
177
|
}));
|
165
178
|
});
|
166
179
|
});
|
167
|
-
if (
|
168
|
-
return
|
180
|
+
if (H(e))
|
181
|
+
return e.sendAsync(t).then((i) => this._processJsonRpcResponse(t, i, { legacy: !0, error: !1 })).catch((i) => this._processJsonRpcResponse(t, i, {
|
169
182
|
legacy: !0,
|
170
183
|
error: !0
|
171
184
|
}));
|
@@ -173,60 +186,60 @@ class _ extends q {
|
|
173
186
|
});
|
174
187
|
}
|
175
188
|
// eslint-disable-next-line class-methods-use-this
|
176
|
-
_processJsonRpcResponse(
|
177
|
-
if (d(
|
189
|
+
_processJsonRpcResponse(r, e, { legacy: t, error: i }) {
|
190
|
+
if (d(e))
|
178
191
|
return this._buildResponse(
|
179
|
-
|
192
|
+
r,
|
180
193
|
// Some providers uses "null" as valid empty response
|
181
194
|
// eslint-disable-next-line no-null/no-null
|
182
195
|
null,
|
183
196
|
i
|
184
197
|
);
|
185
|
-
if (
|
186
|
-
if (this.useRpcCallSpecification && j(
|
187
|
-
const s =
|
198
|
+
if (v(e)) {
|
199
|
+
if (this.useRpcCallSpecification && j(e)) {
|
200
|
+
const s = e;
|
188
201
|
if (g.get(s.error.code)) {
|
189
202
|
const o = g.get(s.error.code).error;
|
190
203
|
throw new o(s);
|
191
204
|
} else
|
192
205
|
throw new O(s);
|
193
|
-
} else if (!_._isReverted(
|
194
|
-
throw new P(
|
206
|
+
} else if (!_._isReverted(e))
|
207
|
+
throw new P(e, r);
|
195
208
|
}
|
196
|
-
if (
|
197
|
-
return
|
198
|
-
if (
|
199
|
-
throw _._isReverted(
|
200
|
-
if (!t && u(
|
201
|
-
return
|
202
|
-
if (t && i && u(
|
203
|
-
throw
|
204
|
-
if (t && !
|
205
|
-
return this._buildResponse(
|
206
|
-
throw u(
|
209
|
+
if (p(e))
|
210
|
+
return e;
|
211
|
+
if (e instanceof Error)
|
212
|
+
throw _._isReverted(e), e;
|
213
|
+
if (!t && u(r) && V(e) || t && !i && u(r))
|
214
|
+
return e;
|
215
|
+
if (t && i && u(r))
|
216
|
+
throw e;
|
217
|
+
if (t && !v(e) && !p(e))
|
218
|
+
return this._buildResponse(r, e, i);
|
219
|
+
throw u(r) && !Array.isArray(e) ? new l(e, "Got normal response for a batch request.") : !u(r) && Array.isArray(e) ? new l(e, "Got batch response for a normal request.") : (v(e) || p(e)) && !u(r) && e.id && r.id !== e.id ? new P(e) : new l(e, "Invalid response");
|
207
220
|
}
|
208
|
-
static _isReverted(
|
209
|
-
let
|
210
|
-
if (
|
211
|
-
throw new
|
221
|
+
static _isReverted(r) {
|
222
|
+
let e;
|
223
|
+
if (v(r) ? e = r.error : r instanceof Error && (e = r), e != null && e.message.includes("revert"))
|
224
|
+
throw new b(e);
|
212
225
|
return !1;
|
213
226
|
}
|
214
227
|
// Need to use same types as _processJsonRpcResponse so have to declare as instance method
|
215
228
|
// eslint-disable-next-line class-methods-use-this
|
216
|
-
_buildResponse(
|
229
|
+
_buildResponse(r, e, t) {
|
217
230
|
const i = {
|
218
231
|
jsonrpc: "2.0",
|
219
232
|
// eslint-disable-next-line no-nested-ternary
|
220
|
-
id: u(
|
233
|
+
id: u(r) ? r[0].id : "id" in r ? r.id : (
|
221
234
|
// Have to use the null here explicitly
|
222
235
|
// eslint-disable-next-line no-null/no-null
|
223
236
|
null
|
224
237
|
)
|
225
238
|
};
|
226
|
-
return t ? Object.assign(Object.assign({}, i), { error:
|
239
|
+
return t ? Object.assign(Object.assign({}, i), { error: e }) : Object.assign(Object.assign({}, i), { result: e });
|
227
240
|
}
|
228
241
|
}
|
229
242
|
export {
|
230
243
|
_ as Web3RequestManager,
|
231
|
-
|
244
|
+
w as Web3RequestManagerEvent
|
232
245
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=100,_=101,E=201,I=202,N=203,T=204,A=205,O=206,S=207,D=
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=100,_=101,E=201,I=202,N=203,T=204,A=205,O=206,S=207,D=208,C=300,L=301,P=310,t=311,o=400,c=402,n=405,s=407,V=408,M=410,U=411,X=412,G=413,H=414,B=415,K=416,F=417,Y=418,J=419,W=420,Q=421,e=422,r=423,Z=424,i=425,l=426,u=427,a=428,b=429,d=430,g=431,y=432,f=433,j=434,m=435,p=436,v=437,h=438,k=439,q=440,w=441,x=500,z=503,$=505,RR=506,_R=507,ER=600,IR=602,NR=603,TR=604,AR=701,OR=702,SR=703,DR=704,CR=705,LR=706,PR=707,tR=709,oR=801,cR=802,nR=4001,sR=4100,VR=4200,MR=4900,UR=4901,XR=902,GR=903,HR=1001,BR=1002,KR=1003,FR=1004,YR=1005,JR=1006,WR=1008,QR=1009,eR=1010,rR=1011,ZR=1012,iR=1014,lR=1015,uR=1100,aR=1101,bR=1200,dR=-32700,gR=-32600,yR=-32601,fR=-32602,jR=-32603,mR=-32e3,pR=-32001,vR=-32002,hR=-32003,kR=-32004,qR=-32005,wR=-32006;exports.ERR_ABI_ENCODING=A;exports.ERR_CONN=x;exports.ERR_CONN_MAX_ATTEMPTS=$;exports.ERR_CONN_NOT_OPEN=z;exports.ERR_CONN_PENDING_REQUESTS=RR;exports.ERR_CONTRACT=C;exports.ERR_CONTRACT_EXECUTION_REVERTED=P;exports.ERR_CONTRACT_RESOLVER_MISSING=L;exports.ERR_CONTRACT_TX_DATA_AND_INPUT=t;exports.ERR_CORE_HARDFORK_MISMATCH=aR;exports.ERR_ENS_NETWORK_NOT_SYNCED=GR;exports.ERR_ENS_UNSUPPORTED_NETWORK=XR;exports.ERR_EXISTING_PLUGIN_NAMESPACE=O;exports.ERR_FORMATTERS=E;exports.ERR_INVALID_ADDRESS=YR;exports.ERR_INVALID_BLOCK=ZR;exports.ERR_INVALID_BOOLEAN=WR;exports.ERR_INVALID_BYTES=BR;exports.ERR_INVALID_CLIENT=IR;exports.ERR_INVALID_HEX=JR;exports.ERR_INVALID_INTEGER=lR;exports.ERR_INVALID_LARGE_VALUE=rR;exports.ERR_INVALID_METHOD_PARAMS=S;exports.ERR_INVALID_NIBBLE_WIDTH=iR;exports.ERR_INVALID_NUMBER=KR;exports.ERR_INVALID_PASSWORD=LR;exports.ERR_INVALID_PRIVATE_KEY=OR;exports.ERR_INVALID_RESPONSE=_;exports.ERR_INVALID_SIGNATURE=cR;exports.ERR_INVALID_SIZE=eR;exports.ERR_INVALID_STRING=HR;exports.ERR_INVALID_UNIT=FR;exports.ERR_INVALID_UNSIGNED_INTEGER=QR;exports.ERR_IV_LENGTH=PR;exports.ERR_KEY_DERIVATION_FAIL=DR;exports.ERR_KEY_VERSION_UNSUPPORTED=CR;exports.ERR_METHOD_NOT_IMPLEMENTED=I;exports.ERR_MULTIPLE_ERRORS=D;exports.ERR_OPERATION_ABORT=T;exports.ERR_OPERATION_TIMEOUT=N;exports.ERR_PBKDF2_ITERATIONS=tR;exports.ERR_PRIVATE_KEY_LENGTH=AR;exports.ERR_PROVIDER=ER;exports.ERR_RAW_TX_UNDEFINED=s;exports.ERR_REQ_ALREADY_SENT=_R;exports.ERR_RESPONSE=R;exports.ERR_RPC_INTERNAL_ERROR=jR;exports.ERR_RPC_INVALID_INPUT=mR;exports.ERR_RPC_INVALID_JSON=dR;exports.ERR_RPC_INVALID_METHOD=yR;exports.ERR_RPC_INVALID_PARAMS=fR;exports.ERR_RPC_INVALID_REQUEST=gR;exports.ERR_RPC_LIMIT_EXCEEDED=qR;exports.ERR_RPC_MISSING_RESOURCE=pR;exports.ERR_RPC_NOT_SUPPORTED=wR;exports.ERR_RPC_TRANSACTION_REJECTED=hR;exports.ERR_RPC_UNAVAILABLE_RESOURCE=vR;exports.ERR_RPC_UNSUPPORTED_METHOD=kR;exports.ERR_SCHEMA_FORMAT=bR;exports.ERR_SIGNATURE_FAILED=oR;exports.ERR_SUBSCRIPTION=NR;exports.ERR_TX=o;exports.ERR_TX_BLOCK_TIMEOUT=y;exports.ERR_TX_CHAIN_ID_MISMATCH=X;exports.ERR_TX_CHAIN_MISMATCH=m;exports.ERR_TX_DATA_AND_INPUT=i;exports.ERR_TX_GAS_MISMATCH=j;exports.ERR_TX_GAS_MISMATCH_INNER_ERROR=w;exports.ERR_TX_HARDFORK_MISMATCH=p;exports.ERR_TX_INVALID_CHAIN_INFO=G;exports.ERR_TX_INVALID_FEE_MARKET_GAS=F;exports.ERR_TX_INVALID_FEE_MARKET_GAS_PRICE=Y;exports.ERR_TX_INVALID_LEGACY_FEE_MARKET=J;exports.ERR_TX_INVALID_LEGACY_GAS=K;exports.ERR_TX_INVALID_NONCE_OR_CHAIN_ID=Q;exports.ERR_TX_INVALID_OBJECT=W;exports.ERR_TX_INVALID_PROPERTIES_FOR_TYPE=k;exports.ERR_TX_INVALID_RECEIVER=v;exports.ERR_TX_INVALID_SENDER=V;exports.ERR_TX_LOCAL_WALLET_NOT_AVAILABLE=b;exports.ERR_TX_MISSING_CHAIN_INFO=H;exports.ERR_TX_MISSING_CUSTOM_CHAIN=M;exports.ERR_TX_MISSING_CUSTOM_CHAIN_ID=U;exports.ERR_TX_MISSING_GAS=B;exports.ERR_TX_MISSING_GAS_INNER_ERROR=q;exports.ERR_TX_NOT_FOUND=d;exports.ERR_TX_POLLING_TIMEOUT=l;exports.ERR_TX_RECEIPT_MISSING_BLOCK_NUMBER=a;exports.ERR_TX_RECEIPT_MISSING_OR_BLOCKHASH_NULL=u;exports.ERR_TX_REVERT_TRANSACTION=c;exports.ERR_TX_REVERT_TRANSACTION_CUSTOM_ERROR=h;exports.ERR_TX_REVERT_WITHOUT_REASON=n;exports.ERR_TX_SEND_TIMEOUT=g;exports.ERR_TX_SIGNING=f;exports.ERR_TX_UNABLE_TO_POPULATE_NONCE=e;exports.ERR_TX_UNSUPPORTED_EIP_1559=r;exports.ERR_TX_UNSUPPORTED_TYPE=Z;exports.ERR_UNSUPPORTED_KDF=SR;exports.ERR_VALIDATION=uR;exports.ERR_WS_PROVIDER=TR;exports.JSONRPC_ERR_CHAIN_DISCONNECTED=UR;exports.JSONRPC_ERR_DISCONNECTED=MR;exports.JSONRPC_ERR_REJECTED_REQUEST=nR;exports.JSONRPC_ERR_UNAUTHORIZED=sR;exports.JSONRPC_ERR_UNSUPPORTED_METHOD=VR;
|