@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
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=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 q=require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");const p=require("../../../web3-types/lib/esm/data_format_types.cjs"),G=require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const A=require("../../../web3-errors/lib/esm/errors/contract_errors.cjs"),R=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");const V=require("../../../web3-validator/lib/esm/errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const O=require("../../../web3-validator/lib/esm/utils.cjs"),U=require("../../../web3-validator/lib/esm/default_validator.cjs"),F=require("../../../web3-validator/lib/esm/validation/object.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");const H=require("../../../web3-eth/lib/esm/utils/decoding.cjs");require("../../../web3-eth/lib/esm/schemas.cjs");const y=require("../../../web3-eth/lib/esm/constants.cjs"),j=require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");const P=require("../../../web3-eth/lib/esm/web3_subscriptions.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");const I=require("../../../web3-eth-abi/lib/esm/utils.cjs"),J=require("../../../web3-eth-abi/lib/esm/api/events_api.cjs"),W=require("../../../web3-eth-abi/lib/esm/api/functions_api.cjs");require("../../../web3-eth-abi/lib/esm/coders/base/number.cjs");const N=require("../../../web3-eth-abi/lib/esm/decode_contract_error_data.cjs"),E=require("./encoding.cjs"),B=require("./log_subscription.cjs"),M=require("./utils.cjs"),m=require("../../../web3-utils/lib/esm/formatter.cjs"),x=require("../../../web3-utils/lib/esm/validation.cjs"),k=require("../../../web3-utils/lib/esm/hash.cjs"),K=require("../../../web3-utils/lib/esm/converters.cjs");var T=function($,t,n,o){function r(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function d(c){try{e(o.next(c))}catch(u){s(u)}}function a(c){try{e(o.throw(c))}catch(u){s(u)}}function e(c){c.done?i(c.value):r(c.value).then(d,a)}e((o=o.apply($,t||[])).next())})};const z={logs:B.LogsSubscription,newHeads:P.NewHeadsSubscription,newBlockHeaders:P.NewHeadsSubscription};class S extends q.Web3Context{constructor(t,n,o,r,i){var s,d,a;const e=x.isContractInitOptions(n)?n:x.isContractInitOptions(o)?o:void 0;let c;M.isWeb3ContractContext(n)?c=n:M.isWeb3ContractContext(o)?c=o:c=r;let u;if(typeof n=="object"&&"provider"in n?u=n.provider:typeof o=="object"&&"provider"in o?u=o.provider:typeof r=="object"&&"provider"in r?u=r.provider:u=S.givenProvider,super(Object.assign(Object.assign({},c),{provider:u,registeredSubscriptions:z})),this.syncWithContext=!1,this._functions={},c!=null&&c.wallet&&(this._wallet=c.wallet),c!=null&&c.accountProvider&&(this._accountProvider=c.accountProvider),!F.isNullish(e)&&!F.isNullish(e.data)&&!F.isNullish(e.input)&&this.config.contractDataInputFill!=="both")throw new A.ContractTransactionDataAndInputError({data:e.data,input:e.input});this._overloadedMethodAbis=new Map;const l=m.isDataFormat(r)?r:m.isDataFormat(o)?o:i??p.DEFAULT_RETURN_FORMAT,_=typeof n=="string"?n:void 0;this.config.contractDataInputFill=(s=e==null?void 0:e.dataInputFill)!==null&&s!==void 0?s:this.config.contractDataInputFill,this._parseAndSetJsonInterface(t,l),F.isNullish(_)||this._parseAndSetAddress(_,l),this.options={address:_,jsonInterface:this._jsonInterface,gas:(d=e==null?void 0:e.gas)!==null&&d!==void 0?d:e==null?void 0:e.gasLimit,gasPrice:e==null?void 0:e.gasPrice,from:e==null?void 0:e.from,input:e==null?void 0:e.input,data:e==null?void 0:e.data},this.syncWithContext=(a=e==null?void 0:e.syncWithContext)!==null&&a!==void 0?a:!1,c instanceof q.Web3Context&&this.subscribeToContextEvents(c),Object.defineProperty(this.options,"address",{set:g=>this._parseAndSetAddress(g,l),get:()=>this._address}),Object.defineProperty(this.options,"jsonInterface",{set:g=>this._parseAndSetJsonInterface(g,l),get:()=>this._jsonInterface}),c instanceof q.Web3Context&&c.on(L.Web3ConfigEvent.CONFIG_CHANGE,g=>{this.setConfig({[g.name]:g.newValue})})}get events(){return this._events}get methods(){return this._methods}clone(){let t;return this.options.address?t=new S([...this._jsonInterface,...this._errorsInterface],this.options.address,{gas:this.options.gas,gasPrice:this.options.gasPrice,from:this.options.from,input:this.options.input,data:this.options.data,provider:this.currentProvider,syncWithContext:this.syncWithContext,dataInputFill:this.config.contractDataInputFill},this.getContextObject()):t=new S([...this._jsonInterface,...this._errorsInterface],{gas:this.options.gas,gasPrice:this.options.gasPrice,from:this.options.from,input:this.options.input,data:this.options.data,provider:this.currentProvider,syncWithContext:this.syncWithContext,dataInputFill:this.config.contractDataInputFill},this.getContextObject()),this.context&&t.subscribeToContextEvents(this.context),t}deploy(t){var n,o,r;let i=this._jsonInterface.find(u=>u.type==="constructor");i||(i={type:"constructor",stateMutability:""});const s=m.format({format:"bytes"},(n=t==null?void 0:t.input)!==null&&n!==void 0?n:this.options.input,p.DEFAULT_RETURN_FORMAT),d=m.format({format:"bytes"},(o=t==null?void 0:t.data)!==null&&o!==void 0?o:this.options.data,p.DEFAULT_RETURN_FORMAT);if((!s||s.trim()==="0x")&&(!d||d.trim()==="0x"))throw new A.Web3ContractError("contract creation without any data provided.");const a=(r=t==null?void 0:t.arguments)!==null&&r!==void 0?r:[],e=Object.assign(Object.assign({},this.options),{input:s,data:d}),c=s??d;return{arguments:a,send:u=>{const l=Object.assign({},u);return this._contractMethodDeploySend(i,a,l,e)},estimateGas:(u,l=p.DEFAULT_RETURN_FORMAT)=>T(this,void 0,void 0,function*(){const _=Object.assign({},u);return this._contractMethodEstimateGas({abi:i,params:a,returnFormat:l,options:_,contractOptions:e})}),encodeABI:()=>E.encodeMethodABI(i,a,m.format({format:"bytes"},c,p.DEFAULT_RETURN_FORMAT)),decodeData:u=>Object.assign(Object.assign({},E.decodeMethodParams(i,u.replace(c,""),!1)),{__method__:i.type})}}getPastEvents(t,n,o){var r;return T(this,void 0,void 0,function*(){const i=typeof t=="string"?t:y.ALL_EVENTS,s=typeof t!="string"&&!m.isDataFormat(t)?t:m.isDataFormat(n)?{}:n,d=m.isDataFormat(t)?t:m.isDataFormat(n)?n:o??p.DEFAULT_RETURN_FORMAT,a=i==="allEvents"||i===y.ALL_EVENTS?y.ALL_EVENTS_ABI:this._jsonInterface.find(v=>"name"in v&&v.name===i);if(!a)throw new A.Web3ContractError(`Event ${i} not found.`);const{fromBlock:e,toBlock:c,topics:u,address:l}=E.encodeEventABI(this.options,a,s??{}),_=yield j.getLogs(this,{fromBlock:e,toBlock:c,topics:u,address:l},d),g=_?_.map(v=>typeof v=="string"?v:H.decodeEventABI(a,v,this._jsonInterface,d)):[],h=(r=s==null?void 0:s.filter)!==null&&r!==void 0?r:{},f=Object.keys(h);return f.length>0?g.filter(v=>typeof v=="string"?!0:f.every(b=>{var D;if(Array.isArray(h[b]))return h[b].some(C=>String(v.returnValues[b]).toUpperCase()===String(C).toUpperCase());const w=(D=a.inputs)===null||D===void 0?void 0:D.filter(C=>C.name===b)[0];return w!=null&&w.indexed&&w.type==="string"&&k.keccak256Wrapper(h[b])===String(v.returnValues[b])?!0:String(v.returnValues[b]).toUpperCase()===String(h[b]).toUpperCase()})):g})}_parseAndSetAddress(t,n=p.DEFAULT_RETURN_FORMAT){this._address=t&&K.toChecksumAddress(m.format({format:"address"},t,n))}decodeMethodData(t){const n=t.slice(0,10),r=this._jsonInterface.filter(i=>i.type!=="error").find(i=>n===W.encodeFunctionSignature(I.jsonInterfaceMethodToString(i)));if(!r)throw new A.Web3ContractError(`The ABI for the provided method signature ${n} was not found.`);return Object.assign(Object.assign({},E.decodeMethodParams(r,t)),{__method__:I.jsonInterfaceMethodToString(r)})}_parseAndSetJsonInterface(t,n=p.DEFAULT_RETURN_FORMAT){var o,r,i,s,d;this._functions={},this._methods={},this._events={};let a=[];const e=t.filter(u=>u.type!=="error"),c=t.filter(u=>I.isAbiErrorFragment(u));for(const u of e){const l=Object.assign(Object.assign({},u),{signature:""});if(I.isAbiFunctionFragment(l)){const _=I.jsonInterfaceMethodToString(l),g=W.encodeFunctionSignature(_);l.methodNameWithInputs=_,l.signature=g,l.constant=(r=(o=l.stateMutability==="view")!==null&&o!==void 0?o:l.stateMutability==="pure")!==null&&r!==void 0?r:l.constant,l.payable=(i=l.stateMutability==="payable")!==null&&i!==void 0?i:l.payable,this._overloadedMethodAbis.set(l.name,[...(s=this._overloadedMethodAbis.get(l.name))!==null&&s!==void 0?s:[],l]);const h=(d=this._overloadedMethodAbis.get(l.name))!==null&&d!==void 0?d:[],f=this._createContractMethod(h,c),v=this._createContractMethod(h,c,!0);this._functions[_]={signature:g,method:v},this._methods[l.name]=f,this._methods[_]=v,this._methods[g]=v}else if(I.isAbiEventFragment(l)){const _=I.jsonInterfaceMethodToString(l),g=J.encodeEventSignature(_),h=this._createContractEvent(l,n);l.signature=g,(!(_ in this._events)||l.name==="bound")&&(this._events[_]=h),this._events[l.name]=h,this._events[g]=h}a=[...a,l]}this._events.allEvents=this._createContractEvent(y.ALL_EVENTS_ABI,n),this._jsonInterface=[...a],this._errorsInterface=c}_getAbiParams(t,n){var o;try{return O.transformJsonDataToAbiFormat((o=t.inputs)!==null&&o!==void 0?o:[],n)}catch(r){throw new A.Web3ContractError(`Invalid parameters for method ${t.name}: ${r.message}`)}}_createContractMethod(t,n,o=!1){const r=t[t.length-1];return(...i)=>{var s,d,a;let e;const c=(d=o?(s=this._overloadedMethodAbis.get(r.name))===null||s===void 0?void 0:s.filter(h=>h.signature===r.signature):this._overloadedMethodAbis.get(r.name))!==null&&d!==void 0?d:[];let u=c[0];const l=n,_=c.filter(h=>{var f;return((f=h.inputs)!==null&&f!==void 0?f:[]).length===i.length});if(c.length===1||_.length===0)e=this._getAbiParams(u,i),U.validator.validate((a=r.inputs)!==null&&a!==void 0?a:[],e);else{const h=[],f=[];for(const v of _)try{e=this._getAbiParams(v,i),U.validator.validate(v.inputs,e),f.push(v)}catch(b){h.push(b)}if(f.length===1?[u]=f:f.length>1&&([u]=f,console.warn(`Multiple methods found that is compatible with the given inputs.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=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 T=require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");const W=require("../../../web3-types/lib/esm/data_format_types.cjs"),V=require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const m=require("../../../web3-errors/lib/esm/errors/contract_errors.cjs"),N=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");const U=require("../../../web3-validator/lib/esm/errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const H=require("../../../web3-validator/lib/esm/utils.cjs"),x=require("../../../web3-validator/lib/esm/default_validator.cjs"),w=require("../../../web3-validator/lib/esm/validation/object.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");const J=require("../../../web3-eth/lib/esm/utils/decoding.cjs");require("../../../web3-eth/lib/esm/schemas.cjs");const q=require("../../../web3-eth/lib/esm/constants.cjs"),S=require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");const L=require("../../../web3-eth/lib/esm/web3_subscriptions.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs");require("../../../web3-eth/lib/esm/utils/try_send_transaction.cjs");require("../../../web3-eth/lib/esm/utils/send_tx_helper.cjs");const E=require("../../../web3-eth-abi/lib/esm/utils.cjs"),k=require("../../../web3-eth-abi/lib/esm/api/events_api.cjs"),B=require("../../../web3-eth-abi/lib/esm/api/functions_api.cjs");require("../../../web3-eth-abi/lib/esm/coders/base/number.cjs");const D=require("../../../web3-eth-abi/lib/esm/decode_contract_error_data.cjs"),A=require("./encoding.cjs"),$=require("./log_subscription.cjs"),j=require("./utils.cjs"),_=require("../../../web3-utils/lib/esm/formatter.cjs"),R=require("../../../web3-utils/lib/esm/validation.cjs"),K=require("../../../web3-utils/lib/esm/hash.cjs"),z=require("../../../web3-utils/lib/esm/converters.cjs");var I=function(G,t,n,o){function r(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function d(c){try{e(o.next(c))}catch(u){s(u)}}function a(c){try{e(o.throw(c))}catch(u){s(u)}}function e(c){c.done?i(c.value):r(c.value).then(d,a)}e((o=o.apply(G,t||[])).next())})};const Q={logs:$.LogsSubscription,newHeads:L.NewHeadsSubscription,newBlockHeaders:L.NewHeadsSubscription};class C extends T.Web3Context{constructor(t,n,o,r,i){var s,d,a;const e=R.isContractInitOptions(n)?n:R.isContractInitOptions(o)?o:void 0;let c;j.isWeb3ContractContext(n)?c=n:j.isWeb3ContractContext(o)?c=o:c=r;let u;if(typeof n=="object"&&"provider"in n?u=n.provider:typeof o=="object"&&"provider"in o?u=o.provider:typeof r=="object"&&"provider"in r?u=r.provider:u=C.givenProvider,super(Object.assign(Object.assign({},c),{provider:u,registeredSubscriptions:Q})),this.syncWithContext=!1,this._functions={},c!=null&&c.wallet&&(this._wallet=c.wallet),c!=null&&c.accountProvider&&(this._accountProvider=c.accountProvider),!w.isNullish(e)&&!w.isNullish(e.data)&&!w.isNullish(e.input)&&this.config.contractDataInputFill!=="both")throw new m.ContractTransactionDataAndInputError({data:e.data,input:e.input});this._overloadedMethodAbis=new Map;const l=_.isDataFormat(r)?r:_.isDataFormat(o)?o:i??this.defaultReturnFormat,g=typeof n=="string"?n:void 0;this.config.contractDataInputFill=(s=e==null?void 0:e.dataInputFill)!==null&&s!==void 0?s:this.config.contractDataInputFill,this._parseAndSetJsonInterface(t,l),this.defaultReturnFormat!==l&&(this.defaultReturnFormat=l),w.isNullish(g)||this._parseAndSetAddress(g,l),this.options={address:g,jsonInterface:this._jsonInterface,gas:(d=e==null?void 0:e.gas)!==null&&d!==void 0?d:e==null?void 0:e.gasLimit,gasPrice:e==null?void 0:e.gasPrice,from:e==null?void 0:e.from,input:e==null?void 0:e.input,data:e==null?void 0:e.data},this.syncWithContext=(a=e==null?void 0:e.syncWithContext)!==null&&a!==void 0?a:!1,c instanceof T.Web3Context&&this.subscribeToContextEvents(c),Object.defineProperty(this.options,"address",{set:p=>this._parseAndSetAddress(p,l),get:()=>this._address}),Object.defineProperty(this.options,"jsonInterface",{set:p=>this._parseAndSetJsonInterface(p,l),get:()=>this._jsonInterface}),c instanceof T.Web3Context&&c.on(P.Web3ConfigEvent.CONFIG_CHANGE,p=>{this.setConfig({[p.name]:p.newValue})})}get events(){return this._events}get methods(){return this._methods}clone(){let t;return this.options.address?t=new C([...this._jsonInterface,...this._errorsInterface],this.options.address,{gas:this.options.gas,gasPrice:this.options.gasPrice,from:this.options.from,input:this.options.input,data:this.options.data,provider:this.currentProvider,syncWithContext:this.syncWithContext,dataInputFill:this.config.contractDataInputFill},this.getContextObject()):t=new C([...this._jsonInterface,...this._errorsInterface],{gas:this.options.gas,gasPrice:this.options.gasPrice,from:this.options.from,input:this.options.input,data:this.options.data,provider:this.currentProvider,syncWithContext:this.syncWithContext,dataInputFill:this.config.contractDataInputFill},this.getContextObject()),this.context&&t.subscribeToContextEvents(this.context),t}deploy(t){var n,o,r;let i=this._jsonInterface.find(u=>u.type==="constructor");i||(i={type:"constructor",stateMutability:""});const s=_.format({format:"bytes"},(n=t==null?void 0:t.input)!==null&&n!==void 0?n:this.options.input,W.DEFAULT_RETURN_FORMAT),d=_.format({format:"bytes"},(o=t==null?void 0:t.data)!==null&&o!==void 0?o:this.options.data,W.DEFAULT_RETURN_FORMAT);if((!s||s.trim()==="0x")&&(!d||d.trim()==="0x"))throw new m.Web3ContractError("contract creation without any data provided.");const a=(r=t==null?void 0:t.arguments)!==null&&r!==void 0?r:[],e=Object.assign(Object.assign({},this.options),{input:s,data:d}),c=s??d;return{arguments:a,send:u=>{const l=Object.assign({},u);return this._contractMethodDeploySend(i,a,l,e)},estimateGas:(u,l=this.defaultReturnFormat)=>I(this,void 0,void 0,function*(){const g=Object.assign({},u);return this._contractMethodEstimateGas({abi:i,params:a,returnFormat:l,options:g,contractOptions:e})}),encodeABI:()=>A.encodeMethodABI(i,a,_.format({format:"bytes"},c,this.defaultReturnFormat)),decodeData:u=>Object.assign(Object.assign({},A.decodeMethodParams(i,u.replace(c,""),!1)),{__method__:i.type})}}getPastEvents(t,n,o){var r;return I(this,void 0,void 0,function*(){const i=typeof t=="string"?t:q.ALL_EVENTS,s=typeof t!="string"&&!_.isDataFormat(t)?t:_.isDataFormat(n)?{}:n,d=_.isDataFormat(t)?t:_.isDataFormat(n)?n:o??this.defaultReturnFormat,a=i==="allEvents"||i===q.ALL_EVENTS?q.ALL_EVENTS_ABI:this._jsonInterface.find(v=>"name"in v&&v.name===i);if(!a)throw new m.Web3ContractError(`Event ${i} not found.`);const{fromBlock:e,toBlock:c,topics:u,address:l}=A.encodeEventABI(this.options,a,s??{}),g=yield S.getLogs(this,{fromBlock:e,toBlock:c,topics:u,address:l},d),p=g?g.map(v=>typeof v=="string"?v:J.decodeEventABI(a,v,this._jsonInterface,d)):[],h=(r=s==null?void 0:s.filter)!==null&&r!==void 0?r:{},f=Object.keys(h);return f.length>0?p.filter(v=>typeof v=="string"?!0:f.every(b=>{var F;if(Array.isArray(h[b]))return h[b].some(y=>String(v.returnValues[b]).toUpperCase()===String(y).toUpperCase());const M=(F=a.inputs)===null||F===void 0?void 0:F.filter(y=>y.name===b)[0];return M!=null&&M.indexed&&M.type==="string"&&K.keccak256Wrapper(h[b])===String(v.returnValues[b])?!0:String(v.returnValues[b]).toUpperCase()===String(h[b]).toUpperCase()})):p})}_parseAndSetAddress(t,n=this.defaultReturnFormat){this._address=t&&z.toChecksumAddress(_.format({format:"address"},t,n))}decodeMethodData(t){const n=t.slice(0,10),r=this._jsonInterface.filter(i=>i.type!=="error").find(i=>n===B.encodeFunctionSignature(E.jsonInterfaceMethodToString(i)));if(!r)throw new m.Web3ContractError(`The ABI for the provided method signature ${n} was not found.`);return Object.assign(Object.assign({},A.decodeMethodParams(r,t)),{__method__:E.jsonInterfaceMethodToString(r)})}_parseAndSetJsonInterface(t,n=this.defaultReturnFormat){var o,r,i,s,d;this._functions={},this._methods={},this._events={};let a=[];const e=t.filter(u=>u.type!=="error"),c=t.filter(u=>E.isAbiErrorFragment(u));for(const u of e){const l=Object.assign(Object.assign({},u),{signature:""});if(E.isAbiFunctionFragment(l)){const g=E.jsonInterfaceMethodToString(l),p=B.encodeFunctionSignature(g);l.methodNameWithInputs=g,l.signature=p,l.constant=(r=(o=l.stateMutability==="view")!==null&&o!==void 0?o:l.stateMutability==="pure")!==null&&r!==void 0?r:l.constant,l.payable=(i=l.stateMutability==="payable")!==null&&i!==void 0?i:l.payable,this._overloadedMethodAbis.set(l.name,[...(s=this._overloadedMethodAbis.get(l.name))!==null&&s!==void 0?s:[],l]);const h=(d=this._overloadedMethodAbis.get(l.name))!==null&&d!==void 0?d:[],f=this._createContractMethod(h,c),v=this._createContractMethod(h,c,!0);this._functions[g]={signature:p,method:v},this._methods[l.name]=f,this._methods[g]=v,this._methods[p]=v}else if(E.isAbiEventFragment(l)){const g=E.jsonInterfaceMethodToString(l),p=k.encodeEventSignature(g),h=this._createContractEvent(l,n);l.signature=p,(!(g in this._events)||l.name==="bound")&&(this._events[g]=h),this._events[l.name]=h,this._events[p]=h}a=[...a,l]}this._events.allEvents=this._createContractEvent(q.ALL_EVENTS_ABI,n),this._jsonInterface=[...a],this._errorsInterface=c}_getAbiParams(t,n){var o;try{return H.transformJsonDataToAbiFormat((o=t.inputs)!==null&&o!==void 0?o:[],n)}catch(r){throw new m.Web3ContractError(`Invalid parameters for method ${t.name}: ${r.message}`)}}_createContractMethod(t,n,o=!1){const r=t[t.length-1];return(...i)=>{var s,d,a;let e;const c=(d=o?(s=this._overloadedMethodAbis.get(r.name))===null||s===void 0?void 0:s.filter(h=>h.signature===r.signature):this._overloadedMethodAbis.get(r.name))!==null&&d!==void 0?d:[];let u=c[0];const l=n,g=c.filter(h=>{var f;return((f=h.inputs)!==null&&f!==void 0?f:[]).length===i.length});if(c.length===1||g.length===0)e=this._getAbiParams(u,i),x.validator.validate((a=r.inputs)!==null&&a!==void 0?a:[],e);else{const h=[],f=[];for(const v of g)try{e=this._getAbiParams(v,i),x.validator.validate(v.inputs,e),f.push(v)}catch(b){h.push(b)}if(f.length===1?[u]=f:f.length>1&&([u]=f,console.warn(`Multiple methods found that is compatible with the given inputs.
|
2
2
|
Found ${f.length} compatible methods: ${JSON.stringify(f.map(v=>`${v.methodNameWithInputs} (signature: ${v.signature})`))}
|
3
|
-
The first one will be used: ${u.methodNameWithInputs}`)),h.length===
|
3
|
+
The first one will be used: ${u.methodNameWithInputs}`)),h.length===g.length)throw new U.Web3ValidatorError(h)}const p={arguments:e,call:(h,f)=>I(this,void 0,void 0,function*(){return this._contractMethodCall(u,e,l,h,f)}),send:h=>this._contractMethodSend(u,e,l,h),estimateGas:(h,f=this.defaultReturnFormat)=>I(this,void 0,void 0,function*(){return this._contractMethodEstimateGas({abi:u,params:e,returnFormat:f,options:h})}),encodeABI:()=>A.encodeMethodABI(u,e),decodeData:h=>A.decodeMethodParams(u,h),createAccessList:(h,f)=>I(this,void 0,void 0,function*(){return this._contractMethodCreateAccessList(u,e,l,h,f)})};return u.stateMutability==="payable",p}}_contractMethodCall(t,n,o,r,i){var s;return I(this,void 0,void 0,function*(){const d=j.getEthTxCallParams({abi:t,params:n,options:Object.assign(Object.assign({},r),{dataInputFill:this.config.contractDataInputFill}),contractOptions:Object.assign(Object.assign({},this.options),{from:(s=this.options.from)!==null&&s!==void 0?s:this.config.defaultAccount})});try{const a=yield S.call(this,d,i,this.defaultReturnFormat);return A.decodeMethodReturn(t,a)}catch(a){throw a instanceof m.ContractExecutionError&&D.decodeContractErrorData(o,a.cause),a}})}_contractMethodCreateAccessList(t,n,o,r,i){var s;return I(this,void 0,void 0,function*(){const d=j.getCreateAccessListParams({abi:t,params:n,options:Object.assign(Object.assign({},r),{dataInputFill:this.config.contractDataInputFill}),contractOptions:Object.assign(Object.assign({},this.options),{from:(s=this.options.from)!==null&&s!==void 0?s:this.config.defaultAccount})});try{return S.createAccessList(this,d,i,this.defaultReturnFormat)}catch(a){throw a instanceof m.ContractExecutionError&&D.decodeContractErrorData(o,a.cause),a}})}_contractMethodSend(t,n,o,r,i){var s,d;let a=i??this.options;a=Object.assign(Object.assign({},a),{input:void 0,from:(d=(s=a.from)!==null&&s!==void 0?s:this.defaultAccount)!==null&&d!==void 0?d:void 0});const e=j.getSendTxParams({abi:t,params:n,options:Object.assign(Object.assign({},r),{dataInputFill:this.config.contractDataInputFill}),contractOptions:a}),c=S.sendTransaction(this,e,this.defaultReturnFormat,{checkRevertBeforeSending:!1,contractAbi:this._jsonInterface});return c.on("error",u=>{u instanceof m.ContractExecutionError&&D.decodeContractErrorData(o,u.cause)}),c}_contractMethodDeploySend(t,n,o,r){var i,s;let d=r??this.options;d=Object.assign(Object.assign({},d),{from:(s=(i=d.from)!==null&&i!==void 0?i:this.defaultAccount)!==null&&s!==void 0?s:void 0});const a=j.getSendTxParams({abi:t,params:n,options:Object.assign(Object.assign({},o),{dataInputFill:this.contractDataInputFill}),contractOptions:d});return S.sendTransaction(this,a,this.defaultReturnFormat,{transactionResolver:e=>{if(e.status===BigInt(0))throw new m.Web3ContractError("code couldn't be stored",e);const c=this.clone();return c.options.address=e.contractAddress,c},contractAbi:this._jsonInterface,checkRevertBeforeSending:!1})}_contractMethodEstimateGas({abi:t,params:n,returnFormat:o,options:r,contractOptions:i}){return I(this,void 0,void 0,function*(){const s=j.getEstimateGasParams({abi:t,params:n,options:Object.assign(Object.assign({},r),{dataInputFill:this.config.contractDataInputFill}),contractOptions:i??this.options});return S.estimateGas(this,s,V.BlockTags.LATEST,o??this.defaultReturnFormat)})}_createContractEvent(t,n=this.defaultReturnFormat){return(...o)=>{var r;const{topics:i,fromBlock:s}=A.encodeEventABI(this.options,t,o[0]),d=new $.LogsSubscription({address:this.options.address,topics:i,abi:t,jsonInterface:this._jsonInterface},{subscriptionManager:this.subscriptionManager,returnFormat:n});return w.isNullish(s)||this.getPastEvents(t.name,{fromBlock:s,topics:i},n).then(a=>{a&&a.forEach(e=>d.emit("data",e))}).catch(a=>{d.emit("error",new N.SubscriptionError("Failed to get past events.",a))}),(r=this.subscriptionManager)===null||r===void 0||r.addSubscription(d).catch(a=>{d.emit("error",new N.SubscriptionError("Failed to subscribe.",a))}),d}}subscribeToContextEvents(t){const n=this;this.context=t,n.syncWithContext&&t.on(P.Web3ConfigEvent.CONFIG_CHANGE,o=>{n.setConfig({[o.name]:o.newValue})})}}exports.Contract=C;
|