-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fetch dynamic batches data from bg app API endpoint #54
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Not very happy with the hardcoded opensea links for the batches. Some alternatives:
|
Great stuff @Pabl0cks ! Haven't got into detail yet... but some thoughts on the opensea thing.
So I think the cleanest way to go would be:
Open tho! What do you all think? |
Thanks for the feedback @carletex !! ♥ I was inclined to do option 1, to merge without opensea link, but talking with @phipsae he told me I could get the nft contract from the batch contract (which we have in the /batches endpoint). I just pushed this logic in 7409c2d but we think is not a good idea to have such implementation, and that logic in the bg3.5 app, I'm happy to revert. I found that current ongoing batch is throwing opensea 404 error when I access to the link, I could control that in some way if we are up for this solution 🙏 |
Phillip also suggested to add graduates data to the table, added here a125705, and found out it was a good checker to show or not show opensea graduation NFT link |
Sorry, I didn't explain myself correctly. It wasn't "option 1", it was "step 1". I think the source of truth should live on 3.5 (step 2 + step 3), not here. We don't want to have this data/logic spread out over repos. Suggested step 1, so we could merge this PR until v3.5 logic is ready. But other option is just to wait.
I guess this is happening because not NFT have been minted yet. One easy fix is not showing the opensea link on the current/active batch. |
I'm not sure if I understand correctly. |
yes.
To expand a bit: Manual
Automatic
LEt me know if you have any questions! |
Reverted nft contract fetch logic and deleted opensea column, will add it again when we have it in bg3.5 API endpoint🙏 |
Here’s the corresponding PR to implement it. |
Fetching data dynamically from the new bg app API endpoint for Batches, using the same env var that we're already using on other parts of the website.
Did some formatting and calculations that maybe should be moved elsewhere, wasn't sure about it.
Closes #47