pinax-network / substreams-sink

Substreams Sink library
MIT License
4 stars 1 forks source link

Export additional data to `setup()` #10

Closed DenisCarriere closed 1 year ago

DenisCarriere commented 1 year ago

When using setup export additional data

const { emitter, substreamPackage, moduleHash, startCursor } = await setup(options, pkg);

All values that are computed during the setup step that is provided to the createRequest

const request = createRequest({
    substreamPackage,
    outputModule,
    startBlockNum,
    stopBlockNum,
    productionMode,
    startCursor: cursor.readCursor(cursorFile),
});