/subgraphs

Subgraphs for Unreal Finance

Primary LanguageShell

Sub Graphs for Unreal Finance

Installation

  1. Docker

  2. Node Modules

    npm install

Development

  1. Start hardhat node in contracts

    npx hardhat node --hostname 0.0.0.0
  2. Deploy contracts and generate events

    npx hardhat run scripts/deployMocks.ts --network localhost
  3. Start the graph node

    cd docker/graph-node
    docker-compose up

    Note: - remove docker/graph-node/data folder when you re run docker container

  4. Create subgraph and deploy

    npm run codegen
    npm run create-local
    npm run deploy-local