Skip to content

Infinite (ERC721i) - Gas-efficient NFT contracts for Pre-Minting Millions of NFTs!

License

Notifications You must be signed in to change notification settings

surfer77/erc721i

 
 

Repository files navigation

Docs Language Issues MIT License

made with ❤️ by Rob Secord (Charged Particles & Taggr)


About Infinite (ERC721i) NFT Pre-Mint Contracts v0.1.4

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.

Gas Savings

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).

Don't Trust, Verify

Etherscan Transaction


Blog Article

Pre-Minting 1 Million NFTs for $3


Live Demo

Peppermint Rorschach


Installation

npm install --save-dev @charged-particles/erc721i

OR

yarn add -D @charged-particles/erc721i

Usage

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();
  }
}

Deployment & Verification

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..)


ConsecutiveTransfer Event

We use the ConsecutiveTransfer event of EIP-2309 during the Mint Phase.

Known marketplaces that support the EIP-2309 Standard:

  • Opensea
  • LooksRare

Roadmap

  • 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).


Contributing

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".

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/MyFeature)
  3. Commit your Changes (git commit -m 'Adding MyFeature')
  4. Push to the Branch (git push origin feature/MyFeature)
  5. Open a Pull Request

Running tests locally

npm run test

OR

yarn test

License

Distributed under the MIT License. See LICENSE.txt for more information.


Contact

Project Links:


Brought to you with Love

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!


Charged Particles

 

Taggr

About

Infinite (ERC721i) - Gas-efficient NFT contracts for Pre-Minting Millions of NFTs!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 71.5%
  • JavaScript 28.5%