Expand description
Rust core modules for The Graph network.
§Re-export of the alloy
crate
This crate re-exports the alloy
crate, which provides essential types, traits, and macros.
To avoid potential future crate version conflicts, it is recommended to use the re-exported
alloy
crate instead of adding it directly to your Cargo.toml
file.
For convenience, this crate also re-exports the features of the alloy
crate. These features
follow the naming convention alloy-<feature>
. For example, the alloy-signers
and
alloy-signer-local
features enable the signers
and signer-local
optional features of the
alloy
crate, respectively.
If you need to enable an alloy
crate feature that is not yet re-exported by this crate, you
can enable the alloy-full
feature to enable all alloy
features.
§Features
The following features are available for this crate:
attestation
: Enables theattestation
module, which provides types and functions for attestation-related operations.async-graphql
: Enables support for the [async-graphql
] crate.fake
: Enables thefake
crate integration for generating random test data.serde
: Enablesserde
serialization and deserialization support for types in this crate.signed-message
: Enables thesigned_message
module, which provides types and functions for EIP-712 message signing and verification.
Additionally, this crate re-exports other features from the alloy
crate as described above.
Re-exports§
pub use alloy;
Modules§
- attestation
attestation
- Attestation types and functions for verifying attestations.
- fake_
impl fake
- Implementation of the
fake
crate traits for generating random test data. - signed_
message signed-message
- EIP-712 message signing and verification.
Macros§
- allocation_
id - Converts a sequence of string literals containing hex-encoded data into a new
AllocationId
at compile time. - deployment_
id - Converts a sequence of string literals containing CIDv0 data into a new
DeploymentId
at compile time. - indexer_
id - Converts a sequence of string literals containing hex-encoded data into a new
IndexerId
at compile time. - proof_
of_ indexing - Converts a sequence of string literals containing hex-encoded data into a new
ProofOfIndexing
at compile time. - subgraph_
id - Converts a sequence of string literals containing 32-bytes Base58-encoded data into a new
SubgraphId
at compile time.
Structs§
- Allocation
Id - A unique identifier for an allocation: the allocation’s Ethereum address.
- Block
Pointer - A pointer to a block in the chain.
- Deployment
Id - A Subgraph’s Deployment ID represents unique identifier for a deployed subgraph on The Graph.
- Indexer
Id - A unique identifier for an indexer: the indexer’s Ethereum address.
- Proof
OfIndexing - A Proof of Indexing, “POI”, is a cryptographic proof submitted by indexers to demonstrate that they have accurately indexed a subgraph.
- Subgraph
Id - A Subgraph ID is a 32-byte identifier for a subgraph.
Enums§
- Parse
Deployment IdError - Subgraph deployment ID parsing error.
- Parse
Subgraph IdError - Subgraph ID parsing error.