[MIP-010] Optional deterministic cNFT assetID #40
Replies: 3 comments 6 replies
-
Hello, and thank you for the submission! I have a few questions about the proposal:
|
Beta Was this translation helpful? Give feedback.
-
This proposal passed as MIP-10 in the Metaplex DAO. This will be a Metaplex implementation. |
Beta Was this translation helpful? Give feedback.
-
The Metaplex Foundation will work with the submitter vl-dev to implement MIP-10. Estimated completion date for development and security audit is February 2025. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Submitter: vl-dev
Email: vladislav@matus.pro
Submitter wallet: 3uEPkEZsU2tQVTsoFmqrobT32RTrmSJ4zC7jtWAto77p
Submission transaction: QKtxYo55cyLNFSCVVM8wvcfnnj5Tb3bsqW1agvMjo4NCgEi2W4TJf6XnhjAGeTd7H8RWFmhesZphjET3v5a3LAw
Title: Optional deterministic cNFT assetID
Links:
The issue outline:
In the current cNFT minting solution there is no way to determine a cNFT Asset ID before the cNFT Mint transaction is processed on-chain. Here are a two examples when this is limiting or inconvenient:
Current implementation summary:
Currently the Asset ID is derived from the Merkle address and number of minted assets (num_minted) stored in the Tree Config PDA owned by the Bubblegum program. The num_minted is then used as the leaf index in a CPI call to compression program to set up a new leaf in the Merkle tree. Finally, the value of num_minted is increased by 1. This ensures that the mint instruction never fails if the tree is not full.
Proposed solution:
After thorough examination of the current Bubblegum code I've come up with a following plan of possible mitigation of the aforementioned issue:
Happy to provide more details or discuss other possible solutions. Moreover, I am willing and able to implement this myself if required.
Beta Was this translation helpful? Give feedback.
All reactions