24 lines
602 B
C#
Raw Normal View History

2025-08-15 12:02:33 +02:00
using Utils;
namespace CodexContractsPlugin.ChainMonitor
{
public class ProofPeriod
{
2025-08-21 09:54:46 +02:00
public ProofPeriod(ulong periodNumber, TimeRange timeRange, BlockInterval blockRange)
2025-08-15 12:02:33 +02:00
{
PeriodNumber = periodNumber;
2025-08-21 09:54:46 +02:00
TimeRange = timeRange;
BlockRange = blockRange;
2025-08-15 12:02:33 +02:00
}
public ulong PeriodNumber { get; }
2025-08-21 09:54:46 +02:00
public TimeRange TimeRange { get; }
public BlockInterval BlockRange { get; }
2025-08-15 12:02:33 +02:00
public override string ToString()
{
2025-08-21 09:54:46 +02:00
return $"{{{PeriodNumber} - {TimeRange} {BlockRange}}}";
2025-08-15 12:02:33 +02:00
}
}
}