metaplex-foundation / js

A JavaScript SDK for interacting with Metaplex's programs
357 stars 182 forks source link

Migrating "old" Auction code #407

Closed gxxcastillo closed 1 year ago

gxxcastillo commented 1 year ago

Hi, a while back I wrote a client for creating auctions (w/ a reserve price, tick size, etc) using a DAO where all bidders get a participation NFT. When I recently went to update this client I found that a lot of the underlying code it depends on has changed significantly.

Currently, I'm leaning on packages like @solana/web3.js, @metaplex-foundation/mpl-core, @metaplex-foundation/mpl-auction, @metaplex-foundation/mpl-token-vault, @metaplex-foundation/mpl-token-metadata, @metaplex-foundation/mpl-metaplex, etc., in order to create a store, set creators, create a vault, place NFTs into the vault, create an auction, create an auction manager, validate the auction, and finally upon approval of the DAO proposal, start the auction and have all funds go directly to the DAO.

I don't see code to handle this type of flow with @metaplex-foundation/js at the moment, are there plans to support it? I'm not familiar with Auction House yet, will I need to use that instead of what I'm doing now?

KartikSoneji commented 1 year ago

I'm not too familiar with auction house but does https://github.com/metaplex-foundation/js/pull/366 help?

gxxcastillo commented 1 year ago

Thanks @KartikSoneji, that's what I'm not sure about - is Auction House intended to replace Auction? My understanding is that it's something completely different. It would be great to get confirmation on this from someone.

lorisleiva commented 1 year ago

Hey @gxxcastillo, yes the new Auction House program basically replaces the need for Auctions and Token Vault. There is an Auction House module on this JS SDK but it's not 100% finished yet and therefore not quite ready to be documented I'm afraid.