@0xsequence/marketplace-sdk 0.8.11 → 0.8.12
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/CHANGELOG.md +166 -0
- package/dist/CartIcon-Bll1rbxv.js +141 -0
- package/dist/CartIcon-Bll1rbxv.js.map +1 -0
- package/dist/CollectibleCard-CLQTl0_6.d.ts +8 -0
- package/dist/_internal-69NEWNUE.js +34 -0
- package/dist/_internal-69NEWNUE.js.map +1 -0
- package/dist/abi-BKyRjVcZ.js +0 -0
- package/dist/{alien_swap-2B65TDGT.js → alien_swap-B_76IMma.js} +5 -5
- package/dist/alien_swap-B_76IMma.js.map +1 -0
- package/dist/api-1KFxYh7o.js +232 -0
- package/dist/api-1KFxYh7o.js.map +1 -0
- package/dist/{aqua-xyz-WMYQLAIS.js → aqua-xyz-CMN_TFY5.js} +5 -5
- package/dist/aqua-xyz-CMN_TFY5.js.map +1 -0
- package/dist/{aura-V22RV5OG.js → aura-Cye_TuHj.js} +5 -5
- package/dist/aura-Cye_TuHj.js.map +1 -0
- package/dist/{blur-GE5QOMCM.js → blur-DWDMyMpK.js} +5 -5
- package/dist/blur-DWDMyMpK.js.map +1 -0
- package/dist/builder-api-BQvzykoU.js +28 -0
- package/dist/builder-api-BQvzykoU.js.map +1 -0
- package/dist/builder-api-DoK3907S.d.ts +12 -0
- package/dist/builder.gen-CxP9NT1p.js +303 -0
- package/dist/builder.gen-CxP9NT1p.js.map +1 -0
- package/dist/{coinbase-NLHJMGAP.js → coinbase-ByA_XRB0.js} +5 -5
- package/dist/coinbase-ByA_XRB0.js.map +1 -0
- package/dist/{element-2LGTYYSP.js → element-b77CyXIZ.js} +5 -5
- package/dist/element-b77CyXIZ.js.map +1 -0
- package/dist/{foundation-BPN66ZTN.js → foundation-DbOrKP9Y.js} +5 -5
- package/dist/foundation-DbOrKP9Y.js.map +1 -0
- package/dist/index-1bezgsFq.d.ts +1129 -0
- package/dist/index-4-kfOFdx.d.ts +22 -0
- package/dist/index-BEYefG1G.d.ts +24 -0
- package/dist/index-BHiSG-Yi.d.ts +312 -0
- package/dist/index-BIMIpDiI.d.ts +188 -0
- package/dist/index-BQW0PUkQ.d.ts +3973 -0
- package/dist/index-BfH21xmk.d.ts +117 -0
- package/dist/index-BjIwVzc4.d.ts +1057 -0
- package/dist/index-C39K_8SG.d.ts +1 -0
- package/dist/index-CN8puQQJ.d.ts +24 -0
- package/dist/index-Cl7PQOGu.d.ts +102 -0
- package/dist/index-D5v5iluA.d.ts +809 -0
- package/dist/index-DXMfTZ1F.d.ts +7 -0
- package/dist/index-DafWjEb4.d.ts +65 -0
- package/dist/index-ij9f8GAA.d.ts +1 -0
- package/dist/index.css +384 -371
- package/dist/index.d.ts +10 -29
- package/dist/index.js +13 -104
- package/dist/{looks-rare-MZRSOPT4.js → looks-rare-C1VqNcSM.js} +5 -5
- package/dist/looks-rare-C1VqNcSM.js.map +1 -0
- package/dist/{magic-eden-PUBL6KWW.js → magic-eden-ea_AGCZr.js} +5 -5
- package/dist/magic-eden-ea_AGCZr.js.map +1 -0
- package/dist/{manifold-GA445YJ6.js → manifold-8y8J2sjT.js} +5 -5
- package/dist/manifold-8y8J2sjT.js.map +1 -0
- package/dist/marketplace-logos-CSeGcPW4.js +50 -0
- package/dist/marketplace-logos-CSeGcPW4.js.map +1 -0
- package/dist/marketplace-nwnZv9Cb.js +1913 -0
- package/dist/marketplace-nwnZv9Cb.js.map +1 -0
- package/dist/marketplace.gen-Dqk8vRmD.js +1068 -0
- package/dist/marketplace.gen-Dqk8vRmD.js.map +1 -0
- package/dist/marketplaceConfig-D2MYFqll.js +71 -0
- package/dist/marketplaceConfig-D2MYFqll.js.map +1 -0
- package/dist/{mintify-UMC5PTKC.js → mintify-LA68TzWg.js} +5 -5
- package/dist/mintify-LA68TzWg.js.map +1 -0
- package/dist/{nftx-AX3CY3IE.js → nftx-D3Tc8nzd.js} +5 -5
- package/dist/nftx-D3Tc8nzd.js.map +1 -0
- package/dist/{okx-GNVLAE2R.js → okx-hbqg6oIJ.js} +5 -5
- package/dist/okx-hbqg6oIJ.js.map +1 -0
- package/dist/{open-sea-KI43GVEB.js → open-sea-BccuK8-t.js} +5 -5
- package/dist/open-sea-BccuK8-t.js.map +1 -0
- package/dist/options-DCi6_23w.js +34 -0
- package/dist/options-DCi6_23w.js.map +1 -0
- package/dist/primary-sale-Cw95phYC.js +1264 -0
- package/dist/primary-sale-Cw95phYC.js.map +1 -0
- package/dist/queries-DPvwtnO7.js +486 -0
- package/dist/queries-DPvwtnO7.js.map +1 -0
- package/dist/{rarible-2J3MMZJ7.js → rarible-BgTwwj9g.js} +5 -5
- package/dist/rarible-BgTwwj9g.js.map +1 -0
- package/dist/react/_internal/api/index.d.ts +4 -86
- package/dist/react/_internal/api/index.js +7 -150
- package/dist/react/_internal/databeat/index.d.ts +45 -41
- package/dist/react/_internal/databeat/index.js +23 -27
- package/dist/react/_internal/index.d.ts +7 -76
- package/dist/react/_internal/index.js +9 -176
- package/dist/react/_internal/wagmi/index.d.ts +4 -17
- package/dist/react/_internal/wagmi/index.js +5 -14
- package/dist/react/hooks/index.d.ts +17 -3652
- package/dist/react/hooks/index.js +23 -153
- package/dist/react/hooks/options/index.d.ts +5 -8
- package/dist/react/hooks/options/index.js +11 -21
- package/dist/react/index.d.ts +37 -33
- package/dist/react/index.js +23 -193
- package/dist/react/queries/index.d.ts +8 -26
- package/dist/react/queries/index.js +18 -51
- package/dist/react/ssr/index.d.ts +19 -13
- package/dist/react/ssr/index.js +29 -28
- package/dist/react/ssr/index.js.map +1 -1
- package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +10 -0
- package/dist/react/ui/components/marketplace-collectible-card/index.js +23 -0
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.d.ts +8 -0
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.js +10 -0
- package/dist/react/ui/components/marketplace-logos/index.d.ts +26 -24
- package/dist/react/ui/components/marketplace-logos/index.js +3 -45
- package/dist/react/ui/icons/index.d.ts +1 -2
- package/dist/react/ui/icons/index.js +10 -14
- package/dist/react/ui/index.d.ts +10 -116
- package/dist/react/ui/index.js +23 -41
- package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +59 -33
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +23 -31
- package/dist/react-BG7o4PId.js +8351 -0
- package/dist/react-BG7o4PId.js.map +1 -0
- package/dist/react-BbHBl6gg.css +80 -0
- package/dist/react-BbHBl6gg.css.map +1 -0
- package/dist/sdk-config-DJzxVPld.d.ts +1535 -0
- package/dist/{sequence-TGLUFEPQ.js → sequence-Do3kzb4J.js} +5 -5
- package/dist/sequence-Do3kzb4J.js.map +1 -0
- package/dist/src-Dz2CfBL0.js +8 -0
- package/dist/src-Dz2CfBL0.js.map +1 -0
- package/dist/{sudo-swap-M2O6E3TE.js → sudo-swap-B6vPKxBz.js} +5 -5
- package/dist/sudo-swap-B6vPKxBz.js.map +1 -0
- package/dist/{super-rare-UU2U4LIN.js → super-rare-eCm1SE6O.js} +5 -5
- package/dist/super-rare-eCm1SE6O.js.map +1 -0
- package/dist/token-CO5llIla.js +1312 -0
- package/dist/token-CO5llIla.js.map +1 -0
- package/dist/transaction-CcVViHEL.js +97 -0
- package/dist/transaction-CcVViHEL.js.map +1 -0
- package/dist/types/index.d.ts +3 -13
- package/dist/types/index.js +5 -44
- package/dist/types-BIJOaL4j.d.ts +68 -0
- package/dist/types-DwWE6xOF.js +13 -0
- package/dist/types-DwWE6xOF.js.map +1 -0
- package/dist/useCollection-C-mclKU0.d.ts +66 -0
- package/dist/utils/abi/index.d.ts +5 -3
- package/dist/utils/abi/index.js +6 -26
- package/dist/utils/abi/marketplace/index.d.ts +2 -805
- package/dist/utils/abi/marketplace/index.js +3 -11
- package/dist/utils/abi/primary-sale/index.d.ts +2 -1054
- package/dist/utils/abi/primary-sale/index.js +3 -9
- package/dist/utils/abi/token/index.d.ts +2 -1125
- package/dist/utils/abi/token/index.js +3 -11
- package/dist/utils/index.d.ts +8 -91
- package/dist/utils/index.js +11 -57
- package/dist/utils-BFdxaToy.js +216 -0
- package/dist/utils-BFdxaToy.js.map +1 -0
- package/dist/utils-Cat9_pef.js +44 -0
- package/dist/utils-Cat9_pef.js.map +1 -0
- package/dist/wagmi-DRctYEk6.js +159 -0
- package/dist/wagmi-DRctYEk6.js.map +1 -0
- package/dist/{x2y2-3W5BBMZC.js → x2y2-DD17tT91.js} +5 -5
- package/dist/x2y2-DD17tT91.js.map +1 -0
- package/dist/{zora-6EY6FUH6.js → zora-BpSG9UzS.js} +5 -5
- package/dist/zora-BpSG9UzS.js.map +1 -0
- package/package.json +10 -8
- package/src/index.ts +0 -1
- package/src/react/_internal/api/__mocks__/indexer.msw.ts +1 -0
- package/src/react/_internal/api/builder.gen.ts +0 -1
- package/src/react/_internal/api/marketplace.gen.ts +467 -26
- package/src/react/_internal/api/services.ts +42 -49
- package/src/react/_internal/wagmi/__tests__/create-config.test.ts +5 -5
- package/src/react/_internal/wagmi/create-config.ts +7 -2
- package/src/react/_internal/wagmi/get-connectors.ts +5 -2
- package/src/react/hooks/__tests__/__snapshots__/useListCollections.test.tsx.snap +161 -2
- package/src/react/hooks/__tests__/__snapshots__/useMarketplaceConfig.test.tsx.snap +44 -6
- package/src/react/hooks/__tests__/useAutoSelectFeeOption.test.tsx +7 -4
- package/src/react/hooks/__tests__/useCheckoutOptionsSalesContract.test.tsx +225 -0
- package/src/react/hooks/__tests__/useCollectionDetailsPolling.test.tsx +3 -3
- package/src/react/hooks/__tests__/useGenerateCancelTransaction.test.tsx +2 -3
- package/src/react/hooks/__tests__/useHighestOffer.test.tsx +0 -16
- package/src/react/hooks/__tests__/useInventory.test.tsx +0 -36
- package/src/react/hooks/__tests__/useListCollections.test.tsx +1 -1
- package/src/react/hooks/index.ts +7 -0
- package/src/react/hooks/useBalanceOfCollectible.tsx +13 -9
- package/src/react/hooks/useCancelTransactionSteps.tsx +5 -1
- package/src/react/hooks/useCheckoutOptions.tsx +2 -1
- package/src/react/hooks/useCheckoutOptionsSalesContract.tsx +67 -0
- package/src/react/hooks/useCollectionDetails.tsx +22 -7
- package/src/react/hooks/useCountListingsForCollectible.tsx +5 -4
- package/src/react/hooks/useCountOfCollectables.tsx +10 -7
- package/src/react/hooks/useCountOffersForCollectible.tsx +5 -4
- package/src/react/hooks/useCurrency.tsx +2 -2
- package/src/react/hooks/useERC721SaleMintedTokens.tsx +67 -0
- package/src/react/hooks/useFloorOrder.tsx +5 -2
- package/src/react/hooks/useGenerateCancelTransaction.tsx +13 -6
- package/src/react/hooks/useGenerateListingTransaction.tsx +15 -5
- package/src/react/hooks/useGenerateOfferTransaction.tsx +15 -6
- package/src/react/hooks/useGenerateSellTransaction.tsx +15 -6
- package/src/react/hooks/useGetTokenSuppliesMap.ts +5 -0
- package/src/react/hooks/useInventory.tsx +7 -5
- package/src/react/hooks/useList1155ShopCardData.tsx +130 -0
- package/src/react/hooks/useList721ShopCardData.tsx +130 -0
- package/src/react/hooks/useListBalances.tsx +6 -9
- package/src/react/hooks/useListCollectibleActivities.tsx +2 -1
- package/src/react/hooks/useListCollectibles.tsx +1 -14
- package/src/react/hooks/useListCollectiblesPaginated.tsx +8 -5
- package/src/react/hooks/useListCollectionActivities.tsx +2 -1
- package/src/react/hooks/useListCollections.tsx +1 -1
- package/src/react/hooks/useListListingsForCollectible.tsx +2 -1
- package/src/react/hooks/useListMarketCardData.tsx +157 -0
- package/src/react/hooks/useListOffersForCollectible.tsx +2 -1
- package/src/react/hooks/useListPrimarySaleItems.ts +42 -0
- package/src/react/hooks/useTokenSaleDetailsBatch.tsx +134 -0
- package/src/react/queries/highestOffer.ts +6 -4
- package/src/react/queries/inventory.ts +35 -1
- package/src/react/queries/listBalances.ts +14 -30
- package/src/react/queries/listCollectibles.ts +60 -7
- package/src/react/queries/listCollections.ts +8 -2
- package/src/react/queries/listTokenMetadata.ts +6 -1
- package/src/react/queries/lowestListing.ts +6 -4
- package/src/react/queries/marketCurrencies.ts +11 -7
- package/src/react/queries/marketplaceConfig.ts +55 -80
- package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +44 -6
- package/src/react/ssr/__tests__/create-ssr-client.test.ts +0 -3
- package/src/react/ssr/create-ssr-client.ts +5 -10
- package/src/react/ui/components/_internals/action-button/ActionButton.tsx +47 -13
- package/src/react/ui/components/_internals/action-button/__tests__/ActionButtonBody.test.tsx +1 -1
- package/src/react/ui/components/_internals/action-button/__tests__/NonOwnerActions.test.tsx +28 -15
- package/src/react/ui/components/_internals/action-button/__tests__/OwnerActions.test.tsx +1 -1
- package/src/react/ui/components/_internals/action-button/__tests__/useActionButtonLogic.test.tsx +1 -1
- package/src/react/ui/components/_internals/action-button/components/ActionButtonBody.tsx +1 -1
- package/src/react/ui/components/_internals/action-button/components/NonOwnerActions.tsx +78 -15
- package/src/react/ui/components/_internals/action-button/components/OwnerActions.tsx +1 -1
- package/src/react/ui/components/_internals/action-button/hooks/useActionButtonLogic.ts +1 -1
- package/src/react/ui/components/marketplace-collectible-card/CollectibleCard.tsx +17 -0
- package/src/react/ui/components/marketplace-collectible-card/CollectibleCardSkeleton.tsx +24 -0
- package/src/react/ui/components/marketplace-collectible-card/Footer.tsx +231 -0
- package/src/react/ui/components/marketplace-collectible-card/components/ActionButtonWrapper.tsx +76 -0
- package/src/react/ui/components/marketplace-collectible-card/components/BaseCard.tsx +55 -0
- package/src/react/ui/components/marketplace-collectible-card/index.ts +3 -0
- package/src/react/ui/components/marketplace-collectible-card/types.ts +95 -0
- package/src/react/ui/components/marketplace-collectible-card/utils/formatPrice.ts +45 -0
- package/src/react/ui/components/marketplace-collectible-card/utils/index.ts +2 -0
- package/src/react/ui/components/marketplace-collectible-card/utils/supplyStatus.ts +39 -0
- package/src/react/ui/components/marketplace-collectible-card/variants/MarketCard.tsx +124 -0
- package/src/react/ui/components/marketplace-collectible-card/variants/ShopCard.tsx +105 -0
- package/src/react/ui/components/{collectible-card/media → media}/Media.tsx +42 -25
- package/src/react/ui/components/{collectible-card/media → media}/types.ts +3 -1
- package/src/react/ui/index.ts +5 -2
- package/src/react/ui/modals/BuyModal/__tests__/BuyModalRouter.test.tsx +554 -0
- package/src/react/ui/modals/BuyModal/__tests__/ERC1155ShopModal.test.tsx +385 -0
- package/src/react/ui/modals/BuyModal/__tests__/ERC721ShopModal.test.tsx +272 -0
- package/src/react/ui/modals/BuyModal/__tests__/Modal.test.tsx.bak +112 -0
- package/src/react/ui/modals/BuyModal/__tests__/Modal1155.test.tsx +117 -13
- package/src/react/ui/modals/BuyModal/__tests__/store.test.ts +10 -7
- package/src/react/ui/modals/BuyModal/components/BuyModalRouter.tsx +157 -0
- package/src/react/ui/modals/BuyModal/components/ERC1155BuyModal.tsx +136 -0
- package/src/react/ui/modals/BuyModal/components/ERC1155QuantityModal.tsx +184 -0
- package/src/react/ui/modals/BuyModal/components/ERC1155ShopModal.tsx +121 -0
- package/src/react/ui/modals/BuyModal/components/ERC721BuyModal.tsx +85 -0
- package/src/react/ui/modals/BuyModal/components/ERC721ShopModal.tsx +86 -0
- package/src/react/ui/modals/BuyModal/components/Modal.tsx +14 -0
- package/src/react/ui/modals/BuyModal/components/types.ts +8 -0
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useCheckoutOptions.test.tsx +4 -4
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC1155Checkout.test.tsx +379 -0
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC721SalePaymentParams.test.tsx +253 -0
- package/src/react/ui/modals/BuyModal/hooks/__tests__/{useFees.test.tsx → useMarketPlatformFee.test.tsx} +10 -11
- package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +62 -44
- package/src/react/ui/modals/BuyModal/hooks/useERC1155Checkout.ts +73 -0
- package/src/react/ui/modals/BuyModal/hooks/useERC721SalePaymentParams.ts +196 -0
- package/src/react/ui/modals/BuyModal/hooks/useLoadData.ts +74 -18
- package/src/react/ui/modals/BuyModal/hooks/useMarketPlatformFee.ts +53 -0
- package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +27 -12
- package/src/react/ui/modals/BuyModal/store.ts +147 -13
- package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +2 -1
- package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +5 -3
- package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +2 -1
- package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +5 -3
- package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +4 -3
- package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +6 -3
- package/src/react/ui/modals/SuccessfulPurchaseModal/__tests__/Modal.test.tsx +11 -7
- package/src/react/ui/modals/SuccessfulPurchaseModal/index.tsx +34 -28
- package/src/react/ui/modals/SuccessfulPurchaseModal/store.ts +71 -0
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.test.tsx +0 -1
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +105 -108
- package/src/react/ui/modals/_internal/components/actionModal/store.ts +45 -12
- package/src/react/ui/modals/_internal/components/switchChainModal/__tests__/SwitchChainModal.test.tsx +12 -8
- package/src/react/ui/modals/_internal/components/switchChainModal/index.tsx +35 -33
- package/src/react/ui/modals/_internal/components/switchChainModal/store.ts +61 -32
- package/src/react/ui/modals/modal-provider.tsx +1 -1
- package/src/types/buyModalErrors.ts +438 -0
- package/src/types/index.ts +4 -1
- package/src/types/new-marketplace-types.ts +6 -21
- package/src/types/sdk-config.ts +18 -24
- package/src/types/types.ts +16 -0
- package/src/utils/_internal/error/transaction.ts +36 -1
- package/tsconfig.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/tsdown.config.ts +25 -0
- package/.ctirc +0 -32
- package/dist/alien_swap-2B65TDGT.js.map +0 -1
- package/dist/aqua-xyz-WMYQLAIS.js.map +0 -1
- package/dist/aura-V22RV5OG.js.map +0 -1
- package/dist/blur-GE5QOMCM.js.map +0 -1
- package/dist/chunk-2PSNAIAT.js +0 -1
- package/dist/chunk-2PSNAIAT.js.map +0 -1
- package/dist/chunk-5C6ZZ6WX.js +0 -130
- package/dist/chunk-5C6ZZ6WX.js.map +0 -1
- package/dist/chunk-5O44EPXZ.js +0 -207
- package/dist/chunk-5O44EPXZ.js.map +0 -1
- package/dist/chunk-6CTFVBKU.js +0 -1
- package/dist/chunk-6CTFVBKU.js.map +0 -1
- package/dist/chunk-6OPMUCGX.js +0 -42
- package/dist/chunk-6OPMUCGX.js.map +0 -1
- package/dist/chunk-FUM4OGOQ.js +0 -1027
- package/dist/chunk-FUM4OGOQ.js.map +0 -1
- package/dist/chunk-L6KWLCER.js +0 -32
- package/dist/chunk-L6KWLCER.js.map +0 -1
- package/dist/chunk-LAP2CKLN.js +0 -485
- package/dist/chunk-LAP2CKLN.js.map +0 -1
- package/dist/chunk-LECCEZAO.js +0 -11
- package/dist/chunk-LECCEZAO.js.map +0 -1
- package/dist/chunk-N7SQWS2R.js +0 -38
- package/dist/chunk-N7SQWS2R.js.map +0 -1
- package/dist/chunk-NX52D7NX.js +0 -135
- package/dist/chunk-NX52D7NX.js.map +0 -1
- package/dist/chunk-OAOONM4S.js +0 -1787
- package/dist/chunk-OAOONM4S.js.map +0 -1
- package/dist/chunk-Q3ECVC4F.js +0 -811
- package/dist/chunk-Q3ECVC4F.js.map +0 -1
- package/dist/chunk-QY52UADF.js +0 -107
- package/dist/chunk-QY52UADF.js.map +0 -1
- package/dist/chunk-TNAR3XEF.js +0 -8729
- package/dist/chunk-TNAR3XEF.js.map +0 -1
- package/dist/chunk-XABYNWXO.js +0 -549
- package/dist/chunk-XABYNWXO.js.map +0 -1
- package/dist/chunk-XX4EVWBF.js +0 -1292
- package/dist/chunk-XX4EVWBF.js.map +0 -1
- package/dist/chunk-YB5UUF2G.js +0 -11
- package/dist/chunk-YB5UUF2G.js.map +0 -1
- package/dist/chunk-YWGFI4PN.js +0 -217
- package/dist/chunk-YWGFI4PN.js.map +0 -1
- package/dist/coinbase-NLHJMGAP.js.map +0 -1
- package/dist/create-config-DLMvMTkZ.d.ts +0 -8
- package/dist/element-2LGTYYSP.js.map +0 -1
- package/dist/foundation-BPN66ZTN.js.map +0 -1
- package/dist/get-query-client-D46hbjk6.d.ts +0 -5
- package/dist/index.css.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/looks-rare-MZRSOPT4.js.map +0 -1
- package/dist/magic-eden-PUBL6KWW.js.map +0 -1
- package/dist/manifold-GA445YJ6.js.map +0 -1
- package/dist/marketCurrencies-enNVYwBk.d.ts +0 -277
- package/dist/marketplace.gen-D24veUQs.d.ts +0 -1073
- package/dist/marketplaceConfig-BwNAbLPw.d.ts +0 -21
- package/dist/mintify-UMC5PTKC.js.map +0 -1
- package/dist/new-marketplace-types-BCw19X9S.d.ts +0 -102
- package/dist/nftx-AX3CY3IE.js.map +0 -1
- package/dist/okx-GNVLAE2R.js.map +0 -1
- package/dist/open-sea-KI43GVEB.js.map +0 -1
- package/dist/rarible-2J3MMZJ7.js.map +0 -1
- package/dist/react/_internal/api/index.js.map +0 -1
- package/dist/react/_internal/databeat/index.css +0 -2764
- package/dist/react/_internal/databeat/index.css.map +0 -1
- package/dist/react/_internal/databeat/index.js.map +0 -1
- package/dist/react/_internal/index.js.map +0 -1
- package/dist/react/_internal/wagmi/index.js.map +0 -1
- package/dist/react/hooks/index.css +0 -2764
- package/dist/react/hooks/index.css.map +0 -1
- package/dist/react/hooks/index.js.map +0 -1
- package/dist/react/hooks/options/index.js.map +0 -1
- package/dist/react/index.css +0 -2764
- package/dist/react/index.css.map +0 -1
- package/dist/react/index.js.map +0 -1
- package/dist/react/queries/index.js.map +0 -1
- package/dist/react/ui/components/collectible-card/index.css +0 -2764
- package/dist/react/ui/components/collectible-card/index.css.map +0 -1
- package/dist/react/ui/components/collectible-card/index.d.ts +0 -71
- package/dist/react/ui/components/collectible-card/index.js +0 -27
- package/dist/react/ui/components/collectible-card/index.js.map +0 -1
- package/dist/react/ui/components/marketplace-logos/index.js.map +0 -1
- package/dist/react/ui/icons/index.js.map +0 -1
- package/dist/react/ui/index.css +0 -2764
- package/dist/react/ui/index.css.map +0 -1
- package/dist/react/ui/index.js.map +0 -1
- package/dist/react/ui/modals/_internal/components/actionModal/index.css +0 -2764
- package/dist/react/ui/modals/_internal/components/actionModal/index.css.map +0 -1
- package/dist/react/ui/modals/_internal/components/actionModal/index.js.map +0 -1
- package/dist/sdk-config-qorA0TgF.d.ts +0 -165
- package/dist/sequence-TGLUFEPQ.js.map +0 -1
- package/dist/services-WrshxCqc.d.ts +0 -23
- package/dist/sudo-swap-M2O6E3TE.js.map +0 -1
- package/dist/super-rare-UU2U4LIN.js.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/useCollection-YAdXfVO7.d.ts +0 -61
- package/dist/utils/abi/index.js.map +0 -1
- package/dist/utils/abi/marketplace/index.js.map +0 -1
- package/dist/utils/abi/primary-sale/index.js.map +0 -1
- package/dist/utils/abi/token/index.js.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/dist/x2y2-3W5BBMZC.js.map +0 -1
- package/dist/zora-6EY6FUH6.js.map +0 -1
- package/postcss.config.mjs +0 -5
- package/src/react/hooks/__tests__/__snapshots__/useRoyaltyPercentage.test.tsx.snap +0 -8
- package/src/react/ui/components/collectible-card/CollectibleCard.tsx +0 -170
- package/src/react/ui/components/collectible-card/Footer.tsx +0 -157
- package/src/react/ui/components/collectible-card/__tests__/CollectibleCard.test.tsx +0 -94
- package/src/react/ui/components/collectible-card/__tests__/Footer.test.tsx +0 -136
- package/src/react/ui/components/collectible-card/__tests__/Media.test.tsx +0 -264
- package/src/react/ui/components/collectible-card/index.ts +0 -2
- package/src/react/ui/modals/BuyModal/ERC1155QuantityModal.tsx +0 -130
- package/src/react/ui/modals/BuyModal/Modal.tsx +0 -124
- package/src/react/ui/modals/BuyModal/__tests__/Modal.test.tsx +0 -104
- package/src/react/ui/modals/BuyModal/hooks/useFees.ts +0 -39
- package/src/react/ui/modals/SuccessfulPurchaseModal/_store.ts +0 -72
- package/tsup.config.ts +0 -23
- /package/src/react/ui/components/{collectible-card/media → media}/MediaSkeleton.tsx +0 -0
- /package/src/react/ui/components/{collectible-card/media → media}/utils.ts +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// marketplace-api
|
|
2
|
+
// marketplace-api 966f8f49f445aaef13f2daccc968a931178cd71b
|
|
3
3
|
// --
|
|
4
|
-
// Code generated by webrpc-gen@v0.25.
|
|
4
|
+
// Code generated by webrpc-gen@v0.25.4 with typescript generator. DO NOT EDIT.
|
|
5
5
|
//
|
|
6
6
|
// webrpc-gen -schema=marketplace.ridl -target=typescript -client -out=./clients/marketplace.gen.ts
|
|
7
7
|
|
|
8
8
|
export const WebrpcHeader = "Webrpc";
|
|
9
9
|
|
|
10
10
|
export const WebrpcHeaderValue =
|
|
11
|
-
"webrpc@v0.25.
|
|
11
|
+
"webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-966f8f49f445aaef13f2daccc968a931178cd71b";
|
|
12
12
|
|
|
13
13
|
// WebRPC description and code-gen version
|
|
14
14
|
export const WebRPCVersion = "v1";
|
|
@@ -17,7 +17,7 @@ export const WebRPCVersion = "v1";
|
|
|
17
17
|
export const WebRPCSchemaVersion = "";
|
|
18
18
|
|
|
19
19
|
// Schema hash generated from your RIDL schema
|
|
20
|
-
export const WebRPCSchemaHash = "
|
|
20
|
+
export const WebRPCSchemaHash = "966f8f49f445aaef13f2daccc968a931178cd71b";
|
|
21
21
|
|
|
22
22
|
type WebrpcGenVersions = {
|
|
23
23
|
webrpcGenVersion: string;
|
|
@@ -104,8 +104,8 @@ export interface Asset {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
export enum SortOrder {
|
|
107
|
-
DESC = "DESC",
|
|
108
107
|
ASC = "ASC",
|
|
108
|
+
DESC = "DESC",
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
export enum PropertyType {
|
|
@@ -169,7 +169,7 @@ export enum ContractType {
|
|
|
169
169
|
ERC20 = "ERC20",
|
|
170
170
|
ERC721 = "ERC721",
|
|
171
171
|
ERC1155 = "ERC1155",
|
|
172
|
-
|
|
172
|
+
LAOS_ERC_721 = "LAOS-ERC-721", // Added manually for LAOS
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
export enum CollectionPriority {
|
|
@@ -182,12 +182,6 @@ export enum CollectionPriority {
|
|
|
182
182
|
export enum CollectionStatus {
|
|
183
183
|
unknown = "unknown",
|
|
184
184
|
created = "created",
|
|
185
|
-
syncing_contract_metadata = "syncing_contract_metadata",
|
|
186
|
-
synced_contract_metadata = "synced_contract_metadata",
|
|
187
|
-
syncing_metadata = "syncing_metadata",
|
|
188
|
-
synced_metadata = "synced_metadata",
|
|
189
|
-
syncing_tokens = "syncing_tokens",
|
|
190
|
-
synced_tokens = "synced_tokens",
|
|
191
185
|
syncing_orders = "syncing_orders",
|
|
192
186
|
active = "active",
|
|
193
187
|
failed = "failed",
|
|
@@ -201,12 +195,30 @@ export enum ProjectStatus {
|
|
|
201
195
|
inactive = "inactive",
|
|
202
196
|
}
|
|
203
197
|
|
|
198
|
+
export enum ItemsContractStatus {
|
|
199
|
+
unknown = "unknown",
|
|
200
|
+
created = "created",
|
|
201
|
+
syncing_contract_metadata = "syncing_contract_metadata",
|
|
202
|
+
synced_contract_metadata = "synced_contract_metadata",
|
|
203
|
+
syncing_tokens = "syncing_tokens",
|
|
204
|
+
synced_tokens = "synced_tokens",
|
|
205
|
+
active = "active",
|
|
206
|
+
inactive = "inactive",
|
|
207
|
+
incompatible_type = "incompatible_type",
|
|
208
|
+
}
|
|
209
|
+
|
|
204
210
|
export enum CollectibleStatus {
|
|
205
211
|
unknown = "unknown",
|
|
206
212
|
active = "active",
|
|
207
213
|
inactive = "inactive",
|
|
208
214
|
}
|
|
209
215
|
|
|
216
|
+
export enum CollectibleSource {
|
|
217
|
+
unknown = "unknown",
|
|
218
|
+
indexer = "indexer",
|
|
219
|
+
manual = "manual",
|
|
220
|
+
}
|
|
221
|
+
|
|
210
222
|
export enum CurrencyStatus {
|
|
211
223
|
unknown = "unknown",
|
|
212
224
|
created = "created",
|
|
@@ -240,19 +252,19 @@ export enum TransactionCrypto {
|
|
|
240
252
|
|
|
241
253
|
export enum TransactionNFTCheckoutProvider {
|
|
242
254
|
unknown = "unknown",
|
|
243
|
-
sardine = "sardine",
|
|
244
255
|
transak = "transak",
|
|
256
|
+
sardine = "sardine",
|
|
245
257
|
}
|
|
246
258
|
|
|
247
259
|
export enum TransactionOnRampProvider {
|
|
248
260
|
unknown = "unknown",
|
|
249
|
-
sardine = "sardine",
|
|
250
261
|
transak = "transak",
|
|
262
|
+
sardine = "sardine",
|
|
251
263
|
}
|
|
252
264
|
|
|
253
265
|
export enum TransactionSwapProvider {
|
|
254
266
|
unknown = "unknown",
|
|
255
|
-
|
|
267
|
+
lifi = "lifi",
|
|
256
268
|
}
|
|
257
269
|
|
|
258
270
|
export enum ExecuteType {
|
|
@@ -271,6 +283,22 @@ export enum ActivityAction {
|
|
|
271
283
|
transfer = "transfer",
|
|
272
284
|
}
|
|
273
285
|
|
|
286
|
+
export enum PrimarySaleContractStatus {
|
|
287
|
+
unknown = "unknown",
|
|
288
|
+
created = "created",
|
|
289
|
+
syncing_items = "syncing_items",
|
|
290
|
+
active = "active",
|
|
291
|
+
inactive = "inactive",
|
|
292
|
+
incompatible_type = "incompatible_type",
|
|
293
|
+
failed = "failed",
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export enum PrimarySaleItemDetailType {
|
|
297
|
+
unknown = "unknown",
|
|
298
|
+
global = "global",
|
|
299
|
+
individual = "individual",
|
|
300
|
+
}
|
|
301
|
+
|
|
274
302
|
export interface Page {
|
|
275
303
|
page: number;
|
|
276
304
|
pageSize: number;
|
|
@@ -400,12 +428,22 @@ export interface Project {
|
|
|
400
428
|
deletedAt?: string;
|
|
401
429
|
}
|
|
402
430
|
|
|
403
|
-
export interface
|
|
431
|
+
export interface ItemsContract {
|
|
432
|
+
status: ItemsContractStatus;
|
|
404
433
|
chainId: number;
|
|
405
434
|
contractAddress: string;
|
|
435
|
+
contractType: ContractType;
|
|
436
|
+
lastSynced: string;
|
|
437
|
+
createdAt: string;
|
|
438
|
+
updatedAt: string;
|
|
439
|
+
deletedAt?: string;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export interface Collectible {
|
|
406
443
|
status: CollectibleStatus;
|
|
407
444
|
tokenId: string;
|
|
408
445
|
decimals: number;
|
|
446
|
+
source: CollectibleSource;
|
|
409
447
|
createdAt: string;
|
|
410
448
|
updatedAt: string;
|
|
411
449
|
deletedAt?: string;
|
|
@@ -522,6 +560,53 @@ export interface Activity {
|
|
|
522
560
|
deletedAt?: string;
|
|
523
561
|
}
|
|
524
562
|
|
|
563
|
+
export interface PrimarySaleContract {
|
|
564
|
+
chainId: number;
|
|
565
|
+
contractAddress: string;
|
|
566
|
+
collectionAddress: string;
|
|
567
|
+
contractType: ContractType;
|
|
568
|
+
currencyAddress: string;
|
|
569
|
+
priceDecimals: number;
|
|
570
|
+
status: PrimarySaleContractStatus;
|
|
571
|
+
lastSynced: string;
|
|
572
|
+
createdAt: string;
|
|
573
|
+
updatedAt: string;
|
|
574
|
+
deletedAt?: string;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
export interface PrimarySaleItem {
|
|
578
|
+
itemAddress: string;
|
|
579
|
+
contractType: ContractType;
|
|
580
|
+
tokenId: string;
|
|
581
|
+
itemType: PrimarySaleItemDetailType;
|
|
582
|
+
startDate: string;
|
|
583
|
+
endDate: string;
|
|
584
|
+
currencyAddress: string;
|
|
585
|
+
priceDecimals: number;
|
|
586
|
+
priceAmount: string;
|
|
587
|
+
priceAmountFormatted: string;
|
|
588
|
+
supplyCap: string;
|
|
589
|
+
createdAt: string;
|
|
590
|
+
updatedAt: string;
|
|
591
|
+
deletedAt?: string;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export interface CollectiblePrimarySaleItem {
|
|
595
|
+
metadata: TokenMetadata;
|
|
596
|
+
primarySaleItem: PrimarySaleItem;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
export interface PrimarySaleItemsFilter {
|
|
600
|
+
includeEmpty: boolean;
|
|
601
|
+
searchText?: string;
|
|
602
|
+
properties?: Array<PropertyFilter>;
|
|
603
|
+
detailTypes?: Array<PrimarySaleItemDetailType>;
|
|
604
|
+
startDateAfter?: string;
|
|
605
|
+
startDateBefore?: string;
|
|
606
|
+
endDateAfter?: string;
|
|
607
|
+
endDateBefore?: string;
|
|
608
|
+
}
|
|
609
|
+
|
|
525
610
|
export interface Admin {
|
|
526
611
|
createCollection(
|
|
527
612
|
args: CreateCollectionArgs,
|
|
@@ -556,6 +641,16 @@ export interface Admin {
|
|
|
556
641
|
headers?: object,
|
|
557
642
|
signal?: AbortSignal
|
|
558
643
|
): Promise<SyncCollectionReturn>;
|
|
644
|
+
createPrimarySaleContract(
|
|
645
|
+
args: CreatePrimarySaleContractArgs,
|
|
646
|
+
headers?: object,
|
|
647
|
+
signal?: AbortSignal
|
|
648
|
+
): Promise<CreatePrimarySaleContractReturn>;
|
|
649
|
+
deletePrimarySaleContract(
|
|
650
|
+
args: DeletePrimarySaleContractArgs,
|
|
651
|
+
headers?: object,
|
|
652
|
+
signal?: AbortSignal
|
|
653
|
+
): Promise<DeletePrimarySaleContractReturn>;
|
|
559
654
|
createCurrency(
|
|
560
655
|
args: CreateCurrencyArgs,
|
|
561
656
|
headers?: object,
|
|
@@ -572,6 +667,7 @@ export interface Admin {
|
|
|
572
667
|
signal?: AbortSignal
|
|
573
668
|
): Promise<UpdateCurrencyReturn>;
|
|
574
669
|
listCurrencies(
|
|
670
|
+
args: ListCurrenciesArgs,
|
|
575
671
|
headers?: object,
|
|
576
672
|
signal?: AbortSignal
|
|
577
673
|
): Promise<ListCurrenciesReturn>;
|
|
@@ -580,9 +676,18 @@ export interface Admin {
|
|
|
580
676
|
headers?: object,
|
|
581
677
|
signal?: AbortSignal
|
|
582
678
|
): Promise<DeleteCurrencyReturn>;
|
|
679
|
+
/**
|
|
680
|
+
* This for manual adding of non minted ERC1155 tokens, it's used for purposes of Shop.
|
|
681
|
+
*/
|
|
682
|
+
addCollectibles(
|
|
683
|
+
args: AddCollectiblesArgs,
|
|
684
|
+
headers?: object,
|
|
685
|
+
signal?: AbortSignal
|
|
686
|
+
): Promise<AddCollectiblesReturn>;
|
|
583
687
|
}
|
|
584
688
|
|
|
585
689
|
export interface CreateCollectionArgs {
|
|
690
|
+
chainId: string;
|
|
586
691
|
projectId: number;
|
|
587
692
|
contractAddress: string;
|
|
588
693
|
}
|
|
@@ -591,6 +696,7 @@ export interface CreateCollectionReturn {
|
|
|
591
696
|
collection: Collection;
|
|
592
697
|
}
|
|
593
698
|
export interface GetCollectionArgs {
|
|
699
|
+
chainId: string;
|
|
594
700
|
projectId: number;
|
|
595
701
|
contractAddress: string;
|
|
596
702
|
}
|
|
@@ -599,6 +705,7 @@ export interface GetCollectionReturn {
|
|
|
599
705
|
collection: Collection;
|
|
600
706
|
}
|
|
601
707
|
export interface UpdateCollectionArgs {
|
|
708
|
+
chainId: string;
|
|
602
709
|
collection: Collection;
|
|
603
710
|
}
|
|
604
711
|
|
|
@@ -606,6 +713,7 @@ export interface UpdateCollectionReturn {
|
|
|
606
713
|
collection: Collection;
|
|
607
714
|
}
|
|
608
715
|
export interface ListCollectionsArgs {
|
|
716
|
+
chainId: string;
|
|
609
717
|
projectId: number;
|
|
610
718
|
page?: Page;
|
|
611
719
|
}
|
|
@@ -615,6 +723,7 @@ export interface ListCollectionsReturn {
|
|
|
615
723
|
page?: Page;
|
|
616
724
|
}
|
|
617
725
|
export interface DeleteCollectionArgs {
|
|
726
|
+
chainId: string;
|
|
618
727
|
projectId: number;
|
|
619
728
|
contractAddress: string;
|
|
620
729
|
}
|
|
@@ -623,14 +732,30 @@ export interface DeleteCollectionReturn {
|
|
|
623
732
|
collection: Collection;
|
|
624
733
|
}
|
|
625
734
|
export interface SyncCollectionArgs {
|
|
626
|
-
|
|
735
|
+
chainId: string;
|
|
627
736
|
contractAddress: string;
|
|
628
737
|
}
|
|
629
738
|
|
|
630
|
-
export interface SyncCollectionReturn {
|
|
631
|
-
|
|
739
|
+
export interface SyncCollectionReturn {}
|
|
740
|
+
export interface CreatePrimarySaleContractArgs {
|
|
741
|
+
chainId: string;
|
|
742
|
+
projectId: number;
|
|
743
|
+
primarySaleContractAddress: string;
|
|
744
|
+
itemsContractAddress: string;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
export interface CreatePrimarySaleContractReturn {
|
|
748
|
+
primarySaleContract: PrimarySaleContract;
|
|
632
749
|
}
|
|
750
|
+
export interface DeletePrimarySaleContractArgs {
|
|
751
|
+
chainId: string;
|
|
752
|
+
projectId: number;
|
|
753
|
+
primarySaleContractAddress: string;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
export interface DeletePrimarySaleContractReturn {}
|
|
633
757
|
export interface CreateCurrencyArgs {
|
|
758
|
+
chainId: string;
|
|
634
759
|
currency: Currency;
|
|
635
760
|
}
|
|
636
761
|
|
|
@@ -638,6 +763,7 @@ export interface CreateCurrencyReturn {
|
|
|
638
763
|
currency: Currency;
|
|
639
764
|
}
|
|
640
765
|
export interface CreateCurrenciesArgs {
|
|
766
|
+
chainId: string;
|
|
641
767
|
currencies: Array<Currency>;
|
|
642
768
|
}
|
|
643
769
|
|
|
@@ -645,28 +771,39 @@ export interface CreateCurrenciesReturn {
|
|
|
645
771
|
currency: { [key: string]: Currency };
|
|
646
772
|
}
|
|
647
773
|
export interface UpdateCurrencyArgs {
|
|
774
|
+
chainId: string;
|
|
648
775
|
currency: Currency;
|
|
649
776
|
}
|
|
650
777
|
|
|
651
778
|
export interface UpdateCurrencyReturn {
|
|
652
779
|
currency: Currency;
|
|
653
780
|
}
|
|
654
|
-
export interface ListCurrenciesArgs {
|
|
781
|
+
export interface ListCurrenciesArgs {
|
|
782
|
+
chainId: string;
|
|
783
|
+
}
|
|
655
784
|
|
|
656
785
|
export interface ListCurrenciesReturn {
|
|
657
786
|
currencies: Array<Currency>;
|
|
658
787
|
}
|
|
659
788
|
export interface DeleteCurrencyArgs {
|
|
660
|
-
chainId:
|
|
789
|
+
chainId: string;
|
|
661
790
|
contractAddress: string;
|
|
662
791
|
}
|
|
663
792
|
|
|
664
793
|
export interface DeleteCurrencyReturn {
|
|
665
794
|
currency: Currency;
|
|
666
795
|
}
|
|
796
|
+
export interface AddCollectiblesArgs {
|
|
797
|
+
chainId: string;
|
|
798
|
+
itemsContractAddress: string;
|
|
799
|
+
tokenIds: Array<string>;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export interface AddCollectiblesReturn {}
|
|
667
803
|
|
|
668
804
|
export interface Marketplace {
|
|
669
805
|
listCurrencies(
|
|
806
|
+
args: ListCurrenciesArgs,
|
|
670
807
|
headers?: object,
|
|
671
808
|
signal?: AbortSignal
|
|
672
809
|
): Promise<ListCurrenciesReturn>;
|
|
@@ -710,6 +847,16 @@ export interface Marketplace {
|
|
|
710
847
|
headers?: object,
|
|
711
848
|
signal?: AbortSignal
|
|
712
849
|
): Promise<ListOffersForCollectibleReturn>;
|
|
850
|
+
listListings(
|
|
851
|
+
args: ListListingsArgs,
|
|
852
|
+
headers?: object,
|
|
853
|
+
signal?: AbortSignal
|
|
854
|
+
): Promise<ListListingsReturn>;
|
|
855
|
+
listOffers(
|
|
856
|
+
args: ListOffersArgs,
|
|
857
|
+
headers?: object,
|
|
858
|
+
signal?: AbortSignal
|
|
859
|
+
): Promise<ListOffersReturn>;
|
|
713
860
|
getCountOfListingsForCollectible(
|
|
714
861
|
args: GetCountOfListingsForCollectibleArgs,
|
|
715
862
|
headers?: object,
|
|
@@ -872,14 +1019,32 @@ export interface Marketplace {
|
|
|
872
1019
|
headers?: object,
|
|
873
1020
|
signal?: AbortSignal
|
|
874
1021
|
): Promise<CheckoutOptionsSalesContractReturn>;
|
|
1022
|
+
supportedMarketplaces(
|
|
1023
|
+
args: SupportedMarketplacesArgs,
|
|
1024
|
+
headers?: object,
|
|
1025
|
+
signal?: AbortSignal
|
|
1026
|
+
): Promise<SupportedMarketplacesReturn>;
|
|
1027
|
+
listPrimarySaleItems(
|
|
1028
|
+
args: ListPrimarySaleItemsArgs,
|
|
1029
|
+
headers?: object,
|
|
1030
|
+
signal?: AbortSignal
|
|
1031
|
+
): Promise<ListPrimarySaleItemsReturn>;
|
|
1032
|
+
getCountOfPrimarySaleItems(
|
|
1033
|
+
args: GetCountOfPrimarySaleItemsArgs,
|
|
1034
|
+
headers?: object,
|
|
1035
|
+
signal?: AbortSignal
|
|
1036
|
+
): Promise<GetCountOfPrimarySaleItemsReturn>;
|
|
875
1037
|
}
|
|
876
1038
|
|
|
877
|
-
export interface ListCurrenciesArgs {
|
|
1039
|
+
export interface ListCurrenciesArgs {
|
|
1040
|
+
chainId: string;
|
|
1041
|
+
}
|
|
878
1042
|
|
|
879
1043
|
export interface ListCurrenciesReturn {
|
|
880
1044
|
currencies: Array<Currency>;
|
|
881
1045
|
}
|
|
882
1046
|
export interface GetCollectionDetailArgs {
|
|
1047
|
+
chainId: string;
|
|
883
1048
|
contractAddress: string;
|
|
884
1049
|
}
|
|
885
1050
|
|
|
@@ -887,6 +1052,7 @@ export interface GetCollectionDetailReturn {
|
|
|
887
1052
|
collection: Collection;
|
|
888
1053
|
}
|
|
889
1054
|
export interface GetCollectibleArgs {
|
|
1055
|
+
chainId: string;
|
|
890
1056
|
contractAddress: string;
|
|
891
1057
|
tokenId: string;
|
|
892
1058
|
}
|
|
@@ -895,6 +1061,7 @@ export interface GetCollectibleReturn {
|
|
|
895
1061
|
metadata: TokenMetadata;
|
|
896
1062
|
}
|
|
897
1063
|
export interface GetLowestPriceOfferForCollectibleArgs {
|
|
1064
|
+
chainId: string;
|
|
898
1065
|
contractAddress: string;
|
|
899
1066
|
tokenId: string;
|
|
900
1067
|
filter?: OrderFilter;
|
|
@@ -904,6 +1071,7 @@ export interface GetLowestPriceOfferForCollectibleReturn {
|
|
|
904
1071
|
order: Order;
|
|
905
1072
|
}
|
|
906
1073
|
export interface GetHighestPriceOfferForCollectibleArgs {
|
|
1074
|
+
chainId: string;
|
|
907
1075
|
contractAddress: string;
|
|
908
1076
|
tokenId: string;
|
|
909
1077
|
filter?: OrderFilter;
|
|
@@ -913,6 +1081,7 @@ export interface GetHighestPriceOfferForCollectibleReturn {
|
|
|
913
1081
|
order: Order;
|
|
914
1082
|
}
|
|
915
1083
|
export interface GetLowestPriceListingForCollectibleArgs {
|
|
1084
|
+
chainId: string;
|
|
916
1085
|
contractAddress: string;
|
|
917
1086
|
tokenId: string;
|
|
918
1087
|
filter?: OrderFilter;
|
|
@@ -922,6 +1091,7 @@ export interface GetLowestPriceListingForCollectibleReturn {
|
|
|
922
1091
|
order: Order;
|
|
923
1092
|
}
|
|
924
1093
|
export interface GetHighestPriceListingForCollectibleArgs {
|
|
1094
|
+
chainId: string;
|
|
925
1095
|
contractAddress: string;
|
|
926
1096
|
tokenId: string;
|
|
927
1097
|
filter?: OrderFilter;
|
|
@@ -931,6 +1101,7 @@ export interface GetHighestPriceListingForCollectibleReturn {
|
|
|
931
1101
|
order: Order;
|
|
932
1102
|
}
|
|
933
1103
|
export interface ListListingsForCollectibleArgs {
|
|
1104
|
+
chainId: string;
|
|
934
1105
|
contractAddress: string;
|
|
935
1106
|
tokenId: string;
|
|
936
1107
|
filter?: OrderFilter;
|
|
@@ -942,6 +1113,7 @@ export interface ListListingsForCollectibleReturn {
|
|
|
942
1113
|
page?: Page;
|
|
943
1114
|
}
|
|
944
1115
|
export interface ListOffersForCollectibleArgs {
|
|
1116
|
+
chainId: string;
|
|
945
1117
|
contractAddress: string;
|
|
946
1118
|
tokenId: string;
|
|
947
1119
|
filter?: OrderFilter;
|
|
@@ -952,7 +1124,30 @@ export interface ListOffersForCollectibleReturn {
|
|
|
952
1124
|
offers: Array<Order>;
|
|
953
1125
|
page?: Page;
|
|
954
1126
|
}
|
|
1127
|
+
export interface ListListingsArgs {
|
|
1128
|
+
chainId: string;
|
|
1129
|
+
contractAddress: string;
|
|
1130
|
+
filter?: OrderFilter;
|
|
1131
|
+
page?: Page;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
export interface ListListingsReturn {
|
|
1135
|
+
listings: Array<Order>;
|
|
1136
|
+
page?: Page;
|
|
1137
|
+
}
|
|
1138
|
+
export interface ListOffersArgs {
|
|
1139
|
+
chainId: string;
|
|
1140
|
+
contractAddress: string;
|
|
1141
|
+
filter?: OrderFilter;
|
|
1142
|
+
page?: Page;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
export interface ListOffersReturn {
|
|
1146
|
+
offers: Array<Order>;
|
|
1147
|
+
page?: Page;
|
|
1148
|
+
}
|
|
955
1149
|
export interface GetCountOfListingsForCollectibleArgs {
|
|
1150
|
+
chainId: string;
|
|
956
1151
|
contractAddress: string;
|
|
957
1152
|
tokenId: string;
|
|
958
1153
|
filter?: OrderFilter;
|
|
@@ -962,6 +1157,7 @@ export interface GetCountOfListingsForCollectibleReturn {
|
|
|
962
1157
|
count: number;
|
|
963
1158
|
}
|
|
964
1159
|
export interface GetCountOfOffersForCollectibleArgs {
|
|
1160
|
+
chainId: string;
|
|
965
1161
|
contractAddress: string;
|
|
966
1162
|
tokenId: string;
|
|
967
1163
|
filter?: OrderFilter;
|
|
@@ -971,6 +1167,7 @@ export interface GetCountOfOffersForCollectibleReturn {
|
|
|
971
1167
|
count: number;
|
|
972
1168
|
}
|
|
973
1169
|
export interface GetCollectibleLowestOfferArgs {
|
|
1170
|
+
chainId: string;
|
|
974
1171
|
contractAddress: string;
|
|
975
1172
|
tokenId: string;
|
|
976
1173
|
filter?: OrderFilter;
|
|
@@ -980,6 +1177,7 @@ export interface GetCollectibleLowestOfferReturn {
|
|
|
980
1177
|
order?: Order;
|
|
981
1178
|
}
|
|
982
1179
|
export interface GetCollectibleHighestOfferArgs {
|
|
1180
|
+
chainId: string;
|
|
983
1181
|
contractAddress: string;
|
|
984
1182
|
tokenId: string;
|
|
985
1183
|
filter?: OrderFilter;
|
|
@@ -989,6 +1187,7 @@ export interface GetCollectibleHighestOfferReturn {
|
|
|
989
1187
|
order?: Order;
|
|
990
1188
|
}
|
|
991
1189
|
export interface GetCollectibleLowestListingArgs {
|
|
1190
|
+
chainId: string;
|
|
992
1191
|
contractAddress: string;
|
|
993
1192
|
tokenId: string;
|
|
994
1193
|
filter?: OrderFilter;
|
|
@@ -998,6 +1197,7 @@ export interface GetCollectibleLowestListingReturn {
|
|
|
998
1197
|
order?: Order;
|
|
999
1198
|
}
|
|
1000
1199
|
export interface GetCollectibleHighestListingArgs {
|
|
1200
|
+
chainId: string;
|
|
1001
1201
|
contractAddress: string;
|
|
1002
1202
|
tokenId: string;
|
|
1003
1203
|
filter?: OrderFilter;
|
|
@@ -1007,6 +1207,7 @@ export interface GetCollectibleHighestListingReturn {
|
|
|
1007
1207
|
order?: Order;
|
|
1008
1208
|
}
|
|
1009
1209
|
export interface ListCollectibleListingsArgs {
|
|
1210
|
+
chainId: string;
|
|
1010
1211
|
contractAddress: string;
|
|
1011
1212
|
tokenId: string;
|
|
1012
1213
|
filter?: OrderFilter;
|
|
@@ -1018,6 +1219,7 @@ export interface ListCollectibleListingsReturn {
|
|
|
1018
1219
|
page?: Page;
|
|
1019
1220
|
}
|
|
1020
1221
|
export interface ListCollectibleOffersArgs {
|
|
1222
|
+
chainId: string;
|
|
1021
1223
|
contractAddress: string;
|
|
1022
1224
|
tokenId: string;
|
|
1023
1225
|
filter?: OrderFilter;
|
|
@@ -1029,6 +1231,7 @@ export interface ListCollectibleOffersReturn {
|
|
|
1029
1231
|
page?: Page;
|
|
1030
1232
|
}
|
|
1031
1233
|
export interface GenerateBuyTransactionArgs {
|
|
1234
|
+
chainId: string;
|
|
1032
1235
|
collectionAddress: string;
|
|
1033
1236
|
buyer: string;
|
|
1034
1237
|
marketplace: MarketplaceKind;
|
|
@@ -1041,6 +1244,7 @@ export interface GenerateBuyTransactionReturn {
|
|
|
1041
1244
|
steps: Array<Step>;
|
|
1042
1245
|
}
|
|
1043
1246
|
export interface GenerateSellTransactionArgs {
|
|
1247
|
+
chainId: string;
|
|
1044
1248
|
collectionAddress: string;
|
|
1045
1249
|
seller: string;
|
|
1046
1250
|
marketplace: MarketplaceKind;
|
|
@@ -1053,6 +1257,7 @@ export interface GenerateSellTransactionReturn {
|
|
|
1053
1257
|
steps: Array<Step>;
|
|
1054
1258
|
}
|
|
1055
1259
|
export interface GenerateListingTransactionArgs {
|
|
1260
|
+
chainId: string;
|
|
1056
1261
|
collectionAddress: string;
|
|
1057
1262
|
owner: string;
|
|
1058
1263
|
contractType: ContractType;
|
|
@@ -1065,6 +1270,7 @@ export interface GenerateListingTransactionReturn {
|
|
|
1065
1270
|
steps: Array<Step>;
|
|
1066
1271
|
}
|
|
1067
1272
|
export interface GenerateOfferTransactionArgs {
|
|
1273
|
+
chainId: string;
|
|
1068
1274
|
collectionAddress: string;
|
|
1069
1275
|
maker: string;
|
|
1070
1276
|
contractType: ContractType;
|
|
@@ -1077,6 +1283,7 @@ export interface GenerateOfferTransactionReturn {
|
|
|
1077
1283
|
steps: Array<Step>;
|
|
1078
1284
|
}
|
|
1079
1285
|
export interface GenerateCancelTransactionArgs {
|
|
1286
|
+
chainId: string;
|
|
1080
1287
|
collectionAddress: string;
|
|
1081
1288
|
maker: string;
|
|
1082
1289
|
marketplace: MarketplaceKind;
|
|
@@ -1087,10 +1294,11 @@ export interface GenerateCancelTransactionReturn {
|
|
|
1087
1294
|
steps: Array<Step>;
|
|
1088
1295
|
}
|
|
1089
1296
|
export interface ExecuteArgs {
|
|
1297
|
+
chainId: string;
|
|
1090
1298
|
signature: string;
|
|
1091
|
-
//executeType: ExecuteType is deprecated, but we cant hide it in webrpc for now
|
|
1092
1299
|
method: string;
|
|
1093
1300
|
endpoint: string;
|
|
1301
|
+
executeType: ExecuteType;
|
|
1094
1302
|
body: any;
|
|
1095
1303
|
}
|
|
1096
1304
|
|
|
@@ -1098,6 +1306,7 @@ export interface ExecuteReturn {
|
|
|
1098
1306
|
orderId: string;
|
|
1099
1307
|
}
|
|
1100
1308
|
export interface ListCollectiblesArgs {
|
|
1309
|
+
chainId: string;
|
|
1101
1310
|
side: OrderSide;
|
|
1102
1311
|
contractAddress: string;
|
|
1103
1312
|
filter?: CollectiblesFilter;
|
|
@@ -1109,6 +1318,7 @@ export interface ListCollectiblesReturn {
|
|
|
1109
1318
|
page?: Page;
|
|
1110
1319
|
}
|
|
1111
1320
|
export interface GetCountOfAllCollectiblesArgs {
|
|
1321
|
+
chainId: string;
|
|
1112
1322
|
contractAddress: string;
|
|
1113
1323
|
}
|
|
1114
1324
|
|
|
@@ -1116,6 +1326,7 @@ export interface GetCountOfAllCollectiblesReturn {
|
|
|
1116
1326
|
count: number;
|
|
1117
1327
|
}
|
|
1118
1328
|
export interface GetCountOfFilteredCollectiblesArgs {
|
|
1329
|
+
chainId: string;
|
|
1119
1330
|
side: OrderSide;
|
|
1120
1331
|
contractAddress: string;
|
|
1121
1332
|
filter?: CollectiblesFilter;
|
|
@@ -1125,6 +1336,7 @@ export interface GetCountOfFilteredCollectiblesReturn {
|
|
|
1125
1336
|
count: number;
|
|
1126
1337
|
}
|
|
1127
1338
|
export interface GetFloorOrderArgs {
|
|
1339
|
+
chainId: string;
|
|
1128
1340
|
contractAddress: string;
|
|
1129
1341
|
filter?: CollectiblesFilter;
|
|
1130
1342
|
}
|
|
@@ -1133,6 +1345,7 @@ export interface GetFloorOrderReturn {
|
|
|
1133
1345
|
collectible: CollectibleOrder;
|
|
1134
1346
|
}
|
|
1135
1347
|
export interface ListCollectionActivitiesArgs {
|
|
1348
|
+
chainId: string;
|
|
1136
1349
|
contractAddress: string;
|
|
1137
1350
|
page?: Page;
|
|
1138
1351
|
}
|
|
@@ -1142,6 +1355,7 @@ export interface ListCollectionActivitiesReturn {
|
|
|
1142
1355
|
page?: Page;
|
|
1143
1356
|
}
|
|
1144
1357
|
export interface ListCollectibleActivitiesArgs {
|
|
1358
|
+
chainId: string;
|
|
1145
1359
|
contractAddress: string;
|
|
1146
1360
|
tokenId: string;
|
|
1147
1361
|
page?: Page;
|
|
@@ -1152,6 +1366,7 @@ export interface ListCollectibleActivitiesReturn {
|
|
|
1152
1366
|
page?: Page;
|
|
1153
1367
|
}
|
|
1154
1368
|
export interface ListCollectiblesWithLowestListingArgs {
|
|
1369
|
+
chainId: string;
|
|
1155
1370
|
contractAddress: string;
|
|
1156
1371
|
filter?: CollectiblesFilter;
|
|
1157
1372
|
page?: Page;
|
|
@@ -1162,6 +1377,7 @@ export interface ListCollectiblesWithLowestListingReturn {
|
|
|
1162
1377
|
page?: Page;
|
|
1163
1378
|
}
|
|
1164
1379
|
export interface ListCollectiblesWithHighestOfferArgs {
|
|
1380
|
+
chainId: string;
|
|
1165
1381
|
contractAddress: string;
|
|
1166
1382
|
filter?: CollectiblesFilter;
|
|
1167
1383
|
page?: Page;
|
|
@@ -1172,16 +1388,19 @@ export interface ListCollectiblesWithHighestOfferReturn {
|
|
|
1172
1388
|
page?: Page;
|
|
1173
1389
|
}
|
|
1174
1390
|
export interface SyncOrderArgs {
|
|
1391
|
+
chainId: string;
|
|
1175
1392
|
order: Order;
|
|
1176
1393
|
}
|
|
1177
1394
|
|
|
1178
1395
|
export interface SyncOrderReturn {}
|
|
1179
1396
|
export interface SyncOrdersArgs {
|
|
1397
|
+
chainId: string;
|
|
1180
1398
|
orders: Array<Order>;
|
|
1181
1399
|
}
|
|
1182
1400
|
|
|
1183
1401
|
export interface SyncOrdersReturn {}
|
|
1184
1402
|
export interface GetOrdersArgs {
|
|
1403
|
+
chainId: string;
|
|
1185
1404
|
input: Array<GetOrdersInput>;
|
|
1186
1405
|
page?: Page;
|
|
1187
1406
|
}
|
|
@@ -1191,6 +1410,7 @@ export interface GetOrdersReturn {
|
|
|
1191
1410
|
page?: Page;
|
|
1192
1411
|
}
|
|
1193
1412
|
export interface CheckoutOptionsMarketplaceArgs {
|
|
1413
|
+
chainId: string;
|
|
1194
1414
|
wallet: string;
|
|
1195
1415
|
orders: Array<CheckoutOptionsMarketplaceOrder>;
|
|
1196
1416
|
additionalFee: number;
|
|
@@ -1200,6 +1420,7 @@ export interface CheckoutOptionsMarketplaceReturn {
|
|
|
1200
1420
|
options: CheckoutOptions;
|
|
1201
1421
|
}
|
|
1202
1422
|
export interface CheckoutOptionsSalesContractArgs {
|
|
1423
|
+
chainId: string;
|
|
1203
1424
|
wallet: string;
|
|
1204
1425
|
contractAddress: string;
|
|
1205
1426
|
collectionAddress: string;
|
|
@@ -1209,6 +1430,33 @@ export interface CheckoutOptionsSalesContractArgs {
|
|
|
1209
1430
|
export interface CheckoutOptionsSalesContractReturn {
|
|
1210
1431
|
options: CheckoutOptions;
|
|
1211
1432
|
}
|
|
1433
|
+
export interface SupportedMarketplacesArgs {
|
|
1434
|
+
chainId: string;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
export interface SupportedMarketplacesReturn {
|
|
1438
|
+
marketplaces: Array<MarketplaceKind>;
|
|
1439
|
+
}
|
|
1440
|
+
export interface ListPrimarySaleItemsArgs {
|
|
1441
|
+
chainId: string;
|
|
1442
|
+
primarySaleContractAddress: string;
|
|
1443
|
+
filter?: PrimarySaleItemsFilter;
|
|
1444
|
+
page?: Page;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
export interface ListPrimarySaleItemsReturn {
|
|
1448
|
+
primarySaleItems: Array<CollectiblePrimarySaleItem>;
|
|
1449
|
+
page?: Page;
|
|
1450
|
+
}
|
|
1451
|
+
export interface GetCountOfPrimarySaleItemsArgs {
|
|
1452
|
+
chainId: string;
|
|
1453
|
+
primarySaleContractAddress: string;
|
|
1454
|
+
filter?: PrimarySaleItemsFilter;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
export interface GetCountOfPrimarySaleItemsReturn {
|
|
1458
|
+
count: number;
|
|
1459
|
+
}
|
|
1212
1460
|
|
|
1213
1461
|
//
|
|
1214
1462
|
// Client
|
|
@@ -1356,11 +1604,33 @@ export class Admin implements Admin {
|
|
|
1356
1604
|
return this.fetch(
|
|
1357
1605
|
this.url("SyncCollection"),
|
|
1358
1606
|
createHTTPRequest(args, headers, signal)
|
|
1607
|
+
).then(
|
|
1608
|
+
(res) => {
|
|
1609
|
+
return buildResponse(res).then((_data) => {
|
|
1610
|
+
return {};
|
|
1611
|
+
});
|
|
1612
|
+
},
|
|
1613
|
+
(error) => {
|
|
1614
|
+
throw WebrpcRequestFailedError.new({
|
|
1615
|
+
cause: `fetch(): ${error.message || ""}`,
|
|
1616
|
+
});
|
|
1617
|
+
}
|
|
1618
|
+
);
|
|
1619
|
+
};
|
|
1620
|
+
|
|
1621
|
+
createPrimarySaleContract = (
|
|
1622
|
+
args: CreatePrimarySaleContractArgs,
|
|
1623
|
+
headers?: object,
|
|
1624
|
+
signal?: AbortSignal
|
|
1625
|
+
): Promise<CreatePrimarySaleContractReturn> => {
|
|
1626
|
+
return this.fetch(
|
|
1627
|
+
this.url("CreatePrimarySaleContract"),
|
|
1628
|
+
createHTTPRequest(args, headers, signal)
|
|
1359
1629
|
).then(
|
|
1360
1630
|
(res) => {
|
|
1361
1631
|
return buildResponse(res).then((_data) => {
|
|
1362
1632
|
return {
|
|
1363
|
-
|
|
1633
|
+
primarySaleContract: <PrimarySaleContract>_data.primarySaleContract,
|
|
1364
1634
|
};
|
|
1365
1635
|
});
|
|
1366
1636
|
},
|
|
@@ -1372,6 +1642,28 @@ export class Admin implements Admin {
|
|
|
1372
1642
|
);
|
|
1373
1643
|
};
|
|
1374
1644
|
|
|
1645
|
+
deletePrimarySaleContract = (
|
|
1646
|
+
args: DeletePrimarySaleContractArgs,
|
|
1647
|
+
headers?: object,
|
|
1648
|
+
signal?: AbortSignal
|
|
1649
|
+
): Promise<DeletePrimarySaleContractReturn> => {
|
|
1650
|
+
return this.fetch(
|
|
1651
|
+
this.url("DeletePrimarySaleContract"),
|
|
1652
|
+
createHTTPRequest(args, headers, signal)
|
|
1653
|
+
).then(
|
|
1654
|
+
(res) => {
|
|
1655
|
+
return buildResponse(res).then((_data) => {
|
|
1656
|
+
return {};
|
|
1657
|
+
});
|
|
1658
|
+
},
|
|
1659
|
+
(error) => {
|
|
1660
|
+
throw WebrpcRequestFailedError.new({
|
|
1661
|
+
cause: `fetch(): ${error.message || ""}`,
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
);
|
|
1665
|
+
};
|
|
1666
|
+
|
|
1375
1667
|
createCurrency = (
|
|
1376
1668
|
args: CreateCurrencyArgs,
|
|
1377
1669
|
headers?: object,
|
|
@@ -1445,12 +1737,13 @@ export class Admin implements Admin {
|
|
|
1445
1737
|
};
|
|
1446
1738
|
|
|
1447
1739
|
listCurrencies = (
|
|
1740
|
+
args: ListCurrenciesArgs,
|
|
1448
1741
|
headers?: object,
|
|
1449
1742
|
signal?: AbortSignal
|
|
1450
1743
|
): Promise<ListCurrenciesReturn> => {
|
|
1451
1744
|
return this.fetch(
|
|
1452
1745
|
this.url("ListCurrencies"),
|
|
1453
|
-
createHTTPRequest(
|
|
1746
|
+
createHTTPRequest(args, headers, signal)
|
|
1454
1747
|
).then(
|
|
1455
1748
|
(res) => {
|
|
1456
1749
|
return buildResponse(res).then((_data) => {
|
|
@@ -1490,6 +1783,28 @@ export class Admin implements Admin {
|
|
|
1490
1783
|
}
|
|
1491
1784
|
);
|
|
1492
1785
|
};
|
|
1786
|
+
|
|
1787
|
+
addCollectibles = (
|
|
1788
|
+
args: AddCollectiblesArgs,
|
|
1789
|
+
headers?: object,
|
|
1790
|
+
signal?: AbortSignal
|
|
1791
|
+
): Promise<AddCollectiblesReturn> => {
|
|
1792
|
+
return this.fetch(
|
|
1793
|
+
this.url("AddCollectibles"),
|
|
1794
|
+
createHTTPRequest(args, headers, signal)
|
|
1795
|
+
).then(
|
|
1796
|
+
(res) => {
|
|
1797
|
+
return buildResponse(res).then((_data) => {
|
|
1798
|
+
return {};
|
|
1799
|
+
});
|
|
1800
|
+
},
|
|
1801
|
+
(error) => {
|
|
1802
|
+
throw WebrpcRequestFailedError.new({
|
|
1803
|
+
cause: `fetch(): ${error.message || ""}`,
|
|
1804
|
+
});
|
|
1805
|
+
}
|
|
1806
|
+
);
|
|
1807
|
+
};
|
|
1493
1808
|
}
|
|
1494
1809
|
export class Marketplace implements Marketplace {
|
|
1495
1810
|
protected hostname: string;
|
|
@@ -1506,12 +1821,13 @@ export class Marketplace implements Marketplace {
|
|
|
1506
1821
|
}
|
|
1507
1822
|
|
|
1508
1823
|
listCurrencies = (
|
|
1824
|
+
args: ListCurrenciesArgs,
|
|
1509
1825
|
headers?: object,
|
|
1510
1826
|
signal?: AbortSignal
|
|
1511
1827
|
): Promise<ListCurrenciesReturn> => {
|
|
1512
1828
|
return this.fetch(
|
|
1513
1829
|
this.url("ListCurrencies"),
|
|
1514
|
-
createHTTPRequest(
|
|
1830
|
+
createHTTPRequest(args, headers, signal)
|
|
1515
1831
|
).then(
|
|
1516
1832
|
(res) => {
|
|
1517
1833
|
return buildResponse(res).then((_data) => {
|
|
@@ -1722,6 +2038,56 @@ export class Marketplace implements Marketplace {
|
|
|
1722
2038
|
);
|
|
1723
2039
|
};
|
|
1724
2040
|
|
|
2041
|
+
listListings = (
|
|
2042
|
+
args: ListListingsArgs,
|
|
2043
|
+
headers?: object,
|
|
2044
|
+
signal?: AbortSignal
|
|
2045
|
+
): Promise<ListListingsReturn> => {
|
|
2046
|
+
return this.fetch(
|
|
2047
|
+
this.url("ListListings"),
|
|
2048
|
+
createHTTPRequest(args, headers, signal)
|
|
2049
|
+
).then(
|
|
2050
|
+
(res) => {
|
|
2051
|
+
return buildResponse(res).then((_data) => {
|
|
2052
|
+
return {
|
|
2053
|
+
listings: <Array<Order>>_data.listings,
|
|
2054
|
+
page: <Page>_data.page,
|
|
2055
|
+
};
|
|
2056
|
+
});
|
|
2057
|
+
},
|
|
2058
|
+
(error) => {
|
|
2059
|
+
throw WebrpcRequestFailedError.new({
|
|
2060
|
+
cause: `fetch(): ${error.message || ""}`,
|
|
2061
|
+
});
|
|
2062
|
+
}
|
|
2063
|
+
);
|
|
2064
|
+
};
|
|
2065
|
+
|
|
2066
|
+
listOffers = (
|
|
2067
|
+
args: ListOffersArgs,
|
|
2068
|
+
headers?: object,
|
|
2069
|
+
signal?: AbortSignal
|
|
2070
|
+
): Promise<ListOffersReturn> => {
|
|
2071
|
+
return this.fetch(
|
|
2072
|
+
this.url("ListOffers"),
|
|
2073
|
+
createHTTPRequest(args, headers, signal)
|
|
2074
|
+
).then(
|
|
2075
|
+
(res) => {
|
|
2076
|
+
return buildResponse(res).then((_data) => {
|
|
2077
|
+
return {
|
|
2078
|
+
offers: <Array<Order>>_data.offers,
|
|
2079
|
+
page: <Page>_data.page,
|
|
2080
|
+
};
|
|
2081
|
+
});
|
|
2082
|
+
},
|
|
2083
|
+
(error) => {
|
|
2084
|
+
throw WebrpcRequestFailedError.new({
|
|
2085
|
+
cause: `fetch(): ${error.message || ""}`,
|
|
2086
|
+
});
|
|
2087
|
+
}
|
|
2088
|
+
);
|
|
2089
|
+
};
|
|
2090
|
+
|
|
1725
2091
|
getCountOfListingsForCollectible = (
|
|
1726
2092
|
args: GetCountOfListingsForCollectibleArgs,
|
|
1727
2093
|
headers?: object,
|
|
@@ -2373,6 +2739,81 @@ export class Marketplace implements Marketplace {
|
|
|
2373
2739
|
}
|
|
2374
2740
|
);
|
|
2375
2741
|
};
|
|
2742
|
+
|
|
2743
|
+
supportedMarketplaces = (
|
|
2744
|
+
args: SupportedMarketplacesArgs,
|
|
2745
|
+
headers?: object,
|
|
2746
|
+
signal?: AbortSignal
|
|
2747
|
+
): Promise<SupportedMarketplacesReturn> => {
|
|
2748
|
+
return this.fetch(
|
|
2749
|
+
this.url("SupportedMarketplaces"),
|
|
2750
|
+
createHTTPRequest(args, headers, signal)
|
|
2751
|
+
).then(
|
|
2752
|
+
(res) => {
|
|
2753
|
+
return buildResponse(res).then((_data) => {
|
|
2754
|
+
return {
|
|
2755
|
+
marketplaces: <Array<MarketplaceKind>>_data.marketplaces,
|
|
2756
|
+
};
|
|
2757
|
+
});
|
|
2758
|
+
},
|
|
2759
|
+
(error) => {
|
|
2760
|
+
throw WebrpcRequestFailedError.new({
|
|
2761
|
+
cause: `fetch(): ${error.message || ""}`,
|
|
2762
|
+
});
|
|
2763
|
+
}
|
|
2764
|
+
);
|
|
2765
|
+
};
|
|
2766
|
+
|
|
2767
|
+
listPrimarySaleItems = (
|
|
2768
|
+
args: ListPrimarySaleItemsArgs,
|
|
2769
|
+
headers?: object,
|
|
2770
|
+
signal?: AbortSignal
|
|
2771
|
+
): Promise<ListPrimarySaleItemsReturn> => {
|
|
2772
|
+
return this.fetch(
|
|
2773
|
+
this.url("ListPrimarySaleItems"),
|
|
2774
|
+
createHTTPRequest(args, headers, signal)
|
|
2775
|
+
).then(
|
|
2776
|
+
(res) => {
|
|
2777
|
+
return buildResponse(res).then((_data) => {
|
|
2778
|
+
return {
|
|
2779
|
+
primarySaleItems: <Array<CollectiblePrimarySaleItem>>(
|
|
2780
|
+
_data.primarySaleItems
|
|
2781
|
+
),
|
|
2782
|
+
page: <Page>_data.page,
|
|
2783
|
+
};
|
|
2784
|
+
});
|
|
2785
|
+
},
|
|
2786
|
+
(error) => {
|
|
2787
|
+
throw WebrpcRequestFailedError.new({
|
|
2788
|
+
cause: `fetch(): ${error.message || ""}`,
|
|
2789
|
+
});
|
|
2790
|
+
}
|
|
2791
|
+
);
|
|
2792
|
+
};
|
|
2793
|
+
|
|
2794
|
+
getCountOfPrimarySaleItems = (
|
|
2795
|
+
args: GetCountOfPrimarySaleItemsArgs,
|
|
2796
|
+
headers?: object,
|
|
2797
|
+
signal?: AbortSignal
|
|
2798
|
+
): Promise<GetCountOfPrimarySaleItemsReturn> => {
|
|
2799
|
+
return this.fetch(
|
|
2800
|
+
this.url("GetCountOfPrimarySaleItems"),
|
|
2801
|
+
createHTTPRequest(args, headers, signal)
|
|
2802
|
+
).then(
|
|
2803
|
+
(res) => {
|
|
2804
|
+
return buildResponse(res).then((_data) => {
|
|
2805
|
+
return {
|
|
2806
|
+
count: <number>_data.count,
|
|
2807
|
+
};
|
|
2808
|
+
});
|
|
2809
|
+
},
|
|
2810
|
+
(error) => {
|
|
2811
|
+
throw WebrpcRequestFailedError.new({
|
|
2812
|
+
cause: `fetch(): ${error.message || ""}`,
|
|
2813
|
+
});
|
|
2814
|
+
}
|
|
2815
|
+
);
|
|
2816
|
+
};
|
|
2376
2817
|
}
|
|
2377
2818
|
|
|
2378
2819
|
const createHTTPRequest = (
|