Expand description
Gadget SDK
Re-exports§
pub use error::Error;
pub use alloy_rpc_types;
pub use async_trait;
pub use clap;
pub use color_eyre;
pub use futures;
pub use k256;
pub use libp2p;
pub use parking_lot;
pub use round_based;
pub use serde;
pub use subxt;
pub use subxt_core;
pub use tangle_subxt;
pub use tokio;
pub use tracing;
pub use uuid;
Modules§
- Benchmark Module
- Sol Bindings
- Blockchain clients
- Gadget configuration
- Gadget Context and context extensions A set of traits and utilities that provide a common interface for interacting with the Gadget SDK.
- Utilities for spinning up and managing Docker containers
- Event Listener Module
- Blockchain Events Watcher Module
- Command execution module
- Keystore Module Keystore Module for Gadget SDK
- Metrics Module
- Network Module
- Prometheus metrics configuration
- Randomness generation module Random number generation utilities.
- Gadget Runner Module
- Blueprint runners
- Slashing and quality of service utilities
- Database storage
- Protocol execution tracer Traces progress of protocol execution
- Transaction Management Module
Macros§
- A
debug
log with the target"gadget"
- An
error
log with the target"gadget"
- An
info
log with the target"gadget"
- A procedural macro that outputs the JsonAbi for the given file path.
- A
trace
log with the target"gadget"
- A
warn
log with the target"gadget"
Structs§
- Wrapper around
Vec<u8>
to serialize and deserialize efficiently.
Attribute Macros§
- A procedural macro that annotates a function as a benchmark hook, mainly used during the benchmarking phase.
- A procedural macro that annotates a function as a job.
- A procedural macro that annotates a function as a main function for the blueprint.
- A procedural macro that annotates a function as a registration hook, mainly used for the metadata in the
blueprint.json
. - Creates a misbehavior report handler for the given function.
- A procedural macro that annotates a function as a request hook, mainly used for the metadata in the
blueprint.json
.