@0xsequence/marketplace-sdk 1.2.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/preview.tsx +4 -7
- package/CHANGELOG.md +171 -0
- package/compile-tailwind.js +1 -1
- package/dist/BellIcon.js +6 -3
- package/dist/BellIcon.js.map +1 -1
- package/dist/Card.js +831 -0
- package/dist/Card.js.map +1 -0
- package/dist/ShopCard.d.ts +83 -0
- package/dist/_internal.js +57 -1
- package/dist/_internal.js.map +1 -1
- package/dist/abi.js +24 -1
- package/dist/abi.js.map +1 -1
- package/dist/alertMessage.js +29 -0
- package/dist/alertMessage.js.map +1 -0
- package/dist/api.js +95 -108
- package/dist/api.js.map +1 -1
- package/dist/builder-api.js +17 -4
- package/dist/builder-api.js.map +1 -1
- package/dist/calendar.js +51 -0
- package/dist/calendar.js.map +1 -0
- package/dist/checkout.js +52 -0
- package/dist/checkout.js.map +1 -0
- package/dist/collectible.js +620 -0
- package/dist/collectible.js.map +1 -0
- package/dist/collection.js +396 -0
- package/dist/collection.js.map +1 -0
- package/dist/{marketplaceConfig.js → config.js} +25 -31
- package/dist/config.js.map +1 -0
- package/dist/consts.d.ts +7 -0
- package/dist/consts.js +8 -0
- package/dist/consts.js.map +1 -0
- package/dist/contracts.js +22 -2
- package/dist/contracts.js.map +1 -1
- package/dist/create-config.d.ts +12037 -1801
- package/dist/create-config.js +9 -7
- package/dist/create-config.js.map +1 -1
- package/dist/currency.js +186 -0
- package/dist/currency.js.map +1 -0
- package/dist/currencyImage.js +28 -0
- package/dist/currencyImage.js.map +1 -0
- package/dist/dist.js +2771 -0
- package/dist/dist.js.map +1 -0
- package/dist/expirationDateSelect.js +245 -0
- package/dist/expirationDateSelect.js.map +1 -0
- package/dist/filter-state.d.ts +153 -0
- package/dist/filters.d.ts +14 -45
- package/dist/hooks.js +26 -0
- package/dist/hooks.js.map +1 -0
- package/dist/hooks2.js +24 -0
- package/dist/hooks2.js.map +1 -0
- package/dist/index.d.ts +12 -8
- package/dist/index.js +6 -9
- package/dist/index10.d.ts +39 -261
- package/dist/index11.d.ts +461 -220
- package/dist/index12.d.ts +511 -85
- package/dist/index13.d.ts +17 -493
- package/dist/index14.d.ts +15 -66
- package/dist/index15.d.ts +25 -1
- package/dist/index16.d.ts +5 -47
- package/dist/index17.d.ts +840 -108
- package/dist/index18.d.ts +552 -1
- package/dist/index19.d.ts +317 -147
- package/dist/index2.d.ts +2172 -5
- package/dist/index21.d.ts +306 -93
- package/dist/index22.d.ts +230 -1
- package/dist/index23.d.ts +323 -797
- package/dist/index24.d.ts +22 -445
- package/dist/index25.d.ts +1 -357
- package/dist/index26.d.ts +20 -151
- package/dist/index27.d.ts +18 -794
- package/dist/index28.d.ts +109 -58
- package/dist/index29.d.ts +1 -24
- package/dist/index3.d.ts +2212 -51
- package/dist/index30.d.ts +1 -0
- package/dist/index31.d.ts +48 -0
- package/dist/index32.d.ts +1 -0
- package/dist/index33.d.ts +56 -0
- package/dist/index34.d.ts +99 -0
- package/dist/index35.d.ts +171 -0
- package/dist/index36.d.ts +131 -0
- package/dist/index37.d.ts +135 -0
- package/dist/index38.d.ts +85 -0
- package/dist/index39.d.ts +91 -0
- package/dist/index4.d.ts +2678 -61
- package/dist/index40.d.ts +46 -0
- package/dist/index5.d.ts +535 -2267
- package/dist/index6.d.ts +2025 -1287
- package/dist/index7.d.ts +1798 -116
- package/dist/index8.d.ts +115 -12
- package/dist/index9.d.ts +42 -56
- package/dist/inventory.d.ts +46 -0
- package/dist/inventory.js +56 -33
- package/dist/inventory.js.map +1 -1
- package/dist/marketplace-logos.js +1 -1
- package/dist/marketplace-logos.js.map +1 -1
- package/dist/marketplace2.js +70 -0
- package/dist/marketplace2.js.map +1 -0
- package/dist/metadata.d.ts +733 -0
- package/dist/network.js +1 -1
- package/dist/networkconfigToWagmiChain.js.map +1 -1
- package/dist/primary-sale-checkout-options.d.ts +29 -0
- package/dist/quantityInput.js +93 -0
- package/dist/quantityInput.js.map +1 -0
- package/dist/ranges.d.ts +125 -0
- package/dist/react/_internal/api/index.d.ts +5 -2
- package/dist/react/_internal/api/index.js +4 -7
- package/dist/react/_internal/databeat/index.d.ts +4 -1
- package/dist/react/_internal/databeat/index.js +4 -37
- package/dist/react/_internal/index.d.ts +5 -2
- package/dist/react/_internal/index.js +5 -10
- package/dist/react/_internal/wagmi/index.d.ts +4 -1
- package/dist/react/_internal/wagmi/index.js +1 -4
- package/dist/react/hooks/_deprecated/index.d.ts +47 -0
- package/dist/react/hooks/_deprecated/index.js +4 -0
- package/dist/react/hooks/checkout/index.d.ts +7 -0
- package/dist/react/hooks/checkout/index.js +7 -0
- package/dist/react/hooks/collectible/index.d.ts +7 -0
- package/dist/react/hooks/collectible/index.js +7 -0
- package/dist/react/hooks/collection/index.d.ts +11 -0
- package/dist/react/hooks/collection/index.js +7 -0
- package/dist/react/hooks/config/index.d.ts +5 -4
- package/dist/react/hooks/config/index.js +4 -37
- package/dist/react/hooks/contracts/index.d.ts +4 -7
- package/dist/react/hooks/contracts/index.js +3 -16
- package/dist/react/hooks/currency/index.d.ts +47 -0
- package/dist/react/hooks/currency/index.js +7 -0
- package/dist/react/hooks/index.d.ts +41 -31
- package/dist/react/hooks/index.js +14 -38
- package/dist/react/hooks/inventory/index.d.ts +7 -0
- package/dist/react/hooks/inventory/index.js +4 -0
- package/dist/react/hooks/token/index.d.ts +7 -0
- package/dist/react/hooks/token/index.js +7 -0
- package/dist/react/hooks/transactions/index.d.ts +5 -2
- package/dist/react/hooks/transactions/index.js +5 -38
- package/dist/react/hooks/ui/card-data/index.d.ts +8 -0
- package/dist/react/hooks/ui/card-data/index.js +4 -0
- package/dist/react/hooks/ui/index.d.ts +9 -3
- package/dist/react/hooks/ui/index.js +8 -38
- package/dist/react/hooks/ui/url-state/index.d.ts +7 -0
- package/dist/react/hooks/ui/url-state/index.js +4 -0
- package/dist/react/hooks/utils/index.d.ts +3 -34
- package/dist/react/hooks/utils/index.js +5 -38
- package/dist/react/index.d.ts +45 -35
- package/dist/react/index.js +19 -37
- package/dist/react/providers/index.d.ts +6 -0
- package/dist/react/providers/index.js +6 -0
- package/dist/react/queries/checkout/index.d.ts +7 -0
- package/dist/react/queries/checkout/index.js +4 -0
- package/dist/react/queries/collectible/index.d.ts +7 -0
- package/dist/react/queries/collectible/index.js +5 -0
- package/dist/react/queries/collection/index.d.ts +11 -0
- package/dist/react/queries/collection/index.js +4 -0
- package/dist/react/queries/currency/index.d.ts +6 -0
- package/dist/react/queries/currency/index.js +4 -0
- package/dist/react/queries/index.d.ts +20 -21
- package/dist/react/queries/index.js +11 -30
- package/dist/react/queries/inventory/index.d.ts +6 -2
- package/dist/react/queries/inventory/index.js +3 -21
- package/dist/react/queries/marketplace/index.d.ts +7 -0
- package/dist/react/queries/marketplace/index.js +5 -0
- package/dist/react/queries/token/index.d.ts +7 -0
- package/dist/react/queries/token/index.js +4 -0
- package/dist/react/ssr/index.d.ts +12 -24
- package/dist/react/ssr/index.js +13 -33
- package/dist/react/ui/components/marketplace-collectible-card/ActionButton/index.d.ts +6 -0
- package/dist/react/ui/components/marketplace-collectible-card/ActionButton/index.js +6 -0
- package/dist/react/ui/components/marketplace-collectible-card/Card/index.d.ts +10 -0
- package/dist/react/ui/components/marketplace-collectible-card/Card/index.js +6 -0
- package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +44 -4
- package/dist/react/ui/components/marketplace-collectible-card/index.js +6 -38
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.d.ts +5 -2
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.js +3 -12
- package/dist/react/ui/components/marketplace-logos/index.d.ts +23 -22
- package/dist/react/ui/hooks/index.d.ts +47 -0
- package/dist/react/ui/hooks/index.js +15 -0
- package/dist/react/ui/icons/index.d.ts +3 -1
- package/dist/react/ui/icons/index.js +3 -14
- package/dist/react/ui/index.d.ts +47 -5
- package/dist/react/ui/index.js +6 -38
- package/dist/react/ui/modals/BuyModal/index.d.ts +47 -0
- package/dist/react/ui/modals/BuyModal/index.js +4 -0
- package/dist/react/ui/modals/CreateListingModal/index.d.ts +4 -0
- package/dist/react/ui/modals/CreateListingModal/index.js +6 -0
- package/dist/react/ui/modals/CreateListingModal/internal/hooks/index.d.ts +190 -0
- package/dist/react/ui/modals/CreateListingModal/internal/hooks/index.js +4 -0
- package/dist/react/ui/modals/MakeOfferModal/index.d.ts +4 -0
- package/dist/react/ui/modals/MakeOfferModal/index.js +4 -0
- package/dist/react/ui/modals/MakeOfferModal/internal/hooks/index.d.ts +188 -0
- package/dist/react/ui/modals/MakeOfferModal/internal/hooks/index.js +3 -0
- package/dist/react/ui/modals/SellModal/index.d.ts +6 -0
- package/dist/react/ui/modals/SellModal/index.js +6 -0
- package/dist/react/ui/modals/TransferModal/index.d.ts +47 -0
- package/dist/react/ui/modals/TransferModal/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/alertMessage/index.d.ts +14 -0
- package/dist/react/ui/modals/_internal/components/alertMessage/index.js +3 -0
- package/dist/react/ui/modals/_internal/components/baseModal/index.d.ts +144 -0
- package/dist/react/ui/modals/_internal/components/baseModal/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/calendar/index.d.ts +73 -0
- package/dist/react/ui/modals/_internal/components/calendar/index.js +5 -0
- package/dist/react/ui/modals/_internal/components/calendarDropdown/index.d.ts +21 -0
- package/dist/react/ui/modals/_internal/components/calendarDropdown/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/currencyImage/index.d.ts +15 -0
- package/dist/react/ui/modals/_internal/components/currencyImage/index.js +5 -0
- package/dist/react/ui/modals/_internal/components/currencyOptionsSelect/index.d.ts +30 -0
- package/dist/react/ui/modals/_internal/components/currencyOptionsSelect/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/expirationDateSelect/index.d.ts +2 -0
- package/dist/react/ui/modals/_internal/components/expirationDateSelect/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/floorPriceText/index.d.ts +24 -0
- package/dist/react/ui/modals/_internal/components/floorPriceText/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/priceInput/index.d.ts +45 -0
- package/dist/react/ui/modals/_internal/components/priceInput/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/quantityInput/index.d.ts +24 -0
- package/dist/react/ui/modals/_internal/components/quantityInput/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/selectWaasFeeOptions/index.d.ts +18 -0
- package/dist/react/ui/modals/_internal/components/selectWaasFeeOptions/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/switchChainErrorModal/index.d.ts +14 -0
- package/dist/react/ui/modals/_internal/components/switchChainErrorModal/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/timeAgo/index.d.ts +12 -0
- package/dist/react/ui/modals/_internal/components/timeAgo/index.js +5 -0
- package/dist/react/ui/modals/_internal/components/tokenPreview/index.d.ts +19 -0
- package/dist/react/ui/modals/_internal/components/tokenPreview/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/transaction-footer/index.d.ts +26 -0
- package/dist/react/ui/modals/_internal/components/transaction-footer/index.js +4 -0
- package/dist/react/ui/modals/_internal/components/transactionDetails/index.d.ts +28 -0
- package/dist/react/ui/modals/_internal/components/transactionDetails/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/transactionHeader/index.d.ts +16 -0
- package/dist/react/ui/modals/_internal/components/transactionHeader/index.js +3 -0
- package/dist/react/ui/modals/_internal/components/transactionPreview/index.d.ts +36 -0
- package/dist/react/ui/modals/_internal/components/transactionPreview/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/transactionStatusModal/index.d.ts +27 -0
- package/dist/react/ui/modals/_internal/components/transactionStatusModal/index.js +6 -0
- package/dist/react/utils/index.d.ts +6 -19
- package/dist/react/utils/index.js +3 -8
- package/dist/react.js +12634 -9807
- package/dist/react.js.map +1 -1
- package/dist/src.js +0 -8
- package/dist/ssr.js +26 -0
- package/dist/ssr.js.map +1 -0
- package/dist/steps.d.ts +85 -0
- package/dist/styles/index.css +2040 -375
- package/dist/switchChainErrorModal.js +97 -0
- package/dist/switchChainErrorModal.js.map +1 -0
- package/dist/timeAgo.js +29 -0
- package/dist/timeAgo.js.map +1 -0
- package/dist/token-balances.d.ts +359 -0
- package/dist/token-balances.js +62 -0
- package/dist/token-balances.js.map +1 -0
- package/dist/token2.js +247 -0
- package/dist/token2.js.map +1 -0
- package/dist/transaction-footer.js +45 -0
- package/dist/transaction-footer.js.map +1 -0
- package/dist/transaction.js +1 -7
- package/dist/transaction.js.map +1 -1
- package/dist/transactionHeader.js +32 -0
- package/dist/transactionHeader.js.map +1 -0
- package/dist/types/index.d.ts +5 -2
- package/dist/types/index.js +3 -4
- package/dist/types.d.ts +26 -16
- package/dist/types.js +29 -1
- package/dist/types.js.map +1 -1
- package/dist/url-state.js +170 -0
- package/dist/url-state.js.map +1 -0
- package/dist/utils/abi/index.d.ts +6 -5
- package/dist/utils/abi/index.js +2 -2
- package/dist/utils/abi/marketplace/index.d.ts +1 -1
- package/dist/utils/abi/primary-sale/index.d.ts +1 -1
- package/dist/utils/abi/token/index.d.ts +1 -1
- package/dist/utils/index.d.ts +9 -7
- package/dist/utils/index.js +4 -8
- package/dist/utils.js +8 -8
- package/dist/utils.js.map +1 -1
- package/dist/utils2.js +64 -106
- package/dist/utils2.js.map +1 -1
- package/dist/waas-types.d.ts +19 -0
- package/dist/xstate-store.cjs.d.ts +18 -0
- package/eslint/sequence-types.js +1069 -0
- package/eslint.config.mjs +337 -9
- package/image.d.ts +5 -0
- package/package.json +49 -47
- package/postcss.config.mjs +1 -1
- package/preserve-directives.ts +235 -0
- package/public/mockServiceWorker.js +0 -1
- package/src/react/_internal/api/builder-api.ts +26 -4
- package/src/react/_internal/api/index.ts +1 -2
- package/src/react/_internal/api/marketplace-api.ts +57 -25
- package/src/react/_internal/api/services.ts +56 -4
- package/src/react/_internal/api-mocks.ts +8 -0
- package/src/react/_internal/databeat/index.ts +4 -0
- package/src/react/_internal/databeat/types.ts +24 -28
- package/src/react/_internal/index.ts +70 -0
- package/src/react/_internal/query-builder.ts +203 -0
- package/src/react/_internal/types.ts +88 -18
- package/src/react/_internal/utils.ts +34 -52
- package/src/react/_internal/wagmi/__tests__/create-config.test.ts +11 -5
- package/src/react/_internal/wagmi/create-config.ts +2 -2
- package/src/react/_internal/wagmi/get-connectors.ts +10 -6
- package/src/react/hooks/_deprecated/index.ts +61 -0
- package/src/react/hooks/checkout/index.ts +1 -0
- package/src/react/hooks/{utils/useCheckoutOptionsSalesContract.test.tsx → checkout/primary-sale-checkout-options.test.tsx} +23 -23
- package/src/react/hooks/{utils/useCheckoutOptionsSalesContract.tsx → checkout/primary-sale-checkout-options.tsx} +35 -32
- package/src/react/hooks/{data/collectibles/useBalanceOfCollectible.test.tsx → collectible/balance.test.tsx} +37 -29
- package/src/react/hooks/{data/collectibles/useBalanceOfCollectible.tsx → collectible/balance.tsx} +11 -11
- package/src/react/hooks/{data/primary-sales/useErc721SalesData.tsx → collectible/erc721-sale-details.tsx} +6 -6
- package/src/react/hooks/collectible/index.ts +16 -0
- package/src/react/hooks/{data/collectibles/useCountOfCollectables.test.tsx → collectible/market-count.test.tsx} +21 -16
- package/src/react/hooks/{data/collectibles/useCountOfCollectables.tsx → collectible/market-count.tsx} +13 -8
- package/src/react/hooks/{data/orders/useHighestOffer.test.tsx → collectible/market-highest-offer.test.tsx} +35 -24
- package/src/react/hooks/{data/orders/useHighestOffer.tsx → collectible/market-highest-offer.tsx} +12 -10
- package/src/react/hooks/{data/collectibles/useListCollectiblesPaginated.test.tsx → collectible/market-list-paginated.test.tsx} +18 -18
- package/src/react/hooks/{data/collectibles/useListCollectiblesPaginated.tsx → collectible/market-list-paginated.tsx} +12 -10
- package/src/react/hooks/{data/collectibles/useListCollectibles.test.tsx → collectible/market-list.test.tsx} +51 -39
- package/src/react/hooks/{data/collectibles/useListCollectibles.tsx → collectible/market-list.tsx} +11 -10
- package/src/react/hooks/{data/orders/useCountListingsForCollectible.test.tsx → collectible/market-listings-count.test.tsx} +13 -10
- package/src/react/hooks/{data/orders/useCountListingsForCollectible.tsx → collectible/market-listings-count.tsx} +11 -11
- package/src/react/hooks/{data/orders/useListListingsForCollectible.test.tsx → collectible/market-listings.test.tsx} +19 -19
- package/src/react/hooks/{data/orders/useListListingsForCollectible.tsx → collectible/market-listings.tsx} +17 -19
- package/src/react/hooks/{data/orders/useLowestListing.test.tsx → collectible/market-lowest-listing.test.tsx} +35 -24
- package/src/react/hooks/{data/orders/useLowestListing.tsx → collectible/market-lowest-listing.tsx} +12 -10
- package/src/react/hooks/{data/orders/useCountOffersForCollectible.test.tsx → collectible/market-offers-count.test.tsx} +13 -10
- package/src/react/hooks/{data/orders/useCountOffersForCollectible.tsx → collectible/market-offers-count.tsx} +11 -11
- package/src/react/hooks/{data/orders/useListOffersForCollectible.test.tsx → collectible/market-offers.test.tsx} +17 -17
- package/src/react/hooks/{data/orders/useListOffersForCollectible.tsx → collectible/market-offers.tsx} +16 -17
- package/src/react/hooks/{data/collectibles/useCollectible.test.tsx → collectible/metadata.test.tsx} +25 -23
- package/src/react/hooks/{data/collectibles/useCollectible.tsx → collectible/metadata.tsx} +17 -14
- package/src/react/hooks/collectible/primary-sale-item.test.tsx +503 -0
- package/src/react/hooks/{data/primary-sales/usePrimarySaleItem.tsx → collectible/primary-sale-item.tsx} +6 -8
- package/src/react/hooks/collectible/primary-sale-items-count.test.tsx +154 -0
- package/src/react/hooks/collectible/primary-sale-items-count.tsx +22 -0
- package/src/react/hooks/collectible/primary-sale-items.test.tsx +259 -0
- package/src/react/hooks/{data/primary-sales/useListPrimarySaleItems.tsx → collectible/primary-sale-items.tsx} +9 -9
- package/src/react/hooks/{data/collectibles/useTokenBalances.test.tsx → collectible/token-balances.test.tsx} +52 -28
- package/src/react/hooks/{data/collectibles/useTokenBalances.tsx → collectible/token-balances.tsx} +10 -10
- package/src/react/hooks/{data/collections/__snapshots__/useListCollections.test.tsx.snap → collection/__snapshots__/list.test.tsx.snap} +20 -20
- package/src/react/hooks/{data/collections/useCollectionBalanceDetails.test.tsx → collection/balance-details.test.tsx} +13 -8
- package/src/react/hooks/{data/collections/useCollectionBalanceDetails.tsx → collection/balance-details.tsx} +3 -3
- package/src/react/hooks/collection/index.ts +11 -0
- package/src/react/hooks/{data/collections/useListCollections.test.tsx → collection/list.test.tsx} +15 -14
- package/src/react/hooks/{data/collections/useListCollections.tsx → collection/list.tsx} +7 -7
- package/src/react/hooks/collection/market-detail-polling.test.tsx +146 -0
- package/src/react/hooks/{data/collections/useCollectionDetailsPolling.tsx → collection/market-detail-polling.tsx} +13 -12
- package/src/react/hooks/collection/market-filtered-count.test.tsx +121 -0
- package/src/react/hooks/{data/orders/useGetCountOfFilteredOrders.tsx → collection/market-filtered-count.tsx} +6 -6
- package/src/react/hooks/{data/orders/useFloorOrder.test.tsx → collection/market-floor.test.tsx} +19 -15
- package/src/react/hooks/{data/orders/useFloorOrder.tsx → collection/market-floor.tsx} +13 -9
- package/src/react/hooks/collection/market-items-count.test.tsx +121 -0
- package/src/react/hooks/{data/orders/useCountItemsOrdersForCollection.tsx → collection/market-items-count.tsx} +9 -9
- package/src/react/hooks/collection/market-items-paginated.test.tsx +142 -0
- package/src/react/hooks/{data/orders/useListItemsOrdersForCollectionPaginated.tsx → collection/market-items-paginated.tsx} +11 -9
- package/src/react/hooks/collection/market-items.test.tsx +184 -0
- package/src/react/hooks/{data/orders/useListItemsOrdersForCollection.tsx → collection/market-items.tsx} +16 -14
- package/src/react/hooks/{data/collections/useCollection.test.tsx → collection/metadata.test.tsx} +18 -13
- package/src/react/hooks/{data/collections/useCollection.tsx → collection/metadata.tsx} +16 -7
- package/src/react/hooks/collection/useCollectionActiveListingsCurrencies.test.tsx +150 -0
- package/src/react/hooks/{data/collections → collection}/useCollectionActiveListingsCurrencies.tsx +3 -3
- package/src/react/hooks/collection/useCollectionActiveOffersCurrencies.test.tsx +150 -0
- package/src/react/hooks/{data/collections → collection}/useCollectionActiveOffersCurrencies.tsx +3 -3
- package/src/react/hooks/config/__snapshots__/useMarketplaceConfig.test.tsx.snap +12 -11
- package/src/react/hooks/config/useConnectorMetadata.tsx +1 -1
- package/src/react/hooks/config/useMarketplaceConfig.test.tsx +3 -1
- package/src/react/hooks/config/useMarketplaceConfig.tsx +1 -1
- package/src/react/hooks/contracts/index.ts +1 -0
- package/src/react/hooks/contracts/useERC721Owner.test.tsx +82 -0
- package/src/react/hooks/contracts/useERC721Owner.tsx +47 -0
- package/src/react/hooks/contracts/useSalesContractABI.ts +2 -2
- package/src/react/hooks/{utils/useComparePrices.test.tsx → currency/compare-prices.test.tsx} +17 -11
- package/src/react/hooks/{utils/useComparePrices.tsx → currency/compare-prices.tsx} +8 -6
- package/src/react/hooks/{utils/useConvertPriceToUSD.test.tsx → currency/convert-to-usd.test.tsx} +17 -16
- package/src/react/hooks/{utils/useConvertPriceToUSD.tsx → currency/convert-to-usd.tsx} +6 -6
- package/src/react/hooks/{data/market/useCurrency.test.tsx → currency/currency.test.tsx} +18 -14
- package/src/react/hooks/{data/market/useCurrency.tsx → currency/currency.tsx} +3 -3
- package/src/react/hooks/currency/index.ts +4 -0
- package/src/react/hooks/{data/market/useMarketCurrencies.test.tsx → currency/list.test.tsx} +49 -74
- package/src/react/hooks/{data/market/useMarketCurrencies.tsx → currency/list.tsx} +7 -7
- package/src/react/hooks/data/orders/useOrders.test.tsx +143 -0
- package/src/react/hooks/data/orders/useOrders.tsx +73 -0
- package/src/react/hooks/data/tokens/useCurrencyBalance.tsx +1 -1
- package/src/react/hooks/index.ts +9 -12
- package/src/react/hooks/inventory/index.ts +1 -0
- package/src/react/hooks/{data/inventory/useInventory.test.tsx → inventory/inventory.test.tsx} +12 -14
- package/src/react/hooks/inventory/inventory.tsx +17 -0
- package/src/react/hooks/{data/tokens/useListBalances.test.tsx → token/balances.test.tsx} +22 -11
- package/src/react/hooks/token/balances.tsx +59 -0
- package/src/react/hooks/{data/tokens/useCurrencyBalance.test.tsx → token/currency-balance.test.tsx} +6 -6
- package/src/react/hooks/token/currency-balance.tsx +151 -0
- package/src/react/hooks/token/index.ts +5 -0
- package/src/react/hooks/{data/tokens/useSearchTokenMetadata.test.tsx → token/metadata-search.test.tsx} +38 -30
- package/src/react/hooks/{data/tokens/useSearchTokenMetadata.tsx → token/metadata-search.tsx} +27 -24
- package/src/react/hooks/{data/tokens/useListTokenMetadata.test.tsx → token/metadata.test.tsx} +27 -24
- package/src/react/hooks/{data/tokens/useListTokenMetadata.tsx → token/metadata.tsx} +7 -7
- package/src/react/hooks/{data/tokens/useGetTokenRanges.test.tsx → token/ranges.test.tsx} +15 -14
- package/src/react/hooks/{data/tokens/useGetTokenRanges.tsx → token/ranges.tsx} +12 -13
- package/src/react/hooks/transactions/index.ts +5 -0
- package/src/react/hooks/transactions/useBuyTransaction.tsx +95 -0
- package/src/react/hooks/transactions/useCancelOrder.test.tsx +15 -35
- package/src/react/hooks/transactions/useCancelOrder.tsx +3 -9
- package/src/react/hooks/transactions/useCancelTransactionSteps.tsx +3 -9
- package/src/react/hooks/transactions/useGenerateCancelTransaction.test.tsx +23 -12
- package/src/react/hooks/transactions/useGenerateCancelTransaction.tsx +16 -11
- package/src/react/hooks/transactions/useGenerateListingTransaction.test.tsx +17 -57
- package/src/react/hooks/transactions/useGenerateListingTransaction.tsx +17 -12
- package/src/react/hooks/transactions/useGenerateOfferTransaction.test.tsx +14 -15
- package/src/react/hooks/transactions/useGenerateOfferTransaction.tsx +11 -11
- package/src/react/hooks/transactions/useGenerateSellTransaction.test.tsx +28 -38
- package/src/react/hooks/transactions/useGenerateSellTransaction.tsx +16 -15
- package/src/react/hooks/transactions/useMarketTransactionSteps.test.tsx +105 -0
- package/src/react/hooks/transactions/useMarketTransactionSteps.tsx +89 -0
- package/src/react/hooks/transactions/useOrderSteps.tsx +23 -36
- package/src/react/hooks/transactions/usePrimarySaleTransactionSteps.ts +196 -0
- package/src/react/hooks/transactions/useProcessStep.test.tsx +63 -59
- package/src/react/hooks/transactions/useProcessStep.ts +52 -54
- package/src/react/hooks/transactions/useTransactionExecution.test.tsx +99 -0
- package/src/react/hooks/transactions/useTransactionExecution.ts +31 -0
- package/src/react/hooks/transactions/useTransactionType.ts +20 -0
- package/src/react/hooks/transactions/useTransferTokens.test.tsx +16 -16
- package/src/react/hooks/transactions/useTransferTokens.tsx +17 -5
- package/src/react/hooks/ui/card-data/index.ts +4 -0
- package/src/react/hooks/ui/card-data/market-card-data-paged.test.tsx +375 -0
- package/src/react/hooks/ui/card-data/market-card-data-paged.tsx +265 -0
- package/src/react/hooks/{data/market/useListMarketCardData.test.tsx → ui/card-data/market-card-data.test.tsx} +30 -28
- package/src/react/hooks/{data/market/useListMarketCardData.tsx → ui/card-data/market-card-data.tsx} +44 -31
- package/src/react/hooks/{data/primary-sales/useList1155ShopCardData.tsx → ui/card-data/primary-sale-1155-card-data.tsx} +24 -31
- package/src/react/hooks/{data/primary-sales/useList721ShopCardData.tsx → ui/card-data/primary-sale-721-card-data.tsx} +70 -37
- package/src/react/hooks/ui/index.ts +3 -1
- package/src/react/hooks/ui/url-state/filter-state.test.tsx +569 -0
- package/src/react/hooks/ui/{useFilterState.tsx → url-state/filter-state.tsx} +34 -20
- package/src/react/hooks/ui/url-state/index.ts +1 -0
- package/src/react/hooks/ui/useCollectibleCardOfferState.test.tsx +75 -0
- package/src/react/hooks/ui/useCollectibleCardOfferState.ts +47 -0
- package/src/react/hooks/ui/useFilters.test.tsx +4 -1
- package/src/react/hooks/ui/useFilters.tsx +2 -2
- package/src/react/hooks/util/optimisticCancelUpdates.test.ts +489 -0
- package/src/react/hooks/util/optimisticCancelUpdates.ts +21 -22
- package/src/react/hooks/utils/index.ts +0 -4
- package/src/react/hooks/utils/useAutoSelectFeeOption.test.tsx +8 -5
- package/src/react/hooks/utils/useAutoSelectFeeOption.tsx +33 -17
- package/src/react/hooks/utils/useRoyalty.test.tsx +1 -1
- package/src/react/hooks/utils/useRoyalty.tsx +99 -34
- package/src/react/hooks/utils/useWaasFeeOptions.tsx +234 -0
- package/src/react/hooks/utils/waasFeeOptionsStore.ts +141 -0
- package/src/react/index.ts +3 -0
- package/src/react/providers/index.tsx +3 -3
- package/src/react/providers/modal-provider.tsx +6 -17
- package/src/react/providers/provider.test.tsx +1 -1
- package/src/react/providers/shadow-root.tsx +1 -1
- package/src/react/providers/theme-provider.tsx +1 -1
- package/src/react/queries/checkout/index.ts +1 -0
- package/src/react/queries/checkout/primary-sale-checkout-options.ts +118 -0
- package/src/react/queries/collectible/balance.ts +113 -0
- package/src/react/queries/collectible/index.ts +15 -0
- package/src/react/queries/collectible/market-count.ts +91 -0
- package/src/react/queries/collectible/market-highest-offer.ts +74 -0
- package/src/react/queries/collectible/market-list-paginated.ts +110 -0
- package/src/react/queries/collectible/market-list.ts +116 -0
- package/src/react/queries/collectible/market-listings-count.ts +70 -0
- package/src/react/queries/collectible/market-listings.ts +71 -0
- package/src/react/queries/collectible/market-lowest-listing.ts +74 -0
- package/src/react/queries/collectible/market-offers-count.ts +70 -0
- package/src/react/queries/collectible/market-offers.ts +90 -0
- package/src/react/queries/collectible/metadata.ts +84 -0
- package/src/react/queries/collectible/primary-sale-item.ts +79 -0
- package/src/react/queries/collectible/primary-sale-items-count.ts +67 -0
- package/src/react/queries/collectible/primary-sale-items.ts +96 -0
- package/src/react/queries/collectible/queryKeys.ts +12 -0
- package/src/react/queries/collectible/token-balances.ts +83 -0
- package/src/react/queries/collection/activeListingsCurrencies.ts +74 -0
- package/src/react/queries/collection/activeOffersCurrencies.ts +74 -0
- package/src/react/queries/collection/balance-details.ts +103 -0
- package/src/react/queries/collection/index.ts +9 -0
- package/src/react/queries/collection/list.ts +195 -0
- package/src/react/queries/collection/market-detail.ts +60 -0
- package/src/react/queries/collection/market-filtered-count.ts +67 -0
- package/src/react/queries/collection/market-floor.ts +58 -0
- package/src/react/queries/collection/market-items-count.ts +69 -0
- package/src/react/queries/collection/market-items-paginated.ts +84 -0
- package/src/react/queries/collection/market-items.ts +72 -0
- package/src/react/queries/collection/metadata.ts +60 -0
- package/src/react/queries/collection/queryKeys.ts +12 -0
- package/src/react/queries/currency/compare-prices.ts +122 -0
- package/src/react/queries/currency/convert-to-usd.ts +99 -0
- package/src/react/queries/currency/currency.ts +82 -0
- package/src/react/queries/currency/index.ts +4 -0
- package/src/react/queries/currency/list.ts +100 -0
- package/src/react/queries/index.ts +6 -7
- package/src/react/queries/inventory/inventory.ts +139 -91
- package/src/react/queries/marketplace/config.ts +85 -0
- package/src/react/queries/{market → marketplace}/filters.ts +48 -61
- package/src/react/queries/marketplace/index.ts +2 -0
- package/src/react/queries/marketplace/queryKeys.ts +12 -0
- package/src/react/queries/orders.ts +48 -0
- package/src/react/queries/token/balances.ts +107 -0
- package/src/react/queries/token/index.ts +5 -0
- package/src/react/queries/token/metadata-search.ts +95 -0
- package/src/react/queries/token/metadata.ts +80 -0
- package/src/react/queries/token/queryKeys.ts +12 -0
- package/src/react/queries/token/ranges.ts +74 -0
- package/src/react/queries/token/supplies.ts +86 -0
- package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +11 -10
- package/src/react/ssr/create-ssr-client.ts +1 -1
- package/src/react/ssr/index.ts +5 -0
- package/src/react/types/query.ts +8 -7
- package/src/react/ui/components/_internals/ErrorDisplay.tsx +87 -0
- package/src/react/ui/components/_internals/ErrorLogBox.tsx +8 -1
- package/src/react/ui/components/_internals/custom-select/CustomSelect.tsx +13 -14
- package/src/react/ui/components/_internals/pill/__tests__/Pill.test.tsx +9 -5
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/ActionButton.stories.tsx +24 -29
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/ActionButton.tsx +20 -14
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/__tests__/ActionButtonBody.test.tsx +7 -5
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/__tests__/NonOwnerActions.test.tsx +11 -6
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/__tests__/OwnerActions.test.tsx +8 -6
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/__tests__/useActionButtonLogic.test.tsx +6 -4
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/components/ActionButtonBody.tsx +14 -9
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/components/NonOwnerActions.tsx +26 -35
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/components/OwnerActions.tsx +21 -13
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/hooks/useActionButtonLogic.ts +3 -3
- package/src/react/ui/components/marketplace-collectible-card/ActionButton/index.ts +1 -0
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/store.ts +4 -4
- package/src/react/ui/components/marketplace-collectible-card/Card/card-badge.tsx +37 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card-content.tsx +27 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card-footer.tsx +38 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card-media.tsx +69 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card-price.tsx +44 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card-sale-details.tsx +37 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card-skeleton.tsx +39 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card-title.tsx +109 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card.tsx +51 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/index.ts +30 -0
- package/src/react/ui/components/marketplace-collectible-card/CollectibleCardSkeleton.tsx +1 -1
- package/src/react/ui/components/marketplace-collectible-card/_internals/PriceDisplay.tsx +87 -0
- package/src/react/ui/components/marketplace-collectible-card/constants.ts +20 -0
- package/src/react/ui/components/marketplace-collectible-card/index.ts +6 -0
- package/src/react/ui/components/marketplace-collectible-card/types.ts +31 -16
- package/src/react/ui/components/marketplace-collectible-card/utils/determineCardAction.ts +63 -0
- package/src/react/ui/components/marketplace-collectible-card/utils/formatPrice.ts +71 -2
- package/src/react/ui/components/marketplace-collectible-card/utils/index.ts +3 -0
- package/src/react/ui/components/marketplace-collectible-card/utils/renderSkeleton.tsx +44 -0
- package/src/react/ui/components/marketplace-collectible-card/utils/shopCardState.ts +83 -0
- package/src/react/ui/components/marketplace-collectible-card/utils/supplyStatus.ts +5 -5
- package/src/react/ui/components/marketplace-collectible-card/variants/MarketCard.tsx +63 -78
- package/src/react/ui/components/marketplace-collectible-card/variants/MarketCardPresentation.tsx +170 -0
- package/src/react/ui/components/marketplace-collectible-card/variants/NonTradableInventoryCard.tsx +56 -38
- package/src/react/ui/components/marketplace-collectible-card/variants/ShopCard.tsx +55 -65
- package/src/react/ui/components/marketplace-collectible-card/variants/ShopCardPresentation.tsx +144 -0
- package/src/react/ui/components/marketplace-logos/marketplace-logos.tsx +1 -5
- package/src/react/ui/components/media/Media.tsx +1 -1
- package/src/react/ui/components/media/MediaSkeleton.tsx +1 -1
- package/src/react/ui/hooks/index.ts +2 -0
- package/src/react/ui/icons/BellIcon.tsx +7 -3
- package/src/react/ui/icons/iconVariants.ts +11 -0
- package/src/react/ui/icons/index.ts +0 -3
- package/src/react/ui/index.ts +37 -8
- package/src/react/ui/modals/BuyModal/components/BuyModalContent.tsx +161 -0
- package/src/react/ui/modals/BuyModal/components/CollectibleMetadataSummary.tsx +141 -0
- package/src/react/ui/modals/BuyModal/components/CryptoPaymentModal.tsx +177 -0
- package/src/react/ui/modals/BuyModal/components/CryptoPaymentModalSkeleton.tsx +48 -0
- package/src/react/ui/modals/BuyModal/components/Modal.tsx +2 -2
- package/src/react/ui/modals/BuyModal/components/TrailsCss.ts +216 -0
- package/src/react/ui/modals/BuyModal/components/{ERC1155QuantityModal.tsx → sequence-checkout/ERC1155QuantityModal.tsx} +71 -82
- package/src/react/ui/modals/BuyModal/components/sequence-checkout/SequenceCheckoutNew.tsx +161 -0
- package/src/react/ui/modals/BuyModal/{hooks → components/sequence-checkout}/usePaymentModalParams.ts +73 -112
- package/src/react/ui/modals/BuyModal/components/types.ts +6 -5
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC1155SalePaymentParams.test.tsx +2 -14
- package/src/react/ui/modals/BuyModal/hooks/useBuyModalData.ts +151 -0
- package/src/react/ui/modals/BuyModal/hooks/useERC1155SalePaymentParams.ts +15 -28
- package/src/react/ui/modals/BuyModal/hooks/useExecuteBundledTransactions.ts +167 -0
- package/src/react/ui/modals/BuyModal/hooks/useHasSufficientBalance.ts +30 -0
- package/src/react/ui/modals/BuyModal/hooks/useMarketPlatformFee.ts +2 -2
- package/src/react/ui/modals/BuyModal/index.tsx +6 -3
- package/src/react/ui/modals/BuyModal/internal/__tests__/determineCheckoutMode.test.ts +119 -0
- package/src/react/ui/modals/BuyModal/internal/buyModalContext.ts +146 -0
- package/src/react/ui/modals/BuyModal/internal/cryptoPaymentModalContext.tsx +399 -0
- package/src/react/ui/modals/BuyModal/internal/determineCheckoutMode.ts +49 -0
- package/src/react/ui/modals/BuyModal/store.ts +25 -94
- package/src/react/ui/modals/CreateListingModal/Modal.tsx +141 -308
- package/src/react/ui/modals/CreateListingModal/__tests__/Modal.test.tsx +35 -61
- package/src/react/ui/modals/CreateListingModal/index.tsx +16 -9
- package/src/react/ui/modals/CreateListingModal/internal/context.ts +416 -0
- package/src/react/ui/modals/CreateListingModal/internal/helpers/validation.ts +79 -0
- package/src/react/ui/modals/CreateListingModal/internal/hooks/index.ts +1 -0
- package/src/react/ui/modals/CreateListingModal/internal/hooks/use-collectible-approval.ts +49 -0
- package/src/react/ui/modals/CreateListingModal/internal/listing-mutations.ts +267 -0
- package/src/react/ui/modals/CreateListingModal/internal/store.ts +150 -0
- package/src/react/ui/modals/MakeOfferModal/Modal.tsx +130 -348
- package/src/react/ui/modals/MakeOfferModal/__stories__/MakeOfferModal.mock-data.ts +494 -0
- package/src/react/ui/modals/MakeOfferModal/__stories__/MakeOfferModal.stories.tsx +699 -0
- package/src/react/ui/modals/MakeOfferModal/__tests__/Modal.test.tsx +28 -155
- package/src/react/ui/modals/MakeOfferModal/index.tsx +17 -11
- package/src/react/ui/modals/MakeOfferModal/internal/context.ts +453 -0
- package/src/react/ui/modals/MakeOfferModal/internal/helpers/validation.ts +99 -0
- package/src/react/ui/modals/MakeOfferModal/internal/hooks/index.ts +1 -0
- package/src/react/ui/modals/MakeOfferModal/internal/hooks/use-erc20-allowance.ts +43 -0
- package/src/react/ui/modals/MakeOfferModal/internal/offer-mutations.ts +231 -0
- package/src/react/ui/modals/MakeOfferModal/internal/store.ts +150 -0
- package/src/react/ui/modals/SellModal/Modal.tsx +74 -213
- package/src/react/ui/modals/SellModal/index.tsx +5 -11
- package/src/react/ui/modals/SellModal/internal/context.ts +284 -0
- package/src/react/ui/modals/SellModal/internal/sell-mutations.ts +163 -0
- package/src/react/ui/modals/SellModal/internal/store.ts +76 -0
- package/src/react/ui/modals/SellModal/internal/use-generate-sell-transaction.ts +93 -0
- package/src/react/ui/modals/TransferModal/__tests__/store.test.ts +51 -345
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TokenQuantityInput.tsx +36 -34
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/WalletAddressInput.tsx +19 -28
- package/src/react/ui/modals/TransferModal/index.tsx +98 -119
- package/src/react/ui/modals/TransferModal/internal/context.ts +404 -0
- package/src/react/ui/modals/TransferModal/internal/store.ts +118 -0
- package/src/react/ui/modals/_internal/components/alertMessage/index.tsx +2 -3
- package/src/react/ui/modals/_internal/components/baseModal/ActionModal.tsx +338 -0
- package/src/react/ui/modals/_internal/components/baseModal/BaseModal.tsx +51 -0
- package/src/react/ui/modals/_internal/components/baseModal/ErrorBoundary.tsx +83 -0
- package/src/react/ui/modals/_internal/components/baseModal/ErrorModal.tsx +51 -0
- package/src/react/ui/modals/_internal/components/baseModal/LoadingModal.tsx +35 -0
- package/src/react/ui/modals/_internal/components/baseModal/SmartErrorHandler.tsx +31 -0
- package/src/react/ui/modals/_internal/components/baseModal/__tests__/ErrorBoundary.test.tsx +390 -0
- package/src/react/ui/modals/_internal/components/baseModal/errors/ModalInitializationError.tsx +91 -0
- package/src/react/ui/modals/_internal/components/baseModal/errors/errorActionType.ts +5 -0
- package/src/react/ui/modals/_internal/components/baseModal/index.ts +13 -0
- package/src/react/ui/modals/_internal/components/calendarDropdown/TimeSelector.tsx +1 -1
- package/src/react/ui/modals/_internal/components/calendarDropdown/index.tsx +14 -9
- package/src/react/ui/modals/_internal/components/consts.ts +19 -5
- package/src/react/ui/modals/_internal/components/currencyImage/index.tsx +5 -7
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +6 -14
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +17 -24
- package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/floorPriceText/__tests__/FloorPriceText.test.tsx +61 -40
- package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +23 -19
- package/src/react/ui/modals/_internal/components/priceInput/__tests__/PriceInput.test.tsx +3 -3
- package/src/react/ui/modals/_internal/components/priceInput/index.tsx +66 -66
- package/src/react/ui/modals/_internal/components/quantityInput/__tests__/index.test.tsx +22 -137
- package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +84 -131
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/__tests__/SelectWaasFeeOptions.test.tsx +14 -31
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/_components/ActionButtons.tsx +37 -25
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/index.tsx +13 -6
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/store.ts +9 -26
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +27 -29
- package/src/react/ui/modals/_internal/components/switchChainErrorModal/store.ts +2 -2
- package/src/react/ui/modals/_internal/components/tokenPreview/index.tsx +10 -9
- package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +11 -7
- package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +8 -7
- package/src/react/ui/modals/_internal/components/transactionPreview/useTransactionPreviewTitle.tsx +1 -1
- package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/TransactionStatusModal.test.tsx +3 -5
- package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/utils.test.ts +3 -3
- package/src/react/ui/modals/_internal/components/transactionStatusModal/hooks/useTransactionStatus.ts +4 -15
- package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +14 -15
- package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +8 -11
- package/src/react/ui/modals/_internal/components/waasFeeOptionsSelect/WaasFeeOptionsSelect.tsx +65 -10
- package/src/react/ui/modals/_internal/constants/opensea-currencies.ts +484 -0
- package/src/react/ui/modals/_internal/helpers/currency.ts +56 -0
- package/src/react/ui/modals/_internal/helpers/dnum-utils.ts +40 -0
- package/src/react/ui/modals/_internal/helpers/flow-state.ts +269 -0
- package/src/react/ui/modals/_internal/helpers/step-guards.ts +131 -0
- package/src/react/ui/modals/_internal/types/steps.ts +145 -0
- package/src/react/ui/modals/_internal/types.ts +2 -9
- package/src/react/utils/index.ts +2 -0
- package/src/react/utils/normalize-attributes.test.ts +94 -0
- package/src/react/utils/normalize-attributes.ts +89 -0
- package/src/react/utils/normalize-properties.test.ts +77 -0
- package/src/react/utils/normalize-properties.ts +60 -0
- package/src/react/utils/normalizePriceFilters.ts +25 -0
- package/src/react/utils/waitForTransactionReceipt.ts +2 -2
- package/src/styles/index.css +2 -0
- package/src/styles/styles.ts +2036 -374
- package/src/types/api-types.ts +6 -14
- package/src/types/buyModalErrors.ts +24 -30
- package/src/types/index.ts +4 -2
- package/src/types/sdk-config.ts +14 -1
- package/src/types/transactions.ts +10 -0
- package/src/types/types.ts +93 -14
- package/src/utils/__tests__/getMarketplaceDetails.test.ts +1 -1
- package/src/utils/_internal/error/base.ts +1 -1
- package/src/utils/_internal/error/transaction.ts +4 -5
- package/src/utils/abi/helpers.ts +38 -0
- package/src/utils/abi/index.ts +1 -0
- package/src/utils/decode/erc20.ts +2 -2
- package/src/utils/errors.ts +527 -0
- package/src/utils/getConduitAddressForOrderbook.ts +38 -0
- package/src/utils/getErrorMessage.ts +37 -0
- package/src/utils/getMarketplaceDetails.ts +1 -1
- package/src/utils/getSequenceMarketRequestId.ts +3 -7
- package/src/utils/getWagmiErrorMessage.ts +241 -0
- package/src/utils/getWebRPCErrorMessage.ts +63 -0
- package/src/utils/networkconfigToWagmiChain.ts +2 -1
- package/src/utils/price.ts +12 -10
- package/test/const.ts +3 -3
- package/test/globalSetup.ts +4 -5
- package/test/handlers.ts +2 -2
- package/test/server-setup.ts +8 -8
- package/test/setup.ts +11 -0
- package/test/test-utils.tsx +23 -6
- package/tsconfig.json +8 -1
- package/tsdown.config.ts +12 -3
- package/dist/CartIcon.js +0 -102
- package/dist/CartIcon.js.map +0 -1
- package/dist/CollectibleCard.d.ts +0 -8
- package/dist/builder.gen.js +0 -300
- package/dist/builder.gen.js.map +0 -1
- package/dist/collectibles.js +0 -319
- package/dist/collectibles.js.map +0 -1
- package/dist/collections.js +0 -320
- package/dist/collections.js.map +0 -1
- package/dist/components.js +0 -117
- package/dist/components.js.map +0 -1
- package/dist/listCollectiblesPaginated.d.ts +0 -322
- package/dist/listCollections.d.ts +0 -821
- package/dist/lowestListing.d.ts +0 -465
- package/dist/market.js +0 -207
- package/dist/market.js.map +0 -1
- package/dist/marketCurrencies.d.ts +0 -163
- package/dist/marketCurrencies.js +0 -56
- package/dist/marketCurrencies.js.map +0 -1
- package/dist/marketplace.gen.js +0 -1144
- package/dist/marketplace.gen.js.map +0 -1
- package/dist/marketplaceConfig.js.map +0 -1
- package/dist/orders.js +0 -462
- package/dist/orders.js.map +0 -1
- package/dist/primary-sales.js +0 -152
- package/dist/primary-sales.js.map +0 -1
- package/dist/query.d.ts +0 -31
- package/dist/react/hooks/data/collectibles/index.d.ts +0 -5
- package/dist/react/hooks/data/collectibles/index.js +0 -39
- package/dist/react/hooks/data/collections/index.d.ts +0 -11
- package/dist/react/hooks/data/collections/index.js +0 -39
- package/dist/react/hooks/data/index.d.ts +0 -37
- package/dist/react/hooks/data/index.js +0 -39
- package/dist/react/hooks/data/inventory/index.d.ts +0 -37
- package/dist/react/hooks/data/inventory/index.js +0 -39
- package/dist/react/hooks/data/market/index.d.ts +0 -6
- package/dist/react/hooks/data/market/index.js +0 -39
- package/dist/react/hooks/data/orders/index.d.ts +0 -5
- package/dist/react/hooks/data/orders/index.js +0 -39
- package/dist/react/hooks/data/primary-sales/index.d.ts +0 -37
- package/dist/react/hooks/data/primary-sales/index.js +0 -39
- package/dist/react/hooks/data/tokens/index.d.ts +0 -5
- package/dist/react/hooks/data/tokens/index.js +0 -39
- package/dist/react/queries/collectibles/index.d.ts +0 -5
- package/dist/react/queries/collectibles/index.js +0 -22
- package/dist/react/queries/collections/index.d.ts +0 -11
- package/dist/react/queries/collections/index.js +0 -20
- package/dist/react/queries/market/index.d.ts +0 -6
- package/dist/react/queries/market/index.js +0 -22
- package/dist/react/queries/orders/index.d.ts +0 -5
- package/dist/react/queries/orders/index.js +0 -13
- package/dist/react/queries/primary-sales/index.d.ts +0 -4
- package/dist/react/queries/primary-sales/index.js +0 -13
- package/dist/react/queries/tokens/index.d.ts +0 -5
- package/dist/react/queries/tokens/index.js +0 -13
- package/dist/react/queries/utils/index.d.ts +0 -4
- package/dist/react/queries/utils/index.js +0 -22
- package/dist/react/ssr/index.js.map +0 -1
- package/dist/react/ui/components/marketplace-collectible-card/components/footer/components/index.d.ts +0 -3
- package/dist/react/ui/components/marketplace-collectible-card/components/footer/components/index.js +0 -22
- package/dist/react/ui/components/marketplace-collectible-card/components/footer/index.d.ts +0 -51
- package/dist/react/ui/components/marketplace-collectible-card/components/footer/index.js +0 -39
- package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +0 -40
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +0 -39
- package/dist/src.js.map +0 -1
- package/dist/tokenBalances.js +0 -56
- package/dist/tokenBalances.js.map +0 -1
- package/dist/tokenSupplies.d.ts +0 -261
- package/dist/tokens.js +0 -219
- package/dist/tokens.js.map +0 -1
- package/dist/utils3.js +0 -43
- package/dist/utils3.js.map +0 -1
- package/dist/waitForTransactionReceipt.js +0 -25
- package/dist/waitForTransactionReceipt.js.map +0 -1
- package/src/react/_internal/api/__mocks__/builder.msw.ts +0 -239
- package/src/react/_internal/api/__mocks__/indexer.msw.ts +0 -216
- package/src/react/_internal/api/__mocks__/marketplace.msw.ts +0 -402
- package/src/react/_internal/api/__mocks__/metadata.msw.ts +0 -195
- package/src/react/_internal/api/builder.gen.ts +0 -773
- package/src/react/_internal/api/marketplace.gen.ts +0 -2718
- package/src/react/_internal/api/query-keys.ts +0 -124
- package/src/react/hooks/data/collectibles/index.ts +0 -6
- package/src/react/hooks/data/collectibles/useListCollectibleActivities.test.tsx +0 -192
- package/src/react/hooks/data/collectibles/useListCollectibleActivities.tsx +0 -98
- package/src/react/hooks/data/collections/index.ts +0 -8
- package/src/react/hooks/data/collections/useCollectionActiveListingsCurrencies.test.tsx +0 -112
- package/src/react/hooks/data/collections/useCollectionActiveOffersCurrencies.test.tsx +0 -110
- package/src/react/hooks/data/collections/useCollectionDetails.test.tsx +0 -83
- package/src/react/hooks/data/collections/useCollectionDetails.ts +0 -69
- package/src/react/hooks/data/collections/useCollectionDetailsPolling.test.tsx +0 -137
- package/src/react/hooks/data/collections/useListCollectionActivities.test.tsx +0 -227
- package/src/react/hooks/data/collections/useListCollectionActivities.tsx +0 -93
- package/src/react/hooks/data/index.ts +0 -6
- package/src/react/hooks/data/inventory/index.ts +0 -1
- package/src/react/hooks/data/inventory/useInventory.tsx +0 -12
- package/src/react/hooks/data/market/index.ts +0 -3
- package/src/react/hooks/data/orders/index.ts +0 -11
- package/src/react/hooks/data/primary-sales/index.ts +0 -7
- package/src/react/hooks/data/primary-sales/useCountOfPrimarySaleItems.tsx +0 -13
- package/src/react/hooks/data/primary-sales/useGetCountOfPrimarySaleItems.tsx +0 -48
- package/src/react/hooks/data/tokens/index.ts +0 -5
- package/src/react/hooks/data/tokens/useListBalances.tsx +0 -29
- package/src/react/hooks/data/tokens/useTokenSupplies.ts +0 -69
- package/src/react/hooks/utils/useCheckoutOptions.test.tsx +0 -162
- package/src/react/hooks/utils/useCheckoutOptions.tsx +0 -98
- package/src/react/queries/collectibles/balanceOfCollectible.ts +0 -90
- package/src/react/queries/collectibles/collectible.ts +0 -81
- package/src/react/queries/collectibles/countOfCollectables.ts +0 -109
- package/src/react/queries/collectibles/index.ts +0 -7
- package/src/react/queries/collectibles/listCollectibleActivities.ts +0 -121
- package/src/react/queries/collectibles/listCollectibles.ts +0 -115
- package/src/react/queries/collectibles/listCollectiblesPaginated.ts +0 -104
- package/src/react/queries/collectibles/tokenBalances.ts +0 -89
- package/src/react/queries/collections/activeListingsCurrencies.ts +0 -84
- package/src/react/queries/collections/activeOffersCurrencies.ts +0 -84
- package/src/react/queries/collections/collection.ts +0 -69
- package/src/react/queries/collections/collectionBalanceDetails.ts +0 -107
- package/src/react/queries/collections/collectionDetails.ts +0 -79
- package/src/react/queries/collections/index.ts +0 -7
- package/src/react/queries/collections/listCollectionActivities.ts +0 -117
- package/src/react/queries/collections/listCollections.ts +0 -175
- package/src/react/queries/market/checkoutOptions.ts +0 -107
- package/src/react/queries/market/checkoutOptionsSalesContract.ts +0 -108
- package/src/react/queries/market/currency.ts +0 -92
- package/src/react/queries/market/index.ts +0 -6
- package/src/react/queries/market/marketCurrencies.ts +0 -120
- package/src/react/queries/market/marketplaceConfig.ts +0 -117
- package/src/react/queries/orders/countItemsOrdersForCollection.ts +0 -86
- package/src/react/queries/orders/countListingsForCollectible.ts +0 -90
- package/src/react/queries/orders/countOffersForCollectible.ts +0 -90
- package/src/react/queries/orders/floorOrder.ts +0 -74
- package/src/react/queries/orders/getCountOfFilteredOrders.ts +0 -88
- package/src/react/queries/orders/highestOffer.ts +0 -78
- package/src/react/queries/orders/index.ts +0 -11
- package/src/react/queries/orders/listItemsOrdersForCollection.ts +0 -90
- package/src/react/queries/orders/listItemsOrdersForCollectionPaginated.ts +0 -90
- package/src/react/queries/orders/listListingsForCollectible.ts +0 -97
- package/src/react/queries/orders/listOffersForCollectible.ts +0 -116
- package/src/react/queries/orders/lowestListing.ts +0 -81
- package/src/react/queries/primary-sales/countOfPrimarySaleItems.ts +0 -62
- package/src/react/queries/primary-sales/index.ts +0 -4
- package/src/react/queries/primary-sales/primarySaleItem.ts +0 -80
- package/src/react/queries/primary-sales/primarySaleItems.ts +0 -94
- package/src/react/queries/primary-sales/primarySaleItemsCount.ts +0 -79
- package/src/react/queries/tokens/getTokenRanges.ts +0 -75
- package/src/react/queries/tokens/index.ts +0 -5
- package/src/react/queries/tokens/listBalances.ts +0 -71
- package/src/react/queries/tokens/listTokenMetadata.ts +0 -81
- package/src/react/queries/tokens/searchTokenMetadata.ts +0 -101
- package/src/react/queries/tokens/tokenSupplies.ts +0 -84
- package/src/react/queries/utils/comparePrices.ts +0 -132
- package/src/react/queries/utils/convertPriceToUSD.ts +0 -105
- package/src/react/queries/utils/index.ts +0 -2
- package/src/react/ui/components/marketplace-collectible-card/components/ActionButtonWrapper.tsx +0 -79
- package/src/react/ui/components/marketplace-collectible-card/components/BaseCard.tsx +0 -68
- package/src/react/ui/components/marketplace-collectible-card/components/footer/Footer.tsx +0 -165
- package/src/react/ui/components/marketplace-collectible-card/components/footer/components/FooterName.tsx +0 -103
- package/src/react/ui/components/marketplace-collectible-card/components/footer/components/PriceDisplay.tsx +0 -80
- package/src/react/ui/components/marketplace-collectible-card/components/footer/components/SaleDetailsPill.tsx +0 -29
- package/src/react/ui/components/marketplace-collectible-card/components/footer/components/TokenTypeBalancePill.tsx +0 -30
- package/src/react/ui/components/marketplace-collectible-card/components/footer/components/index.ts +0 -4
- package/src/react/ui/components/marketplace-collectible-card/components/footer/index.ts +0 -2
- package/src/react/ui/icons/CalendarIcon.tsx +0 -37
- package/src/react/ui/icons/CartIcon.tsx +0 -52
- package/src/react/ui/icons/InfoIcon.tsx +0 -44
- package/src/react/ui/modals/BuyModal/__tests__/BuyModalRouter.test.tsx +0 -557
- package/src/react/ui/modals/BuyModal/__tests__/ERC1155ShopModal.test.tsx +0 -409
- package/src/react/ui/modals/BuyModal/__tests__/ERC721ShopModal.test.tsx +0 -272
- package/src/react/ui/modals/BuyModal/__tests__/Modal.test.tsx.bak +0 -112
- package/src/react/ui/modals/BuyModal/__tests__/Modal1155.test.tsx +0 -251
- package/src/react/ui/modals/BuyModal/__tests__/store.test.ts +0 -105
- package/src/react/ui/modals/BuyModal/components/BuyModalRouter.tsx +0 -157
- package/src/react/ui/modals/BuyModal/components/ERC1155BuyModal.tsx +0 -198
- package/src/react/ui/modals/BuyModal/components/ERC1155ShopModal.tsx +0 -108
- package/src/react/ui/modals/BuyModal/components/ERC721BuyModal.tsx +0 -116
- package/src/react/ui/modals/BuyModal/components/ERC721ShopModal.tsx +0 -86
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useCheckoutOptions.test.tsx +0 -115
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC721SalePaymentParams.test.tsx +0 -283
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useMarketPlatformFee.test.tsx +0 -145
- package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +0 -86
- package/src/react/ui/modals/BuyModal/hooks/useERC721SalePaymentParams.ts +0 -216
- package/src/react/ui/modals/BuyModal/hooks/useLoadData.ts +0 -120
- package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +0 -98
- package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +0 -87
- package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +0 -246
- package/src/react/ui/modals/CreateListingModal/store.ts +0 -99
- package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +0 -90
- package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +0 -71
- package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +0 -241
- package/src/react/ui/modals/MakeOfferModal/store.ts +0 -94
- package/src/react/ui/modals/SellModal/__tests__/Modal.test.tsx +0 -85
- package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +0 -79
- package/src/react/ui/modals/SellModal/hooks/useSell.tsx +0 -77
- package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +0 -242
- package/src/react/ui/modals/SellModal/store.ts +0 -62
- package/src/react/ui/modals/SellModal/utils.ts +0 -38
- package/src/react/ui/modals/SuccessfulPurchaseModal/__tests__/Modal.test.tsx +0 -157
- package/src/react/ui/modals/SuccessfulPurchaseModal/index.tsx +0 -154
- package/src/react/ui/modals/SuccessfulPurchaseModal/store.ts +0 -71
- package/src/react/ui/modals/TransferModal/__tests__/__snapshots__/store.test.ts.snap +0 -17
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/__tests__/useHandleTransfer.test.tsx +0 -412
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TransferButton.tsx +0 -66
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +0 -137
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/useHandleTransfer.tsx +0 -97
- package/src/react/ui/modals/TransferModal/_views/followWalletInstructions/index.tsx +0 -31
- package/src/react/ui/modals/TransferModal/messages.ts +0 -14
- package/src/react/ui/modals/TransferModal/store.ts +0 -122
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.test.tsx +0 -281
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +0 -113
- package/src/react/ui/modals/_internal/components/actionModal/ErrorModal.tsx +0 -35
- package/src/react/ui/modals/_internal/components/actionModal/LoadingModal.tsx +0 -32
- package/src/react/ui/modals/_internal/components/actionModal/index.ts +0 -1
- package/src/types/custom.d.ts +0 -1
- package/src/types/messages.ts +0 -43
- package/src/types/new-marketplace-types.ts +0 -95
- /package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/types.ts +0 -0
- /package/src/react/ui/modals/_internal/hooks/{useSelectWaasFeeOptions.ts → useSelectWaasFeeOptions.tsx} +0 -0
package/dist/index7.d.ts
CHANGED
|
@@ -1,121 +1,1803 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
//#region src/utils/abi/token/ERC20.d.ts
|
|
2
|
+
declare const ERC20_ABI: readonly [{
|
|
3
|
+
readonly anonymous: false;
|
|
4
|
+
readonly inputs: readonly [{
|
|
5
|
+
readonly indexed: true;
|
|
6
|
+
readonly internalType: "address";
|
|
7
|
+
readonly name: "owner";
|
|
8
|
+
readonly type: "address";
|
|
9
|
+
}, {
|
|
10
|
+
readonly indexed: true;
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly name: "spender";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}, {
|
|
15
|
+
readonly indexed: false;
|
|
16
|
+
readonly internalType: "uint256";
|
|
17
|
+
readonly name: "value";
|
|
18
|
+
readonly type: "uint256";
|
|
19
|
+
}];
|
|
20
|
+
readonly name: "Approval";
|
|
21
|
+
readonly type: "event";
|
|
22
|
+
}, {
|
|
23
|
+
readonly anonymous: false;
|
|
24
|
+
readonly inputs: readonly [{
|
|
25
|
+
readonly indexed: true;
|
|
26
|
+
readonly internalType: "address";
|
|
27
|
+
readonly name: "from";
|
|
28
|
+
readonly type: "address";
|
|
29
|
+
}, {
|
|
30
|
+
readonly indexed: true;
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
readonly name: "to";
|
|
33
|
+
readonly type: "address";
|
|
34
|
+
}, {
|
|
35
|
+
readonly indexed: false;
|
|
36
|
+
readonly internalType: "uint256";
|
|
37
|
+
readonly name: "value";
|
|
38
|
+
readonly type: "uint256";
|
|
39
|
+
}];
|
|
40
|
+
readonly name: "Transfer";
|
|
41
|
+
readonly type: "event";
|
|
42
|
+
}, {
|
|
43
|
+
readonly inputs: readonly [{
|
|
44
|
+
readonly internalType: "address";
|
|
45
|
+
readonly name: "owner";
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
}, {
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
readonly name: "spender";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
}];
|
|
52
|
+
readonly name: "allowance";
|
|
53
|
+
readonly outputs: readonly [{
|
|
54
|
+
readonly internalType: "uint256";
|
|
55
|
+
readonly name: "";
|
|
56
|
+
readonly type: "uint256";
|
|
57
|
+
}];
|
|
58
|
+
readonly stateMutability: "view";
|
|
59
|
+
readonly type: "function";
|
|
60
|
+
}, {
|
|
61
|
+
readonly inputs: readonly [{
|
|
62
|
+
readonly internalType: "address";
|
|
63
|
+
readonly name: "spender";
|
|
64
|
+
readonly type: "address";
|
|
65
|
+
}, {
|
|
66
|
+
readonly internalType: "uint256";
|
|
67
|
+
readonly name: "value";
|
|
68
|
+
readonly type: "uint256";
|
|
69
|
+
}];
|
|
70
|
+
readonly name: "approve";
|
|
71
|
+
readonly outputs: readonly [{
|
|
72
|
+
readonly internalType: "bool";
|
|
73
|
+
readonly name: "";
|
|
74
|
+
readonly type: "bool";
|
|
75
|
+
}];
|
|
76
|
+
readonly stateMutability: "nonpayable";
|
|
77
|
+
readonly type: "function";
|
|
78
|
+
}, {
|
|
79
|
+
readonly inputs: readonly [{
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
readonly name: "who";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
}];
|
|
84
|
+
readonly name: "balanceOf";
|
|
85
|
+
readonly outputs: readonly [{
|
|
86
|
+
readonly internalType: "uint256";
|
|
87
|
+
readonly name: "";
|
|
88
|
+
readonly type: "uint256";
|
|
89
|
+
}];
|
|
90
|
+
readonly stateMutability: "view";
|
|
91
|
+
readonly type: "function";
|
|
92
|
+
}, {
|
|
93
|
+
readonly inputs: readonly [];
|
|
94
|
+
readonly name: "totalSupply";
|
|
95
|
+
readonly outputs: readonly [{
|
|
96
|
+
readonly internalType: "uint256";
|
|
97
|
+
readonly name: "";
|
|
98
|
+
readonly type: "uint256";
|
|
99
|
+
}];
|
|
100
|
+
readonly stateMutability: "view";
|
|
101
|
+
readonly type: "function";
|
|
102
|
+
}, {
|
|
103
|
+
readonly inputs: readonly [{
|
|
104
|
+
readonly internalType: "address";
|
|
105
|
+
readonly name: "to";
|
|
106
|
+
readonly type: "address";
|
|
107
|
+
}, {
|
|
108
|
+
readonly internalType: "uint256";
|
|
109
|
+
readonly name: "value";
|
|
110
|
+
readonly type: "uint256";
|
|
111
|
+
}];
|
|
112
|
+
readonly name: "transfer";
|
|
113
|
+
readonly outputs: readonly [{
|
|
114
|
+
readonly internalType: "bool";
|
|
115
|
+
readonly name: "";
|
|
116
|
+
readonly type: "bool";
|
|
117
|
+
}];
|
|
118
|
+
readonly stateMutability: "nonpayable";
|
|
119
|
+
readonly type: "function";
|
|
120
|
+
}, {
|
|
121
|
+
readonly inputs: readonly [{
|
|
122
|
+
readonly internalType: "address";
|
|
123
|
+
readonly name: "from";
|
|
124
|
+
readonly type: "address";
|
|
125
|
+
}, {
|
|
126
|
+
readonly internalType: "address";
|
|
127
|
+
readonly name: "to";
|
|
128
|
+
readonly type: "address";
|
|
129
|
+
}, {
|
|
130
|
+
readonly internalType: "uint256";
|
|
131
|
+
readonly name: "value";
|
|
132
|
+
readonly type: "uint256";
|
|
133
|
+
}];
|
|
134
|
+
readonly name: "transferFrom";
|
|
135
|
+
readonly outputs: readonly [{
|
|
136
|
+
readonly internalType: "bool";
|
|
137
|
+
readonly name: "";
|
|
138
|
+
readonly type: "bool";
|
|
139
|
+
}];
|
|
140
|
+
readonly stateMutability: "nonpayable";
|
|
141
|
+
readonly type: "function";
|
|
142
|
+
}];
|
|
13
143
|
//#endregion
|
|
14
|
-
//#region src/utils/
|
|
15
|
-
declare
|
|
144
|
+
//#region src/utils/abi/token/ERC721.d.ts
|
|
145
|
+
declare const ERC721_ABI: readonly [{
|
|
146
|
+
readonly inputs: readonly [];
|
|
147
|
+
readonly stateMutability: "nonpayable";
|
|
148
|
+
readonly type: "constructor";
|
|
149
|
+
}, {
|
|
150
|
+
readonly inputs: readonly [];
|
|
151
|
+
readonly name: "AlreadyInitialized";
|
|
152
|
+
readonly type: "error";
|
|
153
|
+
}, {
|
|
154
|
+
readonly inputs: readonly [];
|
|
155
|
+
readonly name: "InvalidMintRequest";
|
|
156
|
+
readonly type: "error";
|
|
157
|
+
}, {
|
|
158
|
+
readonly inputs: readonly [];
|
|
159
|
+
readonly name: "InvalidSequenceConfig";
|
|
160
|
+
readonly type: "error";
|
|
161
|
+
}, {
|
|
162
|
+
readonly inputs: readonly [];
|
|
163
|
+
readonly name: "NotAuthorized";
|
|
164
|
+
readonly type: "error";
|
|
165
|
+
}, {
|
|
166
|
+
readonly inputs: readonly [];
|
|
167
|
+
readonly name: "SequenceIsSealed";
|
|
168
|
+
readonly type: "error";
|
|
169
|
+
}, {
|
|
170
|
+
readonly inputs: readonly [];
|
|
171
|
+
readonly name: "SequenceSupplyExhausted";
|
|
172
|
+
readonly type: "error";
|
|
173
|
+
}, {
|
|
174
|
+
readonly anonymous: false;
|
|
175
|
+
readonly inputs: readonly [{
|
|
176
|
+
readonly indexed: true;
|
|
177
|
+
readonly internalType: "address";
|
|
178
|
+
readonly name: "owner";
|
|
179
|
+
readonly type: "address";
|
|
180
|
+
}, {
|
|
181
|
+
readonly indexed: true;
|
|
182
|
+
readonly internalType: "address";
|
|
183
|
+
readonly name: "spender";
|
|
184
|
+
readonly type: "address";
|
|
185
|
+
}, {
|
|
186
|
+
readonly indexed: true;
|
|
187
|
+
readonly internalType: "uint256";
|
|
188
|
+
readonly name: "id";
|
|
189
|
+
readonly type: "uint256";
|
|
190
|
+
}];
|
|
191
|
+
readonly name: "Approval";
|
|
192
|
+
readonly type: "event";
|
|
193
|
+
}, {
|
|
194
|
+
readonly anonymous: false;
|
|
195
|
+
readonly inputs: readonly [{
|
|
196
|
+
readonly indexed: true;
|
|
197
|
+
readonly internalType: "address";
|
|
198
|
+
readonly name: "owner";
|
|
199
|
+
readonly type: "address";
|
|
200
|
+
}, {
|
|
201
|
+
readonly indexed: true;
|
|
202
|
+
readonly internalType: "address";
|
|
203
|
+
readonly name: "operator";
|
|
204
|
+
readonly type: "address";
|
|
205
|
+
}, {
|
|
206
|
+
readonly indexed: false;
|
|
207
|
+
readonly internalType: "bool";
|
|
208
|
+
readonly name: "approved";
|
|
209
|
+
readonly type: "bool";
|
|
210
|
+
}];
|
|
211
|
+
readonly name: "ApprovalForAll";
|
|
212
|
+
readonly type: "event";
|
|
213
|
+
}, {
|
|
214
|
+
readonly anonymous: false;
|
|
215
|
+
readonly inputs: readonly [{
|
|
216
|
+
readonly indexed: false;
|
|
217
|
+
readonly internalType: "string";
|
|
218
|
+
readonly name: "topic";
|
|
219
|
+
readonly type: "string";
|
|
220
|
+
}, {
|
|
221
|
+
readonly indexed: false;
|
|
222
|
+
readonly internalType: "string";
|
|
223
|
+
readonly name: "message";
|
|
224
|
+
readonly type: "string";
|
|
225
|
+
}];
|
|
226
|
+
readonly name: "Broadcast";
|
|
227
|
+
readonly type: "event";
|
|
228
|
+
}, {
|
|
229
|
+
readonly anonymous: false;
|
|
230
|
+
readonly inputs: readonly [{
|
|
231
|
+
readonly indexed: true;
|
|
232
|
+
readonly internalType: "address";
|
|
233
|
+
readonly name: "previousOwner";
|
|
234
|
+
readonly type: "address";
|
|
235
|
+
}, {
|
|
236
|
+
readonly indexed: true;
|
|
237
|
+
readonly internalType: "address";
|
|
238
|
+
readonly name: "newOwner";
|
|
239
|
+
readonly type: "address";
|
|
240
|
+
}];
|
|
241
|
+
readonly name: "OwnershipTransferred";
|
|
242
|
+
readonly type: "event";
|
|
243
|
+
}, {
|
|
244
|
+
readonly anonymous: false;
|
|
245
|
+
readonly inputs: readonly [{
|
|
246
|
+
readonly indexed: true;
|
|
247
|
+
readonly internalType: "uint256";
|
|
248
|
+
readonly name: "tokenId";
|
|
249
|
+
readonly type: "uint256";
|
|
250
|
+
}, {
|
|
251
|
+
readonly indexed: true;
|
|
252
|
+
readonly internalType: "uint16";
|
|
253
|
+
readonly name: "sequenceId";
|
|
254
|
+
readonly type: "uint16";
|
|
255
|
+
}, {
|
|
256
|
+
readonly indexed: false;
|
|
257
|
+
readonly internalType: "uint80";
|
|
258
|
+
readonly name: "data";
|
|
259
|
+
readonly type: "uint80";
|
|
260
|
+
}];
|
|
261
|
+
readonly name: "RecordCreated";
|
|
262
|
+
readonly type: "event";
|
|
263
|
+
}, {
|
|
264
|
+
readonly anonymous: false;
|
|
265
|
+
readonly inputs: readonly [{
|
|
266
|
+
readonly indexed: true;
|
|
267
|
+
readonly internalType: "uint16";
|
|
268
|
+
readonly name: "sequenceId";
|
|
269
|
+
readonly type: "uint16";
|
|
270
|
+
}, {
|
|
271
|
+
readonly components: readonly [{
|
|
272
|
+
readonly internalType: "uint64";
|
|
273
|
+
readonly name: "sealedBeforeTimestamp";
|
|
274
|
+
readonly type: "uint64";
|
|
275
|
+
}, {
|
|
276
|
+
readonly internalType: "uint64";
|
|
277
|
+
readonly name: "sealedAfterTimestamp";
|
|
278
|
+
readonly type: "uint64";
|
|
279
|
+
}, {
|
|
280
|
+
readonly internalType: "uint64";
|
|
281
|
+
readonly name: "maxSupply";
|
|
282
|
+
readonly type: "uint64";
|
|
283
|
+
}, {
|
|
284
|
+
readonly internalType: "uint64";
|
|
285
|
+
readonly name: "minted";
|
|
286
|
+
readonly type: "uint64";
|
|
287
|
+
}, {
|
|
288
|
+
readonly internalType: "contract IEngine";
|
|
289
|
+
readonly name: "engine";
|
|
290
|
+
readonly type: "address";
|
|
291
|
+
}, {
|
|
292
|
+
readonly internalType: "uint64";
|
|
293
|
+
readonly name: "dropNodeId";
|
|
294
|
+
readonly type: "uint64";
|
|
295
|
+
}];
|
|
296
|
+
readonly indexed: false;
|
|
297
|
+
readonly internalType: "struct SequenceData";
|
|
298
|
+
readonly name: "sequenceData";
|
|
299
|
+
readonly type: "tuple";
|
|
300
|
+
}, {
|
|
301
|
+
readonly indexed: false;
|
|
302
|
+
readonly internalType: "bytes";
|
|
303
|
+
readonly name: "engineData";
|
|
304
|
+
readonly type: "bytes";
|
|
305
|
+
}];
|
|
306
|
+
readonly name: "SequenceConfigured";
|
|
307
|
+
readonly type: "event";
|
|
308
|
+
}, {
|
|
309
|
+
readonly anonymous: false;
|
|
310
|
+
readonly inputs: readonly [{
|
|
311
|
+
readonly indexed: true;
|
|
312
|
+
readonly internalType: "address";
|
|
313
|
+
readonly name: "from";
|
|
314
|
+
readonly type: "address";
|
|
315
|
+
}, {
|
|
316
|
+
readonly indexed: true;
|
|
317
|
+
readonly internalType: "address";
|
|
318
|
+
readonly name: "to";
|
|
319
|
+
readonly type: "address";
|
|
320
|
+
}, {
|
|
321
|
+
readonly indexed: true;
|
|
322
|
+
readonly internalType: "uint256";
|
|
323
|
+
readonly name: "id";
|
|
324
|
+
readonly type: "uint256";
|
|
325
|
+
}];
|
|
326
|
+
readonly name: "Transfer";
|
|
327
|
+
readonly type: "event";
|
|
328
|
+
}, {
|
|
329
|
+
readonly inputs: readonly [];
|
|
330
|
+
readonly name: "accessControl";
|
|
331
|
+
readonly outputs: readonly [{
|
|
332
|
+
readonly internalType: "contract INodeRegistry";
|
|
333
|
+
readonly name: "nodeRegistry";
|
|
334
|
+
readonly type: "address";
|
|
335
|
+
}, {
|
|
336
|
+
readonly internalType: "uint64";
|
|
337
|
+
readonly name: "controlNodeId";
|
|
338
|
+
readonly type: "uint64";
|
|
339
|
+
}];
|
|
340
|
+
readonly stateMutability: "view";
|
|
341
|
+
readonly type: "function";
|
|
342
|
+
}, {
|
|
343
|
+
readonly inputs: readonly [{
|
|
344
|
+
readonly internalType: "address";
|
|
345
|
+
readonly name: "spender";
|
|
346
|
+
readonly type: "address";
|
|
347
|
+
}, {
|
|
348
|
+
readonly internalType: "uint256";
|
|
349
|
+
readonly name: "id";
|
|
350
|
+
readonly type: "uint256";
|
|
351
|
+
}];
|
|
352
|
+
readonly name: "approve";
|
|
353
|
+
readonly outputs: readonly [];
|
|
354
|
+
readonly stateMutability: "nonpayable";
|
|
355
|
+
readonly type: "function";
|
|
356
|
+
}, {
|
|
357
|
+
readonly inputs: readonly [{
|
|
358
|
+
readonly internalType: "address";
|
|
359
|
+
readonly name: "owner";
|
|
360
|
+
readonly type: "address";
|
|
361
|
+
}];
|
|
362
|
+
readonly name: "balanceOf";
|
|
363
|
+
readonly outputs: readonly [{
|
|
364
|
+
readonly internalType: "uint256";
|
|
365
|
+
readonly name: "";
|
|
366
|
+
readonly type: "uint256";
|
|
367
|
+
}];
|
|
368
|
+
readonly stateMutability: "view";
|
|
369
|
+
readonly type: "function";
|
|
370
|
+
}, {
|
|
371
|
+
readonly inputs: readonly [{
|
|
372
|
+
readonly internalType: "string";
|
|
373
|
+
readonly name: "topic";
|
|
374
|
+
readonly type: "string";
|
|
375
|
+
}, {
|
|
376
|
+
readonly internalType: "string";
|
|
377
|
+
readonly name: "message";
|
|
378
|
+
readonly type: "string";
|
|
379
|
+
}];
|
|
380
|
+
readonly name: "broadcast";
|
|
381
|
+
readonly outputs: readonly [];
|
|
382
|
+
readonly stateMutability: "nonpayable";
|
|
383
|
+
readonly type: "function";
|
|
384
|
+
}, {
|
|
385
|
+
readonly inputs: readonly [{
|
|
386
|
+
readonly components: readonly [{
|
|
387
|
+
readonly internalType: "uint64";
|
|
388
|
+
readonly name: "sealedBeforeTimestamp";
|
|
389
|
+
readonly type: "uint64";
|
|
390
|
+
}, {
|
|
391
|
+
readonly internalType: "uint64";
|
|
392
|
+
readonly name: "sealedAfterTimestamp";
|
|
393
|
+
readonly type: "uint64";
|
|
394
|
+
}, {
|
|
395
|
+
readonly internalType: "uint64";
|
|
396
|
+
readonly name: "maxSupply";
|
|
397
|
+
readonly type: "uint64";
|
|
398
|
+
}, {
|
|
399
|
+
readonly internalType: "uint64";
|
|
400
|
+
readonly name: "minted";
|
|
401
|
+
readonly type: "uint64";
|
|
402
|
+
}, {
|
|
403
|
+
readonly internalType: "contract IEngine";
|
|
404
|
+
readonly name: "engine";
|
|
405
|
+
readonly type: "address";
|
|
406
|
+
}, {
|
|
407
|
+
readonly internalType: "uint64";
|
|
408
|
+
readonly name: "dropNodeId";
|
|
409
|
+
readonly type: "uint64";
|
|
410
|
+
}];
|
|
411
|
+
readonly internalType: "struct SequenceData";
|
|
412
|
+
readonly name: "_sequence";
|
|
413
|
+
readonly type: "tuple";
|
|
414
|
+
}, {
|
|
415
|
+
readonly internalType: "bytes";
|
|
416
|
+
readonly name: "_engineData";
|
|
417
|
+
readonly type: "bytes";
|
|
418
|
+
}];
|
|
419
|
+
readonly name: "configureSequence";
|
|
420
|
+
readonly outputs: readonly [];
|
|
421
|
+
readonly stateMutability: "nonpayable";
|
|
422
|
+
readonly type: "function";
|
|
423
|
+
}, {
|
|
424
|
+
readonly inputs: readonly [];
|
|
425
|
+
readonly name: "contractURI";
|
|
426
|
+
readonly outputs: readonly [{
|
|
427
|
+
readonly internalType: "string";
|
|
428
|
+
readonly name: "value";
|
|
429
|
+
readonly type: "string";
|
|
430
|
+
}];
|
|
431
|
+
readonly stateMutability: "view";
|
|
432
|
+
readonly type: "function";
|
|
433
|
+
}, {
|
|
434
|
+
readonly inputs: readonly [];
|
|
435
|
+
readonly name: "controlNode";
|
|
436
|
+
readonly outputs: readonly [{
|
|
437
|
+
readonly internalType: "uint64";
|
|
438
|
+
readonly name: "nodeId";
|
|
439
|
+
readonly type: "uint64";
|
|
440
|
+
}];
|
|
441
|
+
readonly stateMutability: "view";
|
|
442
|
+
readonly type: "function";
|
|
443
|
+
}, {
|
|
444
|
+
readonly inputs: readonly [{
|
|
445
|
+
readonly internalType: "uint256";
|
|
446
|
+
readonly name: "";
|
|
447
|
+
readonly type: "uint256";
|
|
448
|
+
}];
|
|
449
|
+
readonly name: "getApproved";
|
|
450
|
+
readonly outputs: readonly [{
|
|
451
|
+
readonly internalType: "address";
|
|
452
|
+
readonly name: "";
|
|
453
|
+
readonly type: "address";
|
|
454
|
+
}];
|
|
455
|
+
readonly stateMutability: "view";
|
|
456
|
+
readonly type: "function";
|
|
457
|
+
}, {
|
|
458
|
+
readonly inputs: readonly [{
|
|
459
|
+
readonly internalType: "uint16";
|
|
460
|
+
readonly name: "sequenceId";
|
|
461
|
+
readonly type: "uint16";
|
|
462
|
+
}];
|
|
463
|
+
readonly name: "getSequenceData";
|
|
464
|
+
readonly outputs: readonly [{
|
|
465
|
+
readonly components: readonly [{
|
|
466
|
+
readonly internalType: "uint64";
|
|
467
|
+
readonly name: "sealedBeforeTimestamp";
|
|
468
|
+
readonly type: "uint64";
|
|
469
|
+
}, {
|
|
470
|
+
readonly internalType: "uint64";
|
|
471
|
+
readonly name: "sealedAfterTimestamp";
|
|
472
|
+
readonly type: "uint64";
|
|
473
|
+
}, {
|
|
474
|
+
readonly internalType: "uint64";
|
|
475
|
+
readonly name: "maxSupply";
|
|
476
|
+
readonly type: "uint64";
|
|
477
|
+
}, {
|
|
478
|
+
readonly internalType: "uint64";
|
|
479
|
+
readonly name: "minted";
|
|
480
|
+
readonly type: "uint64";
|
|
481
|
+
}, {
|
|
482
|
+
readonly internalType: "contract IEngine";
|
|
483
|
+
readonly name: "engine";
|
|
484
|
+
readonly type: "address";
|
|
485
|
+
}, {
|
|
486
|
+
readonly internalType: "uint64";
|
|
487
|
+
readonly name: "dropNodeId";
|
|
488
|
+
readonly type: "uint64";
|
|
489
|
+
}];
|
|
490
|
+
readonly internalType: "struct SequenceData";
|
|
491
|
+
readonly name: "sequence";
|
|
492
|
+
readonly type: "tuple";
|
|
493
|
+
}];
|
|
494
|
+
readonly stateMutability: "view";
|
|
495
|
+
readonly type: "function";
|
|
496
|
+
}, {
|
|
497
|
+
readonly inputs: readonly [{
|
|
498
|
+
readonly internalType: "uint256";
|
|
499
|
+
readonly name: "id";
|
|
500
|
+
readonly type: "uint256";
|
|
501
|
+
}];
|
|
502
|
+
readonly name: "getTokenData";
|
|
503
|
+
readonly outputs: readonly [{
|
|
504
|
+
readonly components: readonly [{
|
|
505
|
+
readonly internalType: "address";
|
|
506
|
+
readonly name: "owner";
|
|
507
|
+
readonly type: "address";
|
|
508
|
+
}, {
|
|
509
|
+
readonly internalType: "uint16";
|
|
510
|
+
readonly name: "sequenceId";
|
|
511
|
+
readonly type: "uint16";
|
|
512
|
+
}, {
|
|
513
|
+
readonly internalType: "uint80";
|
|
514
|
+
readonly name: "data";
|
|
515
|
+
readonly type: "uint80";
|
|
516
|
+
}];
|
|
517
|
+
readonly internalType: "struct TokenData";
|
|
518
|
+
readonly name: "";
|
|
519
|
+
readonly type: "tuple";
|
|
520
|
+
}];
|
|
521
|
+
readonly stateMutability: "view";
|
|
522
|
+
readonly type: "function";
|
|
523
|
+
}, {
|
|
524
|
+
readonly inputs: readonly [{
|
|
525
|
+
readonly internalType: "address";
|
|
526
|
+
readonly name: "_owner";
|
|
527
|
+
readonly type: "address";
|
|
528
|
+
}, {
|
|
529
|
+
readonly components: readonly [{
|
|
530
|
+
readonly internalType: "contract INodeRegistry";
|
|
531
|
+
readonly name: "nodeRegistry";
|
|
532
|
+
readonly type: "address";
|
|
533
|
+
}, {
|
|
534
|
+
readonly internalType: "uint64";
|
|
535
|
+
readonly name: "controlNodeId";
|
|
536
|
+
readonly type: "uint64";
|
|
537
|
+
}];
|
|
538
|
+
readonly internalType: "struct AccessControlData";
|
|
539
|
+
readonly name: "_accessControl";
|
|
540
|
+
readonly type: "tuple";
|
|
541
|
+
}, {
|
|
542
|
+
readonly internalType: "string";
|
|
543
|
+
readonly name: "_metadata";
|
|
544
|
+
readonly type: "string";
|
|
545
|
+
}, {
|
|
546
|
+
readonly components: readonly [{
|
|
547
|
+
readonly internalType: "string";
|
|
548
|
+
readonly name: "name";
|
|
549
|
+
readonly type: "string";
|
|
550
|
+
}, {
|
|
551
|
+
readonly internalType: "string";
|
|
552
|
+
readonly name: "symbol";
|
|
553
|
+
readonly type: "string";
|
|
554
|
+
}, {
|
|
555
|
+
readonly internalType: "string";
|
|
556
|
+
readonly name: "contractURI";
|
|
557
|
+
readonly type: "string";
|
|
558
|
+
}];
|
|
559
|
+
readonly internalType: "struct ImmutableCollectionData";
|
|
560
|
+
readonly name: "_data";
|
|
561
|
+
readonly type: "tuple";
|
|
562
|
+
}];
|
|
563
|
+
readonly name: "init";
|
|
564
|
+
readonly outputs: readonly [];
|
|
565
|
+
readonly stateMutability: "nonpayable";
|
|
566
|
+
readonly type: "function";
|
|
567
|
+
}, {
|
|
568
|
+
readonly inputs: readonly [{
|
|
569
|
+
readonly internalType: "address";
|
|
570
|
+
readonly name: "";
|
|
571
|
+
readonly type: "address";
|
|
572
|
+
}, {
|
|
573
|
+
readonly internalType: "address";
|
|
574
|
+
readonly name: "";
|
|
575
|
+
readonly type: "address";
|
|
576
|
+
}];
|
|
577
|
+
readonly name: "isApprovedForAll";
|
|
578
|
+
readonly outputs: readonly [{
|
|
579
|
+
readonly internalType: "bool";
|
|
580
|
+
readonly name: "";
|
|
581
|
+
readonly type: "bool";
|
|
582
|
+
}];
|
|
583
|
+
readonly stateMutability: "view";
|
|
584
|
+
readonly type: "function";
|
|
585
|
+
}, {
|
|
586
|
+
readonly inputs: readonly [{
|
|
587
|
+
readonly internalType: "address";
|
|
588
|
+
readonly name: "subject";
|
|
589
|
+
readonly type: "address";
|
|
590
|
+
}];
|
|
591
|
+
readonly name: "isAuthorized";
|
|
592
|
+
readonly outputs: readonly [{
|
|
593
|
+
readonly internalType: "bool";
|
|
594
|
+
readonly name: "authorized";
|
|
595
|
+
readonly type: "bool";
|
|
596
|
+
}];
|
|
597
|
+
readonly stateMutability: "view";
|
|
598
|
+
readonly type: "function";
|
|
599
|
+
}, {
|
|
600
|
+
readonly inputs: readonly [{
|
|
601
|
+
readonly internalType: "address";
|
|
602
|
+
readonly name: "to";
|
|
603
|
+
readonly type: "address";
|
|
604
|
+
}, {
|
|
605
|
+
readonly internalType: "uint16";
|
|
606
|
+
readonly name: "sequenceId";
|
|
607
|
+
readonly type: "uint16";
|
|
608
|
+
}];
|
|
609
|
+
readonly name: "mintRecord";
|
|
610
|
+
readonly outputs: readonly [{
|
|
611
|
+
readonly internalType: "uint256";
|
|
612
|
+
readonly name: "tokenId";
|
|
613
|
+
readonly type: "uint256";
|
|
614
|
+
}];
|
|
615
|
+
readonly stateMutability: "nonpayable";
|
|
616
|
+
readonly type: "function";
|
|
617
|
+
}, {
|
|
618
|
+
readonly inputs: readonly [{
|
|
619
|
+
readonly internalType: "address";
|
|
620
|
+
readonly name: "to";
|
|
621
|
+
readonly type: "address";
|
|
622
|
+
}, {
|
|
623
|
+
readonly internalType: "uint16";
|
|
624
|
+
readonly name: "sequenceId";
|
|
625
|
+
readonly type: "uint16";
|
|
626
|
+
}, {
|
|
627
|
+
readonly internalType: "uint80";
|
|
628
|
+
readonly name: "tokenData";
|
|
629
|
+
readonly type: "uint80";
|
|
630
|
+
}];
|
|
631
|
+
readonly name: "mintRecord";
|
|
632
|
+
readonly outputs: readonly [{
|
|
633
|
+
readonly internalType: "uint256";
|
|
634
|
+
readonly name: "tokenId";
|
|
635
|
+
readonly type: "uint256";
|
|
636
|
+
}];
|
|
637
|
+
readonly stateMutability: "nonpayable";
|
|
638
|
+
readonly type: "function";
|
|
639
|
+
}, {
|
|
640
|
+
readonly inputs: readonly [];
|
|
641
|
+
readonly name: "name";
|
|
642
|
+
readonly outputs: readonly [{
|
|
643
|
+
readonly internalType: "string";
|
|
644
|
+
readonly name: "value";
|
|
645
|
+
readonly type: "string";
|
|
646
|
+
}];
|
|
647
|
+
readonly stateMutability: "view";
|
|
648
|
+
readonly type: "function";
|
|
649
|
+
}, {
|
|
650
|
+
readonly inputs: readonly [];
|
|
651
|
+
readonly name: "nodeRegistry";
|
|
652
|
+
readonly outputs: readonly [{
|
|
653
|
+
readonly internalType: "contract INodeRegistry";
|
|
654
|
+
readonly name: "";
|
|
655
|
+
readonly type: "address";
|
|
656
|
+
}];
|
|
657
|
+
readonly stateMutability: "view";
|
|
658
|
+
readonly type: "function";
|
|
659
|
+
}, {
|
|
660
|
+
readonly inputs: readonly [];
|
|
661
|
+
readonly name: "owner";
|
|
662
|
+
readonly outputs: readonly [{
|
|
663
|
+
readonly internalType: "address";
|
|
664
|
+
readonly name: "";
|
|
665
|
+
readonly type: "address";
|
|
666
|
+
}];
|
|
667
|
+
readonly stateMutability: "view";
|
|
668
|
+
readonly type: "function";
|
|
669
|
+
}, {
|
|
670
|
+
readonly inputs: readonly [{
|
|
671
|
+
readonly internalType: "uint256";
|
|
672
|
+
readonly name: "id";
|
|
673
|
+
readonly type: "uint256";
|
|
674
|
+
}];
|
|
675
|
+
readonly name: "ownerOf";
|
|
676
|
+
readonly outputs: readonly [{
|
|
677
|
+
readonly internalType: "address";
|
|
678
|
+
readonly name: "owner";
|
|
679
|
+
readonly type: "address";
|
|
680
|
+
}];
|
|
681
|
+
readonly stateMutability: "view";
|
|
682
|
+
readonly type: "function";
|
|
683
|
+
}, {
|
|
684
|
+
readonly inputs: readonly [{
|
|
685
|
+
readonly internalType: "uint256";
|
|
686
|
+
readonly name: "tokenId";
|
|
687
|
+
readonly type: "uint256";
|
|
688
|
+
}, {
|
|
689
|
+
readonly internalType: "uint256";
|
|
690
|
+
readonly name: "salePrice";
|
|
691
|
+
readonly type: "uint256";
|
|
692
|
+
}];
|
|
693
|
+
readonly name: "royaltyInfo";
|
|
694
|
+
readonly outputs: readonly [{
|
|
695
|
+
readonly internalType: "address";
|
|
696
|
+
readonly name: "receiver";
|
|
697
|
+
readonly type: "address";
|
|
698
|
+
}, {
|
|
699
|
+
readonly internalType: "uint256";
|
|
700
|
+
readonly name: "royaltyAmount";
|
|
701
|
+
readonly type: "uint256";
|
|
702
|
+
}];
|
|
703
|
+
readonly stateMutability: "view";
|
|
704
|
+
readonly type: "function";
|
|
705
|
+
}, {
|
|
706
|
+
readonly inputs: readonly [{
|
|
707
|
+
readonly internalType: "address";
|
|
708
|
+
readonly name: "from";
|
|
709
|
+
readonly type: "address";
|
|
710
|
+
}, {
|
|
711
|
+
readonly internalType: "address";
|
|
712
|
+
readonly name: "to";
|
|
713
|
+
readonly type: "address";
|
|
714
|
+
}, {
|
|
715
|
+
readonly internalType: "uint256";
|
|
716
|
+
readonly name: "id";
|
|
717
|
+
readonly type: "uint256";
|
|
718
|
+
}];
|
|
719
|
+
readonly name: "safeTransferFrom";
|
|
720
|
+
readonly outputs: readonly [];
|
|
721
|
+
readonly stateMutability: "nonpayable";
|
|
722
|
+
readonly type: "function";
|
|
723
|
+
}, {
|
|
724
|
+
readonly inputs: readonly [{
|
|
725
|
+
readonly internalType: "address";
|
|
726
|
+
readonly name: "from";
|
|
727
|
+
readonly type: "address";
|
|
728
|
+
}, {
|
|
729
|
+
readonly internalType: "address";
|
|
730
|
+
readonly name: "to";
|
|
731
|
+
readonly type: "address";
|
|
732
|
+
}, {
|
|
733
|
+
readonly internalType: "uint256";
|
|
734
|
+
readonly name: "id";
|
|
735
|
+
readonly type: "uint256";
|
|
736
|
+
}, {
|
|
737
|
+
readonly internalType: "bytes";
|
|
738
|
+
readonly name: "data";
|
|
739
|
+
readonly type: "bytes";
|
|
740
|
+
}];
|
|
741
|
+
readonly name: "safeTransferFrom";
|
|
742
|
+
readonly outputs: readonly [];
|
|
743
|
+
readonly stateMutability: "nonpayable";
|
|
744
|
+
readonly type: "function";
|
|
745
|
+
}, {
|
|
746
|
+
readonly inputs: readonly [];
|
|
747
|
+
readonly name: "sequenceCount";
|
|
748
|
+
readonly outputs: readonly [{
|
|
749
|
+
readonly internalType: "uint16";
|
|
750
|
+
readonly name: "";
|
|
751
|
+
readonly type: "uint16";
|
|
752
|
+
}];
|
|
753
|
+
readonly stateMutability: "view";
|
|
754
|
+
readonly type: "function";
|
|
755
|
+
}, {
|
|
756
|
+
readonly inputs: readonly [{
|
|
757
|
+
readonly internalType: "address";
|
|
758
|
+
readonly name: "operator";
|
|
759
|
+
readonly type: "address";
|
|
760
|
+
}, {
|
|
761
|
+
readonly internalType: "bool";
|
|
762
|
+
readonly name: "approved";
|
|
763
|
+
readonly type: "bool";
|
|
764
|
+
}];
|
|
765
|
+
readonly name: "setApprovalForAll";
|
|
766
|
+
readonly outputs: readonly [];
|
|
767
|
+
readonly stateMutability: "nonpayable";
|
|
768
|
+
readonly type: "function";
|
|
769
|
+
}, {
|
|
770
|
+
readonly inputs: readonly [{
|
|
771
|
+
readonly internalType: "address";
|
|
772
|
+
readonly name: "_owner";
|
|
773
|
+
readonly type: "address";
|
|
774
|
+
}];
|
|
775
|
+
readonly name: "setOwner";
|
|
776
|
+
readonly outputs: readonly [];
|
|
777
|
+
readonly stateMutability: "nonpayable";
|
|
778
|
+
readonly type: "function";
|
|
779
|
+
}, {
|
|
780
|
+
readonly inputs: readonly [{
|
|
781
|
+
readonly internalType: "bytes4";
|
|
782
|
+
readonly name: "interfaceId";
|
|
783
|
+
readonly type: "bytes4";
|
|
784
|
+
}];
|
|
785
|
+
readonly name: "supportsInterface";
|
|
786
|
+
readonly outputs: readonly [{
|
|
787
|
+
readonly internalType: "bool";
|
|
788
|
+
readonly name: "";
|
|
789
|
+
readonly type: "bool";
|
|
790
|
+
}];
|
|
791
|
+
readonly stateMutability: "view";
|
|
792
|
+
readonly type: "function";
|
|
793
|
+
}, {
|
|
794
|
+
readonly inputs: readonly [];
|
|
795
|
+
readonly name: "symbol";
|
|
796
|
+
readonly outputs: readonly [{
|
|
797
|
+
readonly internalType: "string";
|
|
798
|
+
readonly name: "value";
|
|
799
|
+
readonly type: "string";
|
|
800
|
+
}];
|
|
801
|
+
readonly stateMutability: "view";
|
|
802
|
+
readonly type: "function";
|
|
803
|
+
}, {
|
|
804
|
+
readonly inputs: readonly [{
|
|
805
|
+
readonly internalType: "uint256";
|
|
806
|
+
readonly name: "tokenId";
|
|
807
|
+
readonly type: "uint256";
|
|
808
|
+
}];
|
|
809
|
+
readonly name: "tokenMintData";
|
|
810
|
+
readonly outputs: readonly [{
|
|
811
|
+
readonly internalType: "uint80";
|
|
812
|
+
readonly name: "data";
|
|
813
|
+
readonly type: "uint80";
|
|
814
|
+
}];
|
|
815
|
+
readonly stateMutability: "view";
|
|
816
|
+
readonly type: "function";
|
|
817
|
+
}, {
|
|
818
|
+
readonly inputs: readonly [{
|
|
819
|
+
readonly internalType: "uint256";
|
|
820
|
+
readonly name: "tokenId";
|
|
821
|
+
readonly type: "uint256";
|
|
822
|
+
}];
|
|
823
|
+
readonly name: "tokenSequenceId";
|
|
824
|
+
readonly outputs: readonly [{
|
|
825
|
+
readonly internalType: "uint16";
|
|
826
|
+
readonly name: "sequenceId";
|
|
827
|
+
readonly type: "uint16";
|
|
828
|
+
}];
|
|
829
|
+
readonly stateMutability: "view";
|
|
830
|
+
readonly type: "function";
|
|
831
|
+
}, {
|
|
832
|
+
readonly inputs: readonly [{
|
|
833
|
+
readonly internalType: "uint256";
|
|
834
|
+
readonly name: "tokenId";
|
|
835
|
+
readonly type: "uint256";
|
|
836
|
+
}];
|
|
837
|
+
readonly name: "tokenURI";
|
|
838
|
+
readonly outputs: readonly [{
|
|
839
|
+
readonly internalType: "string";
|
|
840
|
+
readonly name: "uri";
|
|
841
|
+
readonly type: "string";
|
|
842
|
+
}];
|
|
843
|
+
readonly stateMutability: "view";
|
|
844
|
+
readonly type: "function";
|
|
845
|
+
}, {
|
|
846
|
+
readonly inputs: readonly [];
|
|
847
|
+
readonly name: "totalSupply";
|
|
848
|
+
readonly outputs: readonly [{
|
|
849
|
+
readonly internalType: "uint256";
|
|
850
|
+
readonly name: "";
|
|
851
|
+
readonly type: "uint256";
|
|
852
|
+
}];
|
|
853
|
+
readonly stateMutability: "view";
|
|
854
|
+
readonly type: "function";
|
|
855
|
+
}, {
|
|
856
|
+
readonly inputs: readonly [{
|
|
857
|
+
readonly internalType: "address";
|
|
858
|
+
readonly name: "from";
|
|
859
|
+
readonly type: "address";
|
|
860
|
+
}, {
|
|
861
|
+
readonly internalType: "address";
|
|
862
|
+
readonly name: "to";
|
|
863
|
+
readonly type: "address";
|
|
864
|
+
}, {
|
|
865
|
+
readonly internalType: "uint256";
|
|
866
|
+
readonly name: "id";
|
|
867
|
+
readonly type: "uint256";
|
|
868
|
+
}];
|
|
869
|
+
readonly name: "transferFrom";
|
|
870
|
+
readonly outputs: readonly [];
|
|
871
|
+
readonly stateMutability: "nonpayable";
|
|
872
|
+
readonly type: "function";
|
|
873
|
+
}];
|
|
16
874
|
//#endregion
|
|
17
|
-
//#region src/utils/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
875
|
+
//#region src/utils/abi/token/ERC1155.d.ts
|
|
876
|
+
declare const ERC1155_ABI: readonly [{
|
|
877
|
+
readonly anonymous: false;
|
|
878
|
+
readonly inputs: readonly [{
|
|
879
|
+
readonly indexed: true;
|
|
880
|
+
readonly internalType: "address";
|
|
881
|
+
readonly name: "_owner";
|
|
882
|
+
readonly type: "address";
|
|
883
|
+
}, {
|
|
884
|
+
readonly indexed: true;
|
|
885
|
+
readonly internalType: "address";
|
|
886
|
+
readonly name: "_operator";
|
|
887
|
+
readonly type: "address";
|
|
888
|
+
}, {
|
|
889
|
+
readonly indexed: false;
|
|
890
|
+
readonly internalType: "bool";
|
|
891
|
+
readonly name: "_approved";
|
|
892
|
+
readonly type: "bool";
|
|
893
|
+
}];
|
|
894
|
+
readonly name: "ApprovalForAll";
|
|
895
|
+
readonly type: "event";
|
|
896
|
+
}, {
|
|
897
|
+
readonly anonymous: false;
|
|
898
|
+
readonly inputs: readonly [{
|
|
899
|
+
readonly indexed: true;
|
|
900
|
+
readonly internalType: "address";
|
|
901
|
+
readonly name: "_operator";
|
|
902
|
+
readonly type: "address";
|
|
903
|
+
}, {
|
|
904
|
+
readonly indexed: true;
|
|
905
|
+
readonly internalType: "address";
|
|
906
|
+
readonly name: "_from";
|
|
907
|
+
readonly type: "address";
|
|
908
|
+
}, {
|
|
909
|
+
readonly indexed: true;
|
|
910
|
+
readonly internalType: "address";
|
|
911
|
+
readonly name: "_to";
|
|
912
|
+
readonly type: "address";
|
|
913
|
+
}, {
|
|
914
|
+
readonly indexed: false;
|
|
915
|
+
readonly internalType: "uint256[]";
|
|
916
|
+
readonly name: "_ids";
|
|
917
|
+
readonly type: "uint256[]";
|
|
918
|
+
}, {
|
|
919
|
+
readonly indexed: false;
|
|
920
|
+
readonly internalType: "uint256[]";
|
|
921
|
+
readonly name: "_amounts";
|
|
922
|
+
readonly type: "uint256[]";
|
|
923
|
+
}];
|
|
924
|
+
readonly name: "TransferBatch";
|
|
925
|
+
readonly type: "event";
|
|
926
|
+
}, {
|
|
927
|
+
readonly anonymous: false;
|
|
928
|
+
readonly inputs: readonly [{
|
|
929
|
+
readonly indexed: true;
|
|
930
|
+
readonly internalType: "address";
|
|
931
|
+
readonly name: "_operator";
|
|
932
|
+
readonly type: "address";
|
|
933
|
+
}, {
|
|
934
|
+
readonly indexed: true;
|
|
935
|
+
readonly internalType: "address";
|
|
936
|
+
readonly name: "_from";
|
|
937
|
+
readonly type: "address";
|
|
938
|
+
}, {
|
|
939
|
+
readonly indexed: true;
|
|
940
|
+
readonly internalType: "address";
|
|
941
|
+
readonly name: "_to";
|
|
942
|
+
readonly type: "address";
|
|
943
|
+
}, {
|
|
944
|
+
readonly indexed: false;
|
|
945
|
+
readonly internalType: "uint256";
|
|
946
|
+
readonly name: "_id";
|
|
947
|
+
readonly type: "uint256";
|
|
948
|
+
}, {
|
|
949
|
+
readonly indexed: false;
|
|
950
|
+
readonly internalType: "uint256";
|
|
951
|
+
readonly name: "_amount";
|
|
952
|
+
readonly type: "uint256";
|
|
953
|
+
}];
|
|
954
|
+
readonly name: "TransferSingle";
|
|
955
|
+
readonly type: "event";
|
|
956
|
+
}, {
|
|
957
|
+
readonly inputs: readonly [{
|
|
958
|
+
readonly internalType: "address";
|
|
959
|
+
readonly name: "_owner";
|
|
960
|
+
readonly type: "address";
|
|
961
|
+
}, {
|
|
962
|
+
readonly internalType: "uint256";
|
|
963
|
+
readonly name: "_id";
|
|
964
|
+
readonly type: "uint256";
|
|
965
|
+
}];
|
|
966
|
+
readonly name: "balanceOf";
|
|
967
|
+
readonly outputs: readonly [{
|
|
968
|
+
readonly internalType: "uint256";
|
|
969
|
+
readonly name: "";
|
|
970
|
+
readonly type: "uint256";
|
|
971
|
+
}];
|
|
972
|
+
readonly stateMutability: "view";
|
|
973
|
+
readonly type: "function";
|
|
974
|
+
}, {
|
|
975
|
+
readonly inputs: readonly [{
|
|
976
|
+
readonly internalType: "address[]";
|
|
977
|
+
readonly name: "_owners";
|
|
978
|
+
readonly type: "address[]";
|
|
979
|
+
}, {
|
|
980
|
+
readonly internalType: "uint256[]";
|
|
981
|
+
readonly name: "_ids";
|
|
982
|
+
readonly type: "uint256[]";
|
|
983
|
+
}];
|
|
984
|
+
readonly name: "balanceOfBatch";
|
|
985
|
+
readonly outputs: readonly [{
|
|
986
|
+
readonly internalType: "uint256[]";
|
|
987
|
+
readonly name: "";
|
|
988
|
+
readonly type: "uint256[]";
|
|
989
|
+
}];
|
|
990
|
+
readonly stateMutability: "view";
|
|
991
|
+
readonly type: "function";
|
|
992
|
+
}, {
|
|
993
|
+
readonly inputs: readonly [{
|
|
994
|
+
readonly internalType: "uint256";
|
|
995
|
+
readonly name: "_id";
|
|
996
|
+
readonly type: "uint256";
|
|
997
|
+
}];
|
|
998
|
+
readonly name: "getIDBinIndex";
|
|
999
|
+
readonly outputs: readonly [{
|
|
1000
|
+
readonly internalType: "uint256";
|
|
1001
|
+
readonly name: "bin";
|
|
1002
|
+
readonly type: "uint256";
|
|
1003
|
+
}, {
|
|
1004
|
+
readonly internalType: "uint256";
|
|
1005
|
+
readonly name: "index";
|
|
1006
|
+
readonly type: "uint256";
|
|
1007
|
+
}];
|
|
1008
|
+
readonly stateMutability: "pure";
|
|
1009
|
+
readonly type: "function";
|
|
1010
|
+
}, {
|
|
1011
|
+
readonly inputs: readonly [{
|
|
1012
|
+
readonly internalType: "uint256";
|
|
1013
|
+
readonly name: "_binValues";
|
|
1014
|
+
readonly type: "uint256";
|
|
1015
|
+
}, {
|
|
1016
|
+
readonly internalType: "uint256";
|
|
1017
|
+
readonly name: "_index";
|
|
1018
|
+
readonly type: "uint256";
|
|
1019
|
+
}];
|
|
1020
|
+
readonly name: "getValueInBin";
|
|
1021
|
+
readonly outputs: readonly [{
|
|
1022
|
+
readonly internalType: "uint256";
|
|
1023
|
+
readonly name: "";
|
|
1024
|
+
readonly type: "uint256";
|
|
1025
|
+
}];
|
|
1026
|
+
readonly stateMutability: "pure";
|
|
1027
|
+
readonly type: "function";
|
|
1028
|
+
}, {
|
|
1029
|
+
readonly inputs: readonly [{
|
|
1030
|
+
readonly internalType: "address";
|
|
1031
|
+
readonly name: "_owner";
|
|
1032
|
+
readonly type: "address";
|
|
1033
|
+
}, {
|
|
1034
|
+
readonly internalType: "address";
|
|
1035
|
+
readonly name: "_operator";
|
|
1036
|
+
readonly type: "address";
|
|
1037
|
+
}];
|
|
1038
|
+
readonly name: "isApprovedForAll";
|
|
1039
|
+
readonly outputs: readonly [{
|
|
1040
|
+
readonly internalType: "bool";
|
|
1041
|
+
readonly name: "isOperator";
|
|
1042
|
+
readonly type: "bool";
|
|
1043
|
+
}];
|
|
1044
|
+
readonly stateMutability: "view";
|
|
1045
|
+
readonly type: "function";
|
|
1046
|
+
}, {
|
|
1047
|
+
readonly inputs: readonly [{
|
|
1048
|
+
readonly internalType: "address";
|
|
1049
|
+
readonly name: "_from";
|
|
1050
|
+
readonly type: "address";
|
|
1051
|
+
}, {
|
|
1052
|
+
readonly internalType: "address";
|
|
1053
|
+
readonly name: "_to";
|
|
1054
|
+
readonly type: "address";
|
|
1055
|
+
}, {
|
|
1056
|
+
readonly internalType: "uint256[]";
|
|
1057
|
+
readonly name: "_ids";
|
|
1058
|
+
readonly type: "uint256[]";
|
|
1059
|
+
}, {
|
|
1060
|
+
readonly internalType: "uint256[]";
|
|
1061
|
+
readonly name: "_amounts";
|
|
1062
|
+
readonly type: "uint256[]";
|
|
1063
|
+
}, {
|
|
1064
|
+
readonly internalType: "bytes";
|
|
1065
|
+
readonly name: "_data";
|
|
1066
|
+
readonly type: "bytes";
|
|
1067
|
+
}];
|
|
1068
|
+
readonly name: "safeBatchTransferFrom";
|
|
1069
|
+
readonly outputs: readonly [];
|
|
1070
|
+
readonly stateMutability: "nonpayable";
|
|
1071
|
+
readonly type: "function";
|
|
1072
|
+
}, {
|
|
1073
|
+
readonly inputs: readonly [{
|
|
1074
|
+
readonly internalType: "address";
|
|
1075
|
+
readonly name: "_from";
|
|
1076
|
+
readonly type: "address";
|
|
1077
|
+
}, {
|
|
1078
|
+
readonly internalType: "address";
|
|
1079
|
+
readonly name: "_to";
|
|
1080
|
+
readonly type: "address";
|
|
1081
|
+
}, {
|
|
1082
|
+
readonly internalType: "uint256";
|
|
1083
|
+
readonly name: "_id";
|
|
1084
|
+
readonly type: "uint256";
|
|
1085
|
+
}, {
|
|
1086
|
+
readonly internalType: "uint256";
|
|
1087
|
+
readonly name: "_amount";
|
|
1088
|
+
readonly type: "uint256";
|
|
1089
|
+
}, {
|
|
1090
|
+
readonly internalType: "bytes";
|
|
1091
|
+
readonly name: "_data";
|
|
1092
|
+
readonly type: "bytes";
|
|
1093
|
+
}];
|
|
1094
|
+
readonly name: "safeTransferFrom";
|
|
1095
|
+
readonly outputs: readonly [];
|
|
1096
|
+
readonly stateMutability: "nonpayable";
|
|
1097
|
+
readonly type: "function";
|
|
1098
|
+
}, {
|
|
1099
|
+
readonly inputs: readonly [{
|
|
1100
|
+
readonly internalType: "address";
|
|
1101
|
+
readonly name: "_operator";
|
|
1102
|
+
readonly type: "address";
|
|
1103
|
+
}, {
|
|
1104
|
+
readonly internalType: "bool";
|
|
1105
|
+
readonly name: "_approved";
|
|
1106
|
+
readonly type: "bool";
|
|
1107
|
+
}];
|
|
1108
|
+
readonly name: "setApprovalForAll";
|
|
1109
|
+
readonly outputs: readonly [];
|
|
1110
|
+
readonly stateMutability: "nonpayable";
|
|
1111
|
+
readonly type: "function";
|
|
1112
|
+
}, {
|
|
1113
|
+
readonly inputs: readonly [{
|
|
1114
|
+
readonly internalType: "bytes4";
|
|
1115
|
+
readonly name: "_interfaceID";
|
|
1116
|
+
readonly type: "bytes4";
|
|
1117
|
+
}];
|
|
1118
|
+
readonly name: "supportsInterface";
|
|
1119
|
+
readonly outputs: readonly [{
|
|
1120
|
+
readonly internalType: "bool";
|
|
1121
|
+
readonly name: "";
|
|
1122
|
+
readonly type: "bool";
|
|
1123
|
+
}];
|
|
1124
|
+
readonly stateMutability: "pure";
|
|
1125
|
+
readonly type: "function";
|
|
1126
|
+
}];
|
|
30
1127
|
//#endregion
|
|
31
|
-
//#region src/utils/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1128
|
+
//#region src/utils/abi/token/sequence-erc1155-items.d.ts
|
|
1129
|
+
declare const SEQUENCE_1155_ITEMS_ABI: readonly [{
|
|
1130
|
+
readonly type: "constructor";
|
|
1131
|
+
readonly inputs: readonly [];
|
|
1132
|
+
readonly stateMutability: "nonpayable";
|
|
1133
|
+
}, {
|
|
1134
|
+
readonly type: "function";
|
|
1135
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
1136
|
+
readonly inputs: readonly [];
|
|
1137
|
+
readonly outputs: readonly [{
|
|
1138
|
+
readonly name: "";
|
|
1139
|
+
readonly type: "bytes32";
|
|
1140
|
+
readonly internalType: "bytes32";
|
|
1141
|
+
}];
|
|
1142
|
+
readonly stateMutability: "view";
|
|
1143
|
+
}, {
|
|
1144
|
+
readonly type: "function";
|
|
1145
|
+
readonly name: "balanceOf";
|
|
1146
|
+
readonly inputs: readonly [{
|
|
1147
|
+
readonly name: "_owner";
|
|
1148
|
+
readonly type: "address";
|
|
1149
|
+
readonly internalType: "address";
|
|
1150
|
+
}, {
|
|
1151
|
+
readonly name: "_id";
|
|
1152
|
+
readonly type: "uint256";
|
|
1153
|
+
readonly internalType: "uint256";
|
|
1154
|
+
}];
|
|
1155
|
+
readonly outputs: readonly [{
|
|
1156
|
+
readonly name: "";
|
|
1157
|
+
readonly type: "uint256";
|
|
1158
|
+
readonly internalType: "uint256";
|
|
1159
|
+
}];
|
|
1160
|
+
readonly stateMutability: "view";
|
|
1161
|
+
}, {
|
|
1162
|
+
readonly type: "function";
|
|
1163
|
+
readonly name: "balanceOfBatch";
|
|
1164
|
+
readonly inputs: readonly [{
|
|
1165
|
+
readonly name: "_owners";
|
|
1166
|
+
readonly type: "address[]";
|
|
1167
|
+
readonly internalType: "address[]";
|
|
1168
|
+
}, {
|
|
1169
|
+
readonly name: "_ids";
|
|
1170
|
+
readonly type: "uint256[]";
|
|
1171
|
+
readonly internalType: "uint256[]";
|
|
1172
|
+
}];
|
|
1173
|
+
readonly outputs: readonly [{
|
|
1174
|
+
readonly name: "";
|
|
1175
|
+
readonly type: "uint256[]";
|
|
1176
|
+
readonly internalType: "uint256[]";
|
|
1177
|
+
}];
|
|
1178
|
+
readonly stateMutability: "view";
|
|
1179
|
+
}, {
|
|
1180
|
+
readonly type: "function";
|
|
1181
|
+
readonly name: "baseURI";
|
|
1182
|
+
readonly inputs: readonly [];
|
|
1183
|
+
readonly outputs: readonly [{
|
|
1184
|
+
readonly name: "";
|
|
1185
|
+
readonly type: "string";
|
|
1186
|
+
readonly internalType: "string";
|
|
1187
|
+
}];
|
|
1188
|
+
readonly stateMutability: "view";
|
|
1189
|
+
}, {
|
|
1190
|
+
readonly type: "function";
|
|
1191
|
+
readonly name: "batchBurn";
|
|
1192
|
+
readonly inputs: readonly [{
|
|
1193
|
+
readonly name: "tokenIds";
|
|
1194
|
+
readonly type: "uint256[]";
|
|
1195
|
+
readonly internalType: "uint256[]";
|
|
1196
|
+
}, {
|
|
1197
|
+
readonly name: "amounts";
|
|
1198
|
+
readonly type: "uint256[]";
|
|
1199
|
+
readonly internalType: "uint256[]";
|
|
1200
|
+
}];
|
|
1201
|
+
readonly outputs: readonly [];
|
|
1202
|
+
readonly stateMutability: "nonpayable";
|
|
1203
|
+
}, {
|
|
1204
|
+
readonly type: "function";
|
|
1205
|
+
readonly name: "batchMint";
|
|
1206
|
+
readonly inputs: readonly [{
|
|
1207
|
+
readonly name: "to";
|
|
1208
|
+
readonly type: "address";
|
|
1209
|
+
readonly internalType: "address";
|
|
1210
|
+
}, {
|
|
1211
|
+
readonly name: "tokenIds";
|
|
1212
|
+
readonly type: "uint256[]";
|
|
1213
|
+
readonly internalType: "uint256[]";
|
|
1214
|
+
}, {
|
|
1215
|
+
readonly name: "amounts";
|
|
1216
|
+
readonly type: "uint256[]";
|
|
1217
|
+
readonly internalType: "uint256[]";
|
|
1218
|
+
}, {
|
|
1219
|
+
readonly name: "data";
|
|
1220
|
+
readonly type: "bytes";
|
|
1221
|
+
readonly internalType: "bytes";
|
|
1222
|
+
}];
|
|
1223
|
+
readonly outputs: readonly [];
|
|
1224
|
+
readonly stateMutability: "nonpayable";
|
|
1225
|
+
}, {
|
|
1226
|
+
readonly type: "function";
|
|
1227
|
+
readonly name: "burn";
|
|
1228
|
+
readonly inputs: readonly [{
|
|
1229
|
+
readonly name: "tokenId";
|
|
1230
|
+
readonly type: "uint256";
|
|
1231
|
+
readonly internalType: "uint256";
|
|
1232
|
+
}, {
|
|
1233
|
+
readonly name: "amount";
|
|
1234
|
+
readonly type: "uint256";
|
|
1235
|
+
readonly internalType: "uint256";
|
|
1236
|
+
}];
|
|
1237
|
+
readonly outputs: readonly [];
|
|
1238
|
+
readonly stateMutability: "nonpayable";
|
|
1239
|
+
}, {
|
|
1240
|
+
readonly type: "function";
|
|
1241
|
+
readonly name: "contractURI";
|
|
1242
|
+
readonly inputs: readonly [];
|
|
1243
|
+
readonly outputs: readonly [{
|
|
1244
|
+
readonly name: "";
|
|
1245
|
+
readonly type: "string";
|
|
1246
|
+
readonly internalType: "string";
|
|
1247
|
+
}];
|
|
1248
|
+
readonly stateMutability: "view";
|
|
1249
|
+
}, {
|
|
1250
|
+
readonly type: "function";
|
|
1251
|
+
readonly name: "getRoleAdmin";
|
|
1252
|
+
readonly inputs: readonly [{
|
|
1253
|
+
readonly name: "role";
|
|
1254
|
+
readonly type: "bytes32";
|
|
1255
|
+
readonly internalType: "bytes32";
|
|
1256
|
+
}];
|
|
1257
|
+
readonly outputs: readonly [{
|
|
1258
|
+
readonly name: "";
|
|
1259
|
+
readonly type: "bytes32";
|
|
1260
|
+
readonly internalType: "bytes32";
|
|
1261
|
+
}];
|
|
1262
|
+
readonly stateMutability: "view";
|
|
1263
|
+
}, {
|
|
1264
|
+
readonly type: "function";
|
|
1265
|
+
readonly name: "getRoleMember";
|
|
1266
|
+
readonly inputs: readonly [{
|
|
1267
|
+
readonly name: "role";
|
|
1268
|
+
readonly type: "bytes32";
|
|
1269
|
+
readonly internalType: "bytes32";
|
|
1270
|
+
}, {
|
|
1271
|
+
readonly name: "index";
|
|
1272
|
+
readonly type: "uint256";
|
|
1273
|
+
readonly internalType: "uint256";
|
|
1274
|
+
}];
|
|
1275
|
+
readonly outputs: readonly [{
|
|
1276
|
+
readonly name: "";
|
|
1277
|
+
readonly type: "address";
|
|
1278
|
+
readonly internalType: "address";
|
|
1279
|
+
}];
|
|
1280
|
+
readonly stateMutability: "view";
|
|
1281
|
+
}, {
|
|
1282
|
+
readonly type: "function";
|
|
1283
|
+
readonly name: "getRoleMemberCount";
|
|
1284
|
+
readonly inputs: readonly [{
|
|
1285
|
+
readonly name: "role";
|
|
1286
|
+
readonly type: "bytes32";
|
|
1287
|
+
readonly internalType: "bytes32";
|
|
1288
|
+
}];
|
|
1289
|
+
readonly outputs: readonly [{
|
|
1290
|
+
readonly name: "";
|
|
1291
|
+
readonly type: "uint256";
|
|
1292
|
+
readonly internalType: "uint256";
|
|
1293
|
+
}];
|
|
1294
|
+
readonly stateMutability: "view";
|
|
1295
|
+
}, {
|
|
1296
|
+
readonly type: "function";
|
|
1297
|
+
readonly name: "grantRole";
|
|
1298
|
+
readonly inputs: readonly [{
|
|
1299
|
+
readonly name: "role";
|
|
1300
|
+
readonly type: "bytes32";
|
|
1301
|
+
readonly internalType: "bytes32";
|
|
1302
|
+
}, {
|
|
1303
|
+
readonly name: "account";
|
|
1304
|
+
readonly type: "address";
|
|
1305
|
+
readonly internalType: "address";
|
|
1306
|
+
}];
|
|
1307
|
+
readonly outputs: readonly [];
|
|
1308
|
+
readonly stateMutability: "nonpayable";
|
|
1309
|
+
}, {
|
|
1310
|
+
readonly type: "function";
|
|
1311
|
+
readonly name: "hasRole";
|
|
1312
|
+
readonly inputs: readonly [{
|
|
1313
|
+
readonly name: "role";
|
|
1314
|
+
readonly type: "bytes32";
|
|
1315
|
+
readonly internalType: "bytes32";
|
|
1316
|
+
}, {
|
|
1317
|
+
readonly name: "account";
|
|
1318
|
+
readonly type: "address";
|
|
1319
|
+
readonly internalType: "address";
|
|
1320
|
+
}];
|
|
1321
|
+
readonly outputs: readonly [{
|
|
1322
|
+
readonly name: "";
|
|
1323
|
+
readonly type: "bool";
|
|
1324
|
+
readonly internalType: "bool";
|
|
1325
|
+
}];
|
|
1326
|
+
readonly stateMutability: "view";
|
|
1327
|
+
}, {
|
|
1328
|
+
readonly type: "function";
|
|
1329
|
+
readonly name: "initialize";
|
|
1330
|
+
readonly inputs: readonly [{
|
|
1331
|
+
readonly name: "owner";
|
|
1332
|
+
readonly type: "address";
|
|
1333
|
+
readonly internalType: "address";
|
|
1334
|
+
}, {
|
|
1335
|
+
readonly name: "tokenName";
|
|
1336
|
+
readonly type: "string";
|
|
1337
|
+
readonly internalType: "string";
|
|
1338
|
+
}, {
|
|
1339
|
+
readonly name: "tokenBaseURI";
|
|
1340
|
+
readonly type: "string";
|
|
1341
|
+
readonly internalType: "string";
|
|
1342
|
+
}, {
|
|
1343
|
+
readonly name: "tokenContractURI";
|
|
1344
|
+
readonly type: "string";
|
|
1345
|
+
readonly internalType: "string";
|
|
1346
|
+
}, {
|
|
1347
|
+
readonly name: "royaltyReceiver";
|
|
1348
|
+
readonly type: "address";
|
|
1349
|
+
readonly internalType: "address";
|
|
1350
|
+
}, {
|
|
1351
|
+
readonly name: "royaltyFeeNumerator";
|
|
1352
|
+
readonly type: "uint96";
|
|
1353
|
+
readonly internalType: "uint96";
|
|
1354
|
+
}];
|
|
1355
|
+
readonly outputs: readonly [];
|
|
1356
|
+
readonly stateMutability: "nonpayable";
|
|
1357
|
+
}, {
|
|
1358
|
+
readonly type: "function";
|
|
1359
|
+
readonly name: "isApprovedForAll";
|
|
1360
|
+
readonly inputs: readonly [{
|
|
1361
|
+
readonly name: "_owner";
|
|
1362
|
+
readonly type: "address";
|
|
1363
|
+
readonly internalType: "address";
|
|
1364
|
+
}, {
|
|
1365
|
+
readonly name: "_operator";
|
|
1366
|
+
readonly type: "address";
|
|
1367
|
+
readonly internalType: "address";
|
|
1368
|
+
}];
|
|
1369
|
+
readonly outputs: readonly [{
|
|
1370
|
+
readonly name: "isOperator";
|
|
1371
|
+
readonly type: "bool";
|
|
1372
|
+
readonly internalType: "bool";
|
|
1373
|
+
}];
|
|
1374
|
+
readonly stateMutability: "view";
|
|
1375
|
+
}, {
|
|
1376
|
+
readonly type: "function";
|
|
1377
|
+
readonly name: "mint";
|
|
1378
|
+
readonly inputs: readonly [{
|
|
1379
|
+
readonly name: "to";
|
|
1380
|
+
readonly type: "address";
|
|
1381
|
+
readonly internalType: "address";
|
|
1382
|
+
}, {
|
|
1383
|
+
readonly name: "tokenId";
|
|
1384
|
+
readonly type: "uint256";
|
|
1385
|
+
readonly internalType: "uint256";
|
|
1386
|
+
}, {
|
|
1387
|
+
readonly name: "amount";
|
|
1388
|
+
readonly type: "uint256";
|
|
1389
|
+
readonly internalType: "uint256";
|
|
1390
|
+
}, {
|
|
1391
|
+
readonly name: "data";
|
|
1392
|
+
readonly type: "bytes";
|
|
1393
|
+
readonly internalType: "bytes";
|
|
1394
|
+
}];
|
|
1395
|
+
readonly outputs: readonly [];
|
|
1396
|
+
readonly stateMutability: "nonpayable";
|
|
1397
|
+
}, {
|
|
1398
|
+
readonly type: "function";
|
|
1399
|
+
readonly name: "name";
|
|
1400
|
+
readonly inputs: readonly [];
|
|
1401
|
+
readonly outputs: readonly [{
|
|
1402
|
+
readonly name: "";
|
|
1403
|
+
readonly type: "string";
|
|
1404
|
+
readonly internalType: "string";
|
|
1405
|
+
}];
|
|
1406
|
+
readonly stateMutability: "view";
|
|
1407
|
+
}, {
|
|
1408
|
+
readonly type: "function";
|
|
1409
|
+
readonly name: "renounceRole";
|
|
1410
|
+
readonly inputs: readonly [{
|
|
1411
|
+
readonly name: "role";
|
|
1412
|
+
readonly type: "bytes32";
|
|
1413
|
+
readonly internalType: "bytes32";
|
|
1414
|
+
}, {
|
|
1415
|
+
readonly name: "account";
|
|
1416
|
+
readonly type: "address";
|
|
1417
|
+
readonly internalType: "address";
|
|
1418
|
+
}];
|
|
1419
|
+
readonly outputs: readonly [];
|
|
1420
|
+
readonly stateMutability: "nonpayable";
|
|
1421
|
+
}, {
|
|
1422
|
+
readonly type: "function";
|
|
1423
|
+
readonly name: "revokeRole";
|
|
1424
|
+
readonly inputs: readonly [{
|
|
1425
|
+
readonly name: "role";
|
|
1426
|
+
readonly type: "bytes32";
|
|
1427
|
+
readonly internalType: "bytes32";
|
|
1428
|
+
}, {
|
|
1429
|
+
readonly name: "account";
|
|
1430
|
+
readonly type: "address";
|
|
1431
|
+
readonly internalType: "address";
|
|
1432
|
+
}];
|
|
1433
|
+
readonly outputs: readonly [];
|
|
1434
|
+
readonly stateMutability: "nonpayable";
|
|
1435
|
+
}, {
|
|
1436
|
+
readonly type: "function";
|
|
1437
|
+
readonly name: "royaltyInfo";
|
|
1438
|
+
readonly inputs: readonly [{
|
|
1439
|
+
readonly name: "tokenId";
|
|
1440
|
+
readonly type: "uint256";
|
|
1441
|
+
readonly internalType: "uint256";
|
|
1442
|
+
}, {
|
|
1443
|
+
readonly name: "salePrice";
|
|
1444
|
+
readonly type: "uint256";
|
|
1445
|
+
readonly internalType: "uint256";
|
|
1446
|
+
}];
|
|
1447
|
+
readonly outputs: readonly [{
|
|
1448
|
+
readonly name: "";
|
|
1449
|
+
readonly type: "address";
|
|
1450
|
+
readonly internalType: "address";
|
|
1451
|
+
}, {
|
|
1452
|
+
readonly name: "";
|
|
1453
|
+
readonly type: "uint256";
|
|
1454
|
+
readonly internalType: "uint256";
|
|
1455
|
+
}];
|
|
1456
|
+
readonly stateMutability: "view";
|
|
1457
|
+
}, {
|
|
1458
|
+
readonly type: "function";
|
|
1459
|
+
readonly name: "safeBatchTransferFrom";
|
|
1460
|
+
readonly inputs: readonly [{
|
|
1461
|
+
readonly name: "_from";
|
|
1462
|
+
readonly type: "address";
|
|
1463
|
+
readonly internalType: "address";
|
|
1464
|
+
}, {
|
|
1465
|
+
readonly name: "_to";
|
|
1466
|
+
readonly type: "address";
|
|
1467
|
+
readonly internalType: "address";
|
|
1468
|
+
}, {
|
|
1469
|
+
readonly name: "_ids";
|
|
1470
|
+
readonly type: "uint256[]";
|
|
1471
|
+
readonly internalType: "uint256[]";
|
|
1472
|
+
}, {
|
|
1473
|
+
readonly name: "_amounts";
|
|
1474
|
+
readonly type: "uint256[]";
|
|
1475
|
+
readonly internalType: "uint256[]";
|
|
1476
|
+
}, {
|
|
1477
|
+
readonly name: "_data";
|
|
1478
|
+
readonly type: "bytes";
|
|
1479
|
+
readonly internalType: "bytes";
|
|
1480
|
+
}];
|
|
1481
|
+
readonly outputs: readonly [];
|
|
1482
|
+
readonly stateMutability: "nonpayable";
|
|
1483
|
+
}, {
|
|
1484
|
+
readonly type: "function";
|
|
1485
|
+
readonly name: "safeTransferFrom";
|
|
1486
|
+
readonly inputs: readonly [{
|
|
1487
|
+
readonly name: "_from";
|
|
1488
|
+
readonly type: "address";
|
|
1489
|
+
readonly internalType: "address";
|
|
1490
|
+
}, {
|
|
1491
|
+
readonly name: "_to";
|
|
1492
|
+
readonly type: "address";
|
|
1493
|
+
readonly internalType: "address";
|
|
1494
|
+
}, {
|
|
1495
|
+
readonly name: "_id";
|
|
1496
|
+
readonly type: "uint256";
|
|
1497
|
+
readonly internalType: "uint256";
|
|
1498
|
+
}, {
|
|
1499
|
+
readonly name: "_amount";
|
|
1500
|
+
readonly type: "uint256";
|
|
1501
|
+
readonly internalType: "uint256";
|
|
1502
|
+
}, {
|
|
1503
|
+
readonly name: "_data";
|
|
1504
|
+
readonly type: "bytes";
|
|
1505
|
+
readonly internalType: "bytes";
|
|
1506
|
+
}];
|
|
1507
|
+
readonly outputs: readonly [];
|
|
1508
|
+
readonly stateMutability: "nonpayable";
|
|
1509
|
+
}, {
|
|
1510
|
+
readonly type: "function";
|
|
1511
|
+
readonly name: "setApprovalForAll";
|
|
1512
|
+
readonly inputs: readonly [{
|
|
1513
|
+
readonly name: "_operator";
|
|
1514
|
+
readonly type: "address";
|
|
1515
|
+
readonly internalType: "address";
|
|
1516
|
+
}, {
|
|
1517
|
+
readonly name: "_approved";
|
|
1518
|
+
readonly type: "bool";
|
|
1519
|
+
readonly internalType: "bool";
|
|
1520
|
+
}];
|
|
1521
|
+
readonly outputs: readonly [];
|
|
1522
|
+
readonly stateMutability: "nonpayable";
|
|
1523
|
+
}, {
|
|
1524
|
+
readonly type: "function";
|
|
1525
|
+
readonly name: "setBaseMetadataURI";
|
|
1526
|
+
readonly inputs: readonly [{
|
|
1527
|
+
readonly name: "tokenBaseURI";
|
|
1528
|
+
readonly type: "string";
|
|
1529
|
+
readonly internalType: "string";
|
|
1530
|
+
}];
|
|
1531
|
+
readonly outputs: readonly [];
|
|
1532
|
+
readonly stateMutability: "nonpayable";
|
|
1533
|
+
}, {
|
|
1534
|
+
readonly type: "function";
|
|
1535
|
+
readonly name: "setContractName";
|
|
1536
|
+
readonly inputs: readonly [{
|
|
1537
|
+
readonly name: "tokenName";
|
|
1538
|
+
readonly type: "string";
|
|
1539
|
+
readonly internalType: "string";
|
|
1540
|
+
}];
|
|
1541
|
+
readonly outputs: readonly [];
|
|
1542
|
+
readonly stateMutability: "nonpayable";
|
|
1543
|
+
}, {
|
|
1544
|
+
readonly type: "function";
|
|
1545
|
+
readonly name: "setContractURI";
|
|
1546
|
+
readonly inputs: readonly [{
|
|
1547
|
+
readonly name: "tokenContractURI";
|
|
1548
|
+
readonly type: "string";
|
|
1549
|
+
readonly internalType: "string";
|
|
1550
|
+
}];
|
|
1551
|
+
readonly outputs: readonly [];
|
|
1552
|
+
readonly stateMutability: "nonpayable";
|
|
1553
|
+
}, {
|
|
1554
|
+
readonly type: "function";
|
|
1555
|
+
readonly name: "setDefaultRoyalty";
|
|
1556
|
+
readonly inputs: readonly [{
|
|
1557
|
+
readonly name: "receiver";
|
|
1558
|
+
readonly type: "address";
|
|
1559
|
+
readonly internalType: "address";
|
|
1560
|
+
}, {
|
|
1561
|
+
readonly name: "feeNumerator";
|
|
1562
|
+
readonly type: "uint96";
|
|
1563
|
+
readonly internalType: "uint96";
|
|
1564
|
+
}];
|
|
1565
|
+
readonly outputs: readonly [];
|
|
1566
|
+
readonly stateMutability: "nonpayable";
|
|
1567
|
+
}, {
|
|
1568
|
+
readonly type: "function";
|
|
1569
|
+
readonly name: "setTokenRoyalty";
|
|
1570
|
+
readonly inputs: readonly [{
|
|
1571
|
+
readonly name: "tokenId";
|
|
1572
|
+
readonly type: "uint256";
|
|
1573
|
+
readonly internalType: "uint256";
|
|
1574
|
+
}, {
|
|
1575
|
+
readonly name: "receiver";
|
|
1576
|
+
readonly type: "address";
|
|
1577
|
+
readonly internalType: "address";
|
|
1578
|
+
}, {
|
|
1579
|
+
readonly name: "feeNumerator";
|
|
1580
|
+
readonly type: "uint96";
|
|
1581
|
+
readonly internalType: "uint96";
|
|
1582
|
+
}];
|
|
1583
|
+
readonly outputs: readonly [];
|
|
1584
|
+
readonly stateMutability: "nonpayable";
|
|
1585
|
+
}, {
|
|
1586
|
+
readonly type: "function";
|
|
1587
|
+
readonly name: "supportsInterface";
|
|
1588
|
+
readonly inputs: readonly [{
|
|
1589
|
+
readonly name: "interfaceId";
|
|
1590
|
+
readonly type: "bytes4";
|
|
1591
|
+
readonly internalType: "bytes4";
|
|
1592
|
+
}];
|
|
1593
|
+
readonly outputs: readonly [{
|
|
1594
|
+
readonly name: "";
|
|
1595
|
+
readonly type: "bool";
|
|
1596
|
+
readonly internalType: "bool";
|
|
1597
|
+
}];
|
|
1598
|
+
readonly stateMutability: "view";
|
|
1599
|
+
}, {
|
|
1600
|
+
readonly type: "function";
|
|
1601
|
+
readonly name: "tokenSupply";
|
|
1602
|
+
readonly inputs: readonly [{
|
|
1603
|
+
readonly name: "";
|
|
1604
|
+
readonly type: "uint256";
|
|
1605
|
+
readonly internalType: "uint256";
|
|
1606
|
+
}];
|
|
1607
|
+
readonly outputs: readonly [{
|
|
1608
|
+
readonly name: "";
|
|
1609
|
+
readonly type: "uint256";
|
|
1610
|
+
readonly internalType: "uint256";
|
|
1611
|
+
}];
|
|
1612
|
+
readonly stateMutability: "view";
|
|
1613
|
+
}, {
|
|
1614
|
+
readonly type: "function";
|
|
1615
|
+
readonly name: "totalSupply";
|
|
1616
|
+
readonly inputs: readonly [];
|
|
1617
|
+
readonly outputs: readonly [{
|
|
1618
|
+
readonly name: "";
|
|
1619
|
+
readonly type: "uint256";
|
|
1620
|
+
readonly internalType: "uint256";
|
|
1621
|
+
}];
|
|
1622
|
+
readonly stateMutability: "view";
|
|
1623
|
+
}, {
|
|
1624
|
+
readonly type: "function";
|
|
1625
|
+
readonly name: "uri";
|
|
1626
|
+
readonly inputs: readonly [{
|
|
1627
|
+
readonly name: "_id";
|
|
1628
|
+
readonly type: "uint256";
|
|
1629
|
+
readonly internalType: "uint256";
|
|
1630
|
+
}];
|
|
1631
|
+
readonly outputs: readonly [{
|
|
1632
|
+
readonly name: "";
|
|
1633
|
+
readonly type: "string";
|
|
1634
|
+
readonly internalType: "string";
|
|
1635
|
+
}];
|
|
1636
|
+
readonly stateMutability: "view";
|
|
1637
|
+
}, {
|
|
1638
|
+
readonly type: "event";
|
|
1639
|
+
readonly name: "ApprovalForAll";
|
|
1640
|
+
readonly inputs: readonly [{
|
|
1641
|
+
readonly name: "_owner";
|
|
1642
|
+
readonly type: "address";
|
|
1643
|
+
readonly indexed: true;
|
|
1644
|
+
readonly internalType: "address";
|
|
1645
|
+
}, {
|
|
1646
|
+
readonly name: "_operator";
|
|
1647
|
+
readonly type: "address";
|
|
1648
|
+
readonly indexed: true;
|
|
1649
|
+
readonly internalType: "address";
|
|
1650
|
+
}, {
|
|
1651
|
+
readonly name: "_approved";
|
|
1652
|
+
readonly type: "bool";
|
|
1653
|
+
readonly indexed: false;
|
|
1654
|
+
readonly internalType: "bool";
|
|
1655
|
+
}];
|
|
1656
|
+
readonly anonymous: false;
|
|
1657
|
+
}, {
|
|
1658
|
+
readonly type: "event";
|
|
1659
|
+
readonly name: "RoleAdminChanged";
|
|
1660
|
+
readonly inputs: readonly [{
|
|
1661
|
+
readonly name: "role";
|
|
1662
|
+
readonly type: "bytes32";
|
|
1663
|
+
readonly indexed: true;
|
|
1664
|
+
readonly internalType: "bytes32";
|
|
1665
|
+
}, {
|
|
1666
|
+
readonly name: "previousAdminRole";
|
|
1667
|
+
readonly type: "bytes32";
|
|
1668
|
+
readonly indexed: true;
|
|
1669
|
+
readonly internalType: "bytes32";
|
|
1670
|
+
}, {
|
|
1671
|
+
readonly name: "newAdminRole";
|
|
1672
|
+
readonly type: "bytes32";
|
|
1673
|
+
readonly indexed: true;
|
|
1674
|
+
readonly internalType: "bytes32";
|
|
1675
|
+
}];
|
|
1676
|
+
readonly anonymous: false;
|
|
1677
|
+
}, {
|
|
1678
|
+
readonly type: "event";
|
|
1679
|
+
readonly name: "RoleGranted";
|
|
1680
|
+
readonly inputs: readonly [{
|
|
1681
|
+
readonly name: "role";
|
|
1682
|
+
readonly type: "bytes32";
|
|
1683
|
+
readonly indexed: true;
|
|
1684
|
+
readonly internalType: "bytes32";
|
|
1685
|
+
}, {
|
|
1686
|
+
readonly name: "account";
|
|
1687
|
+
readonly type: "address";
|
|
1688
|
+
readonly indexed: true;
|
|
1689
|
+
readonly internalType: "address";
|
|
1690
|
+
}, {
|
|
1691
|
+
readonly name: "sender";
|
|
1692
|
+
readonly type: "address";
|
|
1693
|
+
readonly indexed: true;
|
|
1694
|
+
readonly internalType: "address";
|
|
1695
|
+
}];
|
|
1696
|
+
readonly anonymous: false;
|
|
1697
|
+
}, {
|
|
1698
|
+
readonly type: "event";
|
|
1699
|
+
readonly name: "RoleRevoked";
|
|
1700
|
+
readonly inputs: readonly [{
|
|
1701
|
+
readonly name: "role";
|
|
1702
|
+
readonly type: "bytes32";
|
|
1703
|
+
readonly indexed: true;
|
|
1704
|
+
readonly internalType: "bytes32";
|
|
1705
|
+
}, {
|
|
1706
|
+
readonly name: "account";
|
|
1707
|
+
readonly type: "address";
|
|
1708
|
+
readonly indexed: true;
|
|
1709
|
+
readonly internalType: "address";
|
|
1710
|
+
}, {
|
|
1711
|
+
readonly name: "sender";
|
|
1712
|
+
readonly type: "address";
|
|
1713
|
+
readonly indexed: true;
|
|
1714
|
+
readonly internalType: "address";
|
|
1715
|
+
}];
|
|
1716
|
+
readonly anonymous: false;
|
|
1717
|
+
}, {
|
|
1718
|
+
readonly type: "event";
|
|
1719
|
+
readonly name: "TransferBatch";
|
|
1720
|
+
readonly inputs: readonly [{
|
|
1721
|
+
readonly name: "_operator";
|
|
1722
|
+
readonly type: "address";
|
|
1723
|
+
readonly indexed: true;
|
|
1724
|
+
readonly internalType: "address";
|
|
1725
|
+
}, {
|
|
1726
|
+
readonly name: "_from";
|
|
1727
|
+
readonly type: "address";
|
|
1728
|
+
readonly indexed: true;
|
|
1729
|
+
readonly internalType: "address";
|
|
1730
|
+
}, {
|
|
1731
|
+
readonly name: "_to";
|
|
1732
|
+
readonly type: "address";
|
|
1733
|
+
readonly indexed: true;
|
|
1734
|
+
readonly internalType: "address";
|
|
1735
|
+
}, {
|
|
1736
|
+
readonly name: "_ids";
|
|
1737
|
+
readonly type: "uint256[]";
|
|
1738
|
+
readonly indexed: false;
|
|
1739
|
+
readonly internalType: "uint256[]";
|
|
1740
|
+
}, {
|
|
1741
|
+
readonly name: "_amounts";
|
|
1742
|
+
readonly type: "uint256[]";
|
|
1743
|
+
readonly indexed: false;
|
|
1744
|
+
readonly internalType: "uint256[]";
|
|
1745
|
+
}];
|
|
1746
|
+
readonly anonymous: false;
|
|
1747
|
+
}, {
|
|
1748
|
+
readonly type: "event";
|
|
1749
|
+
readonly name: "TransferSingle";
|
|
1750
|
+
readonly inputs: readonly [{
|
|
1751
|
+
readonly name: "_operator";
|
|
1752
|
+
readonly type: "address";
|
|
1753
|
+
readonly indexed: true;
|
|
1754
|
+
readonly internalType: "address";
|
|
1755
|
+
}, {
|
|
1756
|
+
readonly name: "_from";
|
|
1757
|
+
readonly type: "address";
|
|
1758
|
+
readonly indexed: true;
|
|
1759
|
+
readonly internalType: "address";
|
|
1760
|
+
}, {
|
|
1761
|
+
readonly name: "_to";
|
|
1762
|
+
readonly type: "address";
|
|
1763
|
+
readonly indexed: true;
|
|
1764
|
+
readonly internalType: "address";
|
|
1765
|
+
}, {
|
|
1766
|
+
readonly name: "_id";
|
|
1767
|
+
readonly type: "uint256";
|
|
1768
|
+
readonly indexed: false;
|
|
1769
|
+
readonly internalType: "uint256";
|
|
1770
|
+
}, {
|
|
1771
|
+
readonly name: "_amount";
|
|
1772
|
+
readonly type: "uint256";
|
|
1773
|
+
readonly indexed: false;
|
|
1774
|
+
readonly internalType: "uint256";
|
|
1775
|
+
}];
|
|
1776
|
+
readonly anonymous: false;
|
|
1777
|
+
}, {
|
|
1778
|
+
readonly type: "event";
|
|
1779
|
+
readonly name: "URI";
|
|
1780
|
+
readonly inputs: readonly [{
|
|
1781
|
+
readonly name: "_uri";
|
|
1782
|
+
readonly type: "string";
|
|
1783
|
+
readonly indexed: false;
|
|
1784
|
+
readonly internalType: "string";
|
|
1785
|
+
}, {
|
|
1786
|
+
readonly name: "_id";
|
|
1787
|
+
readonly type: "uint256";
|
|
1788
|
+
readonly indexed: true;
|
|
1789
|
+
readonly internalType: "uint256";
|
|
1790
|
+
}];
|
|
1791
|
+
readonly anonymous: false;
|
|
1792
|
+
}, {
|
|
1793
|
+
readonly type: "error";
|
|
1794
|
+
readonly name: "InvalidArrayLength";
|
|
1795
|
+
readonly inputs: readonly [];
|
|
1796
|
+
}, {
|
|
1797
|
+
readonly type: "error";
|
|
1798
|
+
readonly name: "InvalidInitialization";
|
|
1799
|
+
readonly inputs: readonly [];
|
|
1800
|
+
}];
|
|
35
1801
|
//#endregion
|
|
36
|
-
|
|
37
|
-
declare const networkToWagmiChain: (network: NetworkConfig) => Chain;
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/utils/price.d.ts
|
|
40
|
-
type CalculatePriceDifferencePercentageArgs = {
|
|
41
|
-
inputPriceRaw: bigint;
|
|
42
|
-
basePriceRaw: bigint;
|
|
43
|
-
decimals: number;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Calculates the percentage difference between two prices
|
|
47
|
-
* @param args - Object containing input price, base price, and decimals
|
|
48
|
-
* @returns The percentage difference as a string with 2 decimal places
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts
|
|
51
|
-
* const diff = calculatePriceDifferencePercentage({
|
|
52
|
-
* inputPriceRaw: 1000000n,
|
|
53
|
-
* basePriceRaw: 900000n,
|
|
54
|
-
* decimals: 6
|
|
55
|
-
* }); // Returns "11.11"
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
declare const calculatePriceDifferencePercentage: ({
|
|
59
|
-
inputPriceRaw,
|
|
60
|
-
basePriceRaw,
|
|
61
|
-
decimals
|
|
62
|
-
}: CalculatePriceDifferencePercentageArgs) => string;
|
|
63
|
-
/**
|
|
64
|
-
* Formats a raw price amount with the specified number of decimal places
|
|
65
|
-
* @param amount - The raw price amount as a bigint
|
|
66
|
-
* @param decimals - Number of decimal places to format to
|
|
67
|
-
* @returns Formatted price string with proper decimal and thousands separators
|
|
68
|
-
* @example
|
|
69
|
-
* ```ts
|
|
70
|
-
* const formatted = formatPrice(1000000n, 6); // Returns "1.000000"
|
|
71
|
-
* ```
|
|
72
|
-
*/
|
|
73
|
-
declare const formatPrice: (amount: bigint, decimals: number) => string;
|
|
74
|
-
/**
|
|
75
|
-
* Calculates the final earnings amount after applying multiple fee percentages
|
|
76
|
-
* @param amount - The raw amount as a bigint (e.g., from a blockchain transaction)
|
|
77
|
-
* @param decimals - The number of decimal places for the currency (e.g., 18 for ETH, 6 for USDC)
|
|
78
|
-
* @param fees - Array of fee percentages to apply (e.g., [2.5, 1.0] for 2.5% and 1% fees)
|
|
79
|
-
* @returns Formatted string representing the final earnings after all fees are applied
|
|
80
|
-
* @throws Will return '0' if there's an error in calculation
|
|
81
|
-
* @example
|
|
82
|
-
* ```ts
|
|
83
|
-
* const earnings = calculateEarningsAfterFees(
|
|
84
|
-
* 1000000000000000000n, // 1 ETH
|
|
85
|
-
* 18, // ETH decimals
|
|
86
|
-
* [2.5, 1.0] // 2.5% and 1% fees
|
|
87
|
-
* ); // Returns "0.96525" (1 ETH after 2.5% and 1% fees)
|
|
88
|
-
* ```
|
|
89
|
-
*/
|
|
90
|
-
declare const calculateEarningsAfterFees: (amount: bigint, decimals: number, fees: number[]) => string;
|
|
91
|
-
/**
|
|
92
|
-
* Formats a price amount with fee applied
|
|
93
|
-
* @param amount - The raw price amount as a bigint
|
|
94
|
-
* @param decimals - Number of decimal places for the currency
|
|
95
|
-
* @param feePercentage - Fee percentage to apply (e.g., 3.5 for 3.5%)
|
|
96
|
-
* @returns Formatted price string with fee applied and proper decimal/thousands separators
|
|
97
|
-
* @example
|
|
98
|
-
* ```ts
|
|
99
|
-
* const priceWithFee = formatPriceWithFee(1000000n, 6, 3.5); // Returns "1.035"
|
|
100
|
-
* ```
|
|
101
|
-
*/
|
|
102
|
-
declare const formatPriceWithFee: (amount: bigint, decimals: number, feePercentage: number) => string;
|
|
103
|
-
declare const calculateTotalOfferCost: (offerAmountRaw: bigint, decimals: number, royaltyPercentage?: number) => bigint;
|
|
104
|
-
/**
|
|
105
|
-
* Validates if a price value meets OpenSea's decimal constraints for offers
|
|
106
|
-
* OpenSea allows maximum 4 decimal places for offers and minimum 0.0001
|
|
107
|
-
* @param value - The price value as a string
|
|
108
|
-
* @returns Object containing validation result and error message
|
|
109
|
-
* @example
|
|
110
|
-
* ```ts
|
|
111
|
-
* const result = validateOpenseaOfferDecimals('0.12345');
|
|
112
|
-
* // Returns { isValid: false, errorMessage: "Offer amount must be at least 0.0001" }
|
|
113
|
-
* ```
|
|
114
|
-
*/
|
|
115
|
-
declare const validateOpenseaOfferDecimals: (value: string) => {
|
|
116
|
-
isValid: boolean;
|
|
117
|
-
errorMessage?: string;
|
|
118
|
-
};
|
|
119
|
-
//#endregion
|
|
120
|
-
export { formatPriceWithFee as a, getNetwork as c, cn$1 as d, compareAddress as f, formatPrice as i, getPresentableChainName as l, truncateMiddle as m, calculatePriceDifferencePercentage as n, validateOpenseaOfferDecimals as o, truncateEnd as p, calculateTotalOfferCost as r, networkToWagmiChain as s, calculateEarningsAfterFees as t, getMarketplaceDetails as u };
|
|
1802
|
+
export { ERC20_ABI as i, ERC1155_ABI as n, ERC721_ABI as r, SEQUENCE_1155_ITEMS_ABI as t };
|
|
121
1803
|
//# sourceMappingURL=index7.d.ts.map
|