Crate gadget_common

Source

Re-exports§

pub use subxt_signer;
pub use async_trait;
pub use color_eyre;
pub use gadget_io;
pub use tangle_subxt;

Modules§

channels
When delivering messages to an async protocol, we want o make sure we don’t mix up voting and public key gossip messages Thus, this file contains a function that takes a channel from the gadget to the async protocol and splits it into two channels
client
config
debug_logger
environments
full_protocol
helpers
keystore
locks
module
prelude
prometheus
protocol
tangle_runtime
tracer
Traces progress of protocol execution
utils

Macros§

generate_protocol
generate_setup_and_run_command
Generates a run function that returns a future that runs all the supplied protocols run concurrently Also generates a setup_node function that sets up the future that runs all the protocols concurrently

Structs§

DefaultPostJobHook
DefaultPreJobHook
ExecutableJobWrapper
JobBuilder
JobError
ProtocolWorkManager

Enums§

Error
PollMethod
ProceedWithExecution
WorkManagerError

Traits§

ExecutableJob
WorkManagerInterface

Functions§

create_work_manager
Creates a work manager
run_protocol

Type Aliases§

BuiltExecutableJobWrapper
CatchJobHook
PostJobHook
PreJobHook
ProtocolJobHook