Skip to content

TopTecShare/ERC-1155-template

Repository files navigation

ERC 1155 NFT Smart-Contract Template

Use this contract for saving gas fees on Ethereum 10k PFP NFT launches.

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

About

ERC 1155 template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published