radix_transactions/model/v1/
instructions_v1.rs

1use super::*;
2use crate::internal_prelude::*;
3
4#[derive(Debug, Clone, Eq, PartialEq, ManifestSbor, ScryptoDescribe)]
5#[sbor(transparent)]
6pub struct InstructionsV1(pub Vec<InstructionV1>);
7
8impl From<Vec<InstructionV1>> for InstructionsV1 {
9    fn from(value: Vec<InstructionV1>) -> Self {
10        InstructionsV1(value)
11    }
12}
13
14impl From<InstructionsV1> for Vec<InstructionV1> {
15    fn from(value: InstructionsV1) -> Self {
16        value.0
17    }
18}
19
20impl TransactionPartialPrepare for InstructionsV1 {
21    type Prepared = PreparedInstructionsV1;
22}
23
24// We summarize all the transactions as a single unit (not transaction-by-transaction)
25#[allow(deprecated)]
26pub type PreparedInstructionsV1 = SummarizedRawFullValueWithReferences<InstructionsV1>;