Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions crates/derive/src/types/deposits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ pub enum DepositSourceDomain {
Upgrade(UpgradeDepositSource),
}

impl DepositSourceDomain {
/// Returns the source hash.
pub fn source_hash(&self) -> B256 {
match self {
Self::User(ds) => ds.source_hash(),
Self::L1Info(ds) => ds.source_hash(),
Self::Upgrade(ds) => ds.source_hash(),
}
}
}

/// A deposit transaction source.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct UserDepositSource {
Expand Down
Loading