The DNA: An Evolutive NFT Collection
An on-chain art NFT collection utilizing a DNA system that allows for the generation of art through P5.js
. This unique collection has the feature of allowing mutations
, thereby enabling your NFTs to evolve
. This evolution creates new genes with the possibility of retaining previous ones.
Core Features
On-Chain Generation
- Both the art and the DNA of the NFTs are generated directly on the blockchain, using Solidity-based smart contracts.
Mutation System
- The NFTs have the capability to mutate, creating new genes and adding a new layer of complexity and rarity.
DNA Representation
- The DNA is represented by a
bytes32
, where each two-character element represents a gene.
bytes32 hash = keccak256(abi.encodePacked(block.timestamp, block.number, msg.sender, updatedIndex));
P5.js for Art Generation
- The project uses P5.js to generate visuals based on the DNA of the NFT.
Smart Contract Features
function _generateDNA(uint256 startTokenId, uint256 quantity, uint256 version) internal {
// DNA generation implementation here
}
function mutate(uint256 _tokenId, uint256 _genId) nonReentrant {
// Mutation implementation here
}
How it Works?
- DNA Generation: Utilizes the _generateDNA function to create new DNA for each NFT.
- Mutation: Owners can use the mutate function to mutate their NFT, generating new DNA.
- Visualization: The DNA is used to generate unique visuals via P5.js.
Tools Utilized
- Programming Languages:
Solidity
for smart contract functionality. - Graphics Libraries:
P5.js
for art generation.
This evolving NFT collection offers a new dimension of interaction and rarity, made possible by the ingenious use of blockchain technology and generative art.
Project Status and Future Potential
As of now, the project has not been launched due to the withdrawal of the artist involved. However, the smart contract framework built for "The DNA" remains a solution that can be adapted for other similar projects in the field of evolutive
or generative
NFTs. Its use of blockchain technology and generative art makes it a valuable resource for future initiatives looking to explore new dimensions of interaction in the NFT space.