From f5b7c13c8673568d7f8c7cae4a14bbe732ffb5ae Mon Sep 17 00:00:00 2001 From: Ch1n3du <38131869+Ch1n3du@users.noreply.github.com> Date: Thu, 2 Jun 2022 20:02:46 +0100 Subject: [PATCH] feat(primitives): Add self-contained transaction struct (#107) --- pallas-primitives/src/alonzo/model.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pallas-primitives/src/alonzo/model.rs b/pallas-primitives/src/alonzo/model.rs index 118aab9..12dc88a 100644 --- a/pallas-primitives/src/alonzo/model.rs +++ b/pallas-primitives/src/alonzo/model.rs @@ -1438,6 +1438,18 @@ pub struct Block { #[derive(Encode, Decode, Debug)] pub struct BlockWrapper(#[n(0)] pub u16, #[n(1)] pub Block); +#[derive(Encode, Decode, Debug)] +pub struct Transaction { + #[n(0)] + transaction_body: TransactionBody, + #[n(1)] + transaction_witness_set: TransactionWitnessSet, + #[n(2)] + success: bool, + #[n(3)] + auxiliary_data: Option, +} + #[cfg(test)] mod tests { use super::BlockWrapper;