feat: migrate NFT history endpoint to v3 and retire v1 NFT mints - #2648
Open
rafa-stacks wants to merge 3 commits into
Open
feat: migrate NFT history endpoint to v3 and retire v1 NFT mints#2648rafa-stacks wants to merge 3 commits into
rafa-stacks wants to merge 3 commits into
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates NFT history and mint APIs to V3 while deprecating their V1 counterparts.
Changes:
- Adds cursor-paginated V3 NFT endpoints with serialization and tests.
- Adds optimized NFT event indexes.
- Updates package and repository ownership metadata.
Reviewed changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
tests/api/tokens/nft-events.test.ts |
Tests V3 NFT endpoints. |
src/datastore/v3/types.ts |
Defines NFT database result types. |
src/datastore/v3/pg-store-v3.ts |
Implements NFT queries and pagination. |
src/api/serializers/v3/nft-events.ts |
Serializes NFT responses. |
src/api/schemas/v3/entities/nft-events.ts |
Defines response schemas. |
src/api/routes/v3/tokens-nft.ts |
Adds V3 routes. |
src/api/routes/v1/tokens.ts |
Deprecates V1 routes. |
src/api/init.ts |
Registers NFT routes. |
migrations/1779800000013_nft-events-history-mints-indexes.ts |
Adds query indexes. |
package.json |
Updates package ownership metadata. |
package-lock.json |
Synchronizes package identity. |
client/package.json |
Updates client repository metadata. |
.github/RELEASE_TEMPLATE.md |
Updates container image path. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
rafa-stacks
marked this pull request as ready for review
August 28, 2026 21:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates the v1 NFT history endpoint to v3, and retires the v1 NFT mints endpoint without a replacement.
GET /extended/v3/tokens/nft/{asset_identifier}/{value}/historyGET /extended/v1/tokens/nft/historyGET /extended/v1/tokens/nft/mintsSample response
GET /extended/v3/tokens/nft/SP2X0TZ59D5SZ8ACQ6YMCHHNR2ZN51Z32E2CJ173.the-explorer-guild::The-Explorer-Guild/2051/history{ "total": 3, "limit": 50, "cursor": { "next": null, "previous": null, "current": "2:0:0:1" }, "results": [ { "sender": "SP1JTCR202ECC6333N7ZXD7MK7E3ZTEEE1MJ73C60.marketplace-v1", "recipient": "SP318Q55DEKHRXJK696033DQN5C54D9K2EE6DHRWP", "transaction": { "tx_id": "0x…c2", "event_index": 1 }, "block": { "height": 2, "hash": "0x…a2", "index_hash": "0x…b2", "time": 94869287, "tx_index": 0 } }, { "sender": "SP2X0TZ59D5SZ8ACQ6YMCHHNR2ZN51Z32E2CJ173", "recipient": "SP1JTCR202ECC6333N7ZXD7MK7E3ZTEEE1MJ73C60.marketplace-v1", "transaction": { "tx_id": "0x…c2", "event_index": 0 }, "block": { "height": 2, "hash": "0x…a2", "index_hash": "0x…b2", "time": 94869287, "tx_index": 0 } }, { "sender": null, "recipient": "SP2X0TZ59D5SZ8ACQ6YMCHHNR2ZN51Z32E2CJ173", "transaction": { "tx_id": "0x…c1", "event_index": 0 }, "block": { "height": 1, "hash": "0x…a1", "index_hash": "0x…b1", "time": 94869287, "tx_index": 0 } } ] }