4
4
use cid:: Cid ;
5
5
use fvm_ipld_bitfield:: BitField ;
6
6
use fvm_ipld_encoding:: tuple:: * ;
7
- use fvm_ipld_encoding:: { serde_bytes, BytesDe , Cbor } ;
7
+ use fvm_ipld_encoding:: { serde_bytes, BytesDe } ;
8
8
use fvm_shared:: address:: Address ;
9
9
use fvm_shared:: bigint:: bigint_ser;
10
10
use fvm_shared:: clock:: ChainEpoch ;
@@ -119,17 +119,13 @@ pub struct SubmitWindowedPoStParams {
119
119
pub chain_commit_rand : Randomness ,
120
120
}
121
121
122
- impl Cbor for SubmitWindowedPoStParams { }
123
-
124
122
#[ derive( Serialize_tuple , Deserialize_tuple ) ]
125
123
pub struct ProveCommitSectorParams {
126
124
pub sector_number : SectorNumber ,
127
125
#[ serde( with = "serde_bytes" ) ]
128
126
pub proof : Vec < u8 > ,
129
127
}
130
128
131
- impl Cbor for ProveCommitSectorParams { }
132
-
133
129
#[ derive( Serialize_tuple , Deserialize_tuple ) ]
134
130
pub struct CheckSectorProvenParams {
135
131
pub sector_number : SectorNumber ,
@@ -140,8 +136,6 @@ pub struct ExtendSectorExpirationParams {
140
136
pub extensions : Vec < ExpirationExtension > ,
141
137
}
142
138
143
- impl Cbor for ExtendSectorExpirationParams { }
144
-
145
139
#[ derive( Serialize_tuple , Deserialize_tuple ) ]
146
140
pub struct ExpirationExtension {
147
141
pub deadline : u64 ,
@@ -155,17 +149,13 @@ pub struct ExtendSectorExpiration2Params {
155
149
pub extensions : Vec < ExpirationExtension2 > ,
156
150
}
157
151
158
- impl Cbor for ExtendSectorExpiration2Params { }
159
-
160
152
#[ derive( Clone , Debug , Serialize_tuple , Deserialize_tuple ) ]
161
153
pub struct SectorClaim {
162
154
pub sector_number : SectorNumber ,
163
155
pub maintain_claims : Vec < ClaimID > ,
164
156
pub drop_claims : Vec < ClaimID > ,
165
157
}
166
158
167
- impl Cbor for SectorClaim { }
168
-
169
159
#[ derive( Clone , Debug , Serialize_tuple , Deserialize_tuple ) ]
170
160
pub struct ExpirationExtension2 {
171
161
pub deadline : u64 ,
@@ -175,8 +165,6 @@ pub struct ExpirationExtension2 {
175
165
pub new_expiration : ChainEpoch ,
176
166
}
177
167
178
- impl Cbor for ExpirationExtension2 { }
179
-
180
168
// From is straightforward when there are no claim bearing sectors
181
169
impl From < & ExpirationExtension > for ExpirationExtension2 {
182
170
fn from ( e : & ExpirationExtension ) -> Self {
@@ -195,8 +183,6 @@ pub struct TerminateSectorsParams {
195
183
pub terminations : Vec < TerminationDeclaration > ,
196
184
}
197
185
198
- impl Cbor for TerminateSectorsParams { }
199
-
200
186
#[ derive( Serialize_tuple , Deserialize_tuple ) ]
201
187
pub struct TerminationDeclaration {
202
188
pub deadline : u64 ,
@@ -234,8 +220,6 @@ pub struct DeclareFaultsRecoveredParams {
234
220
pub recoveries : Vec < RecoveryDeclaration > ,
235
221
}
236
222
237
- impl Cbor for DeclareFaultsRecoveredParams { }
238
-
239
223
#[ derive( Serialize_tuple , Deserialize_tuple ) ]
240
224
pub struct RecoveryDeclaration {
241
225
/// The deadline to which the recovered sectors are assigned, in range [0..WPoStPeriodDeadlines)
@@ -246,8 +230,6 @@ pub struct RecoveryDeclaration {
246
230
pub sectors : BitField ,
247
231
}
248
232
249
- impl Cbor for RecoveryDeclaration { }
250
-
251
233
#[ derive( Serialize_tuple , Deserialize_tuple ) ]
252
234
pub struct CompactPartitionsParams {
253
235
pub deadline : u64 ,
@@ -274,8 +256,6 @@ pub struct WithdrawBalanceParams {
274
256
pub amount_requested : TokenAmount ,
275
257
}
276
258
277
- impl Cbor for WithdrawBalanceParams { }
278
-
279
259
#[ derive( Serialize_tuple , Deserialize_tuple ) ]
280
260
#[ serde( transparent) ]
281
261
pub struct WithdrawBalanceReturn {
@@ -308,21 +288,16 @@ pub struct PreCommitSectorParams {
308
288
pub replace_sector_number : SectorNumber ,
309
289
}
310
290
311
- impl Cbor for PreCommitSectorParams { }
312
-
313
291
#[ derive( Debug , PartialEq , Eq , Clone , Serialize_tuple , Deserialize_tuple ) ]
314
292
pub struct PreCommitSectorBatchParams {
315
293
pub sectors : Vec < PreCommitSectorParams > ,
316
294
}
317
- impl Cbor for PreCommitSectorBatchParams { }
318
295
319
296
#[ derive( Debug , PartialEq , Eq , Clone , Serialize_tuple , Deserialize_tuple ) ]
320
297
pub struct PreCommitSectorBatchParams2 {
321
298
pub sectors : Vec < SectorPreCommitInfo > ,
322
299
}
323
300
324
- impl Cbor for PreCommitSectorBatchParams2 { }
325
-
326
301
#[ derive( Debug , Default , PartialEq , Eq , Clone , Serialize_tuple , Deserialize_tuple ) ]
327
302
pub struct SectorPreCommitInfo {
328
303
pub seal_proof : RegisteredSealProof ,
@@ -392,16 +367,12 @@ pub struct ApplyRewardParams {
392
367
pub penalty : TokenAmount ,
393
368
}
394
369
395
- impl Cbor for DisputeWindowedPoStParams { }
396
-
397
370
#[ derive( Debug , PartialEq , Eq , Clone , Copy , Serialize_tuple , Deserialize_tuple ) ]
398
371
pub struct DisputeWindowedPoStParams {
399
372
pub deadline : u64 ,
400
373
pub post_index : u64 , // only one is allowed at a time to avoid loading too many sector infos.
401
374
}
402
375
403
- impl Cbor for ProveCommitAggregateParams { }
404
-
405
376
#[ derive( Debug , Serialize_tuple , Deserialize_tuple ) ]
406
377
pub struct ProveCommitAggregateParams {
407
378
pub sector_numbers : BitField ,
@@ -426,8 +397,6 @@ pub struct ProveReplicaUpdatesParams {
426
397
pub updates : Vec < ReplicaUpdate > ,
427
398
}
428
399
429
- impl Cbor for ProveReplicaUpdatesParams { }
430
-
431
400
#[ derive( Debug , PartialEq , Eq , Serialize_tuple , Deserialize_tuple ) ]
432
401
pub struct ReplicaUpdate2 {
433
402
pub sector_number : SectorNumber ,
@@ -446,8 +415,6 @@ pub struct ProveReplicaUpdatesParams2 {
446
415
pub updates : Vec < ReplicaUpdate2 > ,
447
416
}
448
417
449
- impl Cbor for ProveReplicaUpdatesParams2 { }
450
-
451
418
#[ derive( Debug , Clone , Serialize_tuple , Deserialize_tuple ) ]
452
419
pub struct ChangeBeneficiaryParams {
453
420
pub new_beneficiary : Address ,
@@ -465,20 +432,14 @@ impl ChangeBeneficiaryParams {
465
432
}
466
433
}
467
434
468
- impl Cbor for ChangeBeneficiaryParams { }
469
-
470
435
#[ derive( Debug , Serialize_tuple , Deserialize_tuple ) ]
471
436
pub struct ActiveBeneficiary {
472
437
pub beneficiary : Address ,
473
438
pub term : BeneficiaryTerm ,
474
439
}
475
440
476
- impl Cbor for ActiveBeneficiary { }
477
-
478
441
#[ derive( Debug , Serialize_tuple , Deserialize_tuple ) ]
479
442
pub struct GetBeneficiaryReturn {
480
443
pub active : ActiveBeneficiary ,
481
444
pub proposed : Option < PendingBeneficiaryChange > ,
482
445
}
483
-
484
- impl Cbor for GetBeneficiaryReturn { }
0 commit comments