identity_iota_interaction/
transaction_builder_trait.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2020-2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

use crate::ProgrammableTransactionBcs;

pub trait TransactionBuilderT {
  type Error;
  type NativeTxBuilder;

  fn finish(self) -> Result<ProgrammableTransactionBcs, Self::Error>;

  fn as_native_tx_builder(&mut self) -> &mut Self::NativeTxBuilder;

  fn into_native_tx_builder(self) -> Self::NativeTxBuilder;
}