This is a Rust module designed for Substreams that focuses on handling secondary issue pools and related data.
The Substreams Secondary Module is a Rust module developed to detect pools, subscriptions events. This module is a crucial part of the Substreams project, which aims to provide high-performance blockchain indexing technology.
Before using the Substreams Secondary Module, ensure that you have Rust and substreams installed. Follow the official Rust installation guide: Rust Installation. Also, refer to the official Substreams installation guide: Substreams Installation.
After setting up Rust and Substreams, you can build and run this module.
To use the Substreams Primary Module, follow these steps:
- Generate Rust Code: Navigate to the module folder and execute the following command to generate Rust code for connecting to protobuf:
substreams protogen substreams.yaml --exclude-paths="sf/substreams,google"
- Build the Rust Code: Run the following command within the module folder to build the Rust code:
cargo build --target wasm32-unknown-unknown --release3.
- Execute the Module: To execute the module, run the following command in the module folder:
substreams run -e <Protocol-Proto model> substreams.yaml <FUNCTION_NAME> --start-block 9561663 --stop-block +20
Replace with the desired protocol model. Supported protocol-Proto models are listed in the Verified Substreams README.
Description: This function detects poolcreated event from blockchain and returns information about them.
Description: This function detects Trades events under the address of poolcreated event at a perticular block and maps them to the appropriate data structures.
Description: This function generates key-value operations based on the provided subscription data for the client interface.
- abi: Contains Rust code for working with ABI.
- pb: Contains Rust code for protocol buffers.