use bee_block::payload::{milestone::MilestoneIndex, transaction::TransactionId};
#[derive(Clone, Debug, Eq, PartialEq, packable::Packable)]
pub struct ConsumedOutput {
target: TransactionId,
milestone_index: MilestoneIndex,
milestone_timestamp: u32,
}
impl ConsumedOutput {
pub fn new(target: TransactionId, milestone_index: MilestoneIndex, milestone_timestamp: u32) -> Self {
Self {
target,
milestone_index,
milestone_timestamp,
}
}
pub fn target(&self) -> &TransactionId {
&self.target
}
pub fn milestone_index(&self) -> MilestoneIndex {
self.milestone_index
}
pub fn milestone_timestamp(&self) -> u32 {
self.milestone_timestamp
}
}