Skip to content

Commit

Permalink
Add deneb config for sepolia and goerli
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en committed Jan 11, 2024
1 parent 036cfe1 commit 548863d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contracts/near/eth2-utility/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ pub struct NetworkConfig {
pub bellatrix_fork_epoch: u64,
pub capella_fork_version: ForkVersion,
pub capella_fork_epoch: u64,
pub deneb_fork_version: ForkVersion,
pub deneb_fork_epoch: u64,
}

impl NetworkConfig {
Expand All @@ -66,6 +68,8 @@ impl NetworkConfig {
bellatrix_fork_epoch: 144896,
capella_fork_version: [0x03, 0x00, 0x00, 0x00],
capella_fork_epoch: 194048,
deneb_fork_version: [0x04, 0x00, 0x00, 0x00],
deneb_fork_epoch: u64::MAX,
},
Network::Goerli => Self {
genesis_validators_root: [
Expand All @@ -77,6 +81,8 @@ impl NetworkConfig {
bellatrix_fork_epoch: 112260,
capella_fork_version: [0x03, 0x00, 0x10, 0x20],
capella_fork_epoch: 162304,
deneb_fork_version: [0x04, 0x00, 0x10, 0x20],
deneb_fork_epoch: 231680,
},
Network::Sepolia => Self {
genesis_validators_root: [
Expand All @@ -88,6 +94,8 @@ impl NetworkConfig {
bellatrix_fork_epoch: 100,
capella_fork_version: [0x90, 0x00, 0x00, 0x72],
capella_fork_epoch: 56832,
deneb_fork_version: [0x04, 0x00, 0x10, 0x20],
deneb_fork_epoch: 132608,
},
}
}
Expand Down

0 comments on commit 548863d

Please sign in to comment.