Skip to main content

Module client

Module client 

Source
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§

AbortOnDrop
Wrapper for AbortHandle that aborts when its dropped.
ChainModes
The per-chain ListeningModes tracked by a local node, together with a memoized Hashed of the fully-tracked subset.
Client
A builder that creates ChainClients which share the cache and notifiers.
PendingProposal
A pending proposed block, together with its published blobs.

Enums§

ListeningMode
Defines what type of notifications we should process for a chain:
TimingType
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 ApplicationFormats blob built from the BCS-encoded Formats description bytes.