Skip to main content

Module api

Module api 

Source

Re-exportsยง

pub use options::Options;

Modulesยง

context
ApiState reaches consensus and node-wide state only through ApiContext, so the same API modules can be served by a validator (SequencerContext) or by a node that follows the chain without taking part in consensus.
data_source
fs
light_client
options
Sequencer-specific API options and initialization.
sql
The query service over a SQL database, with one module per backend.
state
Implementations of the v1 API traits and the v2 tonic service traits, both reading the one data source this type wraps.
unlock_schedule
update ๐Ÿ”’
Update loop for query API state.

Structsยง

ApiState ๐Ÿ”’
LightClientProvider ๐Ÿ”’
[Provider] implementation wrapping a lazy LightClient.
RewardMerkleTreeV2Data
Representation of the RewardMerkleTreeV2 as a set of key-value pairs

Traitsยง

ApiSink
DecideSink
RewardMerkleTreeDataSource ๐Ÿ”’

Functionsยง

light_client_genesis ๐Ÿ”’
request_vid_shares ๐Ÿ”’

Type Aliasesยง

BlocksFrontier
BoxLazy ๐Ÿ”’
StorageState ๐Ÿ”’