diff --git a/CHANGELOG.md b/CHANGELOG.md index ccc2c32e..fa5124d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ **aiken**: Typechecking **aiken**: Inject `aiken/builtin` module with some functions from `DefaultFunction` in UPLC directly exposed **aiken-lang**: add `infer` method to `UntypedModule` which returns a `TypedModule` +**uplc**: Expose various Pallas primitives from UPLC to make constructing +UPLC types possible for consumers ### Changed diff --git a/crates/uplc/src/lib.rs b/crates/uplc/src/lib.rs index 55b107e7..6e240070 100644 --- a/crates/uplc/src/lib.rs +++ b/crates/uplc/src/lib.rs @@ -8,7 +8,12 @@ mod pretty; pub mod program_builder; pub mod tx; -pub use pallas_primitives::alonzo::PlutusData; +pub use pallas_codec::utils::KeyValuePairs; +pub use pallas_crypto::hash::Hash; +pub use pallas_primitives::{ + alonzo::{BigInt, Constr, PlutusData}, + babbage::{PostAlonzoTransactionOutput, TransactionInput, TransactionOutput, Value}, +}; use pallas_primitives::{Error, Fragment}; diff --git a/crates/uplc/src/tx.rs b/crates/uplc/src/tx.rs index 22045f6f..a1ee051b 100644 --- a/crates/uplc/src/tx.rs +++ b/crates/uplc/src/tx.rs @@ -21,7 +21,7 @@ mod phase_one; pub mod script_context; #[cfg(test)] mod tests; -mod to_plutus_data; +pub mod to_plutus_data; /// Evaluate the scripts in a transaction using /// the UPLC Cek Machine. This function collects