@@ -11,14 +11,14 @@ use crate::{field::FieldMaskTree, merge::Merge, proto::TryFromProtoError, v0::bc
1111// CheckpointSummary
1212//
1313
14- impl From < iota_sdk2 :: types :: CheckpointSummary > for CheckpointSummary {
15- fn from ( summary : iota_sdk2 :: types :: CheckpointSummary ) -> Self {
14+ impl From < iota_sdk_types :: CheckpointSummary > for CheckpointSummary {
15+ fn from ( summary : iota_sdk_types :: CheckpointSummary ) -> Self {
1616 Self :: merge_from ( summary, & FieldMaskTree :: new_wildcard ( ) )
1717 }
1818}
1919
20- impl Merge < iota_sdk2 :: types :: CheckpointSummary > for CheckpointSummary {
21- fn merge ( & mut self , source : iota_sdk2 :: types :: CheckpointSummary , mask : & FieldMaskTree ) {
20+ impl Merge < iota_sdk_types :: CheckpointSummary > for CheckpointSummary {
21+ fn merge ( & mut self , source : iota_sdk_types :: CheckpointSummary , mask : & FieldMaskTree ) {
2222 if mask. contains ( Self :: BCS_FIELD . name ) {
2323 self . bcs = Some ( BcsData :: serialize ( & source) . unwrap ( ) ) ;
2424 }
@@ -43,7 +43,7 @@ impl Merge<&CheckpointSummary> for CheckpointSummary {
4343 }
4444}
4545
46- impl TryFrom < & CheckpointSummary > for iota_sdk2 :: types :: CheckpointSummary {
46+ impl TryFrom < & CheckpointSummary > for iota_sdk_types :: CheckpointSummary {
4747 type Error = TryFromProtoError ;
4848
4949 fn try_from (
@@ -60,14 +60,14 @@ impl TryFrom<&CheckpointSummary> for iota_sdk2::types::CheckpointSummary {
6060// CheckpointContents
6161//
6262
63- impl From < iota_sdk2 :: types :: CheckpointContents > for CheckpointContents {
64- fn from ( value : iota_sdk2 :: types :: CheckpointContents ) -> Self {
63+ impl From < iota_sdk_types :: CheckpointContents > for CheckpointContents {
64+ fn from ( value : iota_sdk_types :: CheckpointContents ) -> Self {
6565 Self :: merge_from ( value, & FieldMaskTree :: new_wildcard ( ) )
6666 }
6767}
6868
69- impl Merge < iota_sdk2 :: types :: CheckpointContents > for CheckpointContents {
70- fn merge ( & mut self , source : iota_sdk2 :: types :: CheckpointContents , mask : & FieldMaskTree ) {
69+ impl Merge < iota_sdk_types :: CheckpointContents > for CheckpointContents {
70+ fn merge ( & mut self , source : iota_sdk_types :: CheckpointContents , mask : & FieldMaskTree ) {
7171 if mask. contains ( Self :: BCS_FIELD . name ) {
7272 self . bcs = Some ( BcsData :: serialize ( & source) . unwrap ( ) ) ;
7373 }
@@ -92,7 +92,7 @@ impl Merge<&CheckpointContents> for CheckpointContents {
9292 }
9393}
9494
95- impl TryFrom < & CheckpointContents > for iota_sdk2 :: types :: CheckpointContents {
95+ impl TryFrom < & CheckpointContents > for iota_sdk_types :: CheckpointContents {
9696 type Error = TryFromProtoError ;
9797
9898 fn try_from ( value : & CheckpointContents ) -> Result < Self , Self :: Error > {
@@ -108,8 +108,8 @@ impl TryFrom<&CheckpointContents> for iota_sdk2::types::CheckpointContents {
108108// Checkpoint
109109//
110110
111- impl Merge < & iota_sdk2 :: types :: CheckpointSummary > for Checkpoint {
112- fn merge ( & mut self , source : & iota_sdk2 :: types :: CheckpointSummary , mask : & FieldMaskTree ) {
111+ impl Merge < & iota_sdk_types :: CheckpointSummary > for Checkpoint {
112+ fn merge ( & mut self , source : & iota_sdk_types :: CheckpointSummary , mask : & FieldMaskTree ) {
113113 if mask. contains ( Self :: SEQUENCE_NUMBER_FIELD . name ) {
114114 self . sequence_number = Some ( source. sequence_number ) ;
115115 }
@@ -120,10 +120,10 @@ impl Merge<&iota_sdk2::types::CheckpointSummary> for Checkpoint {
120120 }
121121}
122122
123- impl Merge < iota_sdk2 :: types :: ValidatorAggregatedSignature > for Checkpoint {
123+ impl Merge < iota_sdk_types :: ValidatorAggregatedSignature > for Checkpoint {
124124 fn merge (
125125 & mut self ,
126- source : iota_sdk2 :: types :: ValidatorAggregatedSignature ,
126+ source : iota_sdk_types :: ValidatorAggregatedSignature ,
127127 mask : & FieldMaskTree ,
128128 ) {
129129 if mask. contains ( Self :: SIGNATURE_FIELD . name ) {
@@ -132,8 +132,8 @@ impl Merge<iota_sdk2::types::ValidatorAggregatedSignature> for Checkpoint {
132132 }
133133}
134134
135- impl Merge < iota_sdk2 :: types :: CheckpointContents > for Checkpoint {
136- fn merge ( & mut self , source : iota_sdk2 :: types :: CheckpointContents , mask : & FieldMaskTree ) {
135+ impl Merge < iota_sdk_types :: CheckpointContents > for Checkpoint {
136+ fn merge ( & mut self , source : iota_sdk_types :: CheckpointContents , mask : & FieldMaskTree ) {
137137 if let Some ( submask) = mask. subtree ( Self :: CONTENTS_FIELD . name ) {
138138 self . contents = Some ( CheckpointContents :: merge_from ( source, & submask) ) ;
139139 }
0 commit comments