This repository maintains the source code the the idle tranches subgraph, which can be accessed here:
- Docker
- ganache-cli
- idle-tranches and graph-node submodule loaded
git submodule update --init
- idle-tranches submodule configured;
cd idle-tranches && npm install
and.env
file created- Additionally configure the
hardhat.config.js
file to enable forking fromblockNumber: 13147167
- Additionally configure the
- graph-node configured - Instructions for this can be found (here)[https://thegraph.com/docs/developer/quick-start#2-run-a-local-graph-node]
- Start hardhat node
yarn local-hardhat
- Deploy CDO Factory
cd idle-tranches && npx hardhat deploy-cdo-factory
- Start graph node
yarn local-graph
- This process may take up to 30 minutes for the first time, as the graph downloads some data from the blockchain
- Deploy subgraph to local
yarn deploy-local-e2e
- Access subgraph locally
http://localhost:8000/subgraphs/name/idle-finance/idle-tranches