Obnoxiously fun. Full of itself. Might crash your browser.
-
Install dependencies:
yarn install
-
Generate graphql types:
yarn codegen
-
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
- 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 categoriessuitTop
,suitBottom
categoryGroup:category == 1:N
- An abstraction used by the UI that is not recognized by any on-chain smart contract.
A subgraph url is used to query NFT tokens and tiers, using Apollo graphql client. Types are generated at build time, using yarn codegen
.
Used to interface with Juicebox contracts. juice-sdk-v4