start all processes
yarn start-all
yarn test
install and start the 👷 Hardhat chain:
yarn
yarn chain
🛰 deploy contracts:
yarn deploy
A few things to keep in mind.
- The skin and background layers shouldn't have "base" attributes
- If the art generated order is shuffled use https://codeshack.io/json-sorter/ to sort by id so the rarity app works correctly
🎨 Generate the collection images and metadata
yarn build-art
↗️ Upload the collection images to pinata
- upload the
packages/art-gen/build/images
directory to pinata - copy the generated IPFS CID
- paste the CID in
packages/art-gen/src/config.ts
as the "baseUri"
➕ Update the collection metadata
yarn update_info
© Generate rarity
- copy the contents of
packages/art-gen/build/json/_metadata.json
- paste over the value of
packages/rarity/data/collection.json
- start the rarity app by running
yarn start-rarity
- update the collection metadata again by running
yarn generate_rarity
↗️ Upload the collection metadata to pinata
- upload the
packages/art-gen/build/json
directory to pinata - copy the generated IPFS CID
- paste the CID in
packages/hardhat/contracts/Celostrials.sol
in the constructor of the contract - deploy the contract
🔄 Update contract and CID references
- paste the deployed contract address, and generated CID in the react-app env
🔏 smart contracts in packages/hardhat/contracts
💼 Deployment scripts in packages/hardhat/deploy