1mod conway;
2mod scriptdata;
3mod transaction;
4
5pub use conway::BuildConway;
6pub use transaction::model::{
7 BuiltTransaction, ExUnits, Input, Output, ScriptKind, StagingTransaction,
8};
9
10#[derive(Debug, Clone, PartialEq, thiserror::Error)]
11pub enum TxBuilderError {
12 #[error("Transaction has no inputs")]
14 MalformedScript,
15 #[error("Could not decode datum bytes")]
17 MalformedDatum,
18 #[error("Invalid bytes length for datum hash")]
20 MalformedDatumHash,
21 #[error("Input/policy pointed to by redeemer not found in tx")]
24 RedeemerTargetMissing,
25 #[error("Invalid network ID")]
27 InvalidNetworkId,
28 #[error("Corrupted transaction bytes in built transaction")]
30 CorruptedTxBytes,
31 #[error("Public key for private key is malformed")]
33 MalformedKey,
34 #[error("Asset name must be 32 bytes or less")]
36 AssetNameTooLong,
37 #[error("Unsupported era")]
39 UnsupportedEra,
40}