- initialize a new project:
mkdir leningrad_tile
cd leningrad_tile
npm init
- install dependencies:
npm install --save-dev hardhat
npm install --save-dev @nomiclabs/hardhat-ethers
npm install --save-dev @nomiclabs/hardhat-etherscan
npm install --save-dev ethers@^5.0.0
npm install --save-dev node-fetch@2
npm install --save nft.storage
npm install @openzeppelin/contracts
npm install dotenv --save
npm install fs --save
npm install https --save
npm install jimp --save
npm install child_process --save
npm install @ipld/car --save
- initialize the Hardhat ("Create an empty hardhat.config.js"):
npx hardhat
- deploy new contract:
npx hardhat compile
npx hardhat deploy
- verify your smart contract on Etherscan:
npx hardhat verify $NFT_CONTRACT_ADDRESS $BASE_TOKEN_URI
- mint (set a new NFT_CONTRACT_ADDRESS before):
npx hardhat mint --address $ADDRESS