Skip to content

PretzelDAO/munichnft-platform-chaincode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

npm install -g truffle
npm install

Create a .env file in the root directory and set the following variables:

MNEMONIC="<your mnemonic>"
INFURA_PROJECT_ID="<your infura project id>"

Then you can deploy to a given (test) net.

truffle migrate --network rinkeby

Usage

There are two addtional functions to this ERC721 that can be called.

The setMinter function call only be called by the owner (deployer) of this contract. With that it is possible to whitelist new address that can mint new NFTs and also set a limit how many NFTs they can mint.

The mint function can be called (by an address) to actually mint the NFT as long as that address is whitelisted and below its token allowance.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published