made with ❤️ by Rob Secord (Charged Particles & Taggr)
Gas-efficient contracts for Pre-Minting 1,000,000,000 NFTs!
It's like handing out Candy!
Our goal is to Eliminate Minting Fees for all NFT projects by providing a new method of Pre-Minting an entire collection up-front for half the cost of minting a single, standard NFT. Everything afterwards remains standard.
We have created Infinite (ERC721i) by utilizing and only slightly adapting the popular Open Zeppelin ERC721 contracts in order to maintain the highest level of open standards. However, the approach we have taken is so simple, that it can be easily adapted to any ERC721 framework.
By eliminating the heavy-lifting of Minting, we can help to alleviate some of the network congestion caused when there is huge demand for a new token release. Miners are simply able to process more "transfers" than "mints" in a single block.
For more information on how Infinite (ERC721i) works under the hood, please visit our blog.
These contracts, while simple, have not been audited. Charged Particles, and its affiliates, are not liable for any outcome as a result of using Infinite (ERC721i).
Pre-Minting 1 Million NFTs for $3
npm install --save-dev @charged-particles/erc721i
OR
yarn add -D @charged-particles/erc721i
After installation, just import and inherit ERC721i.sol
pragma solidity ^0.8.4;
import "@charged-particles/erc721i/contracts/ERC721i.sol";
contract MyNFT is ERC721i {
constructor(string memory name, string memory symbol, uint256 maxSupply)
ERC721i(name, symbol, _msgSender(), maxSupply) {}
function preMint() external {
_preMint();
}
}
npm run deploy <network_name>
npm run verify <network_name>
OR
yarn deploy <network_name>
yarn verify <network_name>
Where <network_name> is any valid network name configured in hardhat.config.js (ie. hardhat, mainnet, goerli, rinkeby, mumbai, etc..)
We use the ConsecutiveTransfer event of EIP-2309 during the Mint Phase.
Known marketplaces that support the EIP-2309 Standard:
- Opensea
- LooksRare
- Implement Pre-Mint for ERC1155
- Add support for Upgradeable Contracts
- Add version using Solmate's ERC721 contracts
- Eliminate the Max-Supply and bring back the “allTokens” array.
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/MyFeature
) - Commit your Changes (
git commit -m 'Adding MyFeature'
) - Push to the Branch (
git push origin feature/MyFeature
) - Open a Pull Request
npm run test
OR
yarn test
Distributed under the MIT License. See LICENSE.txt
for more information.
- Rob Secord (owner) - @RobSecord
Project Links:
- https://github.com/Charged-Particles/erc721i
- https://www.npmjs.com/package/@charged-particles/erc721i
At Charged Particles & Taggr we strive to provide the greatest and most advanced tools for your NFT projects. We're always thrilled to innovate and share our developments with the crypto-community!
Don't forget to give the project a star! Thank You!