Multi SPL Token Supported Marketplaces #178
Replies: 2 comments 1 reply
-
Questions & SuggestionsField to set default token?
Field to store list of allowed tokens?
Option for Admin to add new token?
Do we show all activities and bids in the respective views irrespective of token selected by user?
Other (Suggested) Updates in Api/DatabaseauctionHouse queryAuctionHouse query can be made a part of queryroot (This will help us directly update marketplace view when user changes the selected token) As field arguments we can have
nfts, nft query
BidReceipt, PurchaseReceipt, ListingReceipt, NftActivity
|
Beta Was this translation helpful? Give feedback.
-
More Suggestions1) NFTActivity - Require a new field (mintToken) to know the type of token used for sell/purchase (Or instead of adding mintToken field, we can send full auctionHouse data by updating the type of auctionHouse field already present from String to AuctionHouse) Similarly for ListingReceipt, PurchaseReceipt, BidReceipt 2) charts query - OPTION 1: In result, Instead of sending a single PriceChart send a list of PriceCharts corresponding to each auctionHouse. (Note: For this we will also be required to add an auctionHouse field inside the PriceChart struct) OPTION 2: In result send combined Pricechart of all kinds of spl-tokens by converting the spl-token price to lamports (using oracles) |
Beta Was this translation helpful? Give feedback.
-
Background
Currently the marketplace has a 1-1 association of marketplace to Metaplex auction house. An auction house can operate in any spl token but not multiple treasury mints per auction house. If a marketplace wants to support multiple spl tokens then it needs an auction house per spl token.
This is an example marketplace JSON for a 1-1 associated marketplace to to auction house.
Proposal
Add a field of auctionHouses to the marketplace JSON spec and mark address.auctionHouse as deprecated. This field will track the auction houses generated for the desired payment tokens for the marketplace.
Indexing
The array field of auctionHouses is tracked in the
store_auction_houses
table which represents the 1 to many relationship of marketplace to auction houses.API
Any queries that require the marketplace auction house should either return an array of results (1 per auction house) or accept
auctionHouse: PublicKey!
as a field argument.Transactions
When the native mint of
So11111111111111111111111111111111111111112
the associated token accounts for the splt token must be included in listing and sale actions.Beta Was this translation helpful? Give feedback.
All reactions