Introducing 𝗘𝗥𝗖𝟳𝟮𝟭𝗚 – The Smart Contract powering Gangster All Star: Evolution NFTs
𝗘𝗥𝗖𝟳𝟮𝟭𝗚 aims to bring batch minting to the next level – by exploring what is possible within optimization constraints and introducing built-in staking functions and metrics for fractions of traditional gas cost.
𝗘𝗥𝗖𝟳𝟮𝟭𝗚’s most notable features are:
★ Gas Optimized Batch Minting
★ Gas Optimized and Innovative Batch Mint and Stake
★ Gas Optimized Stake and Unstake
★ Trackers for Accumulated Stake Time and HODLing
Batch Minting – an NFT minting method popularized by ERC721A, which has largely reduced the costs associated with minting for the NFT space. In the past, minting 5 NFTs would have costed upwards of 600k gas. With batch minting, these costs are reduced by upwards of over 𝟵𝟬%.
Gas costs of batch minting for ERC721G is comparable to that of the highly optimized ERC721A while offering a larger set of features and NFT staking metrics. For flexibility and features, there’s ERC721G, and for hyper-optimization, there’s ERC721A.
Batch Mint and Stake
Batch Mint and Stake – An innovative mint + stake solution that allows users to mint and stake tokens in a single transaction. By packing data and using a single contract (normal staking solutions require 2), up to 90% of the gas costs associated with staking can be saved.
In traditional minting and staking, upwards of 3 transactions are required for the process :
With ERC721G, all three transactions are compressed into one, using less storage and processing, ultimately saving tons of gas. Data excludes mint costs.
Staking and HODLING metrics
Staking and HODLING metrics have become increasingly popular for NFT collections. We love to know who the diamond hands are : those who held since mint, stake, and long a token has been staked for. 𝗘𝗥𝗖𝟳𝟮𝟭𝗚, includes all these with no additional storage requirements.
How does that work? How can we store more data without needing more storage? Data Packing. By exploring what is possible, we were able to pack all the data mentioned above into our smart contract. Simply put – we stored a ton of data for the price of one.
𝗘𝗥𝗖𝟳𝟮𝟭𝗚 functions are designed to be modular by nature. Developers can choose to either include, exclude, or modify staking and metrics functions while having no impact to minting costs. Creative and novel mechanics are limited only to developers’ imaginations.
For the tech-curious, we will be publishing a technical deep-dive on our website detailing how we have made all these features possible while still working within the constraints of a highly optimized NFT contract, and what obstacles we had to overcome to achieve such results.
The NFT space is built by its users : artists, creators, investors, innovators, and developers. Everyone plays a role in the development of the space - whether we are aware of it or not.
We are happy to contribute to the ever-growing space of NFTs and push forwards creative coding and innovation. By open-sourcing our smart contract to the public, we seek to inspire other developers to innovative and create their own smart contracts built upon 𝗘𝗥𝗖𝟳𝟮𝟭𝗚.