unrealfinance / subgraphs

Subgraphs for Unreal Finance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Subgraphs for Unreal Finance


Languages

Language:Shell 51.9%Language:TypeScript 34.0%Language:Dockerfile 14.1%