@@ -144,6 +144,7 @@ mod transaction_kind {
144
144
ConsensusCommitPrologueV2 ( & ' a ConsensusCommitPrologueV2 ) ,
145
145
ConsensusCommitPrologueV3 ( & ' a ConsensusCommitPrologueV3 ) ,
146
146
ConsensusCommitPrologueV4 ( & ' a ConsensusCommitPrologueV4 ) ,
147
+ ProgrammableSystemTransaction ( & ' a ProgrammableTransaction ) ,
147
148
}
148
149
149
150
#[ derive( serde_derive:: Deserialize ) ]
@@ -162,6 +163,7 @@ mod transaction_kind {
162
163
ConsensusCommitPrologueV2 ( ConsensusCommitPrologueV2 ) ,
163
164
ConsensusCommitPrologueV3 ( ConsensusCommitPrologueV3 ) ,
164
165
ConsensusCommitPrologueV4 ( ConsensusCommitPrologueV4 ) ,
166
+ ProgrammableSystemTransaction ( ProgrammableTransaction ) ,
165
167
}
166
168
167
169
#[ derive( serde_derive:: Serialize ) ]
@@ -176,6 +178,7 @@ mod transaction_kind {
176
178
ConsensusCommitPrologueV2 ( & ' a ConsensusCommitPrologueV2 ) ,
177
179
ConsensusCommitPrologueV3 ( & ' a ConsensusCommitPrologueV3 ) ,
178
180
ConsensusCommitPrologueV4 ( & ' a ConsensusCommitPrologueV4 ) ,
181
+ ProgrammableSystemTransaction ( & ' a ProgrammableTransaction ) ,
179
182
}
180
183
#[ derive( serde_derive:: Deserialize ) ]
181
184
enum BinaryTransactionKind {
@@ -189,6 +192,7 @@ mod transaction_kind {
189
192
ConsensusCommitPrologueV2 ( ConsensusCommitPrologueV2 ) ,
190
193
ConsensusCommitPrologueV3 ( ConsensusCommitPrologueV3 ) ,
191
194
ConsensusCommitPrologueV4 ( ConsensusCommitPrologueV4 ) ,
195
+ ProgrammableSystemTransaction ( ProgrammableTransaction ) ,
192
196
}
193
197
194
198
impl Serialize for TransactionKind {
@@ -224,6 +228,9 @@ mod transaction_kind {
224
228
Self :: ConsensusCommitPrologueV4 ( k) => {
225
229
ReadableTransactionKindRef :: ConsensusCommitPrologueV4 ( k)
226
230
}
231
+ Self :: ProgrammableSystemTransaction ( k) => {
232
+ ReadableTransactionKindRef :: ProgrammableSystemTransaction ( k)
233
+ }
227
234
} ;
228
235
readable. serialize ( serializer)
229
236
} else {
@@ -252,6 +259,9 @@ mod transaction_kind {
252
259
Self :: ConsensusCommitPrologueV4 ( k) => {
253
260
BinaryTransactionKindRef :: ConsensusCommitPrologueV4 ( k)
254
261
}
262
+ Self :: ProgrammableSystemTransaction ( k) => {
263
+ BinaryTransactionKindRef :: ProgrammableSystemTransaction ( k)
264
+ }
255
265
} ;
256
266
binary. serialize ( serializer)
257
267
}
@@ -289,6 +299,9 @@ mod transaction_kind {
289
299
ReadableTransactionKind :: ConsensusCommitPrologueV4 ( k) => {
290
300
Self :: ConsensusCommitPrologueV4 ( k)
291
301
}
302
+ ReadableTransactionKind :: ProgrammableSystemTransaction ( k) => {
303
+ Self :: ProgrammableSystemTransaction ( k)
304
+ }
292
305
} )
293
306
} else {
294
307
BinaryTransactionKind :: deserialize ( deserializer) . map ( |binary| match binary {
@@ -316,6 +329,9 @@ mod transaction_kind {
316
329
BinaryTransactionKind :: ConsensusCommitPrologueV4 ( k) => {
317
330
Self :: ConsensusCommitPrologueV4 ( k)
318
331
}
332
+ BinaryTransactionKind :: ProgrammableSystemTransaction ( k) => {
333
+ Self :: ProgrammableSystemTransaction ( k)
334
+ }
319
335
} )
320
336
}
321
337
}
0 commit comments