Output
sf.substreams.sink.entity.v1.EntityChanges
Package ref
gantry@v0.1.0Run package
CLI
Run graph_out from the command line.
substreams run gantry@v0.1.0 graph_out -e mainnetsubstreams auth or directly on thegraph.market (see docs).README
Extracts Uniswap v4 swaps and finds sandwiches in them.
map_swaps is deliberately generic, so any v4 pipeline can reuse it. map_sandwiches
consumes its output and looks for one address opening and closing a position around
somebody else's trade inside a single block and pool.
Substreams streams come from The Graph Market.
substreams auth - opens a browser, fetches the key over the API and exchanges it
for a JWT, then writes .substreams.env. ./.substreams.envsubstreams auth --paste accepts an existing JWT if the browser flow is awkward. The
variable is SUBSTREAMS_API_TOKEN. .substreams.env is gitignored.
substreams gui substreams.yaml map_sandwiches -e mainnet.eth.streamingfast.io:443 \
--start-block 21000000 --stop-block +1000
Modules
Output
sf.substreams.sink.entity.v1.EntityChanges
Output
gantry.v1.AttemptsOutput
gantry.v1.SandwichesInputs
Output
gantry.v1.SwapsStore value
int64
Update policy
add
Store value
int64
Update policy
set_if_not_exists
Inputs
Store value
int64
Update policy
set
Inputs
Store value
int64
Update policy
add
Inputs
Store value
int64
Update policy
set_if_not_exists
Inputs