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