OpenZeppelin / OpenZeppelin/cairo-contracts
Implement ERC-4906: EIP-721 Metadata Update Extension
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 909
- Forks
- 397
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 4
Description
🧐 Motivation
With the upcoming release of Dojo 1.0, we're expecting a lot of fully on-chain games to be release on Starknet, and with them new ERC-721 and ERC-1155 collections.
Most of those tokens are dynamic, their metadata and image can change from time to time, and currently NFT markets are not able to pick up any updates after mint, we need to manually request a metadata update, one by one.
The first step for Starknet NFT markets to keep tokens updated is to enable them to do so, and that's what ERC-4906 was made for. It specifies the events MetadataUpdate and BatchMetadataUpdate, which can trigger markets to update metadata and token images.
📝 Details
implementation details:
https://eips.ethereum.org/EIPS/eip-4906
There is a cairo implementation from @carbonable-labs, as a component for OZ v0.10.0 here:
https://github.com/carbonable-labs/cairo-erc-4906
ERC-4906 is supported by OpenSea:
https://docs.opensea.io/docs/metadata-standards#metadata-updates
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the ERC-4906 specification and the linked carbonable-labs Cairo implementation, then locate the existing ERC-721 and ERC-1155 components in this repository. The work is done when the extension supports the specified MetadataUpdate and BatchMetadataUpdate events and is covered by the repository's relevant tests.
Written by the indexing model from the issue text.
Assessment
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100