@@ -71,11 +71,9 @@ pub struct PublishStorageDealsReturn {
71
71
pub valid_deals : BitField ,
72
72
}
73
73
74
- // Changed since V2:
75
- // - Array of Sectors rather than just one
76
- // - Removed SectorStart
77
74
#[ derive( Serialize_tuple , Deserialize_tuple , Debug , Clone , Eq , PartialEq ) ]
78
75
pub struct VerifyDealsForActivationParams {
76
+ /// Deals to verify, grouped by sector.
79
77
pub sectors : Vec < SectorDeals > ,
80
78
}
81
79
@@ -100,9 +98,11 @@ pub struct SectorDealData {
100
98
#[ derive( Serialize_tuple , Deserialize_tuple , Debug , Clone , Eq , PartialEq ) ]
101
99
#[ serde( transparent) ]
102
100
pub struct BatchActivateDealsParams {
101
+ /// Deals to activate, grouped by sector.
103
102
pub sectors : Vec < SectorDeals > ,
104
103
}
105
104
105
+ // Information about a verified deal that has been activated.
106
106
#[ derive( Serialize_tuple , Deserialize_tuple , Debug , Clone , Eq , PartialEq ) ]
107
107
pub struct VerifiedDealInfo {
108
108
pub client : ActorID ,
@@ -111,16 +111,21 @@ pub struct VerifiedDealInfo {
111
111
pub size : PaddedPieceSize ,
112
112
}
113
113
114
+ // Information about a sector-grouping of deals that have been activated.
114
115
#[ derive( Serialize_tuple , Deserialize_tuple , Debug , Clone , Eq , PartialEq ) ]
115
116
pub struct DealActivation {
117
+ /// The total size of the non-verified deals activated.
116
118
#[ serde( with = "bigint_ser" ) ]
117
119
pub nonverified_deal_space : BigInt ,
120
+ /// Information about each verified deal activated.
118
121
pub verified_infos : Vec < VerifiedDealInfo > ,
119
122
}
120
123
121
124
#[ derive( Serialize_tuple , Deserialize_tuple , Debug , Clone , Eq , PartialEq ) ]
122
125
pub struct BatchActivateDealsResult {
126
+ /// Status of each sector grouping of deals.
123
127
pub activation_results : BatchReturn ,
128
+ /// Activation information for the sector groups that were activated.
124
129
pub activations : Vec < DealActivation > ,
125
130
}
126
131
0 commit comments