8000 GitHub - Firiks/nft-contracts: Smart contracts for deploying NFT (ERC721) using hardhat.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Firiks/nft-contracts

Repository files navigation

NFT contracts

Description

Create NFTs using 3 different contracts:

  1. Basic NFT contract (ERC721), using own IPFS node
  2. Random IPFS image NFT contract, using Pinata to pin images
  3. Dynamic SVG NFT contract, host data directly on contract

Quick start

  1. Clone the repo
  2. Install dependencies: npm install use --legacy-peer-deps when encountering errors
  3. Create .env file from .env.example cp .env.example .env and fill in the values
  4. To run tests: npx hardhat test:unit
  5. To run local node with contract deployed run: npm run chain
  6. To deploy on testnet: npm run deploy:main:sepolia to deploy on sepolia testnet or deploy:main:local to deploy on local node
  7. If deployed on sepolia or other testnet navigate to Chainlink VRF create subscription and add Random IPFS image NFT contract address as consumer and then to mint run npm run deploy:mint:sepolia
  8. Testnet nfts can be found on OpenSea testnet

Result

About

Smart contracts for deploying NFT (ERC721) using hardhat.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0