Skip to content

Conversation

@kumaryash90
Copy link
Member

@kumaryash90 kumaryash90 commented Feb 25, 2025

TOOL-3515


PR-Codex overview

This PR introduces support for fetching NFTs by their index in ERC721Enumerable contracts. It adds a tokenByIndex option in various files to enable this functionality, enhancing the NFT retrieval process.

Detailed summary

  • Added isTokenByIndexSupported export in erc721.ts.
  • Introduced tokenByIndex option in getNFTs.ts and getNFT.ts.
  • Updated TokenIdPage to include tokenByIndex flag.
  • Enhanced ContractNFTPage to pass tokenByIndex to NFTGetAllTable.
  • Modified NFTGetAllTable to handle tokenByIndex prop and adjust token ID display.
  • Implemented logic in getNFT to fetch token ID by index if tokenByIndex is true.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@kumaryash90 kumaryash90 requested review from a team as code owners February 25, 2025 23:54
@changeset-bot
Copy link

changeset-bot bot commented Feb 25, 2025

⚠️ No Changeset found

Latest commit: c6c6b1b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Feb 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2025 0:46am
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2025 0:46am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2025 0:46am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2025 0:46am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2025 0:46am

@graphite-app
Copy link
Contributor

graphite-app bot commented Feb 25, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions github-actions bot added Dashboard Involves changes to the Dashboard. packages SDK Involves changes to the thirdweb SDK labels Feb 25, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Feb 25, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.25 KB (0%) 925 ms (0%) 2.5 s (-22.37% 🔽) 3.5 s
thirdweb (cjs) 121.91 KB (0%) 2.5 s (0%) 6 s (-21.33% 🔽) 8.4 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 112 ms (0%) 362 ms (+31.3% 🔺) 474 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 62 ms (-14.42% 🔽) 72 ms
thirdweb/react (minimal + tree-shaking) 19.31 KB (0%) 387 ms (0%) 653 ms (+1.85% 🔺) 1.1 s

@kumaryash90 kumaryash90 added the hotfix This pull request should be prioritized in the merge queue. label Feb 26, 2025
Copy link
Member Author

Merge activity

  • Feb 25, 7:33 PM EST: The merge label 'hotfix' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.

@kumaryash90 kumaryash90 changed the title Handle token by index [TOOL-3515] Handle token by index Feb 26, 2025
@linear
Copy link

linear bot commented Feb 26, 2025

@jnsdls jnsdls merged commit 2a4b5dc into main Feb 26, 2025
29 of 30 checks passed
@jnsdls jnsdls deleted the yash/handle-token-by-index branch February 26, 2025 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard. hotfix This pull request should be prioritized in the merge queue. packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants