substreams_evm_precompile_popularity
Package ref
substreams-evm-precompile-popularity@v0.1.0Run package
CLI
Run map_counts from the command line.
substreams run substreams-evm-precompile-popularity@v0.1.0 map_counts -e mainnetsubstreams auth or directly on thegraph.market (see docs).README
Substreams EVM Precompiles Popularity
This project leverages Substreams to calculate the popularity of Ethereum precompiled contracts from call data.
Overview
- Processes Ethereum call events using Substreams.
- Counts and maps occurrences of precompiles.
- Outputs results using Protocol Buffers.
Getting Started
- Ensure the Rust toolchain is installed.
- Build the project:
cargo build --release. - Deploy the WASM binary as specified in the Substreams configuration.
License
Apache 2.0
Modules
Execution graph
Store value
int64
Update policy
add
Inputs
Show 3 dependencies
Output
sf.substreams.ethereum.v1.Calls
`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
`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