Skip to content

tommy509/simple-NFT-Mint-Pass-Example

Repository files navigation

Simple NFT MintPass CONTRACT Example

This project is an example of mint pass nft smart contract with a nodejs backend and a Handlebars user interface. It is a simple implementation that swap Ether for erc721 tokens with timelocks, blacklisted users, roles and categories(silver, platinum, gold mint passes). Built with solidity this contract consumes chainlink feeds to bring offchain data like usd/eth current price on chain.

The process to have a mintpass is only to click on buy button in the user interface, a metamask transaction will pop up.

After transaction beeing completed, user will have to add the NFT token Id to his wallet with the contract address

This example has been deployed on Kovan testnet at following address 0xf484a46c14e0b44bb40275727587e14d3cc4d5b6

Requirements 📋

NODE JS

Node package manager

Installation 🔧

npm install

Compilation 📦

npx hardhat compile

Look for Deployment to know more about how to deploy this project.

Scripts ⚙️

Scripts can be found inside the scripts folder and can be excecuted like the command below. Scripts allow us to call methods or get variables from the contract using javascript

node scripts/scriptName.js

Run the server ⌨️

This project come with built in API which can be serve using following command

Node server.js

Deployment 🚀

To deploy compiled contracts please enter commands below In that case, deployment is beeing done to ropsten testnet

npx hardhat run scripts/deploy.js --network ropsten 

Made with 🛠️

Tools used to create this project

Versions 📌

0.0.1

Authors ✒️

People who participated in this project development from day one

  • Tommy Theodore - Initial work - tommy509

Licence 📄

SPDX-License-Identifier: MIT. ISC

Thank you for reading 🎁

  • Let the world know about this project 📢
  • If it was useful to you buy us a beer🍺 or a coffee☕.
0x1552ef1C29D09310bebA7abEDa20Aa4717687670
  • Thanks a lot for reading🤓.

⌨️ with ❤️ by tommy509 😊

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published