Merge pull request #85 from txpipe/expose-pallas-plutus-data

This commit is contained in:
Lucas 2022-10-29 16:30:23 -04:00 committed by GitHub
commit 11c0e4e193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -8,6 +8,8 @@
**aiken**: Typechecking **aiken**: Typechecking
**aiken**: Inject `aiken/builtin` module with some functions from `DefaultFunction` in UPLC directly exposed **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` **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 ### Changed

View File

@ -8,7 +8,12 @@ mod pretty;
pub mod program_builder; pub mod program_builder;
pub mod tx; 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}; use pallas_primitives::{Error, Fragment};

View File

@ -21,7 +21,7 @@ mod phase_one;
pub mod script_context; pub mod script_context;
#[cfg(test)] #[cfg(test)]
mod tests; mod tests;
mod to_plutus_data; pub mod to_plutus_data;
/// Evaluate the scripts in a transaction using /// Evaluate the scripts in a transaction using
/// the UPLC Cek Machine. This function collects /// the UPLC Cek Machine. This function collects