-
Notifications
You must be signed in to change notification settings - Fork 34
/
RevelationPenaltyOperation.cs
66 lines (55 loc) 路 2.1 KB
/
RevelationPenaltyOperation.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
锘縰sing System;
namespace Tzkt.Api.Models
{
public class RevelationPenaltyOperation : Operation
{
/// <summary>
/// Type of the operation, `revelation_penalty` - is operation, in which rewards were lost due to unrevealed seed nonces by the delegate (synthetic type)
/// </summary>
public override string Type => OpTypes.RevelationPenalty;
/// <summary>
/// Unique ID of the operation, stored in the TzKT indexer database
/// </summary>
public override long Id { get; set; }
/// <summary>
/// The height of the block from the genesis block, in which the operation was included
/// </summary>
public int Level { get; set; }
/// <summary>
/// Datetime of the block, in which the operation was included (ISO 8601, e.g. `2020-02-20T02:40:57Z`)
/// </summary>
public DateTime Timestamp { get; set; }
/// <summary>
/// Hash of the block, in which the operation was included
/// </summary>
public string Block { get; set; }
/// <summary>
/// Information about the delegate (baker) who has lost rewards due to unrevealed seed nonces
/// </summary>
public Alias Baker { get; set; }
/// <summary>
/// Height of the block, which contains hash of the seed nonce, which was to be revealed
/// </summary>
public int MissedLevel { get; set; }
/// <summary>
/// Reward for baking and gathered fees from the block, which were lost due to unrevealed seed nonces (micro tez)
/// </summary>
public long Loss { get; set; }
#region injecting
/// <summary>
/// Injected historical quote at the time of operation
/// </summary>
public QuoteShort Quote { get; set; }
#endregion
#region deprecated
/// <summary>
/// [DEPRECATED]
/// </summary>
public long LostReward => Loss;
/// <summary>
/// [DEPRECATED]
/// </summary>
public long LostFees => 0;
#endregion
}
}