Package Logo
dca
dca@v0.2.0-13e8
Total Downloads
600
Published
3 weeks ago
Publisher
User Avatar YaroShkvorets

Readme

dca Substreams modules

This package was initialized via substreams init, using the evm-events-calls template.

Usage

substreams build
substreams auth
substreams gui       			  # Get streaming!

Optionally, you can publish your Substreams to the Substreams Registry.

substreams registry login         # Login to substreams.dev
substreams registry publish       # Publish your Substreams to substreams.dev

Modules

All of these modules produce data filtered by these contracts:

  • dca at 0xdca000935f1073df8e8235c1f577fe0d81f69af8

map_events_calls

This module gets you events and calls

map_events

This module gets you only events that matched.

map_calls

This module gets you only calls that matched.

Documentation

Modules

Maps icon
Maps

map
map_events

4b2e39a25487527a5850b405dcb8f3db08128997
map map_events (
blocksf.ethereum.type.v2.Block
)  -> contract.v1.Events
substreams gui dca@v0.2.0-13e8 map_events

map
map_calls

3a23e8806a975dea567dd684ce66e8dfaa1f664a
map map_calls (
)  -> contract.v1.Calls
substreams gui dca@v0.2.0-13e8 map_calls

map
map_events_calls

9af5c422f241660ced38f097abdc6e6f26eb82b1
substreams gui dca@v0.2.0-13e8 map_events_calls

map
ethcommon:all_events

963652a247fd23d0823dde62d21ae54c783b6073
map ethcommon:all_events (
)  -> sf.substreams.ethereum.v1.Events

all_events gives you all the events in a block (from successful transactions), with basic block hash/number/timestamp and transaction hash

substreams gui dca@v0.2.0-13e8 ethcommon:all_events

map
ethcommon:all_calls

ba4f8e82a1fdc3ffbf060bed89482619bdc2a771
map ethcommon:all_calls (
)  -> sf.substreams.ethereum.v1.Calls

all_calls gives you all the calls in a block (including internal calls), with basic block hash/number/timestamp and transaction hash

substreams gui dca@v0.2.0-13e8 ethcommon:all_calls
Block Indexes icon
Block Indexes

blockIndex
ethcommon:index_events

87255243f80f5d4755cd826ec57bf70696a4d7b6

index_events sets the following keys on the block:

  • Event signatures evt_sig:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef (signature in hex, prefixed by 0x)
  • Event address evt_addr:0x0123456789abcdef0123456789abcdef01234567 (address in hex, prefixed by 0x)
substreams gui dca@v0.2.0-13e8 ethcommon:index_events

blockIndex
ethcommon:index_calls

5d7204db974da4bb8cea5f7582f0d4a412332acd

index_calls sets the following keys on the block:

  • Call contract call_to:0x0123456789abcdef0123456789abcdef01234567 (contract address in hex, prefixed by 0x)
  • Caller call_from:0x0123456789abcdef0123456789abcdef01234567 (caller address in hex, prefixed by 0x)
  • Call method call_method:0x01234567 (4 bytes of method signature in hex, prefixed by 0x)
substreams gui dca@v0.2.0-13e8 ethcommon:index_calls
Protobuf

Protobuf Docs Explorer

sf.ethereum.type.v2
contract.v1
sf.ethereum.substreams.v1