@@ -34,8 +34,6 @@ pub struct ValidatorDesc {
34
34
#[ derive( Serialize , Deserialize , Debug , Clone ) ]
35
35
#[ serde( rename_all = "camelCase" ) ]
36
36
pub struct Accounting {
37
- #[ serde( rename = "type" ) ]
38
- pub message_type : String ,
39
37
#[ serde( rename = "last_ev_aggr" ) ]
40
38
pub last_event_aggregate : DateTime < Utc > ,
41
39
pub balances_before_fees : BalancesMap ,
@@ -45,8 +43,6 @@ pub struct Accounting {
45
43
#[ derive( Serialize , Deserialize , Debug , Clone ) ]
46
44
#[ serde( rename_all = "camelCase" ) ]
47
45
pub struct ApproveState {
48
- #[ serde( rename = "type" ) ]
49
- pub message_type : String ,
50
46
pub state_root : String ,
51
47
pub signature : String ,
52
48
pub is_healthy : bool ,
@@ -55,8 +51,6 @@ pub struct ApproveState {
55
51
#[ derive( Serialize , Deserialize , Debug , Clone ) ]
56
52
#[ serde( rename_all = "camelCase" ) ]
57
53
pub struct NewState {
58
- #[ serde( rename = "type" ) ]
59
- pub message_type : String ,
60
54
pub state_root : String ,
61
55
pub signature : String ,
62
56
pub balances : String ,
@@ -65,8 +59,6 @@ pub struct NewState {
65
59
#[ derive( Default , Serialize , Deserialize , Debug , Clone ) ]
66
60
#[ serde( rename_all = "camelCase" ) ]
67
61
pub struct RejectState {
68
- #[ serde( rename = "type" ) ]
69
- pub message_type : String ,
70
62
pub reason : String ,
71
63
pub state_root : String ,
72
64
pub signature : String ,
@@ -77,8 +69,6 @@ pub struct RejectState {
77
69
#[ derive( Serialize , Deserialize , Debug , Clone ) ]
78
70
#[ serde( rename_all = "camelCase" ) ]
79
71
pub struct Heartbeat {
80
- #[ serde( rename = "type" ) ]
81
- pub message_type : String ,
82
72
pub signature : String ,
83
73
pub state_root : String ,
84
74
pub timestamp : DateTime < Utc > ,
@@ -87,7 +77,6 @@ pub struct Heartbeat {
87
77
impl Heartbeat {
88
78
pub fn new ( signature : String , state_root : String ) -> Self {
89
79
Self {
90
- message_type : "Heartbeat" . into ( ) ,
91
80
signature,
92
81
state_root,
93
82
timestamp : Utc :: now ( ) ,
0 commit comments