Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.21 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.21 KB

srens-web

Getting started

  1. Install dependencies: pnpm i
  2. Configure environment varibles: cp .env.example .env
  3. Start dev server: pnpm dev

Environment variables

  • NEXT_PUBLIC_INFURA_KEY - required for mainnet RPC
  • NEXT_PUBLIC_ENABLE_FOUNDRY - set to true to enable localhost network

GraphQL codegen

@graphprotocol/client-cli is used to generate an SDK for querying the ENS subgraph.

  • queries are defined in src/graphql
  • configuration is defined in .graphclientrc.yml
  • run generation with: pnpm codegen:graphql

Note: there are warnings in the console when using this but the expert advice is to ignore. Will revisit if it ends up being problematic.

Libraries