Skip to content

Commit

Permalink
feat(eips): EIP-2935 history storage contract
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed May 14, 2024
1 parent dd25769 commit 64a77bb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions crates/eips/src/eip2935.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//! Contains the history storage contract, first introduced in the [Prague hardfork](https://github.com/ethereum/execution-apis/blob/main/src/engine/prague.md).
//!
//! See also [EIP-2935](https://eips.ethereum.org/EIPS/eip-2935): Serve historical block hashes from state

use alloy_primitives::{address, bytes, Address, Bytes};

/// The address for the EIP-2935 history storage contract.
pub const HISTORY_STORAGE_ADDRESS: Address = address!("25a219378dad9b3503c8268c9ca836a52427a4fb");

/// The code for the EIP-2935 history storage contract.
pub static HISTORY_STORAGE_CODE: Bytes = bytes!("60203611603157600143035f35116029575f356120000143116029576120005f3506545f5260205ff35b5f5f5260205ff35b5f5ffd00");
2 changes: 2 additions & 0 deletions crates/eips/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ pub mod eip2718;

pub mod eip2930;

pub mod eip2935;

pub mod eip4788;

pub mod eip4895;
Expand Down

0 comments on commit 64a77bb

Please sign in to comment.