@@ -2,8 +2,12 @@ use super::CheckpointContentsDigest;
2
2
use super :: CheckpointDigest ;
3
3
use super :: Digest ;
4
4
use super :: GasCostSummary ;
5
+ use super :: Object ;
6
+ use super :: SignedTransaction ;
5
7
use super :: TransactionDigest ;
8
+ use super :: TransactionEffects ;
6
9
use super :: TransactionEffectsDigest ;
10
+ use super :: TransactionEvents ;
7
11
use super :: UserSignature ;
8
12
use super :: ValidatorAggregatedSignature ;
9
13
use super :: ValidatorCommitteeMember ;
@@ -76,6 +80,7 @@ pub struct CheckpointSummary {
76
80
pub version_specific_data : Vec < u8 > ,
77
81
}
78
82
83
+ #[ derive( Clone , Debug , PartialEq ) ]
79
84
#[ cfg_attr(
80
85
feature = "serde" ,
81
86
derive( serde_derive:: Serialize , serde_derive:: Deserialize )
@@ -99,6 +104,27 @@ pub struct CheckpointTransactionInfo {
99
104
pub signatures : Vec < UserSignature > ,
100
105
}
101
106
107
+ #[ derive( Clone , Debug ) ]
108
+ pub struct CheckpointData {
109
+ pub checkpoint_summary : SignedCheckpointSummary ,
110
+ pub checkpoint_contents : CheckpointContents ,
111
+ pub transactions : Vec < CheckpointTransaction > ,
112
+ }
113
+
114
+ #[ derive( Clone , Debug ) ]
115
+ pub struct CheckpointTransaction {
116
+ /// The input Transaction
117
+ pub transaction : SignedTransaction ,
118
+ /// The effects produced by executing this transaction
119
+ pub effects : TransactionEffects ,
120
+ /// The events, if any, emitted by this transaciton during execution
121
+ pub events : Option < TransactionEvents > ,
122
+ /// The state of all inputs to this transaction as they were prior to execution.
123
+ pub input_objects : Vec < Object > ,
124
+ /// The state of all output objects created or mutated by this transaction.
125
+ pub output_objects : Vec < Object > ,
126
+ }
127
+
102
128
#[ cfg( feature = "serde" ) ]
103
129
#[ cfg_attr( doc_cfg, doc( cfg( feature = "serde" ) ) ) ]
104
130
mod serialization {
0 commit comments