StreamingFast Substreams manifest
The manifest contains the details for the various aspects and components of a Substreams implementation.
Every Substreams implementation contains one manifest. The manifest is a YAML-based file and provides vital insights into the blockchain being targeted, the design of the data flow, the names and types of modules, and locations and names for protobuf definitions.
- name: block_to_transfers
- source: sf.ethereum.type.v2.Block
- name: nft_state
- map: block_to_transfers
View this file in the repo by visiting the following link.
protobuf.filescontains a list of protobuf files for the current Substreams implementation.
protobuf.importPathscontains the paths to the protobufs for the current Substreams implementation.
The modules are Rust functions containing the business logic for the implementation.
The output for the
blocks_to_transfersmodule is a list of ERC721 transfers. The business logic for
block_to_transfersmodule is written as a Rust function.
nft_statestore module receives transfers in each block extracted by the mapper. The store is a
countof ERC721 tokens for a holder.
The inputs of the module are protobuf models defined as:
eth.erc721.v1.Transfersprotobuf module represents a list of ERC721 transfers in a block.
int64and the merge strategy is