feat(primitives): Add self-contained transaction struct (#107)
This commit is contained in:
parent
3260abcb98
commit
07fb2ca016
1 changed files with 12 additions and 0 deletions
|
|
@ -1438,6 +1438,18 @@ pub struct Block {
|
||||||
#[derive(Encode, Decode, Debug)]
|
#[derive(Encode, Decode, Debug)]
|
||||||
pub struct BlockWrapper(#[n(0)] pub u16, #[n(1)] pub Block);
|
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<AuxiliaryData>,
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::BlockWrapper;
|
use super::BlockWrapper;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue