Crate gadget_sdk

Source
Expand description

Gadget SDK

Re-exports§

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§

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.