metaplex-foundation / js-examples

Examples and Starter Kits using the new JS SDK
MIT License
79 stars 92 forks source link

Add mint ui example #31

Closed MarkSackerberg closed 1 year ago

MarkSackerberg commented 1 year ago

How this example can and should be used is further described in this PR to the docs https://github.com/metaplex-foundation/docs/pull/391

The docs will explain everything, nevertheless we should allow the user to just clone the page to allow them to focus on understanding instead of copy and pasting code.

This page is based on the connect-wallet example

MarkSackerberg commented 1 year ago

This version can be reviewed. It is focusing on showing what can be done and e.g. how to mint, how to check the guards before minting etc.

It is not leveraging special guard routes. It is also NOT perfect from design point of view but should be enough to be an example how to build yourself as a user.

In the future how to leverage LUT and special guard instructions might be added.

MarkSackerberg commented 1 year ago

should be all done. Thank you very much for reviewing!

MarkSackerberg commented 1 year ago

@lorisleiva from my point of view merging this should be fine. I will add additional functions (LUT, Mint multiple NFTs at once...) in a future revision, but i would like to merge this first so that we can reference it already.

lorisleiva commented 1 year ago

Thank you! 🥳