Contract Architecture (EVM)
Last updated
Last updated
This pattern is designed to efficiently deploy contracts with the same logic on a large scale. Yours protocol adopts this pattern to significantly reduce the repetitive costs associated with NFT deployment. This is made possible by performing a delegatecall on a contract at a fixed address. Such an approach makes NFT deployment faster and more cost-effective, benefiting users as well.
Yours' Integrated NFT is designed based on the ERC1155 token standard, which allows the management of multiple tokens within a single contract. Yours' unique approach combines individual NFTs into a unified token form using the addresses and IDs of each individual NFT.
The IntegratedNFT contract has a close relationship with the Factory contract. The Factory contract is responsible for creating and managing IntegratedNFTs, playing a central role in controlling the NFTs to be integrated.
The Factory contract can assign a 'Lock' status to individual NFTs to restrict their normal operations (e.g., transfers, burning) once the Lock status is activated. This feature helps prevent issues or errors caused by indiscriminate activities during the integration process.
After the NFTs are transitioned into the Lock state, they are recreated as a integrated NFT according to the ERC1155 standard. This integrated NFT contains information and attributes from multiple individual NFTs and serves as a comprehensive token representing each individual NFT.
The integration through the ERC1155 standard enables the efficient and cost-effective storage and management of multiple NFTs within a single contract. Additionally, users can easily manage multiple NFTs as a single integrated NFT, eliminating the hassle of managing each NFT individually.
Yours protocol utilizes to make NFT deployment efficient and cost-effective. Deploying a new contract every time an NFT is created can be a significant cost burden. The Minimal Proxy Pattern is an effective solution to address this issue.
If you want to learn more about the deeper details and specific patterns of how it works, please check out the .