sui_types/
messages_safe_client.rs1use crate::{
5 effects::{SignedTransactionEffects, TransactionEvents},
6 transaction::{CertifiedTransaction, SignedTransaction, Transaction},
7};
8
9#[derive(Clone, Debug)]
16pub enum PlainTransactionInfoResponse {
17 Signed(SignedTransaction),
18 ExecutedWithCert(
19 CertifiedTransaction,
20 SignedTransactionEffects,
21 TransactionEvents,
22 ),
23 ExecutedWithoutCert(Transaction, SignedTransactionEffects, TransactionEvents),
24}
25
26impl PlainTransactionInfoResponse {
27 pub fn is_executed(&self) -> bool {
28 match self {
29 PlainTransactionInfoResponse::Signed(_) => false,
30 PlainTransactionInfoResponse::ExecutedWithCert(_, _, _)
31 | PlainTransactionInfoResponse::ExecutedWithoutCert(_, _, _) => true,
32 }
33 }
34}