diff --git a/CHANGELOG.md b/CHANGELOG.md index ccc2c32e..8d5d43e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [v0.0.22] - 2022-10-28 + +## Added +**uplc**: Expose various Pallas primitives from UPLC to make constructing +UPLC types possible for consumers + ## [next] - 2022-MM-DD ### Added diff --git a/Cargo.lock b/Cargo.lock index 38d31c98..a21a9927 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1202,7 +1202,7 @@ checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" [[package]] name = "uplc" -version = "0.0.21" +version = "0.0.22" dependencies = [ "anyhow", "cryptoxide", diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 19e34dc7..8bc4cb67 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -19,7 +19,7 @@ pallas-primitives = "0.14.0-alpha.3" pallas-traverse = "0.14.0-alpha.3" serde = { version = "1.0.144", features = ["derive"] } serde_json = "1.0.85" -uplc = { path = '../uplc', version = "0.0.21" } +uplc = { path = '../uplc', version = "0.0.22" } aiken-lang = { path = "../lang", version = "0.0.20" } toml = "0.5.9" walkdir = "2.3.2" diff --git a/crates/lang/Cargo.toml b/crates/lang/Cargo.toml index ea87771c..6bdcac67 100644 --- a/crates/lang/Cargo.toml +++ b/crates/lang/Cargo.toml @@ -17,7 +17,7 @@ itertools = "0.10.5" miette = "5.2.0" strum = "0.24.1" thiserror = "1.0.37" -uplc = { path = '../uplc', version = "0.0.21" } +uplc = { path = '../uplc', version = "0.0.22" } vec1 = "1.8.0" [dev-dependencies] diff --git a/crates/uplc/Cargo.toml b/crates/uplc/Cargo.toml index 4f35e214..bd68f202 100644 --- a/crates/uplc/Cargo.toml +++ b/crates/uplc/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "uplc" description = "Utilities for working with Untyped Plutus Core" -version = "0.0.21" +version = "0.0.22" edition = "2021" repository = "https://github.com/txpipe/aiken/crates/uplc" homepage = "https://github.com/txpipe/aiken" 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