realfun_mainnet
Package ref
realfun-mainnet@v0.2.4Run package
CLI
Run map_tokens_created from the command line.
substreams run realfun-mainnet@v0.2.4 map_tokens_created -e base --start-block -1substreams auth or directly on thegraph.market (see docs).README
realfun_mainnet Substreams modules
This package was initialized via substreams init, using the evm-events-calls template.
Usage
substreams build
substreams auth
substreams gui # Get streaming!
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:
- factory_contract at 0x3397ac2cc8d7cdfab8c2ffe65fe88b8c4f412d91
- pair_contract contracts created from factory_contract
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
Params should be the token pair contract address without `0x` prefix, e.g., "1234567890abcdef1234567890abcdef12345678"
Output
contract.v1.TransactionsInputs
Show 9 dependencies
Output
sf.substreams.ethereum.v1.Calls
Output
sf.substreams.ethereum.v1.Events
`filtered_calls` reads from `all_calls` and applies a filter on the called contract, the caller and the method 4-bytes signature Supported operators are: logical or `||`, logical and `&&` and parenthesis: `()` Addresses to match must be written as 0x-prefixed hexadecimal, lowercase, prefixed by `call_to:` or `call_from:`, methods by `call_method:`. Example: `(call_to:0x1234... || call_from:0x1234...) && call_method:0xdeadbeef...`
Output
sf.substreams.ethereum.v1.Calls
Inputs
`filtered_events` reads from `all_events` and applies a filter on the event addresses and signatures. Supported operators are: logical or `||`, logical and `&&` and parenthesis: `()` Addresses to match must be written as 0x-prefixed hexadecimal, lowercase, prefixed by `evt_addr:` and signatures by `evt_sig:`. Example: `(evt_addr:0x1234... || evt_addr:0x5678...) && evt_sig:0xdeadbeef...`
Output
sf.substreams.ethereum.v1.Events
Inputs
`filtered_events_and_calls` reads from `all_calls` and `all_events`, then applies a filter to extract the items that interest you, based on called contract, caller, call method, event address and event signature. Supported operators are: logical or `||`, logical and `&&` and parenthesis: `()` Addresses and signatures to match must be written as 0x-prefixed hexadecimal, lowercase, prefixed by `evt_addr:`, `evt_sig:`, `call_to:`, `call_from:` or `call_method:`. Example: evt_sig:0x9bb8f83800000000000000000000000000000000000000000000000000000000 || (call_method:0xa9059cbb && call_to:0xdac17f958d2ee523a2206206994597c13d831ec7)
Output
sf.substreams.ethereum.v1.EventsAndCalls
Inputs
`filtered_transactions` reads from ethereum blocks and applies a filter on the events (addresses and signatures) as well as calls (from, to and method). Supported operators are: logical or `||`, logical and `&&` and parenthesis: `()` Addresses and signatures to match must be written as 0x-prefixed hexadecimal, lowercase, prefixed by `evt_addr:`, `evt_sig:`, `call_to:`, `call_from:` or `call_method:`. Example: `((evt_addr:0x1234... || evt_addr:0x5678...) && evt_sig:0xdeadbeef...) || call_to:0x01010101...`
Output
sf.substreams.ethereum.v1.Transactions
Inputs
`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
Inputs
`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
Inputs
`index_events_and_calls` 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) * 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