Generate queryable ownership records and transfer logs in any ERC721. This example is extending OpenZepplin functions. You can see the contract here https://mumbai.polygonscan.com/address/0xB837771546756D58d2EB79CDb0281Bc5F84bC704 and the owner logs here https://testnets.opensea.io/assets/mumbai/0x4b48841d4b32c4650e4abc117a03fe8b51f38f68/5969 and transfer logs here https://testnets.opensea.io/assets/mumbai/0x4b48841d4b32c4650e4abc117a03fe8b51f38f68/5970.
✓ Published0🌍 Public
Aandrewxhill
Last edited May 4, 2023
Created on May 4, 2023
This example extends OpenZeppelin’s ERC721 contract to automatically generate queryable ownership records and transfer logs for any NFT. It uses the Tableland EVM SDK’s `ITablelandTables` and `TablelandDeployments` to create and update two SQL tables: one storing the current owner per token ID, and another recording each transfer’s timestamp, block, from, and to addresses. Every mint and transfer operation triggers a `runSQL` insert or upsert, making the full history visible on PolygonScan and OpenSea’s testnet interfaces.
AI-generated description