Skip to content

peripheralist/banny-minter

Repository files navigation

Looks App

Obnoxiously fun. Full of itself. Might crash your browser.

Dev

  1. Install dependencies: yarn install

  2. Generate graphql types: yarn codegen

  3. Define .env variables:

NEXT_PUBLIC_CHAIN_ID= # 1, 1155511
SUBGRAPH_URL= # url used for requests from server
NEXT_PUBLIC_SUBGRAPH_URL= # url used for requests from client
NEXT_PUBLIC_INFURA_API_KEY= # Infura api key. If not provided, a public provider url will be used
  1. Serve app: yarn dev

Useful terms:

  • nft: Unique minted token.
  • tier: Unique asset that can be minted as an NFT.
    • e.g. "Banny Vision Pro", "Punk jacket"
    • tier:nft == 1:N
  • category: Describes a type of tier asset. 16 total.
    • e.g. "headgear", "suitTop"
    • category:tier == 1:N
  • categoryGroup: Group of similar categories.
    • e.g. body includes categories suitTop, suitBottom
    • categoryGroup:category == 1:N
    • An abstraction used by the UI that is not recognized by any on-chain smart contract.

Infrastructure

Subgraph

A subgraph url is used to query NFT tokens and tiers, using Apollo graphql client. Types are generated at build time, using yarn codegen.

juice-sdk-react

Used to interface with Juicebox contracts. juice-sdk-v4

Releases

No releases published

Packages

No packages published

Languages