Skip to content

Montspy/LooPyGen

Repository files navigation

sk33z3r doesn't maintain this, reach out to Montspy instead

LooPyGen

Release Checks Issues

This is the unofficial Loopring Python Image Generator and Minter on Layer 2.

⚠️ NEVER SHARE YOUR PRIVATE KEYS OR PASSPHRASES WITH ANYONE ⚠️

Please report issues in the issues section

LooPyGen GUI

The LooPyGen GUI makes it easier to create generative collections for those that want to focus on the art rather than the tech.

Please see our wiki for more details on how to use the app.

LooPyGen CLI

The headless CLI component is meant for use in automating dApps when it comes to minting or transferring. The headless component can also be used to take advantage of server resources to generate high quality GIF or MP4 collections that require more than the average workstation.

Below is the command reference for the headless component. For more details, see our wiki

Notes:

  • You can clean up old images with: docker image prune
  • Your config files are encrypted and stored in a Docker volume that is persistent on updates. Destroy the volume with: docker volume prune
  • If you desire to access the shell of the container for any reason, do so with: ./loopygen-cli.sh bash
  • If you pass your config passphrase on the command line, it should be base64 encoded first. All transfer and mint commands accept this additional argument:
    --configpass $(echo -n "passphrase" | basenc --base64)

Download the script from GitHub with to your local working directory

# using wGET
$ wget -O ./loopygen-cli.sh https://github.com/sk33z3r/LooPyGen/blob/main/cli.sh && chmod +x loopygen-cli.sh
# using cURL
$ curl https://github.com/sk33z3r/LooPyGen/blob/main/cli.sh -o loopygen-cli.sh && chmod +x loopygen-cli.sh

Pull the latest image

$ ./loopygen-cli.sh update

Run a command

$ ./loopygen-cli.sh {command}

Commands

Replace {command} with one of the below commands.

Show Config Commands

Encrypt your mint configuration

encrypt --mint

Encrypt your transfer configuration

encrypt --transfer
Show Image Generator Commands

Basic run:

generate --count XXX

Delete previously generated images before generating a new set:

generate --empty --count XXX

Start generating from a specific ID number:

generate --count XXX --id YY

If you have a beefy computer, you can try to generate images simultaneously to speed up the process:

generate --count XXX --threaded
Show Metadata Generator Commands

Basic run, after generating images:

metadata

Delete previously generated metadata before generating a new set:

metadata --empty
Show Minting Commands

Batch mint a collection:

mint --name <my_nft_collection> --amount 1

Mint a specific set of IDs:

mint --name <my_nft_collection> --start <startID> --end <endID> --amount 1

Mint a single CID:

mint --cid Qmau1Sx2hLTkLmXsu2dD28yMZtL3Pzs2uKqP2MeHZPm93V --amount 100

Test run a mint (shows only what the script would do, but doesn't actually do it):

mint --name <my_nft_collection> --testmint --amount 100
Show CID Calculator Commands

To scan CID files, input a path relative to your working directory.

The file must be at your current level or lower, and not outside of the directory. For instance, ../other-dir/somefile would not work.

CIDv0:

cid ./relative/path/to/file

CIDv1:

cid --cid-version=1 ./relative/path/to/file