Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
winnerz123 opened this issue Jun 27, 2024 · 2 comments
Open

Comments

@winnerz123
Copy link

winnerz123 commented Jun 27, 2024

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
Copy link
Member

Hello @winnerz123, I notified the team about it.

@winnerz123
Copy link
Author

Hello @winnerz123, I notified the team about it.

Thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants