@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
@@ -4,13 +4,13 @@ import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
|
4
4
|
import { isAbiErrorFragment as v } from "../../../../web3-eth-abi/lib/esm/utils.js";
|
5
5
|
import "../../../../web3-validator/lib/esm/formats.js";
|
6
6
|
import "../../../../web3-validator/lib/esm/default_validator.js";
|
7
|
-
import
|
7
|
+
import "../../../../web3-types/lib/esm/data_format_types.js";
|
8
8
|
import "../../../../web3-types/lib/esm/eth_types.js";
|
9
9
|
import "../../../../web3-types/lib/esm/web3_base_provider.js";
|
10
10
|
import "../../../../web3-eth-abi/lib/esm/coders/base/number.js";
|
11
|
-
import { decodeContractErrorData as
|
11
|
+
import { decodeContractErrorData as E } from "../../../../web3-eth-abi/lib/esm/decode_contract_error_data.js";
|
12
12
|
import { call as g } from "../rpc_method_wrappers.js";
|
13
|
-
var
|
13
|
+
var _ = function(t, u, n, i) {
|
14
14
|
function o(e) {
|
15
15
|
return e instanceof n ? e : new n(function(a) {
|
16
16
|
a(e);
|
@@ -37,12 +37,12 @@ var h = function(t, u, n, i) {
|
|
37
37
|
d((i = i.apply(t, u || [])).next());
|
38
38
|
});
|
39
39
|
};
|
40
|
-
const
|
40
|
+
const h = (t, u) => {
|
41
41
|
var n, i, o, e, a;
|
42
42
|
if (t instanceof m && t.cause instanceof l) {
|
43
43
|
if (u !== void 0) {
|
44
44
|
const s = u.filter((c) => v(c));
|
45
|
-
return
|
45
|
+
return E(s, t.cause), {
|
46
46
|
reason: t.cause.message,
|
47
47
|
signature: (n = t.cause.data) === null || n === void 0 ? void 0 : n.slice(0, 10),
|
48
48
|
data: (i = t.cause.data) === null || i === void 0 ? void 0 : i.substring(10),
|
@@ -61,17 +61,17 @@ const y = (t, u) => {
|
|
61
61
|
return t.cause.message;
|
62
62
|
throw t;
|
63
63
|
};
|
64
|
-
function
|
65
|
-
return
|
64
|
+
function I(t, u, n, i = t.defaultReturnFormat) {
|
65
|
+
return _(this, void 0, void 0, function* () {
|
66
66
|
try {
|
67
67
|
yield g(t, u, t.defaultBlock, i);
|
68
68
|
return;
|
69
69
|
} catch (o) {
|
70
|
-
return
|
70
|
+
return h(o, n);
|
71
71
|
}
|
72
72
|
});
|
73
73
|
}
|
74
74
|
export {
|
75
|
-
|
76
|
-
|
75
|
+
I as getRevertReason,
|
76
|
+
h as parseTransactionError
|
77
77
|
};
|
@@ -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("../../../../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 g=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");const u=require("../../../../web3-validator/lib/esm/validation/object.cjs"),p=require("../rpc_method_wrappers.cjs"),m=require("./transaction_builder.cjs"),P=require("../../../../web3-utils/lib/esm/formatter.cjs");var y=function(i,n,r,e){function c(t){return t instanceof r?t:new r(function(a){a(t)})}return new(r||(r=Promise))(function(t,a){function d(s){try{o(e.next(s))}catch(l){a(l)}}function f(s){try{o(e.throw(s))}catch(l){a(l)}}function o(s){s.done?t(s.value):c(s.value).then(d,f)}o((e=e.apply(i,n||[])).next())})};function h(i,n,r){var e,c,t,a;return y(this,void 0,void 0,function*(){const d=yield p.getBlock(n,n.defaultBlock,!1,G.ETH_DATA_FORMAT);if(u.isNullish(d.baseFeePerGas))throw new g.Eip1559NotSupportedError;let f;if(u.isNullish(i.gasPrice)&&BigInt(d.baseFeePerGas)===BigInt(0)&&(f=yield p.getGasPrice(n,r)),!u.isNullish(i.gasPrice)||!u.isNullish(f)){const o=P.format({format:"uint"},(e=i.gasPrice)!==null&&e!==void 0?e:f,r);return{maxPriorityFeePerGas:o,maxFeePerGas:o}}return{maxPriorityFeePerGas:P.format({format:"uint"},(c=i.maxPriorityFeePerGas)!==null&&c!==void 0?c:n.defaultMaxPriorityFeePerGas,r),maxFeePerGas:P.format({format:"uint"},(t=i.maxFeePerGas)!==null&&t!==void 0?t:BigInt(d.baseFeePerGas)*BigInt(2)+BigInt((a=i.maxPriorityFeePerGas)!==null&&a!==void 0?a:n.defaultMaxPriorityFeePerGas),r)}})}function _(i,n,r){return y(this,void 0,void 0,function*(){const e=m.getTransactionType(i,n);if(!u.isNullish(e)){if(e.startsWith("-"))throw new g.UnsupportedTransactionTypeError(e);if(Number(e)<0||Number(e)>127)throw new g.UnsupportedTransactionTypeError(e);if(u.isNullish(i.gasPrice)&&(e==="0x0"||e==="0x1"))return{gasPrice:yield p.getGasPrice(n,r),maxPriorityFeePerGas:void 0,maxFeePerGas:void 0};if(e==="0x2")return Object.assign({gasPrice:void 0},yield h(i,n,r))}})}exports.getTransactionGasPricing=_;
|
@@ -1,79 +1,80 @@
|
|
1
|
-
import {
|
1
|
+
import { ETH_DATA_FORMAT as g } from "../../../../web3-types/lib/esm/data_format_types.js";
|
2
|
+
import "../../../../web3-types/lib/esm/eth_types.js";
|
3
|
+
import "../../../../web3-types/lib/esm/web3_base_provider.js";
|
4
|
+
import { UnsupportedTransactionTypeError as p, Eip1559NotSupportedError as y } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
2
5
|
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
6
|
import "../../../../web3-validator/lib/esm/formats.js";
|
4
7
|
import "../../../../web3-validator/lib/esm/default_validator.js";
|
5
|
-
import "../../../../web3-
|
6
|
-
import "
|
7
|
-
import "
|
8
|
-
import { isNullish as u } from "../../../../web3-validator/lib/esm/validation/object.js";
|
9
|
-
import { getGasPrice as y, getBlock as g } from "../rpc_method_wrappers.js";
|
10
|
-
import { getTransactionType as x } from "./transaction_builder.js";
|
8
|
+
import { isNullish as s } from "../../../../web3-validator/lib/esm/validation/object.js";
|
9
|
+
import { getGasPrice as l, getBlock as h } from "../rpc_method_wrappers.js";
|
10
|
+
import { getTransactionType as v } from "./transaction_builder.js";
|
11
11
|
import { format as m } from "../../../../web3-utils/lib/esm/formatter.js";
|
12
|
-
var
|
13
|
-
function
|
14
|
-
return t instanceof
|
12
|
+
var G = function(i, n, r, e) {
|
13
|
+
function u(t) {
|
14
|
+
return t instanceof r ? t : new r(function(o) {
|
15
15
|
o(t);
|
16
16
|
});
|
17
17
|
}
|
18
|
-
return new (
|
19
|
-
function
|
18
|
+
return new (r || (r = Promise))(function(t, o) {
|
19
|
+
function d(a) {
|
20
20
|
try {
|
21
|
-
|
22
|
-
} catch (
|
23
|
-
o(
|
21
|
+
f(e.next(a));
|
22
|
+
} catch (P) {
|
23
|
+
o(P);
|
24
24
|
}
|
25
25
|
}
|
26
|
-
function
|
26
|
+
function c(a) {
|
27
27
|
try {
|
28
|
-
|
29
|
-
} catch (
|
30
|
-
o(
|
28
|
+
f(e.throw(a));
|
29
|
+
} catch (P) {
|
30
|
+
o(P);
|
31
31
|
}
|
32
32
|
}
|
33
|
-
function
|
34
|
-
a.done ? t(a.value) :
|
33
|
+
function f(a) {
|
34
|
+
a.done ? t(a.value) : u(a.value).then(d, c);
|
35
35
|
}
|
36
|
-
|
36
|
+
f((e = e.apply(i, n || [])).next());
|
37
37
|
});
|
38
38
|
};
|
39
|
-
function
|
40
|
-
var e,
|
41
|
-
return
|
42
|
-
const
|
43
|
-
if (
|
44
|
-
throw new
|
45
|
-
|
46
|
-
|
39
|
+
function x(i, n, r) {
|
40
|
+
var e, u, t, o;
|
41
|
+
return G(this, void 0, void 0, function* () {
|
42
|
+
const d = yield h(n, n.defaultBlock, !1, g);
|
43
|
+
if (s(d.baseFeePerGas))
|
44
|
+
throw new y();
|
45
|
+
let c;
|
46
|
+
if (s(i.gasPrice) && BigInt(d.baseFeePerGas) === BigInt(0) && (c = yield l(n, r)), !s(i.gasPrice) || !s(c)) {
|
47
|
+
const f = m({ format: "uint" }, (e = i.gasPrice) !== null && e !== void 0 ? e : c, r);
|
47
48
|
return {
|
48
|
-
maxPriorityFeePerGas:
|
49
|
-
maxFeePerGas:
|
49
|
+
maxPriorityFeePerGas: f,
|
50
|
+
maxFeePerGas: f
|
50
51
|
};
|
51
52
|
}
|
52
53
|
return {
|
53
|
-
maxPriorityFeePerGas: m({ format: "uint" }, (
|
54
|
-
maxFeePerGas: m({ format: "uint" }, (
|
54
|
+
maxPriorityFeePerGas: m({ format: "uint" }, (u = i.maxPriorityFeePerGas) !== null && u !== void 0 ? u : n.defaultMaxPriorityFeePerGas, r),
|
55
|
+
maxFeePerGas: m({ format: "uint" }, (t = i.maxFeePerGas) !== null && t !== void 0 ? t : BigInt(d.baseFeePerGas) * BigInt(2) + BigInt((o = i.maxPriorityFeePerGas) !== null && o !== void 0 ? o : n.defaultMaxPriorityFeePerGas), r)
|
55
56
|
};
|
56
57
|
});
|
57
58
|
}
|
58
|
-
function
|
59
|
-
return
|
60
|
-
const e =
|
61
|
-
if (!
|
59
|
+
function b(i, n, r) {
|
60
|
+
return G(this, void 0, void 0, function* () {
|
61
|
+
const e = v(i, n);
|
62
|
+
if (!s(e)) {
|
62
63
|
if (e.startsWith("-"))
|
63
|
-
throw new
|
64
|
+
throw new p(e);
|
64
65
|
if (Number(e) < 0 || Number(e) > 127)
|
65
|
-
throw new
|
66
|
-
if (
|
66
|
+
throw new p(e);
|
67
|
+
if (s(i.gasPrice) && (e === "0x0" || e === "0x1"))
|
67
68
|
return {
|
68
|
-
gasPrice: yield
|
69
|
+
gasPrice: yield l(n, r),
|
69
70
|
maxPriorityFeePerGas: void 0,
|
70
71
|
maxFeePerGas: void 0
|
71
72
|
};
|
72
73
|
if (e === "0x2")
|
73
|
-
return Object.assign({ gasPrice: void 0 }, yield
|
74
|
+
return Object.assign({ gasPrice: void 0 }, yield x(i, n, r));
|
74
75
|
}
|
75
76
|
});
|
76
77
|
}
|
77
78
|
export {
|
78
|
-
|
79
|
+
b as getTransactionGasPricing
|
79
80
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=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 f=require("../../../../web3-errors/lib/esm/errors/contract_errors.cjs"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=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 f=require("../../../../web3-errors/lib/esm/errors/contract_errors.cjs"),u=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs"),b=require("../../../../web3-errors/lib/esm/errors/response_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");const c=require("../../../../web3-validator/lib/esm/validation/object.cjs"),p=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 T=require("./get_transaction_gas_pricing.cjs"),g=require("./try_send_transaction.cjs"),C=require("./watch_transaction_for_confirmations.cjs"),q=require("../constants.cjs"),v=require("./get_transaction_error.cjs"),w=require("./get_revert_reason.cjs"),R=require("./decoding.cjs");var a=function(l,t,i,e){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function m(s){try{d(e.next(s))}catch(h){o(h)}}function _(s){try{d(e.throw(s))}catch(h){o(h)}}function d(s){s.done?r(s.value):n(s.value).then(m,_)}d((e=e.apply(l,t||[])).next())})};class y{constructor({options:t,web3Context:i,promiEvent:e,returnFormat:n}){this.options={checkRevertBeforeSending:!0},this.options=t,this.web3Context=i,this.promiEvent=e,this.returnFormat=n}getReceiptWithEvents(t){var i,e;const n=Object.assign({},t??{});if(!((i=this.options)===null||i===void 0)&&i.contractAbi&&n.logs&&n.logs.length>0){n.events={};for(const r of n.logs){const o=R.decodeEventABI(q.ALL_EVENTS_ABI,r,(e=this.options)===null||e===void 0?void 0:e.contractAbi,this.returnFormat);o.event&&(n.events[o.event]=o)}}return n}checkRevertBeforeSending(t){return a(this,void 0,void 0,function*(){if(this.options.checkRevertBeforeSending!==!1){let i=t;c.isNullish(t.data)&&c.isNullish(t.input)&&c.isNullish(t.gas)&&(i=Object.assign(Object.assign({},t),{gas:21e3}));const e=yield w.getRevertReason(this.web3Context,i,this.options.contractAbi);if(e!==void 0)throw yield v.getTransactionError(this.web3Context,t,void 0,void 0,this.options.contractAbi,e)}})}emitSending(t){this.promiEvent.listenerCount("sending")>0&&this.promiEvent.emit("sending",t)}populateGasPrice({transactionFormatted:t,transaction:i}){var e;return a(this,void 0,void 0,function*(){let n=t;return!(!((e=this.options)===null||e===void 0)&&e.ignoreGasPricing)&&c.isNullish(t.gasPrice)&&(c.isNullish(i.maxPriorityFeePerGas)||c.isNullish(i.maxFeePerGas))&&(n=Object.assign(Object.assign({},t),yield T.getTransactionGasPricing(t,this.web3Context,E.ETH_DATA_FORMAT))),n})}signAndSend({wallet:t,tx:i}){return a(this,void 0,void 0,function*(){if(t){const e=yield t.signTransaction(i);return g.trySendTransaction(this.web3Context,()=>a(this,void 0,void 0,function*(){return p.sendRawTransaction(this.web3Context.requestManager,e.rawTransaction)}),e.transactionHash)}return g.trySendTransaction(this.web3Context,()=>a(this,void 0,void 0,function*(){return p.sendTransaction(this.web3Context.requestManager,i)}))})}emitSent(t){this.promiEvent.listenerCount("sent")>0&&this.promiEvent.emit("sent",t)}emitTransactionHash(t){this.promiEvent.listenerCount("transactionHash")>0&&this.promiEvent.emit("transactionHash",t)}emitReceipt(t){this.promiEvent.listenerCount("receipt")>0&&this.promiEvent.emit("receipt",t)}handleError({error:t,tx:i}){var e;return a(this,void 0,void 0,function*(){let n=t;return n instanceof f.ContractExecutionError&&this.web3Context.handleRevert&&(n=yield v.getTransactionError(this.web3Context,i,void 0,void 0,(e=this.options)===null||e===void 0?void 0:e.contractAbi)),(n instanceof b.InvalidResponseError||n instanceof f.ContractExecutionError||n instanceof u.TransactionRevertWithCustomError||n instanceof u.TransactionRevertedWithoutReasonError||n instanceof u.TransactionRevertInstructionError||n instanceof u.TransactionPollingTimeoutError)&&this.promiEvent.listenerCount("error")>0&&this.promiEvent.emit("error",n),n})}emitConfirmation({receipt:t,transactionHash:i,customTransactionReceiptSchema:e}){this.promiEvent.listenerCount("confirmation")>0&&C.watchTransactionForConfirmations(this.web3Context,this.promiEvent,t,i,this.returnFormat,e)}handleResolve({receipt:t,tx:i}){var e,n,r;return a(this,void 0,void 0,function*(){if(!((e=this.options)===null||e===void 0)&&e.transactionResolver)return(n=this.options)===null||n===void 0?void 0:n.transactionResolver(t);if(t.status===BigInt(0)){const o=yield v.getTransactionError(this.web3Context,i,t,void 0,(r=this.options)===null||r===void 0?void 0:r.contractAbi);throw this.promiEvent.listenerCount("error")>0&&this.promiEvent.emit("error",o),o}else return t})}}exports.SendTxHelper=y;
|
@@ -1,97 +1,99 @@
|
|
1
|
-
import { ETH_DATA_FORMAT as
|
1
|
+
import { ETH_DATA_FORMAT as g } 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
|
-
import { ContractExecutionError as
|
5
|
-
import { TransactionRevertWithCustomError as
|
4
|
+
import { ContractExecutionError as m } from "../../../../web3-errors/lib/esm/errors/contract_errors.js";
|
5
|
+
import { TransactionRevertWithCustomError as E, TransactionRevertedWithoutReasonError as b, TransactionRevertInstructionError as C, TransactionPollingTimeoutError as w } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
6
6
|
import { InvalidResponseError as T } from "../../../../web3-errors/lib/esm/errors/response_errors.js";
|
7
7
|
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
8
8
|
import "../../../../web3-validator/lib/esm/formats.js";
|
9
9
|
import "../../../../web3-validator/lib/esm/default_validator.js";
|
10
|
-
import { isNullish as
|
11
|
-
import { sendRawTransaction as R, sendTransaction as
|
10
|
+
import { isNullish as c } from "../../../../web3-validator/lib/esm/validation/object.js";
|
11
|
+
import { sendRawTransaction as R, sendTransaction as _ } from "../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
|
12
12
|
import "../../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
|
13
13
|
import "../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
|
14
|
-
import { getTransactionGasPricing as
|
15
|
-
import { trySendTransaction as
|
14
|
+
import { getTransactionGasPricing as x } from "./get_transaction_gas_pricing.js";
|
15
|
+
import { trySendTransaction as v } from "./try_send_transaction.js";
|
16
16
|
import { watchTransactionForConfirmations as A } from "./watch_transaction_for_confirmations.js";
|
17
17
|
import { ALL_EVENTS_ABI as y } from "../constants.js";
|
18
|
-
import { getTransactionError as
|
18
|
+
import { getTransactionError as h } from "./get_transaction_error.js";
|
19
19
|
import { getRevertReason as S } from "./get_revert_reason.js";
|
20
20
|
import { decodeEventABI as B } from "./decoding.js";
|
21
|
-
var a = function(u, t,
|
22
|
-
function
|
23
|
-
return o instanceof
|
21
|
+
var a = function(u, t, e, i) {
|
22
|
+
function n(o) {
|
23
|
+
return o instanceof e ? o : new e(function(r) {
|
24
24
|
r(o);
|
25
25
|
});
|
26
26
|
}
|
27
|
-
return new (
|
27
|
+
return new (e || (e = Promise))(function(o, r) {
|
28
28
|
function p(s) {
|
29
29
|
try {
|
30
|
-
|
31
|
-
} catch (
|
32
|
-
r(
|
30
|
+
f(i.next(s));
|
31
|
+
} catch (d) {
|
32
|
+
r(d);
|
33
33
|
}
|
34
34
|
}
|
35
35
|
function l(s) {
|
36
36
|
try {
|
37
|
-
|
38
|
-
} catch (
|
39
|
-
r(
|
37
|
+
f(i.throw(s));
|
38
|
+
} catch (d) {
|
39
|
+
r(d);
|
40
40
|
}
|
41
41
|
}
|
42
|
-
function
|
43
|
-
s.done ? o(s.value) :
|
42
|
+
function f(s) {
|
43
|
+
s.done ? o(s.value) : n(s.value).then(p, l);
|
44
44
|
}
|
45
|
-
|
45
|
+
f((i = i.apply(u, t || [])).next());
|
46
46
|
});
|
47
47
|
};
|
48
48
|
class X {
|
49
|
-
constructor({ options: t, web3Context:
|
49
|
+
constructor({ options: t, web3Context: e, promiEvent: i, returnFormat: n }) {
|
50
50
|
this.options = {
|
51
51
|
checkRevertBeforeSending: !0
|
52
|
-
}, this.options = t, this.web3Context =
|
52
|
+
}, this.options = t, this.web3Context = e, this.promiEvent = i, this.returnFormat = n;
|
53
53
|
}
|
54
54
|
getReceiptWithEvents(t) {
|
55
|
-
var
|
56
|
-
const
|
57
|
-
if (!((
|
58
|
-
|
59
|
-
for (const o of
|
60
|
-
const r = B(y, o, (
|
61
|
-
r.event && (
|
55
|
+
var e, i;
|
56
|
+
const n = Object.assign({}, t ?? {});
|
57
|
+
if (!((e = this.options) === null || e === void 0) && e.contractAbi && n.logs && n.logs.length > 0) {
|
58
|
+
n.events = {};
|
59
|
+
for (const o of n.logs) {
|
60
|
+
const r = B(y, o, (i = this.options) === null || i === void 0 ? void 0 : i.contractAbi, this.returnFormat);
|
61
|
+
r.event && (n.events[r.event] = r);
|
62
62
|
}
|
63
63
|
}
|
64
|
-
return
|
64
|
+
return n;
|
65
65
|
}
|
66
66
|
checkRevertBeforeSending(t) {
|
67
67
|
return a(this, void 0, void 0, function* () {
|
68
68
|
if (this.options.checkRevertBeforeSending !== !1) {
|
69
|
-
|
70
|
-
|
71
|
-
|
69
|
+
let e = t;
|
70
|
+
c(t.data) && c(t.input) && c(t.gas) && (e = Object.assign(Object.assign({}, t), { gas: 21e3 }));
|
71
|
+
const i = yield S(this.web3Context, e, this.options.contractAbi);
|
72
|
+
if (i !== void 0)
|
73
|
+
throw yield h(this.web3Context, t, void 0, void 0, this.options.contractAbi, i);
|
72
74
|
}
|
73
75
|
});
|
74
76
|
}
|
75
77
|
emitSending(t) {
|
76
78
|
this.promiEvent.listenerCount("sending") > 0 && this.promiEvent.emit("sending", t);
|
77
79
|
}
|
78
|
-
populateGasPrice({ transactionFormatted: t, transaction:
|
79
|
-
var
|
80
|
+
populateGasPrice({ transactionFormatted: t, transaction: e }) {
|
81
|
+
var i;
|
80
82
|
return a(this, void 0, void 0, function* () {
|
81
|
-
let
|
82
|
-
return !(!((
|
83
|
+
let n = t;
|
84
|
+
return !(!((i = this.options) === null || i === void 0) && i.ignoreGasPricing) && c(t.gasPrice) && (c(e.maxPriorityFeePerGas) || c(e.maxFeePerGas)) && (n = Object.assign(Object.assign({}, t), yield x(t, this.web3Context, g))), n;
|
83
85
|
});
|
84
86
|
}
|
85
|
-
signAndSend({ wallet: t, tx:
|
87
|
+
signAndSend({ wallet: t, tx: e }) {
|
86
88
|
return a(this, void 0, void 0, function* () {
|
87
89
|
if (t) {
|
88
|
-
const
|
89
|
-
return
|
90
|
-
return R(this.web3Context.requestManager,
|
91
|
-
}),
|
90
|
+
const i = yield t.signTransaction(e);
|
91
|
+
return v(this.web3Context, () => a(this, void 0, void 0, function* () {
|
92
|
+
return R(this.web3Context.requestManager, i.rawTransaction);
|
93
|
+
}), i.transactionHash);
|
92
94
|
}
|
93
|
-
return
|
94
|
-
return
|
95
|
+
return v(this.web3Context, () => a(this, void 0, void 0, function* () {
|
96
|
+
return _(this.web3Context.requestManager, e);
|
95
97
|
}));
|
96
98
|
});
|
97
99
|
}
|
@@ -108,25 +110,25 @@ class X {
|
|
108
110
|
t
|
109
111
|
);
|
110
112
|
}
|
111
|
-
handleError({ error: t, tx:
|
112
|
-
var
|
113
|
+
handleError({ error: t, tx: e }) {
|
114
|
+
var i;
|
113
115
|
return a(this, void 0, void 0, function* () {
|
114
|
-
let
|
115
|
-
return
|
116
|
+
let n = t;
|
117
|
+
return n instanceof m && this.web3Context.handleRevert && (n = yield h(this.web3Context, e, void 0, void 0, (i = this.options) === null || i === void 0 ? void 0 : i.contractAbi)), (n instanceof T || n instanceof m || n instanceof E || n instanceof b || n instanceof C || n instanceof w) && this.promiEvent.listenerCount("error") > 0 && this.promiEvent.emit("error", n), n;
|
116
118
|
});
|
117
119
|
}
|
118
|
-
emitConfirmation({ receipt: t, transactionHash:
|
119
|
-
this.promiEvent.listenerCount("confirmation") > 0 && A(this.web3Context, this.promiEvent, t,
|
120
|
+
emitConfirmation({ receipt: t, transactionHash: e, customTransactionReceiptSchema: i }) {
|
121
|
+
this.promiEvent.listenerCount("confirmation") > 0 && A(this.web3Context, this.promiEvent, t, e, this.returnFormat, i);
|
120
122
|
}
|
121
|
-
handleResolve({ receipt: t, tx:
|
122
|
-
var
|
123
|
+
handleResolve({ receipt: t, tx: e }) {
|
124
|
+
var i, n, o;
|
123
125
|
return a(this, void 0, void 0, function* () {
|
124
|
-
if (!((
|
125
|
-
return (
|
126
|
+
if (!((i = this.options) === null || i === void 0) && i.transactionResolver)
|
127
|
+
return (n = this.options) === null || n === void 0 ? void 0 : n.transactionResolver(t);
|
126
128
|
if (t.status === BigInt(0)) {
|
127
|
-
const r = yield
|
129
|
+
const r = yield h(
|
128
130
|
this.web3Context,
|
129
|
-
|
131
|
+
e,
|
130
132
|
// @ts-expect-error unknown type fix
|
131
133
|
t,
|
132
134
|
void 0,
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");require("../../../../web3-eth-accounts/lib/esm/wallet.cjs");const v=require("../../../../web3-eth-accounts/lib/esm/account.cjs");require("../../../../crc-32/crc32.cjs");require("../../../../web3-eth-accounts/lib/esm/common/types.cjs");const l=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");const y=require("../../../../web3-validator/lib/esm/validation/string.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");const p=require("../../../../web3-validator/lib/esm/validation/address.cjs"),x=require("../../../../web3-validator/lib/esm/validation/numbers.cjs"),n=require("../../../../web3-validator/lib/esm/validation/object.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../@ethereumjs/rlp/dist/index.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/types.cjs");require("../../../../web3-net/lib/esm/net.cjs");const O=require("../../../../web3-net/lib/esm/rpc_method_wrappers.cjs"),C=require("../constants.cjs"),T=require("../rpc_method_wrappers.cjs"),I=require("./detect_transaction_type.cjs"),E=require("../schemas.cjs"),F=require("./get_transaction_gas_pricing.cjs"),d=require("../../../../web3-utils/lib/esm/formatter.cjs"),A=require("../../../../web3-utils/lib/esm/converters.cjs");var _=function(i,r,t,e){function a(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function f(u){try{h(e.next(u))}catch(m){c(m)}}function b(u){try{h(e.throw(u))}catch(m){c(m)}}function h(u){u.done?s(u.value):a(u.value).then(f,b)}h((e=e.apply(i,r||[])).next())})};const w=(i,r,t,e)=>{if(t!==void 0&&i in t&&t[i]!==void 0){if(typeof t[i]=="string"&&p.isAddress(t[i]))return t[i];if(!y.isHexStrict(t[i])&&x.isNumber(t[i])){if(r.wallet){const a=r.wallet.get(d.format({format:"uint"},t[i],C.NUMBER_DATA_FORMAT));if(!n.isNullish(a))return a.address;throw new l.LocalWalletNotAvailableError}throw new l.LocalWalletNotAvailableError}else throw i==="from"?new l.InvalidTransactionWithSender(t.from):new l.InvalidTransactionWithReceiver(t.to)}if(i==="from"){if(!n.isNullish(e))return v.privateKeyToAddress(e);if(!n.isNullish(r.defaultAccount))return r.defaultAccount}},g=(i,r,t=i.defaultReturnFormat)=>_(void 0,void 0,void 0,function*(){if(n.isNullish(r))throw new l.UnableToPopulateNonceError;return T.getTransactionCount(i,r,i.defaultBlock,t)}),N=(i,r)=>{const t=I.detectTransactionType(i,r);if(!n.isNullish(t))return t;if(!n.isNullish(r.defaultTransactionType))return d.format({format:"uint"},r.defaultTransactionType,o.ETH_DATA_FORMAT)};function q(i){var r,t;return _(this,void 0,void 0,function*(){let e=d.format(E.transactionSchema,i.transaction,i.web3Context.defaultReturnFormat);if(n.isNullish(e.from)&&(e.from=w("from",i.web3Context,void 0,i.privateKey)),n.isNullish(e.nonce)&&(e.nonce=yield g(i.web3Context,e.from,o.ETH_DATA_FORMAT)),n.isNullish(e.value)&&(e.value="0x0"),n.isNullish(e.data))n.isNullish(e.input)?e.input="0x":e.input.startsWith("0x")||(e.input=`0x${e.input}`);else{if(!n.isNullish(e.input)&&e.data!==e.input)throw new l.TransactionDataAndInputError({data:A.bytesToHex(e.data),input:A.bytesToHex(e.input)});e.data.startsWith("0x")||(e.data=`0x${e.data}`)}if(n.isNullish(e.common)){if(i.web3Context.defaultCommon){const a=i.web3Context.defaultCommon,s=a.customChain.chainId,c=a.customChain.networkId,f=a.customChain.name;e.common=Object.assign(Object.assign({},a),{customChain:{chainId:s,networkId:c,name:f}})}n.isNullish(e.chain)&&(e.chain=i.web3Context.defaultChain),n.isNullish(e.hardfork)&&(e.hardfork=i.web3Context.defaultHardfork)}if(n.isNullish(e.chainId)&&n.isNullish((r=e.common)===null||r===void 0?void 0:r.customChain.chainId)&&(e.chainId=yield T.getChainId(i.web3Context,o.ETH_DATA_FORMAT)),n.isNullish(e.networkId)&&(e.networkId=(t=i.web3Context.defaultNetworkId)!==null&&t!==void 0?t:yield O.getId(i.web3Context,o.ETH_DATA_FORMAT)),n.isNullish(e.gasLimit)&&!n.isNullish(e.gas)&&(e.gasLimit=e.gas),e.type=N(e,i.web3Context),n.isNullish(e.accessList)&&(e.type==="0x1"||e.type==="0x2")&&(e.accessList=[]),i.fillGasPrice&&(e=Object.assign(Object.assign({},e),yield F.getTransactionGasPricing(e,i.web3Context,o.ETH_DATA_FORMAT))),n.isNullish(e.gas)&&n.isNullish(e.gasLimit)&&i.fillGasLimit){const a=yield T.estimateGas(i.web3Context,e,"latest",o.ETH_DATA_FORMAT);e=Object.assign(Object.assign({},e),{gas:d.format({format:"uint"},a,o.ETH_DATA_FORMAT)})}return e})}const R=i=>_(void 0,void 0,void 0,function*(){var r;return((r=i.web3Context.transactionBuilder)!==null&&r!==void 0?r:q)(Object.assign(Object.assign({},i),{transaction:i.transaction}))});exports.defaultTransactionBuilder=q;exports.getTransactionFromOrToAttr=w;exports.getTransactionNonce=g;exports.getTransactionType=N;exports.transactionBuilder=R;
|