Bridgerz / Celostrials

Home Page:celostrials.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ„β€β™‚οΈ Quick Start

start all processes

yarn start-all

πŸ— Run Contract Tests

yarn test

πŸ€“ Details

install and start the πŸ‘·β€ Hardhat chain:

yarn
yarn chain

πŸ›° deploy contracts:

yarn deploy

πŸ‘½ Create a new collection

A few things to keep in mind.

  1. The skin and background layers shouldn't have "base" attributes
  2. 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

  1. upload the packages/art-gen/build/images directory to pinata
  2. copy the generated IPFS CID
  3. paste the CID in packages/art-gen/src/config.ts as the "baseUri"

βž• Update the collection metadata

yarn update_info

Β© Generate rarity

  1. copy the contents of packages/art-gen/build/json/_metadata.json
  2. paste over the value of packages/rarity/data/collection.json
  3. start the rarity app by running yarn start-rarity
  4. update the collection metadata again by running yarn generate_rarity

↗️ Upload the collection metadata to pinata

  1. upload the packages/art-gen/build/json directory to pinata
  2. copy the generated IPFS CID
  3. paste the CID in packages/hardhat/contracts/Celostrials.sol in the constructor of the contract
  4. deploy the contract

πŸ”„ Update contract and CID references

  1. 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

About

celostrials.vercel.app


Languages

Language:TypeScript 83.6%Language:JavaScript 13.6%Language:Solidity 1.1%Language:CSS 1.1%Language:HTML 0.6%Language:SCSS 0.1%Language:Procfile 0.0%