Expand description
The high-level client for interacting with chains and validators.
Re-exports§
pub use chain_client::ChainClient;pub use crate::data_types::ClientOutcome;pub use requests_scheduler::RequestsScheduler;pub use requests_scheduler::RequestsSchedulerConfig;pub use requests_scheduler::ScoringWeights;
Modules§
- chain_
client - The client for interacting with a single chain.
- requests_
scheduler - This module manages communication with validator nodes, including load balancing, request deduplication, caching, and performance tracking.
Structs§
- Abort
OnDrop - Wrapper for
AbortHandlethat aborts when its dropped. - Chain
Modes - The per-chain
ListeningModes tracked by a local node, together with a memoizedHashedof the fully-tracked subset. - Client
- A builder that creates
ChainClients which share the cache and notifiers. - Pending
Proposal - A pending proposed block, together with its published blobs.
Enums§
- Listening
Mode - Defines what type of notifications we should process for a chain:
- Timing
Type - Identifies which operation a timing measurement refers to.
Statics§
- DEFAULT_
CERTIFICATE_ DOWNLOAD_ BATCH_ SIZE - Default number of certificates to download in a single batch.
- DEFAULT_
CERTIFICATE_ UPLOAD_ BATCH_ SIZE - Default number of certificates to upload in a single batch.
- DEFAULT_
MAX_ CONCURRENT_ BATCH_ DOWNLOADS - Default maximum number of certificate batch downloads to run concurrently.
- DEFAULT_
MAX_ EVENT_ STREAM_ QUERIES - Default maximum number of concurrent event stream queries.
- DEFAULT_
SENDER_ CERTIFICATE_ DOWNLOAD_ BATCH_ SIZE - Default number of sender-chain certificates to download in a single batch.
Functions§
- create_
bytecode_ blobs - Creates a compressed Contract, Service and bytecode, plus an optional
ApplicationFormatsblob built from the BCS-encodedFormatsdescription bytes.