## Issue Addressed Synchronize dependencies and edition on the workspace `Cargo.toml` ## Proposed Changes with https://github.com/rust-lang/cargo/issues/8415 merged it's now possible to synchronize details on the workspace `Cargo.toml` like the metadata and dependencies. By only having dependencies that are shared between multiple crates aligned on the workspace `Cargo.toml` it's easier to not miss duplicate versions of the same dependency and therefore ease on the compile times. ## Additional Info this PR also removes the no longer required direct dependency of the `serde_derive` crate. should be reviewed after https://github.com/sigp/lighthouse/pull/4639 get's merged. closes https://github.com/sigp/lighthouse/issues/4651 Co-authored-by: Michael Sproul <michael@sigmaprime.io> Co-authored-by: Michael Sproul <micsproul@gmail.com>
36 lines
1.9 KiB
Rust
36 lines
1.9 KiB
Rust
use lazy_static::lazy_static;
|
|
pub use lighthouse_metrics::*;
|
|
|
|
lazy_static! {
|
|
/*
|
|
* Participation Metrics
|
|
*/
|
|
pub static ref PARTICIPATION_PREV_EPOCH_HEAD_ATTESTING_GWEI_TOTAL: Result<IntGauge> = try_create_int_gauge(
|
|
"beacon_participation_prev_epoch_head_attesting_gwei_total",
|
|
"Total effective balance (gwei) of validators who attested to the head in the previous epoch"
|
|
);
|
|
pub static ref PARTICIPATION_PREV_EPOCH_TARGET_ATTESTING_GWEI_TOTAL: Result<IntGauge> = try_create_int_gauge(
|
|
"beacon_participation_prev_epoch_target_attesting_gwei_total",
|
|
"Total effective balance (gwei) of validators who attested to the target in the previous epoch"
|
|
);
|
|
pub static ref PARTICIPATION_PREV_EPOCH_SOURCE_ATTESTING_GWEI_TOTAL: Result<IntGauge> = try_create_int_gauge(
|
|
"beacon_participation_prev_epoch_source_attesting_gwei_total",
|
|
"Total effective balance (gwei) of validators who attested to the source in the previous epoch"
|
|
);
|
|
pub static ref PARTICIPATION_PREV_EPOCH_ACTIVE_GWEI_TOTAL: Result<IntGauge> = try_create_int_gauge(
|
|
"beacon_participation_prev_epoch_active_gwei_total",
|
|
"Total effective balance (gwei) of validators active in the previous epoch"
|
|
);
|
|
/*
|
|
* Participation Metrics (progressive balances)
|
|
*/
|
|
pub static ref PARTICIPATION_PREV_EPOCH_TARGET_ATTESTING_GWEI_PROGRESSIVE_TOTAL: Result<IntGauge> = try_create_int_gauge(
|
|
"beacon_participation_prev_epoch_target_attesting_gwei_progressive_total",
|
|
"Progressive total effective balance (gwei) of validators who attested to the target in the previous epoch"
|
|
);
|
|
pub static ref PARTICIPATION_CURR_EPOCH_TARGET_ATTESTING_GWEI_PROGRESSIVE_TOTAL: Result<IntGauge> = try_create_int_gauge(
|
|
"beacon_participation_curr_epoch_target_attesting_gwei_progressive_total",
|
|
"Progressive total effective balance (gwei) of validators who attested to the target in the current epoch"
|
|
);
|
|
}
|