@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,17 +1,17 @@
|
|
1
|
-
import { ETH_DATA_FORMAT as m
|
1
|
+
import { ETH_DATA_FORMAT as m } from "../../../../web3-types/lib/esm/data_format_types.js";
|
2
2
|
import "../../../../web3-types/lib/esm/eth_types.js";
|
3
3
|
import "../../../../web3-types/lib/esm/web3_base_provider.js";
|
4
4
|
import "../../../../web3-eth-accounts/lib/esm/wallet.js";
|
5
|
-
import { privateKeyToAddress as
|
5
|
+
import { privateKeyToAddress as g } from "../../../../web3-eth-accounts/lib/esm/account.js";
|
6
6
|
import "../../../../crc-32/crc32.js";
|
7
7
|
import "../../../../web3-eth-accounts/lib/esm/common/types.js";
|
8
|
-
import { LocalWalletNotAvailableError as h, InvalidTransactionWithSender as
|
8
|
+
import { LocalWalletNotAvailableError as h, InvalidTransactionWithSender as v, InvalidTransactionWithReceiver as b, TransactionDataAndInputError as x, UnableToPopulateNonceError as y } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
9
9
|
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
10
10
|
import "../../../../web3-validator/lib/esm/formats.js";
|
11
|
-
import { isHexStrict as
|
11
|
+
import { isHexStrict as C } from "../../../../web3-validator/lib/esm/validation/string.js";
|
12
12
|
import "../../../../web3-validator/lib/esm/default_validator.js";
|
13
13
|
import { isAddress as I } from "../../../../web3-validator/lib/esm/validation/address.js";
|
14
|
-
import { isNumber as
|
14
|
+
import { isNumber as A } from "../../../../web3-validator/lib/esm/validation/numbers.js";
|
15
15
|
import { isNullish as n } from "../../../../web3-validator/lib/esm/validation/object.js";
|
16
16
|
import "../../../../web3-eth-accounts/lib/esm/tx/constants.js";
|
17
17
|
import "../../../../web3-eth-accounts/lib/esm/common/enums.js";
|
@@ -21,84 +21,84 @@ import "../../../../@ethereumjs/rlp/dist/index.js";
|
|
21
21
|
import "../../../../web3-eth-accounts/lib/esm/tx/types.js";
|
22
22
|
import "../../../../web3-net/lib/esm/net.js";
|
23
23
|
import { getId as O } from "../../../../web3-net/lib/esm/rpc_method_wrappers.js";
|
24
|
-
import { NUMBER_DATA_FORMAT as
|
25
|
-
import { getChainId as
|
26
|
-
import { detectTransactionType as
|
24
|
+
import { NUMBER_DATA_FORMAT as _ } from "../constants.js";
|
25
|
+
import { getChainId as k, estimateGas as j, getTransactionCount as L } from "../rpc_method_wrappers.js";
|
26
|
+
import { detectTransactionType as N } from "./detect_transaction_type.js";
|
27
27
|
import { transactionSchema as R } from "../schemas.js";
|
28
28
|
import { getTransactionGasPricing as B } from "./get_transaction_gas_pricing.js";
|
29
|
-
import { format as
|
29
|
+
import { format as c } from "../../../../web3-utils/lib/esm/formatter.js";
|
30
30
|
import { bytesToHex as w } from "../../../../web3-utils/lib/esm/converters.js";
|
31
31
|
var p = function(i, r, e, t) {
|
32
32
|
function o(a) {
|
33
|
-
return a instanceof e ? a : new e(function(
|
34
|
-
|
33
|
+
return a instanceof e ? a : new e(function(d) {
|
34
|
+
d(a);
|
35
35
|
});
|
36
36
|
}
|
37
|
-
return new (e || (e = Promise))(function(a,
|
37
|
+
return new (e || (e = Promise))(function(a, d) {
|
38
38
|
function u(f) {
|
39
39
|
try {
|
40
40
|
s(t.next(f));
|
41
41
|
} catch (l) {
|
42
|
-
|
42
|
+
d(l);
|
43
43
|
}
|
44
44
|
}
|
45
|
-
function
|
45
|
+
function T(f) {
|
46
46
|
try {
|
47
47
|
s(t.throw(f));
|
48
48
|
} catch (l) {
|
49
|
-
|
49
|
+
d(l);
|
50
50
|
}
|
51
51
|
}
|
52
52
|
function s(f) {
|
53
|
-
f.done ? a(f.value) : o(f.value).then(u,
|
53
|
+
f.done ? a(f.value) : o(f.value).then(u, T);
|
54
54
|
}
|
55
55
|
s((t = t.apply(i, r || [])).next());
|
56
56
|
});
|
57
57
|
};
|
58
|
-
const
|
58
|
+
const E = (i, r, e, t) => {
|
59
59
|
if (e !== void 0 && i in e && e[i] !== void 0) {
|
60
60
|
if (typeof e[i] == "string" && I(e[i]))
|
61
61
|
return e[i];
|
62
|
-
if (!
|
62
|
+
if (!C(e[i]) && A(e[i])) {
|
63
63
|
if (r.wallet) {
|
64
|
-
const o = r.wallet.get(
|
64
|
+
const o = r.wallet.get(c({ format: "uint" }, e[i], _));
|
65
65
|
if (!n(o))
|
66
66
|
return o.address;
|
67
67
|
throw new h();
|
68
68
|
}
|
69
69
|
throw new h();
|
70
70
|
} else
|
71
|
-
throw i === "from" ? new
|
71
|
+
throw i === "from" ? new v(e.from) : (
|
72
72
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
73
|
-
new
|
73
|
+
new b(e.to)
|
74
74
|
);
|
75
75
|
}
|
76
76
|
if (i === "from") {
|
77
77
|
if (!n(t))
|
78
|
-
return
|
78
|
+
return g(t);
|
79
79
|
if (!n(r.defaultAccount))
|
80
80
|
return r.defaultAccount;
|
81
81
|
}
|
82
|
-
},
|
82
|
+
}, F = (i, r, e = i.defaultReturnFormat) => p(void 0, void 0, void 0, function* () {
|
83
83
|
if (n(r))
|
84
|
-
throw new
|
85
|
-
return
|
86
|
-
}),
|
87
|
-
const e =
|
84
|
+
throw new y();
|
85
|
+
return L(i, r, i.defaultBlock, e);
|
86
|
+
}), G = (i, r) => {
|
87
|
+
const e = N(i, r);
|
88
88
|
if (!n(e))
|
89
89
|
return e;
|
90
90
|
if (!n(r.defaultTransactionType))
|
91
|
-
return
|
91
|
+
return c({ format: "uint" }, r.defaultTransactionType, m);
|
92
92
|
};
|
93
|
-
function
|
93
|
+
function W(i) {
|
94
94
|
var r, e;
|
95
95
|
return p(this, void 0, void 0, function* () {
|
96
|
-
let t =
|
97
|
-
if (n(t.from) && (t.from =
|
96
|
+
let t = c(R, i.transaction, i.web3Context.defaultReturnFormat);
|
97
|
+
if (n(t.from) && (t.from = E("from", i.web3Context, void 0, i.privateKey)), n(t.nonce) && (t.nonce = yield F(i.web3Context, t.from, m)), n(t.value) && (t.value = "0x0"), n(t.data))
|
98
98
|
n(t.input) ? t.input = "0x" : t.input.startsWith("0x") || (t.input = `0x${t.input}`);
|
99
99
|
else {
|
100
100
|
if (!n(t.input) && t.data !== t.input)
|
101
|
-
throw new
|
101
|
+
throw new x({
|
102
102
|
data: w(t.data),
|
103
103
|
input: w(t.input)
|
104
104
|
});
|
@@ -106,26 +106,26 @@ function D(i) {
|
|
106
106
|
}
|
107
107
|
if (n(t.common)) {
|
108
108
|
if (i.web3Context.defaultCommon) {
|
109
|
-
const o = i.web3Context.defaultCommon, a = o.customChain.chainId,
|
110
|
-
t.common = Object.assign(Object.assign({}, o), { customChain: { chainId: a, networkId:
|
109
|
+
const o = i.web3Context.defaultCommon, a = o.customChain.chainId, d = o.customChain.networkId, u = o.customChain.name;
|
110
|
+
t.common = Object.assign(Object.assign({}, o), { customChain: { chainId: a, networkId: d, name: u } });
|
111
111
|
}
|
112
112
|
n(t.chain) && (t.chain = i.web3Context.defaultChain), n(t.hardfork) && (t.hardfork = i.web3Context.defaultHardfork);
|
113
113
|
}
|
114
|
-
if (n(t.chainId) && n((r = t.common) === null || r === void 0 ? void 0 : r.customChain.chainId) && (t.chainId = yield
|
114
|
+
if (n(t.chainId) && n((r = t.common) === null || r === void 0 ? void 0 : r.customChain.chainId) && (t.chainId = yield k(i.web3Context, m)), n(t.networkId) && (t.networkId = (e = i.web3Context.defaultNetworkId) !== null && e !== void 0 ? e : yield O(i.web3Context, m)), n(t.gasLimit) && !n(t.gas) && (t.gasLimit = t.gas), t.type = G(t, i.web3Context), n(t.accessList) && (t.type === "0x1" || t.type === "0x2") && (t.accessList = []), i.fillGasPrice && (t = Object.assign(Object.assign({}, t), yield B(t, i.web3Context, m))), n(t.gas) && n(t.gasLimit) && i.fillGasLimit) {
|
115
115
|
const o = yield j(i.web3Context, t, "latest", m);
|
116
|
-
t = Object.assign(Object.assign({}, t), { gas:
|
116
|
+
t = Object.assign(Object.assign({}, t), { gas: c({ format: "uint" }, o, m) });
|
117
117
|
}
|
118
118
|
return t;
|
119
119
|
});
|
120
120
|
}
|
121
|
-
const
|
121
|
+
const pt = (i) => p(void 0, void 0, void 0, function* () {
|
122
122
|
var r;
|
123
|
-
return ((r = i.web3Context.transactionBuilder) !== null && r !== void 0 ? r :
|
123
|
+
return ((r = i.web3Context.transactionBuilder) !== null && r !== void 0 ? r : W)(Object.assign(Object.assign({}, i), { transaction: i.transaction }));
|
124
124
|
});
|
125
125
|
export {
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
126
|
+
W as defaultTransactionBuilder,
|
127
|
+
E as getTransactionFromOrToAttr,
|
128
|
+
F as getTransactionNonce,
|
129
|
+
G as getTransactionType,
|
130
|
+
pt as transactionBuilder
|
131
131
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const T=require("./reject_if_block_timeout.cjs"),_=require("../rpc_method_wrappers.cjs"),s=require("../../../../web3-utils/lib/esm/promise_helpers.cjs");var p=function(n,c,r,t){function l(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function d(e){try{a(t.next(e))}catch(u){o(u)}}function f(e){try{a(t.throw(e))}catch(u){o(u)}}function a(e){e.done?i(e.value):l(e.value).then(d,f)}a((t=t.apply(n,c||[])).next())})};function y(n,c,r,t){var l;return p(this,void 0,void 0,function*(){const i=(l=n.transactionReceiptPollingInterval)!==null&&l!==void 0?l:n.transactionPollingInterval,[o,d]=s.pollTillDefinedAndReturnIntervalId(()=>p(this,void 0,void 0,function*(){try{return(t??_.getTransactionReceipt)(n,c,r)}catch(m){console.warn("An error happen while trying to get the transaction receipt",m);return}}),i),[f,a]=s.rejectIfTimeout(n.transactionPollingTimeout,new v.TransactionPollingTimeoutError({numberOfSeconds:n.transactionPollingTimeout/1e3,transactionHash:c})),[e,u]=yield T.rejectIfBlockTimeout(n,c);try{return yield Promise.race([o,a,e])}finally{f&&clearTimeout(f),d&&clearInterval(d),u.clean()}})}exports.waitForTransactionReceipt=y;
|
@@ -1,61 +1,61 @@
|
|
1
|
-
import { TransactionPollingTimeoutError as
|
1
|
+
import { TransactionPollingTimeoutError as v } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
2
2
|
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
3
|
import { rejectIfBlockTimeout as s } from "./reject_if_block_timeout.js";
|
4
4
|
import { getTransactionReceipt as T } from "../rpc_method_wrappers.js";
|
5
|
-
import { pollTillDefinedAndReturnIntervalId as
|
6
|
-
var m = function(
|
7
|
-
function
|
8
|
-
return
|
9
|
-
|
5
|
+
import { pollTillDefinedAndReturnIntervalId as I, rejectIfTimeout as y } from "../../../../web3-utils/lib/esm/promise_helpers.js";
|
6
|
+
var m = function(i, l, o, t) {
|
7
|
+
function c(e) {
|
8
|
+
return e instanceof o ? e : new o(function(r) {
|
9
|
+
r(e);
|
10
10
|
});
|
11
11
|
}
|
12
|
-
return new (
|
13
|
-
function
|
12
|
+
return new (o || (o = Promise))(function(e, r) {
|
13
|
+
function f(n) {
|
14
14
|
try {
|
15
|
-
a(
|
16
|
-
} catch (
|
17
|
-
|
15
|
+
a(t.next(n));
|
16
|
+
} catch (u) {
|
17
|
+
r(u);
|
18
18
|
}
|
19
19
|
}
|
20
20
|
function d(n) {
|
21
21
|
try {
|
22
|
-
a(
|
23
|
-
} catch (
|
24
|
-
|
22
|
+
a(t.throw(n));
|
23
|
+
} catch (u) {
|
24
|
+
r(u);
|
25
25
|
}
|
26
26
|
}
|
27
27
|
function a(n) {
|
28
|
-
n.done ?
|
28
|
+
n.done ? e(n.value) : c(n.value).then(f, d);
|
29
29
|
}
|
30
|
-
a((
|
30
|
+
a((t = t.apply(i, l || [])).next());
|
31
31
|
});
|
32
32
|
};
|
33
|
-
function
|
34
|
-
var
|
33
|
+
function P(i, l, o, t) {
|
34
|
+
var c;
|
35
35
|
return m(this, void 0, void 0, function* () {
|
36
|
-
const
|
36
|
+
const e = (c = i.transactionReceiptPollingInterval) !== null && c !== void 0 ? c : i.transactionPollingInterval, [r, f] = I(() => m(this, void 0, void 0, function* () {
|
37
37
|
try {
|
38
|
-
return T(
|
39
|
-
} catch (
|
40
|
-
console.warn("An error happen while trying to get the transaction receipt",
|
38
|
+
return (t ?? T)(i, l, o);
|
39
|
+
} catch (p) {
|
40
|
+
console.warn("An error happen while trying to get the transaction receipt", p);
|
41
41
|
return;
|
42
42
|
}
|
43
|
-
}),
|
44
|
-
numberOfSeconds:
|
45
|
-
transactionHash:
|
46
|
-
})), [
|
43
|
+
}), e), [d, a] = y(i.transactionPollingTimeout, new v({
|
44
|
+
numberOfSeconds: i.transactionPollingTimeout / 1e3,
|
45
|
+
transactionHash: l
|
46
|
+
})), [n, u] = yield s(i, l);
|
47
47
|
try {
|
48
48
|
return yield Promise.race([
|
49
|
-
|
50
|
-
|
51
|
-
|
49
|
+
r,
|
50
|
+
a,
|
51
|
+
n
|
52
52
|
// this will throw an error on Transaction Block Timeout
|
53
53
|
]);
|
54
54
|
} finally {
|
55
|
-
|
55
|
+
d && clearTimeout(d), f && clearInterval(f), u.clean();
|
56
56
|
}
|
57
57
|
});
|
58
58
|
}
|
59
59
|
export {
|
60
|
-
|
60
|
+
P as waitForTransactionReceipt
|
61
61
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../../web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const h=require("../schemas.cjs"),m=require("../../../../web3-utils/lib/esm/converters.cjs"),d=require("../../../../web3-utils/lib/esm/formatter.cjs");var y=function(o,l,r,i){function c(n){return n instanceof r?n:new r(function(t){t(n)})}return new(r||(r=Promise))(function(n,t){function f(e){try{s(i.next(e))}catch(u){t(u)}}function a(e){try{s(i.throw(e))}catch(u){t(u)}}function s(e){e.done?n(e.value):c(e.value).then(f,a)}s((i=i.apply(o,l||[])).next())})};const B=({web3Context:o,transactionReceipt:l,transactionPromiEvent:r,customTransactionReceiptSchema:i,returnFormat:c})=>{var n;let t=1;const f=setInterval(()=>{y(void 0,void 0,void 0,function*(){t>=o.transactionConfirmationBlocks&&clearInterval(f);const a=yield v.getBlockByNumber(o.requestManager,m.numberToHex(BigInt(l.blockNumber)+BigInt(t)),!1);a!=null&&a.hash&&(t+=1,r.emit("confirmation",{confirmations:d.format({format:"uint"},t,c),receipt:d.format(i??h.transactionReceiptSchema,l,c),latestBlockHash:d.format({format:"bytes32"},a.hash,c)}))})},(n=o.transactionReceiptPollingInterval)!==null&&n!==void 0?n:o.transactionPollingInterval)};exports.watchTransactionByPolling=B;
|
@@ -1,50 +1,50 @@
|
|
1
1
|
import { getBlockByNumber as u } from "../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
|
2
2
|
import "../../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
|
3
3
|
import "../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
|
4
|
-
import { transactionReceiptSchema as
|
5
|
-
import { numberToHex as
|
4
|
+
import { transactionReceiptSchema as v } from "../schemas.js";
|
5
|
+
import { numberToHex as p } from "../../../../web3-utils/lib/esm/converters.js";
|
6
6
|
import { format as s } from "../../../../web3-utils/lib/esm/formatter.js";
|
7
|
-
var h = function(
|
8
|
-
function
|
9
|
-
return n instanceof
|
10
|
-
|
7
|
+
var h = function(a, f, r, o) {
|
8
|
+
function e(n) {
|
9
|
+
return n instanceof r ? n : new r(function(i) {
|
10
|
+
i(n);
|
11
11
|
});
|
12
12
|
}
|
13
|
-
return new (
|
14
|
-
function
|
13
|
+
return new (r || (r = Promise))(function(n, i) {
|
14
|
+
function c(t) {
|
15
15
|
try {
|
16
|
-
|
16
|
+
d(o.next(t));
|
17
17
|
} catch (m) {
|
18
|
-
|
18
|
+
i(m);
|
19
19
|
}
|
20
20
|
}
|
21
|
-
function
|
21
|
+
function l(t) {
|
22
22
|
try {
|
23
|
-
|
23
|
+
d(o.throw(t));
|
24
24
|
} catch (m) {
|
25
|
-
|
25
|
+
i(m);
|
26
26
|
}
|
27
27
|
}
|
28
|
-
function
|
29
|
-
t.done ? n(t.value) :
|
28
|
+
function d(t) {
|
29
|
+
t.done ? n(t.value) : e(t.value).then(c, l);
|
30
30
|
}
|
31
|
-
|
31
|
+
d((o = o.apply(a, f || [])).next());
|
32
32
|
});
|
33
33
|
};
|
34
|
-
const w = ({ web3Context:
|
35
|
-
var
|
36
|
-
let
|
34
|
+
const w = ({ web3Context: a, transactionReceipt: f, transactionPromiEvent: r, customTransactionReceiptSchema: o, returnFormat: e }) => {
|
35
|
+
var n;
|
36
|
+
let i = 1;
|
37
37
|
const c = setInterval(() => {
|
38
38
|
h(void 0, void 0, void 0, function* () {
|
39
|
-
|
40
|
-
const
|
41
|
-
|
42
|
-
confirmations: s({ format: "uint" },
|
43
|
-
receipt: s(
|
44
|
-
latestBlockHash: s({ format: "bytes32" },
|
39
|
+
i >= a.transactionConfirmationBlocks && clearInterval(c);
|
40
|
+
const l = yield u(a.requestManager, p(BigInt(f.blockNumber) + BigInt(i)), !1);
|
41
|
+
l != null && l.hash && (i += 1, r.emit("confirmation", {
|
42
|
+
confirmations: s({ format: "uint" }, i, e),
|
43
|
+
receipt: s(o ?? v, f, e),
|
44
|
+
latestBlockHash: s({ format: "bytes32" }, l.hash, e)
|
45
45
|
}));
|
46
46
|
});
|
47
|
-
}, (
|
47
|
+
}, (n = a.transactionReceiptPollingInterval) !== null && n !== void 0 ? n : a.transactionPollingInterval);
|
48
48
|
};
|
49
49
|
export {
|
50
50
|
w as watchTransactionByPolling
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../schemas.cjs"),c=require("./watch_transaction_by_polling.cjs"),h=require("../../../../web3-utils/lib/esm/formatter.cjs");var y=function(o,u,f,a){function l(t){return t instanceof f?t:new f(function(d){d(t)})}return new(f||(f=Promise))(function(t,d){function r(n){try{i(a.next(n))}catch(v){d(v)}}function s(n){try{i(a.throw(n))}catch(v){d(v)}}function i(n){n.done?t(n.value):l(n.value).then(r,s)}i((a=a.apply(o,u||[])).next())})};const _=({web3Context:o,transactionReceipt:u,transactionPromiEvent:f,customTransactionReceiptSchema:a,returnFormat:l})=>{let t=!0,d;setImmediate(()=>{var r;(r=o.subscriptionManager)===null||r===void 0||r.subscribe("newHeads").then(s=>{s.on("data",i=>y(void 0,void 0,void 0,function*(){var n;if(t=!1,!(i!=null&&i.number)||d===(i==null?void 0:i.parentHash))return;d=i==null?void 0:i.parentHash;const v=BigInt(i.number)-BigInt(u.blockNumber)+BigInt(1);f.emit("confirmation",{confirmations:h.format({format:"uint"},v,l),receipt:h.format(a??g.transactionReceiptSchema,u,l),latestBlockHash:h.format({format:"bytes32"},i.parentHash,l)}),v>=o.transactionConfirmationBlocks&&(yield(n=o.subscriptionManager)===null||n===void 0?void 0:n.removeSubscription(s))})),s.on("error",()=>y(void 0,void 0,void 0,function*(){var i;yield(i=o.subscriptionManager)===null||i===void 0?void 0:i.removeSubscription(s),t=!1,c.watchTransactionByPolling({web3Context:o,transactionReceipt:u,transactionPromiEvent:f,customTransactionReceiptSchema:a,returnFormat:l})}))}).catch(()=>{t=!1,c.watchTransactionByPolling({web3Context:o,transactionReceipt:u,customTransactionReceiptSchema:a,transactionPromiEvent:f,returnFormat:l})})}),setTimeout(()=>{t&&c.watchTransactionByPolling({web3Context:o,transactionReceipt:u,transactionPromiEvent:f,returnFormat:l})},o.blockHeaderTimeout*1e3)};exports.watchTransactionBySubscription=_;
|
@@ -1,77 +1,79 @@
|
|
1
|
-
import { transactionReceiptSchema as
|
1
|
+
import { transactionReceiptSchema as y } from "../schemas.js";
|
2
2
|
import { watchTransactionByPolling as m } from "./watch_transaction_by_polling.js";
|
3
|
-
import { format as
|
4
|
-
var
|
5
|
-
function
|
6
|
-
return
|
7
|
-
|
3
|
+
import { format as r } from "../../../../web3-utils/lib/esm/formatter.js";
|
4
|
+
var p = function(f, v, u, n) {
|
5
|
+
function l(d) {
|
6
|
+
return d instanceof u ? d : new u(function(a) {
|
7
|
+
a(d);
|
8
8
|
});
|
9
9
|
}
|
10
|
-
return new (
|
11
|
-
function
|
10
|
+
return new (u || (u = Promise))(function(d, a) {
|
11
|
+
function h(o) {
|
12
12
|
try {
|
13
|
-
|
14
|
-
} catch (
|
15
|
-
|
13
|
+
i(n.next(o));
|
14
|
+
} catch (s) {
|
15
|
+
a(s);
|
16
16
|
}
|
17
17
|
}
|
18
|
-
function
|
18
|
+
function t(o) {
|
19
19
|
try {
|
20
|
-
|
21
|
-
} catch (
|
22
|
-
|
20
|
+
i(n.throw(o));
|
21
|
+
} catch (s) {
|
22
|
+
a(s);
|
23
23
|
}
|
24
24
|
}
|
25
|
-
function
|
26
|
-
|
25
|
+
function i(o) {
|
26
|
+
o.done ? d(o.value) : l(o.value).then(h, t);
|
27
27
|
}
|
28
|
-
|
28
|
+
i((n = n.apply(f, v || [])).next());
|
29
29
|
});
|
30
30
|
};
|
31
|
-
const
|
32
|
-
let
|
31
|
+
const I = ({ web3Context: f, transactionReceipt: v, transactionPromiEvent: u, customTransactionReceiptSchema: n, returnFormat: l }) => {
|
32
|
+
let d = !0, a;
|
33
33
|
setImmediate(() => {
|
34
|
-
var
|
35
|
-
(
|
36
|
-
|
37
|
-
var
|
38
|
-
if (
|
34
|
+
var h;
|
35
|
+
(h = f.subscriptionManager) === null || h === void 0 || h.subscribe("newHeads").then((t) => {
|
36
|
+
t.on("data", (i) => p(void 0, void 0, void 0, function* () {
|
37
|
+
var o;
|
38
|
+
if (d = !1, !(i != null && i.number) || // For some cases, the on-data event is fired couple times for the same block!
|
39
39
|
// This needs investigation but seems to be because of multiple `subscription.on('data'...)` even this should not cause that.
|
40
|
-
|
40
|
+
a === (i == null ? void 0 : i.parentHash))
|
41
41
|
return;
|
42
|
-
|
43
|
-
const
|
44
|
-
|
45
|
-
confirmations:
|
46
|
-
receipt:
|
47
|
-
latestBlockHash:
|
48
|
-
}),
|
49
|
-
})),
|
42
|
+
a = i == null ? void 0 : i.parentHash;
|
43
|
+
const s = BigInt(i.number) - BigInt(v.blockNumber) + BigInt(1);
|
44
|
+
u.emit("confirmation", {
|
45
|
+
confirmations: r({ format: "uint" }, s, l),
|
46
|
+
receipt: r(n ?? y, v, l),
|
47
|
+
latestBlockHash: r({ format: "bytes32" }, i.parentHash, l)
|
48
|
+
}), s >= f.transactionConfirmationBlocks && (yield (o = f.subscriptionManager) === null || o === void 0 ? void 0 : o.removeSubscription(t));
|
49
|
+
})), t.on("error", () => p(void 0, void 0, void 0, function* () {
|
50
50
|
var i;
|
51
|
-
yield (i =
|
52
|
-
web3Context:
|
53
|
-
transactionReceipt:
|
54
|
-
transactionPromiEvent:
|
55
|
-
|
51
|
+
yield (i = f.subscriptionManager) === null || i === void 0 ? void 0 : i.removeSubscription(t), d = !1, m({
|
52
|
+
web3Context: f,
|
53
|
+
transactionReceipt: v,
|
54
|
+
transactionPromiEvent: u,
|
55
|
+
customTransactionReceiptSchema: n,
|
56
|
+
returnFormat: l
|
56
57
|
});
|
57
58
|
}));
|
58
59
|
}).catch(() => {
|
59
|
-
|
60
|
-
web3Context:
|
61
|
-
transactionReceipt:
|
62
|
-
|
63
|
-
|
60
|
+
d = !1, m({
|
61
|
+
web3Context: f,
|
62
|
+
transactionReceipt: v,
|
63
|
+
customTransactionReceiptSchema: n,
|
64
|
+
transactionPromiEvent: u,
|
65
|
+
returnFormat: l
|
64
66
|
});
|
65
67
|
});
|
66
68
|
}), setTimeout(() => {
|
67
|
-
|
68
|
-
web3Context:
|
69
|
-
transactionReceipt:
|
70
|
-
transactionPromiEvent:
|
71
|
-
returnFormat:
|
69
|
+
d && m({
|
70
|
+
web3Context: f,
|
71
|
+
transactionReceipt: v,
|
72
|
+
transactionPromiEvent: u,
|
73
|
+
returnFormat: l
|
72
74
|
});
|
73
|
-
},
|
75
|
+
}, f.blockHeaderTimeout * 1e3);
|
74
76
|
};
|
75
77
|
export {
|
76
|
-
|
78
|
+
I as watchTransactionBySubscription
|
77
79
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");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 b=require("../../../../web3-validator/lib/esm/validation/object.cjs"),q=require("../schemas.cjs"),a=require("./watch_transaction_by_polling.cjs"),n=require("./watch_transaction_by_subscription.cjs"),i=require("../../../../web3-utils/lib/esm/formatter.cjs");function c(l,u,r,h,o,s){if(b.isNullish(r)||b.isNullish(r.blockHash))throw new e.TransactionMissingReceiptOrBlockHashError({receipt:r,blockHash:i.format({format:"bytes32"},r==null?void 0:r.blockHash,o),transactionHash:i.format({format:"bytes32"},h,o)});if(!r.blockNumber)throw new e.TransactionReceiptMissingBlockNumberError({receipt:r});u.emit("confirmation",{confirmations:i.format({format:"uint"},1,o),receipt:i.format(s??q.transactionReceiptSchema,r,o),latestBlockHash:i.format({format:"bytes32"},r.blockHash,o)});const f=l.requestManager.provider;f&&"supportsSubscriptions"in f&&f.supportsSubscriptions()?n.watchTransactionBySubscription({web3Context:l,transactionReceipt:r,transactionPromiEvent:u,customTransactionReceiptSchema:s,returnFormat:o}):a.watchTransactionByPolling({web3Context:l,transactionReceipt:r,transactionPromiEvent:u,customTransactionReceiptSchema:s,returnFormat:o})}exports.watchTransactionForConfirmations=c;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { TransactionMissingReceiptOrBlockHashError as h, TransactionReceiptMissingBlockNumberError as
|
1
|
+
import { TransactionMissingReceiptOrBlockHashError as h, TransactionReceiptMissingBlockNumberError as k } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
2
2
|
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
3
|
import "../../../../web3-validator/lib/esm/formats.js";
|
4
4
|
import "../../../../web3-validator/lib/esm/default_validator.js";
|
@@ -6,37 +6,39 @@ import "../../../../web3-types/lib/esm/data_format_types.js";
|
|
6
6
|
import "../../../../web3-types/lib/esm/eth_types.js";
|
7
7
|
import "../../../../web3-types/lib/esm/web3_base_provider.js";
|
8
8
|
import { isNullish as p } from "../../../../web3-validator/lib/esm/validation/object.js";
|
9
|
-
import { transactionReceiptSchema as
|
10
|
-
import { watchTransactionByPolling as
|
11
|
-
import { watchTransactionBySubscription as
|
12
|
-
import { format as
|
13
|
-
function
|
9
|
+
import { transactionReceiptSchema as H } from "../schemas.js";
|
10
|
+
import { watchTransactionByPolling as d } from "./watch_transaction_by_polling.js";
|
11
|
+
import { watchTransactionBySubscription as w } from "./watch_transaction_by_subscription.js";
|
12
|
+
import { format as f } from "../../../../web3-utils/lib/esm/formatter.js";
|
13
|
+
function A(l, s, o, b, r, i) {
|
14
14
|
if (p(o) || p(o.blockHash))
|
15
15
|
throw new h({
|
16
16
|
receipt: o,
|
17
|
-
blockHash:
|
18
|
-
transactionHash:
|
17
|
+
blockHash: f({ format: "bytes32" }, o == null ? void 0 : o.blockHash, r),
|
18
|
+
transactionHash: f({ format: "bytes32" }, b, r)
|
19
19
|
});
|
20
20
|
if (!o.blockNumber)
|
21
|
-
throw new
|
22
|
-
|
23
|
-
confirmations:
|
24
|
-
receipt:
|
25
|
-
latestBlockHash:
|
21
|
+
throw new k({ receipt: o });
|
22
|
+
s.emit("confirmation", {
|
23
|
+
confirmations: f({ format: "uint" }, 1, r),
|
24
|
+
receipt: f(i ?? H, o, r),
|
25
|
+
latestBlockHash: f({ format: "bytes32" }, o.blockHash, r)
|
26
26
|
});
|
27
|
-
const
|
28
|
-
|
29
|
-
web3Context:
|
27
|
+
const m = l.requestManager.provider;
|
28
|
+
m && "supportsSubscriptions" in m && m.supportsSubscriptions() ? w({
|
29
|
+
web3Context: l,
|
30
30
|
transactionReceipt: o,
|
31
|
-
transactionPromiEvent:
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
transactionPromiEvent: s,
|
32
|
+
customTransactionReceiptSchema: i,
|
33
|
+
returnFormat: r
|
34
|
+
}) : d({
|
35
|
+
web3Context: l,
|
35
36
|
transactionReceipt: o,
|
36
|
-
transactionPromiEvent:
|
37
|
-
|
37
|
+
transactionPromiEvent: s,
|
38
|
+
customTransactionReceiptSchema: i,
|
39
|
+
returnFormat: r
|
38
40
|
});
|
39
41
|
}
|
40
42
|
export {
|
41
|
-
|
43
|
+
A as watchTransactionForConfirmations
|
42
44
|
};
|