NFT Certificates for the Ethereum Bootcamp
- Add certificate images to
metadata/images
- Make sure
metadata/cohort1.json
andmetatadata/storeScriptOp.json
has the complete details of cohort members
npx ts-node scripts/store.ts --cohortId 1 --sourceDataPath metadata/cohort1.json --outputPath metadata/storeScriptOp.json --imagesPath metadata/images
cohortId
- Cohort IDsourceDataPath
- Path to source data json fileoutputPath
- Path to output json file containing IPFS hashes to certificate metadataimagesPath
- Path to images directory to pick image for certificate
npx hardhat node
npx hardhat run scripts/deploy.ts --network <network_name>
network_name
can be localhost or rinkeby or mainnet, depending on where you intend to deploy
The address of the deployed contract is saved in metadata/deployedAddress.json
npx hardhat run scripts/awardNFT.ts --network <network_name>
NOTE: it is important that the hardhat network be the same when deploying contract and awarding certificates. Also, npx hardhat
command always creates and tears down the local network, so use npx hardhat node
beforehand to avoid errors.
$ yarn
$ yarn test
npx hardhat test