Skip to content

JediFaust/JediNFT

Repository files navigation

JediNFT Smart Contract

Language License


Solidity Smart contract for JNFT ERC721 and J1155 ERC1155 Tokens


📝 Table of Contents

🚀 Link on EtherScan

ERC721 Contract:
https://rinkeby.etherscan.io/address/0xE115E5f1c26C1f10ec1D25702A4dA2d7C14BACf0#code
ERC1155 Contract:
https://rinkeby.etherscan.io/address/0x6797e8fc06143A1d4e4222BF424FFF439F3d122a#code

🚀 Installing

  • Set initial values on scripts/deploy.ts file
  • Deploy both contracts running on console:
node scripts/deploy.ts
  • Copy address of deployed contract and paste to .env file as CONTRACT_ADDRESS
  • Use mint, mint1155 and mint1155-by-id functions

⛓️ Contract Functions

  • safeMintWithUri()

Mint function for ERC721 Contract

  • mintNewToken()

Mint new token type on ERC1155 Contract

  • mintTokenById()

Mint existing tokens by id on ERC1155 Contract

  • totalSupply()

Get amount of token types

  • totalSupply()

Get amount of tokens by their id

🎈 Deploy & Test Scripts

node scripts/deploy.js --network rinkeby
npx hardhat test

💡 HardHat Tasks

npx hardhat mint
npx hardhat mint1155
npx hardhat mint1155-by-id

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published