Skip to content

peppyeben/ERC-1155-NFT-template

 
 

Repository files navigation

ERC 1155 NFT Smart-Contract Template

Use this contract for saving gas fees on Ethereum NFT launches, not only for NFT with multiple copies of the same item.

Functions

  • Whitelist
  • Presale
  • Change Base-URI (meta-reveal)
  • Batch Mint
  • Extensible: Create fungible tokens in the same contract (not included).

Development

First clone this repository and enter the directory.

Install dependencies:

$ yarn

Testing

We use Hardhat and hardhat-deploy

To run integration tests:

$ yarn test

To run coverage:

$ yarn coverage

To deploy to Rinkeby: create a secretManager.js containing the required private keys(see secretsManager.example.js) then run:

$ yarn deploy:network rinkeby

To verify the contract run:

$ yarn verify:network rinkeby [CONTRACT-ADDRESS] [arg1]

For additional testing verified versions of a mock ERC721 token and a mock ERC20 token are available at:

Test Coverage

Expected Gas Costs

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 52.6%
  • JavaScript 47.4%