1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
// Copyright 2021 ChainSafe Systems
// SPDX-License-Identifier: LGPL-3.0-only

use frame_support::pallet_prelude::*;

/// Represents an answer of a feed at a certain point of time
#[derive(PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug, scale_info::TypeInfo)]
pub struct TimestampedValue<Value, Moment> {
	/// The timestamped value
	pub value: Value,
	/// Timestamp when the answer was first received
	pub moment: Moment,
}