Output
sf.substreams.entity.v1.EntityChanges
Inputs
Package ref
substreams-db-graph-converter@v0.1.1Run package
CLI
Run dbout_to_graphout from the command line.
substreams run substreams-db-graph-converter@v0.1.1 dbout_to_graphout --start-block -1substreams auth or directly on thegraph.market (see docs).README
This substreams contains dbout_to_graphout module enabling database changes conversion into entity changes.
This substreams package could be imported in another substreams, using imports, in the substreams manifest. After being imported, the module dbout_to_graphout can be used by another module implementing the use attribute. The module using dbout_to_graphout could override its inputs, and its initial block.
Note: Each input should have the same output type than the corresponding overrided input
specVersion: v0.1.0
package:
name: byac
version: v0.1.0
imports:
converter: spkg.io/streamingfast/substreams-db-graph-converter-v0.1.0.spkg
modules:
...
- name: db_out
kind: map
initialBlock: 12287507
inputs:
- map: map_events
output:
type: proto:sf.substreams.sink.database.v1.DatabaseChanges
- name: graph_out
use: converter:dbout_to_graphout
inputs:
- map: db_out
In this example, the graph_out module, uses dbout_to_graphout imported module, and overrides its inputs by the map module db_out
Modules
Output
sf.substreams.entity.v1.EntityChanges
Inputs
Output
sf.substreams.sink.database.v1.DatabaseChanges
Inputs