Skip to content

Commit f96f426

Browse files
estensenmattsse
andauthored
chore: complete optimism mainnet forkid tests (paradigmxyz#8114)
Co-authored-by: Matthias Seitz <[email protected]>
1 parent 157b77b commit f96f426

File tree

1 file changed

+38
-1
lines changed
  • crates/optimism/chainspec/src

1 file changed

+38
-1
lines changed

crates/optimism/chainspec/src/lib.rs

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,11 +578,48 @@ mod tests {
578578
Head { number: 0, ..Default::default() },
579579
ForkId { hash: ForkHash([0xca, 0xf5, 0x17, 0xed]), next: 3950000 },
580580
),
581-
// TODO: complete these, see https://github.com/paradigmxyz/reth/issues/8012
581+
// London
582+
(
583+
Head { number: 105235063, ..Default::default() },
584+
ForkId { hash: ForkHash([0xe3, 0x39, 0x8d, 0x7c]), next: 1704992401 },
585+
),
586+
// Bedrock
587+
(
588+
Head { number: 105235063, ..Default::default() },
589+
ForkId { hash: ForkHash([0xe3, 0x39, 0x8d, 0x7c]), next: 1704992401 },
590+
),
591+
// Shanghai
592+
(
593+
Head { number: 105235063, timestamp: 1704992401, ..Default::default() },
594+
ForkId { hash: ForkHash([0xbd, 0xd4, 0xfd, 0xb2]), next: 1710374401 },
595+
),
596+
// OP activation timestamps
597+
// https://specs.optimism.io/protocol/superchain-upgrades.html#activation-timestamps
598+
// Canyon
599+
(
600+
Head { number: 105235063, timestamp: 1704992401, ..Default::default() },
601+
ForkId { hash: ForkHash([0xbd, 0xd4, 0xfd, 0xb2]), next: 1710374401 },
602+
),
603+
// Ecotone
582604
(
583605
Head { number: 105235063, timestamp: 1710374401, ..Default::default() },
584606
ForkId { hash: ForkHash([0x19, 0xda, 0x4c, 0x52]), next: 1720627201 },
585607
),
608+
// Fjord
609+
(
610+
Head { number: 105235063, timestamp: 1720627201, ..Default::default() },
611+
ForkId { hash: ForkHash([0x49, 0xfb, 0xfe, 0x1e]), next: 1726070401 },
612+
),
613+
// Granite
614+
(
615+
Head { number: 105235063, timestamp: 1726070401, ..Default::default() },
616+
ForkId { hash: ForkHash([0x44, 0x70, 0x4c, 0xde]), next: 1736445601 },
617+
),
618+
// Holocene
619+
(
620+
Head { number: 105235063, timestamp: 1736445601, ..Default::default() },
621+
ForkId { hash: ForkHash([0x2b, 0xd9, 0x3d, 0xc8]), next: 0 },
622+
),
586623
],
587624
);
588625
}

0 commit comments

Comments
 (0)