@@ -59,7 +59,7 @@ pub struct BillBlockDataToHash {
59
59
}
60
60
61
61
/// Data for reject to accept/pay/recourse
62
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
62
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
63
63
pub struct BillRejectBlockData {
64
64
pub rejecter : BillIdentParticipantBlockData , // reject to accept/pay/recourse has to be identified
65
65
pub signatory : Option < BillSignatoryBlockData > ,
@@ -82,7 +82,7 @@ impl Validate for BillRejectBlockData {
82
82
}
83
83
84
84
/// Data for reject to buy
85
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
85
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
86
86
pub struct BillRejectToBuyBlockData {
87
87
pub rejecter : BillParticipantBlockData , // reject to buy can be done by anon
88
88
pub signatory : Option < BillSignatoryBlockData > ,
@@ -104,7 +104,7 @@ impl Validate for BillRejectToBuyBlockData {
104
104
}
105
105
}
106
106
107
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
107
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
108
108
pub struct BillIssueBlockData {
109
109
pub id : BillId ,
110
110
pub country_of_issuing : String ,
@@ -200,7 +200,7 @@ impl BillIssueBlockData {
200
200
}
201
201
}
202
202
203
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
203
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
204
204
pub struct BillAcceptBlockData {
205
205
pub accepter : BillIdentParticipantBlockData , // accepter is drawer and has to be identified
206
206
pub signatory : Option < BillSignatoryBlockData > ,
@@ -222,7 +222,7 @@ impl Validate for BillAcceptBlockData {
222
222
}
223
223
}
224
224
225
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
225
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
226
226
pub struct BillRequestToPayBlockData {
227
227
pub requester : BillParticipantBlockData , // requester is holder and can be anon
228
228
pub currency : String ,
@@ -247,7 +247,7 @@ impl Validate for BillRequestToPayBlockData {
247
247
}
248
248
}
249
249
250
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
250
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
251
251
pub struct BillRequestToAcceptBlockData {
252
252
pub requester : BillParticipantBlockData , // requester is holder and can be anon
253
253
pub signatory : Option < BillSignatoryBlockData > ,
@@ -269,7 +269,7 @@ impl Validate for BillRequestToAcceptBlockData {
269
269
}
270
270
}
271
271
272
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
272
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
273
273
pub struct BillMintBlockData {
274
274
pub endorser : BillParticipantBlockData , // bill can be minted by anon
275
275
pub endorsee : BillParticipantBlockData , // mints can be anon
@@ -302,7 +302,7 @@ impl Validate for BillMintBlockData {
302
302
}
303
303
}
304
304
305
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
305
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
306
306
pub struct BillOfferToSellBlockData {
307
307
pub seller : BillParticipantBlockData , // seller is holder and can be anon
308
308
pub buyer : BillParticipantBlockData , // buyer can be anon
@@ -340,7 +340,7 @@ impl Validate for BillOfferToSellBlockData {
340
340
}
341
341
}
342
342
343
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
343
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
344
344
pub struct BillSellBlockData {
345
345
pub seller : BillParticipantBlockData , // seller is holder and can be anon
346
346
pub buyer : BillParticipantBlockData , // buyer can be anon
@@ -378,7 +378,7 @@ impl Validate for BillSellBlockData {
378
378
}
379
379
}
380
380
381
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
381
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
382
382
pub struct BillEndorseBlockData {
383
383
pub endorser : BillParticipantBlockData , // endorser is holder and can be anon
384
384
pub endorsee : BillParticipantBlockData , // endorsee can be anon
@@ -406,7 +406,7 @@ impl Validate for BillEndorseBlockData {
406
406
}
407
407
}
408
408
409
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
409
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
410
410
pub struct BillRequestRecourseBlockData {
411
411
pub recourser : BillIdentParticipantBlockData , // anon can't do recourse
412
412
pub recoursee : BillIdentParticipantBlockData , // anon can't be recoursed against
@@ -418,7 +418,7 @@ pub struct BillRequestRecourseBlockData {
418
418
pub signing_address : PostalAddress , // address of the endorser
419
419
}
420
420
421
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq , Eq ) ]
421
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq , Eq ) ]
422
422
pub enum BillRecourseReasonBlockData {
423
423
Accept ,
424
424
Pay ,
@@ -446,7 +446,7 @@ impl Validate for BillRequestRecourseBlockData {
446
446
}
447
447
}
448
448
449
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
449
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
450
450
pub struct BillRecourseBlockData {
451
451
pub recourser : BillIdentParticipantBlockData , // anon can't do recourse
452
452
pub recoursee : BillIdentParticipantBlockData , // anon can't be recoursed against
@@ -481,7 +481,7 @@ impl Validate for BillRecourseBlockData {
481
481
}
482
482
483
483
/// Participant in a bill transaction - either anonymous, or identified
484
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq , Eq ) ]
484
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq , Eq ) ]
485
485
pub enum BillParticipantBlockData {
486
486
Anon ( BillAnonParticipantBlockData ) ,
487
487
Ident ( BillIdentParticipantBlockData ) ,
@@ -547,7 +547,7 @@ impl Validate for BillParticipantBlockData {
547
547
}
548
548
549
549
/// Anon bill participany data
550
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq , Eq ) ]
550
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq , Eq ) ]
551
551
pub struct BillAnonParticipantBlockData {
552
552
pub node_id : NodeId ,
553
553
}
@@ -559,7 +559,7 @@ impl Validate for BillAnonParticipantBlockData {
559
559
}
560
560
561
561
/// Legal data for parties of a bill within the liability chain
562
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq , Eq ) ]
562
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq , Eq ) ]
563
563
pub struct BillIdentParticipantBlockData {
564
564
pub t : ContactType ,
565
565
pub node_id : NodeId ,
@@ -654,7 +654,7 @@ impl From<BillIdentParticipantBlockData> for LightBillIdentParticipant {
654
654
}
655
655
656
656
/// The name and node_id of a company signatory
657
- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
657
+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
658
658
pub struct BillSignatoryBlockData {
659
659
pub node_id : NodeId ,
660
660
pub name : String ,
0 commit comments