Output
sf.substreams.sink.entity.v1.EntityChanges
Package ref
gantry@v0.1.0Run package
This module reads a store, which starts empty at the module's first block: it runs from there, so its output is from then, not from the chain head. Any later block would first need the store rebuilt up to it.
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