@@ -59,7 +59,7 @@ pub struct BillBlockDataToHash {
5959}
6060
6161/// Data for reject to accept/pay/recourse
62- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
62+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
6363pub struct BillRejectBlockData {
6464 pub rejecter : BillIdentParticipantBlockData , // reject to accept/pay/recourse has to be identified
6565 pub signatory : Option < BillSignatoryBlockData > ,
@@ -82,7 +82,7 @@ impl Validate for BillRejectBlockData {
8282}
8383
8484/// Data for reject to buy
85- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
85+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
8686pub struct BillRejectToBuyBlockData {
8787 pub rejecter : BillParticipantBlockData , // reject to buy can be done by anon
8888 pub signatory : Option < BillSignatoryBlockData > ,
@@ -104,7 +104,7 @@ impl Validate for BillRejectToBuyBlockData {
104104 }
105105}
106106
107- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
107+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
108108pub struct BillIssueBlockData {
109109 pub id : BillId ,
110110 pub country_of_issuing : String ,
@@ -200,7 +200,7 @@ impl BillIssueBlockData {
200200 }
201201}
202202
203- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
203+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
204204pub struct BillAcceptBlockData {
205205 pub accepter : BillIdentParticipantBlockData , // accepter is drawer and has to be identified
206206 pub signatory : Option < BillSignatoryBlockData > ,
@@ -222,7 +222,7 @@ impl Validate for BillAcceptBlockData {
222222 }
223223}
224224
225- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
225+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
226226pub struct BillRequestToPayBlockData {
227227 pub requester : BillParticipantBlockData , // requester is holder and can be anon
228228 pub currency : String ,
@@ -247,7 +247,7 @@ impl Validate for BillRequestToPayBlockData {
247247 }
248248}
249249
250- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
250+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
251251pub struct BillRequestToAcceptBlockData {
252252 pub requester : BillParticipantBlockData , // requester is holder and can be anon
253253 pub signatory : Option < BillSignatoryBlockData > ,
@@ -269,7 +269,7 @@ impl Validate for BillRequestToAcceptBlockData {
269269 }
270270}
271271
272- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
272+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
273273pub struct BillMintBlockData {
274274 pub endorser : BillParticipantBlockData , // bill can be minted by anon
275275 pub endorsee : BillParticipantBlockData , // mints can be anon
@@ -302,7 +302,7 @@ impl Validate for BillMintBlockData {
302302 }
303303}
304304
305- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
305+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
306306pub struct BillOfferToSellBlockData {
307307 pub seller : BillParticipantBlockData , // seller is holder and can be anon
308308 pub buyer : BillParticipantBlockData , // buyer can be anon
@@ -340,7 +340,7 @@ impl Validate for BillOfferToSellBlockData {
340340 }
341341}
342342
343- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
343+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
344344pub struct BillSellBlockData {
345345 pub seller : BillParticipantBlockData , // seller is holder and can be anon
346346 pub buyer : BillParticipantBlockData , // buyer can be anon
@@ -378,7 +378,7 @@ impl Validate for BillSellBlockData {
378378 }
379379}
380380
381- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
381+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
382382pub struct BillEndorseBlockData {
383383 pub endorser : BillParticipantBlockData , // endorser is holder and can be anon
384384 pub endorsee : BillParticipantBlockData , // endorsee can be anon
@@ -406,7 +406,7 @@ impl Validate for BillEndorseBlockData {
406406 }
407407}
408408
409- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
409+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
410410pub struct BillRequestRecourseBlockData {
411411 pub recourser : BillIdentParticipantBlockData , // anon can't do recourse
412412 pub recoursee : BillIdentParticipantBlockData , // anon can't be recoursed against
@@ -418,7 +418,7 @@ pub struct BillRequestRecourseBlockData {
418418 pub signing_address : PostalAddress , // address of the endorser
419419}
420420
421- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq , Eq ) ]
421+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq , Eq ) ]
422422pub enum BillRecourseReasonBlockData {
423423 Accept ,
424424 Pay ,
@@ -446,7 +446,7 @@ impl Validate for BillRequestRecourseBlockData {
446446 }
447447}
448448
449- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
449+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
450450pub struct BillRecourseBlockData {
451451 pub recourser : BillIdentParticipantBlockData , // anon can't do recourse
452452 pub recoursee : BillIdentParticipantBlockData , // anon can't be recoursed against
@@ -481,7 +481,7 @@ impl Validate for BillRecourseBlockData {
481481}
482482
483483/// 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 ) ]
485485pub enum BillParticipantBlockData {
486486 Anon ( BillAnonParticipantBlockData ) ,
487487 Ident ( BillIdentParticipantBlockData ) ,
@@ -547,7 +547,7 @@ impl Validate for BillParticipantBlockData {
547547}
548548
549549/// Anon bill participany data
550- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq , Eq ) ]
550+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq , Eq ) ]
551551pub struct BillAnonParticipantBlockData {
552552 pub node_id : NodeId ,
553553}
@@ -559,7 +559,7 @@ impl Validate for BillAnonParticipantBlockData {
559559}
560560
561561/// 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 ) ]
563563pub struct BillIdentParticipantBlockData {
564564 pub t : ContactType ,
565565 pub node_id : NodeId ,
@@ -654,7 +654,7 @@ impl From<BillIdentParticipantBlockData> for LightBillIdentParticipant {
654654}
655655
656656/// The name and node_id of a company signatory
657- #[ derive( BorshSerialize , BorshDeserialize , Debug , Clone , PartialEq ) ]
657+ #[ derive( BorshSerialize , BorshDeserialize , Serialize , Debug , Clone , PartialEq ) ]
658658pub struct BillSignatoryBlockData {
659659 pub node_id : NodeId ,
660660 pub name : String ,
0 commit comments