Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.31 KB

File metadata and controls

36 lines (23 loc) · 1.31 KB

ERC721 Contract implementation comparisson

This is a boilerplate test project includes various implementations of the https://eips.ethereum.org/EIPS/eip-721 standard to compare gas Usage for the same functions. This should be used as a starting point to build out functionality. Currently, this repo tests mint costs only for the following contract implementations:

  1. OpenZeppelin standard
  2. ERC721B (Blimpie. by Squeebo aka erc721 slim)
  3. ERC721Sequencial by papaver (Genetic chain implementation)
  4. Nuclear Nerds ERC721 (Mason/Chance)
  5. Azuki ERC721A
  6. ERC1155D (erc721-like implementation)

image

  • Differenece beteen mint costs grow larger (relative) as gas price increases. test this by setting manual gas price in hardhat.config.js
  • Mint Many example is for minting 10 from each contract implementation

Running the tests:

This project uses hardhat to run tests. install the dependencies with

yarn

then, run the included tests with

npx hardhat test

*Note: the included tests do not have any assertions, they are simply used to run functions and report the gasUsed.

Settings

check hardhat.config.js for settings. the optimizer is turned on at 1200 runs.