cs-codex-dist-tests/ProjectPlugins/CodexContractsPlugin/Marketplace/Customizations.cs

63 lines
1.7 KiB
C#
Raw Normal View History

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;
using Newtonsoft.Json;
2023-12-20 10:34:23 +00:00
namespace CodexContractsPlugin.Marketplace
{
public interface IHasBlock
{
BlockTimeEntry Block { get; set; }
}
public partial class Request : RequestBase, IHasBlock
2023-12-20 10:34:23 +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
}
public partial class RequestFulfilledEventDTO : IHasBlock
{
[JsonIgnore]
2024-04-13 06:57:46 +00:00
public BlockTimeEntry Block { get; set; }
}
public partial class RequestCancelledEventDTO : IHasBlock
{
[JsonIgnore]
2024-04-13 06:57:46 +00:00
public BlockTimeEntry Block { get; set; }
}
2024-08-21 11:59:54 +00:00
public partial class RequestFailedEventDTO : IHasBlock
{
[JsonIgnore]
public BlockTimeEntry Block { get; set; }
}
public partial class SlotFilledEventDTO : IHasBlock
{
[JsonIgnore]
2024-04-13 06:57:46 +00:00
public BlockTimeEntry Block { get; set; }
public EthAddress Host { get; set; }
}
public partial class SlotFreedEventDTO : IHasBlock
{
[JsonIgnore]
2024-04-13 06:57:46 +00:00
public BlockTimeEntry Block { get; set; }
}
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.