Crate zksync_node_fee_model

Source

Modules§

l1_gas_price
This module determines the fees to pay in txs containing blocks submitted to the L1.

Structs§

ApiFeeInputProvider
The fee model provider to be used in the API. It returns the maximum batch fee input between the projected main node one and the one from the last sealed L2 block.
MainNodeFeeInputProvider
The struct that represents the batch fee input provider to be used in the main node of the server. This struct gets the L1 gas price directly from the provider rather than from another node, as is the case with the external node.
MockBatchFeeParamsProvider
Mock BatchFeeModelInputProvider implementation that returns a constant value. Intended to be used in tests only.

Traits§

BatchFeeModelInputProvider
Trait responsible for providing fee info for a batch