@ozdao/prometheus-framework 0.2.112 → 0.2.114
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 +5 -5
- 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/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
- 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 +11 -11
- 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 +46 -46
- 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/Textarea.vue.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/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/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/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 +214 -214
- 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 +5 -5
- 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/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -13
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
- 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 +11 -11
- 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 +17 -17
- 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 +35 -35
- 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 +14 -11
- 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,105 +1,108 @@
|
|
1
|
-
import { Web3ConfigEvent as
|
1
|
+
import { Web3ConfigEvent as T } from "../../../web3-core/lib/esm/web3_config.js";
|
2
2
|
import "../../../web3-core/lib/esm/web3_request_manager.js";
|
3
3
|
import "../../../web3-core/lib/esm/web3_subscription_manager.js";
|
4
4
|
import "../../../web3-core/lib/esm/web3_subscriptions.js";
|
5
|
-
import { Web3Context as
|
5
|
+
import { Web3Context as C } from "../../../web3-core/lib/esm/web3_context.js";
|
6
6
|
import "../../../web3-core/lib/esm/web3_batch_request.js";
|
7
|
-
import { DEFAULT_RETURN_FORMAT as
|
8
|
-
import { BlockTags as
|
7
|
+
import { DEFAULT_RETURN_FORMAT as W } from "../../../web3-types/lib/esm/data_format_types.js";
|
8
|
+
import { BlockTags as z } from "../../../web3-types/lib/esm/eth_types.js";
|
9
9
|
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
10
|
-
import { ContractTransactionDataAndInputError as
|
10
|
+
import { ContractTransactionDataAndInputError as Q, Web3ContractError as A, ContractExecutionError as F } from "../../../web3-errors/lib/esm/errors/contract_errors.js";
|
11
11
|
import { SubscriptionError as N } from "../../../web3-errors/lib/esm/errors/provider_errors.js";
|
12
12
|
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
13
13
|
import "../../../web3-eth-iban/lib/esm/iban.js";
|
14
|
-
import { Web3ValidatorError as
|
14
|
+
import { Web3ValidatorError as X } from "../../../web3-validator/lib/esm/errors.js";
|
15
15
|
import "../../../web3-validator/lib/esm/formats.js";
|
16
|
-
import { transformJsonDataToAbiFormat as
|
16
|
+
import { transformJsonDataToAbiFormat as Y } from "../../../web3-validator/lib/esm/utils.js";
|
17
17
|
import { validator as x } from "../../../web3-validator/lib/esm/default_validator.js";
|
18
|
-
import { isNullish as
|
18
|
+
import { isNullish as I } from "../../../web3-validator/lib/esm/validation/object.js";
|
19
19
|
import "../../../web3-core/lib/esm/web3_promi_event.js";
|
20
20
|
import "../../../setimmediate/setImmediate.js";
|
21
21
|
import "../../../web3-eth/lib/esm/web3_eth.js";
|
22
|
-
import { decodeEventABI as
|
22
|
+
import { decodeEventABI as Z } from "../../../web3-eth/lib/esm/utils/decoding.js";
|
23
23
|
import "../../../web3-eth/lib/esm/schemas.js";
|
24
24
|
import { ALL_EVENTS as B, ALL_EVENTS_ABI as L } from "../../../web3-eth/lib/esm/constants.js";
|
25
|
-
import { getLogs as O, call as tt, createAccessList as
|
25
|
+
import { getLogs as O, call as tt, createAccessList as et, sendTransaction as G, estimateGas as it } from "../../../web3-eth/lib/esm/rpc_method_wrappers.js";
|
26
26
|
import "../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.js";
|
27
|
-
import { NewHeadsSubscription as
|
27
|
+
import { NewHeadsSubscription as R } from "../../../web3-eth/lib/esm/web3_subscriptions.js";
|
28
28
|
import "../../../web3-eth/lib/esm/utils/transaction_builder.js";
|
29
|
-
import
|
29
|
+
import "../../../web3-eth/lib/esm/utils/wait_for_transaction_receipt.js";
|
30
|
+
import "../../../web3-eth/lib/esm/utils/try_send_transaction.js";
|
31
|
+
import "../../../web3-eth/lib/esm/utils/send_tx_helper.js";
|
32
|
+
import { jsonInterfaceMethodToString as y, isAbiErrorFragment as nt, isAbiFunctionFragment as ot, isAbiEventFragment as st } from "../../../web3-eth-abi/lib/esm/utils.js";
|
30
33
|
import { encodeEventSignature as rt } from "../../../web3-eth-abi/lib/esm/api/events_api.js";
|
31
|
-
import { encodeFunctionSignature as
|
34
|
+
import { encodeFunctionSignature as $ } from "../../../web3-eth-abi/lib/esm/api/functions_api.js";
|
32
35
|
import "../../../web3-eth-abi/lib/esm/coders/base/number.js";
|
33
|
-
import { decodeContractErrorData as
|
34
|
-
import { encodeMethodABI as
|
35
|
-
import { LogsSubscription as
|
36
|
-
import { isWeb3ContractContext as
|
37
|
-
import {
|
38
|
-
import { isContractInitOptions as
|
36
|
+
import { decodeContractErrorData as P } from "../../../web3-eth-abi/lib/esm/decode_contract_error_data.js";
|
37
|
+
import { encodeMethodABI as V, decodeMethodParams as D, encodeEventABI as U, decodeMethodReturn as at } from "./encoding.js";
|
38
|
+
import { LogsSubscription as K } from "./log_subscription.js";
|
39
|
+
import { isWeb3ContractContext as H, getEthTxCallParams as ct, getCreateAccessListParams as dt, getSendTxParams as J, getEstimateGasParams as lt } from "./utils.js";
|
40
|
+
import { isDataFormat as _, format as E } from "../../../web3-utils/lib/esm/formatter.js";
|
41
|
+
import { isContractInitOptions as k } from "../../../web3-utils/lib/esm/validation.js";
|
39
42
|
import { keccak256Wrapper as ht } from "../../../web3-utils/lib/esm/hash.js";
|
40
43
|
import { toChecksumAddress as ut } from "../../../web3-utils/lib/esm/converters.js";
|
41
|
-
var
|
42
|
-
function r(
|
43
|
-
return
|
44
|
-
o(
|
44
|
+
var b = function(q, t, n, s) {
|
45
|
+
function r(i) {
|
46
|
+
return i instanceof n ? i : new n(function(o) {
|
47
|
+
o(i);
|
45
48
|
});
|
46
49
|
}
|
47
|
-
return new (n || (n = Promise))(function(
|
50
|
+
return new (n || (n = Promise))(function(i, o) {
|
48
51
|
function d(c) {
|
49
52
|
try {
|
50
|
-
|
53
|
+
e(s.next(c));
|
51
54
|
} catch (l) {
|
52
55
|
o(l);
|
53
56
|
}
|
54
57
|
}
|
55
58
|
function a(c) {
|
56
59
|
try {
|
57
|
-
|
60
|
+
e(s.throw(c));
|
58
61
|
} catch (l) {
|
59
62
|
o(l);
|
60
63
|
}
|
61
64
|
}
|
62
|
-
function
|
63
|
-
c.done ?
|
65
|
+
function e(c) {
|
66
|
+
c.done ? i(c.value) : r(c.value).then(d, a);
|
64
67
|
}
|
65
|
-
|
68
|
+
e((s = s.apply(q, t || [])).next());
|
66
69
|
});
|
67
70
|
};
|
68
71
|
const ft = {
|
69
|
-
logs:
|
70
|
-
newHeads:
|
71
|
-
newBlockHeaders:
|
72
|
+
logs: K,
|
73
|
+
newHeads: R,
|
74
|
+
newBlockHeaders: R
|
72
75
|
};
|
73
|
-
class
|
74
|
-
constructor(t, n, s, r,
|
76
|
+
class M extends C {
|
77
|
+
constructor(t, n, s, r, i) {
|
75
78
|
var o, d, a;
|
76
|
-
const
|
79
|
+
const e = k(n) ? n : k(s) ? s : void 0;
|
77
80
|
let c;
|
78
|
-
|
81
|
+
H(n) ? c = n : H(s) ? c = s : c = r;
|
79
82
|
let l;
|
80
|
-
if (typeof n == "object" && "provider" in n ? l = n.provider : typeof s == "object" && "provider" in s ? l = s.provider : typeof r == "object" && "provider" in r ? l = r.provider : l =
|
81
|
-
throw new
|
82
|
-
data:
|
83
|
-
input:
|
83
|
+
if (typeof n == "object" && "provider" in n ? l = n.provider : typeof s == "object" && "provider" in s ? l = s.provider : typeof r == "object" && "provider" in r ? l = r.provider : l = M.givenProvider, super(Object.assign(Object.assign({}, c), { provider: l, registeredSubscriptions: ft })), this.syncWithContext = !1, this._functions = {}, c != null && c.wallet && (this._wallet = c.wallet), c != null && c.accountProvider && (this._accountProvider = c.accountProvider), !I(e) && !I(e.data) && !I(e.input) && this.config.contractDataInputFill !== "both")
|
84
|
+
throw new Q({
|
85
|
+
data: e.data,
|
86
|
+
input: e.input
|
84
87
|
});
|
85
88
|
this._overloadedMethodAbis = /* @__PURE__ */ new Map();
|
86
|
-
const h =
|
87
|
-
this.config.contractDataInputFill = (o =
|
88
|
-
address:
|
89
|
+
const h = _(r) ? r : _(s) ? s : i ?? this.defaultReturnFormat, m = typeof n == "string" ? n : void 0;
|
90
|
+
this.config.contractDataInputFill = (o = e == null ? void 0 : e.dataInputFill) !== null && o !== void 0 ? o : this.config.contractDataInputFill, this._parseAndSetJsonInterface(t, h), this.defaultReturnFormat !== h && (this.defaultReturnFormat = h), I(m) || this._parseAndSetAddress(m, h), this.options = {
|
91
|
+
address: m,
|
89
92
|
jsonInterface: this._jsonInterface,
|
90
|
-
gas: (d =
|
91
|
-
gasPrice:
|
92
|
-
from:
|
93
|
-
input:
|
94
|
-
data:
|
95
|
-
}, this.syncWithContext = (a =
|
96
|
-
set: (
|
93
|
+
gas: (d = e == null ? void 0 : e.gas) !== null && d !== void 0 ? d : e == null ? void 0 : e.gasLimit,
|
94
|
+
gasPrice: e == null ? void 0 : e.gasPrice,
|
95
|
+
from: e == null ? void 0 : e.from,
|
96
|
+
input: e == null ? void 0 : e.input,
|
97
|
+
data: e == null ? void 0 : e.data
|
98
|
+
}, this.syncWithContext = (a = e == null ? void 0 : e.syncWithContext) !== null && a !== void 0 ? a : !1, c instanceof C && this.subscribeToContextEvents(c), Object.defineProperty(this.options, "address", {
|
99
|
+
set: (v) => this._parseAndSetAddress(v, h),
|
97
100
|
get: () => this._address
|
98
101
|
}), Object.defineProperty(this.options, "jsonInterface", {
|
99
|
-
set: (
|
102
|
+
set: (v) => this._parseAndSetJsonInterface(v, h),
|
100
103
|
get: () => this._jsonInterface
|
101
|
-
}), c instanceof
|
102
|
-
this.setConfig({ [
|
104
|
+
}), c instanceof C && c.on(T.CONFIG_CHANGE, (v) => {
|
105
|
+
this.setConfig({ [v.name]: v.newValue });
|
103
106
|
});
|
104
107
|
}
|
105
108
|
/**
|
@@ -178,7 +181,7 @@ class S extends P {
|
|
178
181
|
*/
|
179
182
|
clone() {
|
180
183
|
let t;
|
181
|
-
return this.options.address ? t = new
|
184
|
+
return this.options.address ? t = new M([...this._jsonInterface, ...this._errorsInterface], this.options.address, {
|
182
185
|
gas: this.options.gas,
|
183
186
|
gasPrice: this.options.gasPrice,
|
184
187
|
from: this.options.from,
|
@@ -187,7 +190,7 @@ class S extends P {
|
|
187
190
|
provider: this.currentProvider,
|
188
191
|
syncWithContext: this.syncWithContext,
|
189
192
|
dataInputFill: this.config.contractDataInputFill
|
190
|
-
}, this.getContextObject()) : t = new
|
193
|
+
}, this.getContextObject()) : t = new M([...this._jsonInterface, ...this._errorsInterface], {
|
191
194
|
gas: this.options.gas,
|
192
195
|
gasPrice: this.options.gasPrice,
|
193
196
|
from: this.options.from,
|
@@ -277,84 +280,84 @@ class S extends P {
|
|
277
280
|
*/
|
278
281
|
deploy(t) {
|
279
282
|
var n, s, r;
|
280
|
-
let
|
281
|
-
|
283
|
+
let i = this._jsonInterface.find((l) => l.type === "constructor");
|
284
|
+
i || (i = {
|
282
285
|
type: "constructor",
|
283
286
|
stateMutability: ""
|
284
287
|
});
|
285
|
-
const o =
|
288
|
+
const o = E({ format: "bytes" }, (n = t == null ? void 0 : t.input) !== null && n !== void 0 ? n : this.options.input, W), d = E({ format: "bytes" }, (s = t == null ? void 0 : t.data) !== null && s !== void 0 ? s : this.options.data, W);
|
286
289
|
if ((!o || o.trim() === "0x") && (!d || d.trim() === "0x"))
|
287
|
-
throw new
|
288
|
-
const a = (r = t == null ? void 0 : t.arguments) !== null && r !== void 0 ? r : [],
|
290
|
+
throw new A("contract creation without any data provided.");
|
291
|
+
const a = (r = t == null ? void 0 : t.arguments) !== null && r !== void 0 ? r : [], e = Object.assign(Object.assign({}, this.options), { input: o, data: d }), c = o ?? d;
|
289
292
|
return {
|
290
293
|
arguments: a,
|
291
294
|
send: (l) => {
|
292
295
|
const h = Object.assign({}, l);
|
293
|
-
return this._contractMethodDeploySend(
|
296
|
+
return this._contractMethodDeploySend(i, a, h, e);
|
294
297
|
},
|
295
|
-
estimateGas: (l, h =
|
296
|
-
const
|
298
|
+
estimateGas: (l, h = this.defaultReturnFormat) => b(this, void 0, void 0, function* () {
|
299
|
+
const m = Object.assign({}, l);
|
297
300
|
return this._contractMethodEstimateGas({
|
298
|
-
abi:
|
301
|
+
abi: i,
|
299
302
|
params: a,
|
300
303
|
returnFormat: h,
|
301
|
-
options:
|
302
|
-
contractOptions:
|
304
|
+
options: m,
|
305
|
+
contractOptions: e
|
303
306
|
});
|
304
307
|
}),
|
305
|
-
encodeABI: () =>
|
306
|
-
decodeData: (l) => Object.assign(Object.assign({},
|
308
|
+
encodeABI: () => V(i, a, E({ format: "bytes" }, c, this.defaultReturnFormat)),
|
309
|
+
decodeData: (l) => Object.assign(Object.assign({}, D(i, l.replace(c, ""), !1)), { __method__: i.type })
|
307
310
|
};
|
308
311
|
}
|
309
312
|
getPastEvents(t, n, s) {
|
310
313
|
var r;
|
311
|
-
return
|
312
|
-
const
|
314
|
+
return b(this, void 0, void 0, function* () {
|
315
|
+
const i = typeof t == "string" ? t : B, o = (
|
313
316
|
// eslint-disable-next-line no-nested-ternary
|
314
|
-
typeof t != "string" && !
|
315
|
-
), d =
|
317
|
+
typeof t != "string" && !_(t) ? t : _(n) ? {} : n
|
318
|
+
), d = _(t) ? t : _(n) ? n : s ?? this.defaultReturnFormat, a = i === "allEvents" || i === B ? L : this._jsonInterface.find((p) => "name" in p && p.name === i);
|
316
319
|
if (!a)
|
317
|
-
throw new
|
318
|
-
const { fromBlock:
|
319
|
-
return f.length > 0 ?
|
320
|
-
var
|
321
|
-
if (Array.isArray(u[
|
322
|
-
return u[
|
323
|
-
const
|
324
|
-
return
|
325
|
-
})) :
|
320
|
+
throw new A(`Event ${i} not found.`);
|
321
|
+
const { fromBlock: e, toBlock: c, topics: l, address: h } = U(this.options, a, o ?? {}), m = yield O(this, { fromBlock: e, toBlock: c, topics: l, address: h }, d), v = m ? m.map((p) => typeof p == "string" ? p : Z(a, p, this._jsonInterface, d)) : [], u = (r = o == null ? void 0 : o.filter) !== null && r !== void 0 ? r : {}, f = Object.keys(u);
|
322
|
+
return f.length > 0 ? v.filter((p) => typeof p == "string" ? !0 : f.every((g) => {
|
323
|
+
var S;
|
324
|
+
if (Array.isArray(u[g]))
|
325
|
+
return u[g].some((w) => String(p.returnValues[g]).toUpperCase() === String(w).toUpperCase());
|
326
|
+
const j = (S = a.inputs) === null || S === void 0 ? void 0 : S.filter((w) => w.name === g)[0];
|
327
|
+
return j != null && j.indexed && j.type === "string" && ht(u[g]) === String(p.returnValues[g]) ? !0 : String(p.returnValues[g]).toUpperCase() === String(u[g]).toUpperCase();
|
328
|
+
})) : v;
|
326
329
|
});
|
327
330
|
}
|
328
|
-
_parseAndSetAddress(t, n =
|
329
|
-
this._address = t && ut(
|
331
|
+
_parseAndSetAddress(t, n = this.defaultReturnFormat) {
|
332
|
+
this._address = t && ut(E({ format: "address" }, t, n));
|
330
333
|
}
|
331
334
|
decodeMethodData(t) {
|
332
|
-
const n = t.slice(0, 10), r = this._jsonInterface.filter((
|
335
|
+
const n = t.slice(0, 10), r = this._jsonInterface.filter((i) => i.type !== "error").find((i) => n === $(y(i)));
|
333
336
|
if (!r)
|
334
|
-
throw new
|
335
|
-
return Object.assign(Object.assign({},
|
337
|
+
throw new A(`The ABI for the provided method signature ${n} was not found.`);
|
338
|
+
return Object.assign(Object.assign({}, D(r, t)), { __method__: y(r) });
|
336
339
|
}
|
337
|
-
_parseAndSetJsonInterface(t, n =
|
338
|
-
var s, r,
|
340
|
+
_parseAndSetJsonInterface(t, n = this.defaultReturnFormat) {
|
341
|
+
var s, r, i, o, d;
|
339
342
|
this._functions = {}, this._methods = {}, this._events = {};
|
340
343
|
let a = [];
|
341
|
-
const
|
342
|
-
for (const l of
|
344
|
+
const e = t.filter((l) => l.type !== "error"), c = t.filter((l) => nt(l));
|
345
|
+
for (const l of e) {
|
343
346
|
const h = Object.assign(Object.assign({}, l), { signature: "" });
|
344
347
|
if (ot(h)) {
|
345
|
-
const
|
346
|
-
h.methodNameWithInputs =
|
348
|
+
const m = y(h), v = $(m);
|
349
|
+
h.methodNameWithInputs = m, h.signature = v, h.constant = (r = (s = h.stateMutability === "view") !== null && s !== void 0 ? s : h.stateMutability === "pure") !== null && r !== void 0 ? r : h.constant, h.payable = (i = h.stateMutability === "payable") !== null && i !== void 0 ? i : h.payable, this._overloadedMethodAbis.set(h.name, [
|
347
350
|
...(o = this._overloadedMethodAbis.get(h.name)) !== null && o !== void 0 ? o : [],
|
348
351
|
h
|
349
352
|
]);
|
350
353
|
const u = (d = this._overloadedMethodAbis.get(h.name)) !== null && d !== void 0 ? d : [], f = this._createContractMethod(u, c), p = this._createContractMethod(u, c, !0);
|
351
|
-
this._functions[
|
352
|
-
signature:
|
354
|
+
this._functions[m] = {
|
355
|
+
signature: v,
|
353
356
|
method: p
|
354
|
-
}, this._methods[h.name] = f, this._methods[
|
357
|
+
}, this._methods[h.name] = f, this._methods[m] = p, this._methods[v] = p;
|
355
358
|
} else if (st(h)) {
|
356
|
-
const
|
357
|
-
h.signature =
|
359
|
+
const m = y(h), v = rt(m), u = this._createContractEvent(h, n);
|
360
|
+
h.signature = v, (!(m in this._events) || h.name === "bound") && (this._events[m] = u), this._events[h.name] = u, this._events[v] = u;
|
358
361
|
}
|
359
362
|
a = [...a, h];
|
360
363
|
}
|
@@ -364,63 +367,63 @@ class S extends P {
|
|
364
367
|
_getAbiParams(t, n) {
|
365
368
|
var s;
|
366
369
|
try {
|
367
|
-
return
|
370
|
+
return Y((s = t.inputs) !== null && s !== void 0 ? s : [], n);
|
368
371
|
} catch (r) {
|
369
|
-
throw new
|
372
|
+
throw new A(`Invalid parameters for method ${t.name}: ${r.message}`);
|
370
373
|
}
|
371
374
|
}
|
372
375
|
_createContractMethod(t, n, s = !1) {
|
373
376
|
const r = t[t.length - 1];
|
374
|
-
return (...
|
377
|
+
return (...i) => {
|
375
378
|
var o, d, a;
|
376
|
-
let
|
379
|
+
let e;
|
377
380
|
const c = (d = s ? (o = this._overloadedMethodAbis.get(r.name)) === null || o === void 0 ? void 0 : o.filter((u) => u.signature === r.signature) : this._overloadedMethodAbis.get(r.name)) !== null && d !== void 0 ? d : [];
|
378
381
|
let l = c[0];
|
379
|
-
const h = n,
|
382
|
+
const h = n, m = c.filter((u) => {
|
380
383
|
var f;
|
381
|
-
return ((f = u.inputs) !== null && f !== void 0 ? f : []).length ===
|
384
|
+
return ((f = u.inputs) !== null && f !== void 0 ? f : []).length === i.length;
|
382
385
|
});
|
383
|
-
if (c.length === 1 ||
|
384
|
-
|
386
|
+
if (c.length === 1 || m.length === 0)
|
387
|
+
e = this._getAbiParams(l, i), x.validate((a = r.inputs) !== null && a !== void 0 ? a : [], e);
|
385
388
|
else {
|
386
389
|
const u = [], f = [];
|
387
|
-
for (const p of
|
390
|
+
for (const p of m)
|
388
391
|
try {
|
389
|
-
|
390
|
-
} catch (
|
391
|
-
u.push(
|
392
|
+
e = this._getAbiParams(p, i), x.validate(p.inputs, e), f.push(p);
|
393
|
+
} catch (g) {
|
394
|
+
u.push(g);
|
392
395
|
}
|
393
396
|
if (f.length === 1 ? [l] = f : f.length > 1 && ([l] = f, console.warn(`Multiple methods found that is compatible with the given inputs.
|
394
397
|
Found ${f.length} compatible methods: ${JSON.stringify(f.map((p) => `${p.methodNameWithInputs} (signature: ${p.signature})`))}
|
395
|
-
The first one will be used: ${l.methodNameWithInputs}`)), u.length ===
|
396
|
-
throw new
|
398
|
+
The first one will be used: ${l.methodNameWithInputs}`)), u.length === m.length)
|
399
|
+
throw new X(u);
|
397
400
|
}
|
398
|
-
const
|
399
|
-
arguments:
|
400
|
-
call: (u, f) =>
|
401
|
-
return this._contractMethodCall(l,
|
401
|
+
const v = {
|
402
|
+
arguments: e,
|
403
|
+
call: (u, f) => b(this, void 0, void 0, function* () {
|
404
|
+
return this._contractMethodCall(l, e, h, u, f);
|
402
405
|
}),
|
403
|
-
send: (u) => this._contractMethodSend(l,
|
404
|
-
estimateGas: (u, f =
|
406
|
+
send: (u) => this._contractMethodSend(l, e, h, u),
|
407
|
+
estimateGas: (u, f = this.defaultReturnFormat) => b(this, void 0, void 0, function* () {
|
405
408
|
return this._contractMethodEstimateGas({
|
406
409
|
abi: l,
|
407
|
-
params:
|
410
|
+
params: e,
|
408
411
|
returnFormat: f,
|
409
412
|
options: u
|
410
413
|
});
|
411
414
|
}),
|
412
|
-
encodeABI: () =>
|
413
|
-
decodeData: (u) =>
|
414
|
-
createAccessList: (u, f) =>
|
415
|
-
return this._contractMethodCreateAccessList(l,
|
415
|
+
encodeABI: () => V(l, e),
|
416
|
+
decodeData: (u) => D(l, u),
|
417
|
+
createAccessList: (u, f) => b(this, void 0, void 0, function* () {
|
418
|
+
return this._contractMethodCreateAccessList(l, e, h, u, f);
|
416
419
|
})
|
417
420
|
};
|
418
|
-
return l.stateMutability === "payable",
|
421
|
+
return l.stateMutability === "payable", v;
|
419
422
|
};
|
420
423
|
}
|
421
|
-
_contractMethodCall(t, n, s, r,
|
424
|
+
_contractMethodCall(t, n, s, r, i) {
|
422
425
|
var o;
|
423
|
-
return
|
426
|
+
return b(this, void 0, void 0, function* () {
|
424
427
|
const d = ct({
|
425
428
|
abi: t,
|
426
429
|
params: n,
|
@@ -428,16 +431,16 @@ class S extends P {
|
|
428
431
|
contractOptions: Object.assign(Object.assign({}, this.options), { from: (o = this.options.from) !== null && o !== void 0 ? o : this.config.defaultAccount })
|
429
432
|
});
|
430
433
|
try {
|
431
|
-
const a = yield tt(this, d,
|
434
|
+
const a = yield tt(this, d, i, this.defaultReturnFormat);
|
432
435
|
return at(t, a);
|
433
436
|
} catch (a) {
|
434
|
-
throw a instanceof
|
437
|
+
throw a instanceof F && P(s, a.cause), a;
|
435
438
|
}
|
436
439
|
});
|
437
440
|
}
|
438
|
-
_contractMethodCreateAccessList(t, n, s, r,
|
441
|
+
_contractMethodCreateAccessList(t, n, s, r, i) {
|
439
442
|
var o;
|
440
|
-
return
|
443
|
+
return b(this, void 0, void 0, function* () {
|
441
444
|
const d = dt({
|
442
445
|
abi: t,
|
443
446
|
params: n,
|
@@ -445,70 +448,70 @@ class S extends P {
|
|
445
448
|
contractOptions: Object.assign(Object.assign({}, this.options), { from: (o = this.options.from) !== null && o !== void 0 ? o : this.config.defaultAccount })
|
446
449
|
});
|
447
450
|
try {
|
448
|
-
return
|
451
|
+
return et(this, d, i, this.defaultReturnFormat);
|
449
452
|
} catch (a) {
|
450
|
-
throw a instanceof
|
453
|
+
throw a instanceof F && P(s, a.cause), a;
|
451
454
|
}
|
452
455
|
});
|
453
456
|
}
|
454
|
-
_contractMethodSend(t, n, s, r,
|
457
|
+
_contractMethodSend(t, n, s, r, i) {
|
455
458
|
var o, d;
|
456
|
-
let a =
|
459
|
+
let a = i ?? this.options;
|
457
460
|
a = Object.assign(Object.assign({}, a), { input: void 0, from: (d = (o = a.from) !== null && o !== void 0 ? o : this.defaultAccount) !== null && d !== void 0 ? d : void 0 });
|
458
|
-
const
|
461
|
+
const e = J({
|
459
462
|
abi: t,
|
460
463
|
params: n,
|
461
464
|
options: Object.assign(Object.assign({}, r), { dataInputFill: this.config.contractDataInputFill }),
|
462
465
|
contractOptions: a
|
463
|
-
}), c = G(this,
|
466
|
+
}), c = G(this, e, this.defaultReturnFormat, {
|
464
467
|
// TODO Should make this configurable by the user
|
465
468
|
checkRevertBeforeSending: !1,
|
466
469
|
contractAbi: this._jsonInterface
|
467
470
|
});
|
468
471
|
return c.on("error", (l) => {
|
469
|
-
l instanceof
|
472
|
+
l instanceof F && P(s, l.cause);
|
470
473
|
}), c;
|
471
474
|
}
|
472
475
|
_contractMethodDeploySend(t, n, s, r) {
|
473
|
-
var
|
476
|
+
var i, o;
|
474
477
|
let d = r ?? this.options;
|
475
|
-
d = Object.assign(Object.assign({}, d), { from: (o = (
|
476
|
-
const a =
|
478
|
+
d = Object.assign(Object.assign({}, d), { from: (o = (i = d.from) !== null && i !== void 0 ? i : this.defaultAccount) !== null && o !== void 0 ? o : void 0 });
|
479
|
+
const a = J({
|
477
480
|
abi: t,
|
478
481
|
params: n,
|
479
|
-
options: Object.assign(Object.assign({}, s), { dataInputFill: this.
|
482
|
+
options: Object.assign(Object.assign({}, s), { dataInputFill: this.contractDataInputFill }),
|
480
483
|
contractOptions: d
|
481
484
|
});
|
482
|
-
return G(this, a,
|
483
|
-
transactionResolver: (
|
484
|
-
if (
|
485
|
-
throw new
|
485
|
+
return G(this, a, this.defaultReturnFormat, {
|
486
|
+
transactionResolver: (e) => {
|
487
|
+
if (e.status === BigInt(0))
|
488
|
+
throw new A("code couldn't be stored", e);
|
486
489
|
const c = this.clone();
|
487
|
-
return c.options.address =
|
490
|
+
return c.options.address = e.contractAddress, c;
|
488
491
|
},
|
489
492
|
contractAbi: this._jsonInterface,
|
490
493
|
// TODO Should make this configurable by the user
|
491
494
|
checkRevertBeforeSending: !1
|
492
495
|
});
|
493
496
|
}
|
494
|
-
_contractMethodEstimateGas({ abi: t, params: n, returnFormat: s, options: r, contractOptions:
|
495
|
-
return
|
497
|
+
_contractMethodEstimateGas({ abi: t, params: n, returnFormat: s, options: r, contractOptions: i }) {
|
498
|
+
return b(this, void 0, void 0, function* () {
|
496
499
|
const o = lt({
|
497
500
|
abi: t,
|
498
501
|
params: n,
|
499
502
|
options: Object.assign(Object.assign({}, r), { dataInputFill: this.config.contractDataInputFill }),
|
500
|
-
contractOptions:
|
503
|
+
contractOptions: i ?? this.options
|
501
504
|
});
|
502
|
-
return
|
505
|
+
return it(this, o, z.LATEST, s ?? this.defaultReturnFormat);
|
503
506
|
});
|
504
507
|
}
|
505
508
|
// eslint-disable-next-line class-methods-use-this
|
506
|
-
_createContractEvent(t, n =
|
509
|
+
_createContractEvent(t, n = this.defaultReturnFormat) {
|
507
510
|
return (...s) => {
|
508
511
|
var r;
|
509
|
-
const { topics:
|
512
|
+
const { topics: i, fromBlock: o } = U(this.options, t, s[0]), d = new K({
|
510
513
|
address: this.options.address,
|
511
|
-
topics:
|
514
|
+
topics: i,
|
512
515
|
abi: t,
|
513
516
|
jsonInterface: this._jsonInterface
|
514
517
|
}, {
|
@@ -516,8 +519,8 @@ class S extends P {
|
|
516
519
|
subscriptionManager: this.subscriptionManager,
|
517
520
|
returnFormat: n
|
518
521
|
});
|
519
|
-
return
|
520
|
-
a && a.forEach((
|
522
|
+
return I(o) || this.getPastEvents(t.name, { fromBlock: o, topics: i }, n).then((a) => {
|
523
|
+
a && a.forEach((e) => d.emit("data", e));
|
521
524
|
}).catch((a) => {
|
522
525
|
d.emit("error", new N("Failed to get past events.", a));
|
523
526
|
}), (r = this.subscriptionManager) === null || r === void 0 || r.addSubscription(d).catch((a) => {
|
@@ -527,11 +530,11 @@ class S extends P {
|
|
527
530
|
}
|
528
531
|
subscribeToContextEvents(t) {
|
529
532
|
const n = this;
|
530
|
-
this.context = t, n.syncWithContext && t.on(
|
533
|
+
this.context = t, n.syncWithContext && t.on(T.CONFIG_CHANGE, (s) => {
|
531
534
|
n.setConfig({ [s.name]: s.newValue });
|
532
535
|
});
|
533
536
|
}
|
534
537
|
}
|
535
538
|
export {
|
536
|
-
|
539
|
+
M as Contract
|
537
540
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const d=require("../../../web3-errors/lib/esm/errors/contract_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const E=require("../../../web3-eth-abi/lib/esm/utils.cjs"),y=require("../../../web3-eth-abi/lib/esm/api/events_api.cjs"),A=require("../../../web3-eth-abi/lib/esm/api/functions_api.cjs"),l=require("../../../web3-eth-abi/lib/esm/api/parameters_api.cjs"),h=require("../../../web3-eth-abi/lib/esm/coders/encode.cjs");require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");const f=require("../../../web3-eth/lib/esm/schemas.cjs"),m=require("../../../web3-eth/lib/esm/constants.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");const p=require("../../../web3-utils/lib/esm/validation.cjs"),q=require("../../../web3-utils/lib/esm/formatter.cjs"),g=require("../../../web3-utils/lib/esm/hash.cjs"),B=({address:t},r,e)=>{var i,o;const a=e==null?void 0:e.topics,v=(i=e==null?void 0:e.filter)!==null&&i!==void 0?i:{},n={};if(p.isNullish(e==null?void 0:e.fromBlock)||(n.fromBlock=q.format(f.blockSchema.properties.number,e==null?void 0:e.fromBlock,{number:c.FMT_NUMBER.HEX,bytes:c.FMT_BYTES.HEX})),p.isNullish(e==null?void 0:e.toBlock)||(n.toBlock=q.format(f.blockSchema.properties.number,e==null?void 0:e.toBlock,{number:c.FMT_NUMBER.HEX,bytes:c.FMT_BYTES.HEX})),a&&Array.isArray(a))n.topics=[...a];else if(n.topics=[],r&&!r.anonymous&&![m.ALL_EVENTS,"allEvents"].includes(r.name)&&n.topics.push((o=r.signature)!==null&&o!==void 0?o:y.encodeEventSignature(E.jsonInterfaceMethodToString(r))),![m.ALL_EVENTS,"allEvents"].includes(r.name)&&r.inputs)for(const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const d=require("../../../web3-errors/lib/esm/errors/contract_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const E=require("../../../web3-eth-abi/lib/esm/utils.cjs"),y=require("../../../web3-eth-abi/lib/esm/api/events_api.cjs"),A=require("../../../web3-eth-abi/lib/esm/api/functions_api.cjs"),l=require("../../../web3-eth-abi/lib/esm/api/parameters_api.cjs"),h=require("../../../web3-eth-abi/lib/esm/coders/encode.cjs");require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");const f=require("../../../web3-eth/lib/esm/schemas.cjs"),m=require("../../../web3-eth/lib/esm/constants.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../web3-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 p=require("../../../web3-utils/lib/esm/validation.cjs"),q=require("../../../web3-utils/lib/esm/formatter.cjs"),g=require("../../../web3-utils/lib/esm/hash.cjs"),B=({address:t},r,e)=>{var i,o;const a=e==null?void 0:e.topics,v=(i=e==null?void 0:e.filter)!==null&&i!==void 0?i:{},n={};if(p.isNullish(e==null?void 0:e.fromBlock)||(n.fromBlock=q.format(f.blockSchema.properties.number,e==null?void 0:e.fromBlock,{number:c.FMT_NUMBER.HEX,bytes:c.FMT_BYTES.HEX})),p.isNullish(e==null?void 0:e.toBlock)||(n.toBlock=q.format(f.blockSchema.properties.number,e==null?void 0:e.toBlock,{number:c.FMT_NUMBER.HEX,bytes:c.FMT_BYTES.HEX})),a&&Array.isArray(a))n.topics=[...a];else if(n.topics=[],r&&!r.anonymous&&![m.ALL_EVENTS,"allEvents"].includes(r.name)&&n.topics.push((o=r.signature)!==null&&o!==void 0?o:y.encodeEventSignature(E.jsonInterfaceMethodToString(r))),![m.ALL_EVENTS,"allEvents"].includes(r.name)&&r.inputs)for(const u of r.inputs){if(!u.indexed)continue;const s=v[u.name];if(!s){n.topics.push(null);continue}Array.isArray(s)?n.topics.push(s.map(_=>l.encodeParameter(u.type,_))):u.type==="string"?n.topics.push(g.keccak256Wrapper(s)):n.topics.push(l.encodeParameter(u.type,s))}return n.topics.length||delete n.topics,t&&(n.address=t.toLowerCase()),n},M=(t,r,e)=>{const i=Array.isArray(t.inputs)?t.inputs.length:0;if(t.inputs&&i!==r.length)throw new d.Web3ContractError(`The number of arguments is not matching the methods required number. You need to pass ${i} arguments.`);let o;if(t.inputs?o=h.encodeParameters(Array.isArray(t.inputs)?t.inputs:[],r).replace("0x",""):o=h.inferTypesAndEncodeParameters(r).replace("0x",""),E.isAbiConstructorFragment(t)){if(!e)throw new d.Web3ContractError("The contract has no contract data option set. This is necessary to append the constructor parameters.");return e.startsWith("0x")?`${e}${o}`:`0x${e}${o}`}return`${A.encodeFunctionSignature(t)}${o}`},T=(t,r,e=!0)=>{const i=e&&r&&r.length>=10&&r.startsWith("0x")?r.slice(10):r;if(!t.inputs)throw new d.Web3ContractError("No inputs found in the ABI");return l.decodeParameters([...t.inputs],i)},S=(t,r)=>{if(t.type==="constructor")return r;if(!r)return null;const e=r.length>=2?r.slice(2):r;if(!t.outputs)return null;const i=l.decodeParameters([...t.outputs],e);return i.__length__===1?i[0]:i};exports.decodeMethodParams=T;exports.decodeMethodReturn=S;exports.encodeEventABI=B;exports.encodeMethodABI=M;
|
@@ -25,10 +25,13 @@ import "../../../web3-core/lib/esm/web3_batch_request.js";
|
|
25
25
|
import "../../../web3-eth-iban/lib/esm/iban.js";
|
26
26
|
import "../../../web3-core/lib/esm/web3_promi_event.js";
|
27
27
|
import "../../../web3-eth/lib/esm/utils/transaction_builder.js";
|
28
|
+
import "../../../web3-eth/lib/esm/utils/wait_for_transaction_receipt.js";
|
29
|
+
import "../../../web3-eth/lib/esm/utils/try_send_transaction.js";
|
30
|
+
import "../../../web3-eth/lib/esm/utils/send_tx_helper.js";
|
28
31
|
import { isNullish as a } from "../../../web3-utils/lib/esm/validation.js";
|
29
32
|
import { format as v } from "../../../web3-utils/lib/esm/formatter.js";
|
30
33
|
import { keccak256Wrapper as x } from "../../../web3-utils/lib/esm/hash.js";
|
31
|
-
const
|
34
|
+
const sr = ({ address: e }, t, r) => {
|
32
35
|
var i, n;
|
33
36
|
const c = r == null ? void 0 : r.topics, y = (i = r == null ? void 0 : r.filter) !== null && i !== void 0 ? i : {}, o = {};
|
34
37
|
if (a(r == null ? void 0 : r.fromBlock) || (o.fromBlock = v(d.properties.number, r == null ? void 0 : r.fromBlock, {
|
@@ -51,7 +54,7 @@ const or = ({ address: e }, t, r) => {
|
|
51
54
|
Array.isArray(m) ? o.topics.push(m.map((A) => f(s.type, A))) : s.type === "string" ? o.topics.push(x(m)) : o.topics.push(f(s.type, m));
|
52
55
|
}
|
53
56
|
return o.topics.length || delete o.topics, e && (o.address = e.toLowerCase()), o;
|
54
|
-
},
|
57
|
+
}, mr = (e, t, r) => {
|
55
58
|
const i = Array.isArray(e.inputs) ? e.inputs.length : 0;
|
56
59
|
if (e.inputs && i !== t.length)
|
57
60
|
throw new u(`The number of arguments is not matching the methods required number. You need to pass ${i} arguments.`);
|
@@ -62,12 +65,12 @@ const or = ({ address: e }, t, r) => {
|
|
62
65
|
return r.startsWith("0x") ? `${r}${n}` : `0x${r}${n}`;
|
63
66
|
}
|
64
67
|
return `${T(e)}${n}`;
|
65
|
-
},
|
68
|
+
}, cr = (e, t, r = !0) => {
|
66
69
|
const i = r && t && t.length >= 10 && t.startsWith("0x") ? t.slice(10) : t;
|
67
70
|
if (!e.inputs)
|
68
71
|
throw new u("No inputs found in the ABI");
|
69
72
|
return g([...e.inputs], i);
|
70
|
-
},
|
73
|
+
}, ur = (e, t) => {
|
71
74
|
if (e.type === "constructor")
|
72
75
|
return t;
|
73
76
|
if (!t)
|
@@ -79,8 +82,8 @@ const or = ({ address: e }, t, r) => {
|
|
79
82
|
return i.__length__ === 1 ? i[0] : i;
|
80
83
|
};
|
81
84
|
export {
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
85
|
+
cr as decodeMethodParams,
|
86
|
+
ur as decodeMethodReturn,
|
87
|
+
sr as encodeEventABI,
|
88
|
+
mr as encodeMethodABI
|
86
89
|
};
|