@@ -37,13 +37,13 @@ impl Tokens {
37
37
}
38
38
}
39
39
40
- #[ derive( Debug , PartialEq , Serialize , Deserialize , Clone , Default , schemars:: JsonSchema ) ]
40
+ #[ derive( Debug , PartialEq , Eq , Serialize , Deserialize , Clone , Default , schemars:: JsonSchema ) ]
41
41
pub struct NodeServed {
42
42
pub served : CommodityServed ,
43
43
pub stables_revenue : HpUfixed < 6 > ,
44
44
}
45
45
46
- #[ derive( Debug , PartialEq , Serialize , Deserialize , Clone , Default , schemars:: JsonSchema ) ]
46
+ #[ derive( Debug , PartialEq , Eq , Serialize , Deserialize , Clone , Default , schemars:: JsonSchema ) ]
47
47
pub struct TotalServed {
48
48
pub served : CommodityServed ,
49
49
pub reward_pool : HpUfixed < 6 > ,
@@ -75,14 +75,14 @@ pub enum CommodityTypes {
75
75
Gpu = 2 ,
76
76
}
77
77
78
- #[ derive( Clone , Debug , Hash , Serialize , Deserialize , schemars:: JsonSchema ) ]
78
+ #[ derive( Clone , Debug , Hash , PartialEq , Eq , Serialize , Deserialize , schemars:: JsonSchema ) ]
79
79
pub struct ReportedReputationMeasurements {
80
80
pub reporting_node : NodeIndex ,
81
81
pub measurements : ReputationMeasurements ,
82
82
}
83
83
84
84
/// Metadata, state stored in the blockchain that applies to the current block
85
- #[ derive( Clone , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
85
+ #[ derive( Debug , Clone , PartialEq , Eq , Hash , Serialize , Deserialize , schemars :: JsonSchema ) ]
86
86
pub enum Metadata {
87
87
ChainId ,
88
88
Epoch ,
@@ -100,7 +100,7 @@ pub enum Metadata {
100
100
}
101
101
102
102
/// The Value enum is a data type used to represent values in a key-value pair for a metadata table
103
- #[ derive( Serialize , Deserialize , Debug , Clone ) ]
103
+ #[ derive( Debug , Clone , PartialEq , Eq , Serialize , Deserialize , schemars :: JsonSchema ) ]
104
104
pub enum Value {
105
105
ChainId ( u32 ) ,
106
106
Epoch ( u64 ) ,
@@ -378,7 +378,19 @@ pub struct Service {
378
378
pub slashing : ( ) ,
379
379
}
380
380
381
- #[ derive( Debug , Hash , PartialEq , PartialOrd , Ord , Eq , Serialize , Deserialize , Clone , Default ) ]
381
+ #[ derive(
382
+ Debug ,
383
+ Hash ,
384
+ PartialEq ,
385
+ PartialOrd ,
386
+ Ord ,
387
+ Eq ,
388
+ Serialize ,
389
+ Deserialize ,
390
+ Clone ,
391
+ Default ,
392
+ schemars:: JsonSchema ,
393
+ ) ]
382
394
pub struct Committee {
383
395
pub members : Vec < NodeIndex > ,
384
396
pub ready_to_change : Vec < NodeIndex > ,
0 commit comments