/rgbeads

Primary LanguagePythonMIT LicenseMIT

Requirements

  • Python 3.8 or higher (lower versions might work but they're untested)
  • Node JS 12.22.1 or higher (lower versions might work but they're untested)

Setup

  • Run these commands to clone the repository and enter the home directory:
    git clone https://github.com/realjohnward/rgbeads.git && cd rgbeads
  • Run this script to install the required packages:
    pip install -r requirements.txt

Application

Step 1: Deploy ERC-721 Contract

  • Compile contract in remix and save the bytecode and ABI locally.
  • Set environment variables
  • Deploy contract by running the following script:
    python deploy.py
  • Read transaction receipt to get the contract address and set it to the CONTRACT_ADDRESS environment variable.

Step 2: Generate Images and Metadata Blobs

  • Generate 10K images and blobs for the beads by running the following script:
    python generate.py

Step 3: Pin Images and Blobs to IPFS

  • Run this script:
    python pin.py

Step 4: Mint IPFS hashes to smart contract to create the NFTs.