2023-12-20 11:34:23 +01:00
|
|
|
|
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
|
|
|
|
using GethPlugin;
|
2024-04-13 08:57:46 +02:00
|
|
|
|
using NethereumWorkflow.BlockUtils;
|
2024-04-08 16:07:52 +02:00
|
|
|
|
using Newtonsoft.Json;
|
2023-12-20 11:34:23 +01:00
|
|
|
|
|
|
|
|
|
namespace CodexContractsPlugin.Marketplace
|
|
|
|
|
{
|
2024-05-31 11:19:50 +02:00
|
|
|
|
public interface IHasBlock
|
|
|
|
|
{
|
|
|
|
|
BlockTimeEntry Block { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public partial class Request : RequestBase, IHasBlock
|
2023-12-20 11:34:23 +01:00
|
|
|
|
{
|
2024-04-08 16:07:52 +02:00
|
|
|
|
[JsonIgnore]
|
2024-04-13 08:57:46 +02:00
|
|
|
|
public BlockTimeEntry Block { get; set; }
|
2023-12-20 11:34:23 +01:00
|
|
|
|
public byte[] RequestId { get; set; }
|
|
|
|
|
|
|
|
|
|
public EthAddress ClientAddress { get { return new EthAddress(Client); } }
|
2024-06-10 14:04:25 +02:00
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
public string Id
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2024-06-20 12:15:59 +02:00
|
|
|
|
return BitConverter.ToString(RequestId).Replace("-", "").ToLowerInvariant();
|
2024-06-10 14:04:25 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-12-20 11:34:23 +01:00
|
|
|
|
}
|
2023-12-20 13:21:53 +01:00
|
|
|
|
|
2024-05-31 11:19:50 +02:00
|
|
|
|
public partial class RequestFulfilledEventDTO : IHasBlock
|
2024-01-22 16:05:04 +01:00
|
|
|
|
{
|
2024-04-08 16:07:52 +02:00
|
|
|
|
[JsonIgnore]
|
2024-04-13 08:57:46 +02:00
|
|
|
|
public BlockTimeEntry Block { get; set; }
|
2024-01-22 16:05:04 +01:00
|
|
|
|
}
|
|
|
|
|
|
2024-05-31 11:19:50 +02:00
|
|
|
|
public partial class RequestCancelledEventDTO : IHasBlock
|
2024-01-22 16:27:32 +01:00
|
|
|
|
{
|
2024-04-08 16:07:52 +02:00
|
|
|
|
[JsonIgnore]
|
2024-04-13 08:57:46 +02:00
|
|
|
|
public BlockTimeEntry Block { get; set; }
|
2024-01-22 16:27:32 +01:00
|
|
|
|
}
|
|
|
|
|
|
2024-08-21 13:59:54 +02:00
|
|
|
|
public partial class RequestFailedEventDTO : IHasBlock
|
|
|
|
|
{
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
public BlockTimeEntry Block { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-31 11:19:50 +02:00
|
|
|
|
public partial class SlotFilledEventDTO : IHasBlock
|
2023-12-20 13:21:53 +01:00
|
|
|
|
{
|
2024-04-08 16:07:52 +02:00
|
|
|
|
[JsonIgnore]
|
2024-04-13 08:57:46 +02:00
|
|
|
|
public BlockTimeEntry Block { get; set; }
|
2023-12-20 13:21:53 +01:00
|
|
|
|
public EthAddress Host { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-31 11:19:50 +02:00
|
|
|
|
public partial class SlotFreedEventDTO : IHasBlock
|
2023-12-20 13:21:53 +01:00
|
|
|
|
{
|
2024-04-08 16:07:52 +02:00
|
|
|
|
[JsonIgnore]
|
2024-04-13 08:57:46 +02:00
|
|
|
|
public BlockTimeEntry Block { get; set; }
|
2023-12-20 13:21:53 +01:00
|
|
|
|
}
|
2023-12-20 11:34:23 +01:00
|
|
|
|
}
|
|
|
|
|
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|