All packages
tellerv2_pools_base

tellerv2_pools_base

ethereumdegen
v0.2.0/7 downloads

Package ref

tellerv2-pools-base@v0.2.0

Run package

CLI

Run graph_out from the command line.

substreams run tellerv2-pools-base@v0.2.0 graph_out -e base
Authenticate by running substreams auth or directly on thegraph.market (see docs).

README

Lender Groups Substreams

  • use map-events

-- Uniswap Example https://github.com/streamingfast/substreams-uniswap-v3/blob/develop/src/rpc.rs

Adding a new custom output type

Add it to contract proto ?

Building

run proto gen (to output RUST )

substreams protogen 

Create a substreams spkg

substreams pack ./substreams.yaml

DEPLOYING

  1. make sure FACTORY_TRACKED_CONTRACT+COLLATERAL_MANAGER_TRACKED_CONTRACT in 'lib' is defined properly for network

  2. make sure data in export_build.rs is defined properly for network (see https://thegraph.com/docs/en/supported-networks/ )

  3. cargo run --bin exportbuild //regenerate yaml files

  4. make && make build && make pack

--- OLD WAY ----------------------------------- 5. graph auth (optional) 6. graph deploy tellerv2-lender-groups-mainnet --version-label 0.4.21.122 ORR graph deploy tellerv2-pools-base --version-label 0.4.21.113

0.4.21.122


  1. substreams publish tellerv2-pools-base --version-label 0.4.21.113

graph names

tellerv2-lender-groups-polygon * tellerv2-lender-groups-arbitrum * tellerv2-lender-groups-base * tellerv2-lender-groups-mainnet *

CHECK THE STATUS

https://api.studio.thegraph.com/query/36377/tellerv2-lender-groups-polygon/0.4.21.103/graphql

HOW THINGS WORK UNDER THE HOOD

When deploying to a subgraph, the config file substreams.subgraph.yaml is used.
When you are doing tables.create_row, that data must match what it is in schema.graphql !

Modules

Execution graph

11 modules
store

store_bid_from_pool_data

from #24824400

Store value

string

Update policy

set

store

store_factory_lendergroup_created

from #24824400

Store value

proto:dynamic_datasource

Update policy

set

store

store_globals_from_events

from #24824400

Store value

bigint

Update policy

set

store

store_lendergroup_pool_metrics_deltas

from #24824400

Store value

bigint

Update policy

add

store

store_lendergroup_user_metrics_deltas

from #24824400

Store value

bigint

Update policy

add