All packages
grt

grt

YaroShkvorets
v0.1.0/337 downloads

Package ref

grt@v0.1.0

Run package

CLI

Run map_events_calls from the command line.

substreams run grt@v0.1.0 map_events_calls -e mainnet --start-block -1
Authenticate by running substreams auth or directly on thegraph.market (see docs).

README

grt 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:

  • grt at 0xc944e90c64b2c07662a292be6244bdf05cda44a7

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.

Modules

Execution graph

7 modules
Show 4 dependencies
map

ethcommon:all_calls

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

Output

sf.substreams.ethereum.v1.Calls

map

ethcommon:all_events

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

Output

sf.substreams.ethereum.v1.Events

blockIndex

ethcommon:index_calls

`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)

Output

sf.substreams.index.v1.Keys

blockIndex

ethcommon:index_events

`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)

Output

sf.substreams.index.v1.Keys