thirdweb-example / marketplace-template

Build your own NFT Marketplace with thirdweb SDKs
https://marketplace.thirdweb-preview.com
25 stars 32 forks source link

It is about the integration of package contract and package rewards. #20

Open winnerz123 opened 3 months ago

winnerz123 commented 3 months ago

First of all hello. You need to create 2 simple files and code the inside compatible with thirdweb sdk v5. (If you say why don't you code this? Answer: I don't know very well and I get stuck in many steps.)

  1. "MyPacks.tsx" : When the user logs in to the page, he/she will be able to view the erc1155 "Pack" nft's he/she has on the specified "Pack contract".
  2. "PackRewardCard.tsx" will be created for the same page and in it: the user will click on the button named "Open Pack" under the "Pack" nft's they are viewing and the erc1155 nft's in the "Pack" nft's will drop. 3rd and lastly, when the user performs the "Open Pack" action on the "MyPacks.tsx" page, he/she will be able to see all the erc1155 nft's dropped as rewards at the bottom of the page.

If someone can provide me this section, I can integrate it into other necessary pages.

Believe me, I have been waiting for this for a very long time and my project is pending.

Thanks in advance for your help.

Note : I am attaching old files compatible with SDK v4 here as an example. example.zip @Yash094 @kien-ngo @warengonzaga @MananTank

warengonzaga commented 3 months ago

Hello @winnerz123, I notified the team about it.

winnerz123 commented 3 months ago

Hello @winnerz123, I notified the team about it.

Thank you so much