-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
62 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
use crate::block::{BlockHash, BlockNumber, GasPrices}; | ||
use crate::da::L1DataAvailabilityMode; | ||
use crate::version::ProtocolVersion; | ||
use crate::{ContractAddress, Felt}; | ||
|
||
#[derive(Debug, Clone, PartialEq, Eq)] | ||
#[cfg_attr(feature = "arbitrary", derive(::arbitrary::Arbitrary))] | ||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] | ||
pub struct Header { | ||
pub parent_hash: BlockHash, | ||
pub number: BlockNumber, | ||
pub state_diff_length: u32, | ||
pub state_diff_commitment: Felt, | ||
pub transactions_commitment: Felt, | ||
pub receipts_commitment: Felt, | ||
pub events_commitment: Felt, | ||
pub state_root: Felt, | ||
pub timestamp: u64, | ||
pub sequencer_address: ContractAddress, | ||
pub l1_gas_prices: GasPrices, | ||
pub l1_data_gas_prices: GasPrices, | ||
pub l1_da_mode: L1DataAvailabilityMode, | ||
pub protocol_version: ProtocolVersion, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters