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