Output
sf.substreams.entity.v1.EntityChanges
Package ref
tellerv2-pools-base@v0.2.0Run package
CLI
Run graph_out from the command line.
substreams run tellerv2-pools-base@v0.2.0 graph_out -e basesubstreams auth or directly on thegraph.market (see docs).README
-- Uniswap Example https://github.com/streamingfast/substreams-uniswap-v3/blob/develop/src/rpc.rs
Add it to contract proto ?
run proto gen (to output RUST )
substreams protogen
Create a substreams spkg
substreams pack ./substreams.yaml
make sure FACTORY_TRACKED_CONTRACT+COLLATERAL_MANAGER_TRACKED_CONTRACT in 'lib' is defined properly for network
make sure data in export_build.rs is defined properly for network (see https://thegraph.com/docs/en/supported-networks/ )
cargo run --bin exportbuild //regenerate yaml files
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
tellerv2-lender-groups-polygon * tellerv2-lender-groups-arbitrum * tellerv2-lender-groups-base * tellerv2-lender-groups-mainnet *
https://api.studio.thegraph.com/query/36377/tellerv2-lender-groups-polygon/0.4.21.103/graphql
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
Output
sf.substreams.entity.v1.EntityChanges
Output
collateral.v1.EventsOutput
contract.v1.EventsStore value
bigint
Update policy
add
Store value
string
Update policy
set
Inputs
Store value
proto:dynamic_datasource
Update policy
set
Store value
bigint
Update policy
set
Inputs
Store value
bigint
Update policy
set
Store value
bigint
Update policy
add
Inputs
Store value
bigint
Update policy
add
Inputs
Store value
bigint
Update policy
add