94 lines
2.1 KiB
C#
Raw Normal View History

2025-03-04 15:58:45 +01:00
using BlockchainUtils;
using System.Numerics;
2025-01-16 13:24:57 +01:00
using Utils;
2024-06-03 10:38:48 +02:00
namespace CodexContractsPlugin.ChainMonitor
{
public class DoNothingChainEventHandler : IChainStateChangeHandler
{
public void OnNewRequest(RequestEvent requestEvent)
2024-06-03 10:38:48 +02:00
{
}
public void OnRequestCancelled(RequestEvent requestEvent)
2024-06-03 10:38:48 +02:00
{
}
2024-08-21 13:59:54 +02:00
public void OnRequestFailed(RequestEvent requestEvent)
{
}
public void OnRequestFinished(RequestEvent requestEvent)
2024-06-03 10:38:48 +02:00
{
}
public void OnRequestFulfilled(RequestEvent requestEvent)
2024-06-03 10:38:48 +02:00
{
}
public void OnSlotFilled(RequestEvent requestEvent, EthAddress host, BigInteger slotIndex, bool isRepair)
2024-06-03 10:38:48 +02:00
{
}
public void OnSlotFreed(RequestEvent requestEvent, BigInteger slotIndex)
2024-06-03 10:38:48 +02:00
{
}
public void OnSlotReservationsFull(RequestEvent requestEvent, BigInteger slotIndex)
{
}
public void OnError(string msg)
{
}
2025-03-04 15:58:45 +01:00
public void OnProofSubmitted(BlockTimeEntry block, string id)
{
}
2024-06-03 10:38:48 +02:00
}
public class DoNothingThrowingChainEventHandler : IChainStateChangeHandler
{
public void OnNewRequest(RequestEvent requestEvent)
{
}
public void OnRequestCancelled(RequestEvent requestEvent)
{
}
public void OnRequestFailed(RequestEvent requestEvent)
{
}
public void OnRequestFinished(RequestEvent requestEvent)
{
}
public void OnRequestFulfilled(RequestEvent requestEvent)
{
}
public void OnSlotFilled(RequestEvent requestEvent, EthAddress host, BigInteger slotIndex, bool isRepair)
{
}
public void OnSlotFreed(RequestEvent requestEvent, BigInteger slotIndex)
{
}
public void OnSlotReservationsFull(RequestEvent requestEvent, BigInteger slotIndex)
{
}
public void OnError(string msg)
{
throw new Exception(msg);
}
public void OnProofSubmitted(BlockTimeEntry block, string id)
{
}
}
2024-06-03 10:38:48 +02:00
}