Expand description
Rust core modules for The Graph network.
§Re-exports
This crate re-exports the alloy crate, which provides essential types, traits, and macros.
As this crate relies on types from the alloy crate, it is advisable to use the re-exported
alloy crate instead of adding it to your Cargo.toml file. This approach helps to avoid
potential future crate version conflicts.
Re-exports§
pub use alloy;
Modules§
- Attestation types and functions for verifying attestations.
- client
Deprecated subgraph-clientThe client module provides a high-level client API to query subgraphs.
Macros§
- Converts a sequence of string literals containing hex-encoded data into a new
AllocationIdat compile time. - Converts a sequence of string literals containing CIDv0 data into a new
DeploymentIdat compile time. - Converts a sequence of string literals containing hex-encoded data into a new
IndexerIdat compile time. - Converts a sequence of string literals containing hex-encoded data into a new
ProofOfIndexingat compile time. - Converts a sequence of string literals containing 32-bytes Base58-encoded data into a new
SubgraphIdat compile time.
Structs§
- A unique identifier for an allocation: the allocation’s Ethereum address.
- An attestation of a request-response pair.
- A pointer to a block in the chain.
- A Subgraph’s Deployment ID represents unique identifier for a deployed subgraph on The Graph.
- A unique identifier for an indexer: the indexer’s Ethereum address.
- A Proof of Indexing, “POI”, is a cryptographic proof submitted by indexers to demonstrate that they have accurately indexed a subgraph.
- A Subgraph ID is a 32-byte identifier for a subgraph.
Enums§
- Subgraph deployment ID parsing error.
- Subgraph ID parsing error.