Skip to content

ERC721a implementation w/ ERC-2309 extension

License

Notifications You must be signed in to change notification settings

0xdeployer/ERC721a-w-2309

 
 

Repository files navigation

About The Project

Forked https://github.com/chiru-labs/ERC721A to display gas savings when including the ERC-2309 consecutive transfer extension. By utilizing ERC-2309 we can acheive a truly constant gas price for minting 1 or 1 million NFTs.

As shown below, a negligible amount of gas is saved when minting 1 NFT, but when minting multiple NFTs the gas savings are tremendous and only increase as we scale up.

The pitfall of minting many NFTs at once using the standard ERC-721 spec is the Transfer event. There is no way around using a loop to emit the event for as many NFTs that were minted. The more NFTs that are minted the more costly it becomes. Using the ConsecutiveTransfer event specified in ERC-2309 we can mint as many NFTs as we want using O(1) complexity rather than O(n).

Gas Savings

About

ERC721a implementation w/ ERC-2309 extension

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Solidity 59.8%
  • JavaScript 40.2%