Giter Site home page Giter Site logo

0xble / erc721i Goto Github PK

View Code? Open in Web Editor NEW

This project forked from charged-particles/erc721i

0.0 0.0 1.0 685 KB

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

License: MIT License

JavaScript 29.11% Solidity 70.89%

erc721i's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.