fuel_core_producer/block_producer/
gas_price.rs1use fuel_core_types::blockchain::header::ConsensusParametersVersion;
2use std::sync::Arc;
3
4pub trait GasPriceProvider {
6 fn production_gas_price(&self) -> anyhow::Result<u64>;
8
9 fn dry_run_gas_price(&self) -> anyhow::Result<u64>;
10}
11
12#[cfg_attr(feature = "test-helpers", mockall::automock)]
14pub trait ConsensusParametersProvider {
15 fn consensus_params_at_version(
17 &self,
18 version: &ConsensusParametersVersion,
19 ) -> anyhow::Result<Arc<fuel_core_types::fuel_tx::ConsensusParameters>>;
20}