2025-08-15 12:02:33 +02:00
|
|
|
|
using Nethereum.Hex.HexConvertors.Extensions;
|
|
|
|
|
|
using Utils;
|
|
|
|
|
|
|
|
|
|
|
|
namespace CodexContractsPlugin.ChainMonitor
|
|
|
|
|
|
{
|
|
|
|
|
|
public class PeriodRequiredProof
|
|
|
|
|
|
{
|
2025-08-21 10:51:05 +02:00
|
|
|
|
public PeriodRequiredProof(EthAddress host, IChainStateRequest request, int slotIndex, byte[] slotId)
|
2025-08-15 12:02:33 +02:00
|
|
|
|
{
|
|
|
|
|
|
Host = host;
|
|
|
|
|
|
Request = request;
|
|
|
|
|
|
SlotIndex = slotIndex;
|
2025-08-21 10:51:05 +02:00
|
|
|
|
SlotId = slotId;
|
2025-08-15 12:02:33 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public EthAddress Host { get; }
|
|
|
|
|
|
public IChainStateRequest Request { get; }
|
|
|
|
|
|
public int SlotIndex { get; }
|
2025-08-21 10:51:05 +02:00
|
|
|
|
public byte[] SlotId { get; }
|
2025-08-15 12:02:33 +02:00
|
|
|
|
|
|
|
|
|
|
public string Describe()
|
|
|
|
|
|
{
|
2025-08-22 18:55:01 +02:00
|
|
|
|
return $"{Request.RequestId.ToHex()} slotId:{SlotId.ToHex()} slotIndex:{SlotIndex} by {Host}";
|
2025-08-15 12:02:33 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|