Expand description
Gadget SDK
Re-exports§
pub use error::Error;pub use alloy_rpc_types;pub use futures;pub use libp2p;pub use parking_lot;pub use structopt;pub use subxt_core;pub use tangle_subxt;pub use tokio;pub use uuid;
Modules§
- Benchmark Module
- 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
- Slashing and quality of service utilities
- Database storage
- Protocol execution tracer Traces progress of protocol execution
- Transaction Management Module
Macros§
- A
debuglog with the target"gadget" - An
errorlog with the target"gadget" - An
infolog with the target"gadget" - A procedural macro that outputs the JsonAbi for the given file path.
- A
tracelog with the target"gadget" - A
warnlog with the target"gadget"
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.