Skip to content

Commit

Permalink
chore(eth-lc): remove unused config constants
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-aitlahcen committed Feb 26, 2025
1 parent c6b5b99 commit 7e0cd6c
Showing 1 changed file with 0 additions and 64 deletions.
64 changes: 0 additions & 64 deletions lib/beacon-api-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,67 +502,3 @@ pub mod preset {
MAX_WITHDRAWALS_PER_PAYLOAD: 4,
};
}

#[derive(Debug, Clone, PartialEq)]
pub struct Config {
pub preset: preset::Preset,
pub fork_parameters: ForkParameters,
pub min_genesis_time: u64,
}

pub const MAINNET: Config = Config {
preset: preset::MAINNET,
fork_parameters: ForkParameters {
genesis_fork_version: Version(FixedBytes::new([0, 0, 0, 0])),
genesis_slot: Slot::new(0),

altair: Fork {
version: Version(FixedBytes::new([1, 0, 0, 0])),
epoch: 74_240,
},
bellatrix: Fork {
version: Version(FixedBytes::new([2, 0, 0, 0])),
epoch: 144_896,
},
capella: Fork {
version: Version(FixedBytes::new([3, 0, 0, 0])),
epoch: 194_048,
},
// TODO: enabled march 13th 2024
deneb: Fork {
version: Version(FixedBytes::new([4, 0, 0, 0])),
epoch: u64::MAX,
},
},
min_genesis_time: 1_606_824_000,
};

pub const MINIMAL: Config = Config {
preset: preset::MINIMAL,
fork_parameters: ForkParameters {
genesis_fork_version: Version(FixedBytes::new([0, 0, 0, 1])),
genesis_slot: Slot::new(0),

altair: Fork {
version: Version(FixedBytes::new([1, 0, 0, 1])),
epoch: 0,
},

bellatrix: Fork {
version: Version(FixedBytes::new([2, 0, 0, 1])),
epoch: 0,
},

capella: Fork {
version: Version(FixedBytes::new([3, 0, 0, 1])),
epoch: 0,
},

// NOTE: dummy data
deneb: Fork {
version: Version(FixedBytes::new([4, 0, 0, 1])),
epoch: 0,
},
},
min_genesis_time: 1_578_009_600,
};

0 comments on commit 7e0cd6c

Please sign in to comment.