cardano_sdk/
lib.rs

1//  This Source Code Form is subject to the terms of the Mozilla Public
2//  License, v. 2.0. If a copy of the MPL was not distributed with this
3//  file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5/// A re-export of [`minicbor`](https://docs.rs/minicbor/latest/minicbor/index.html).
6pub mod cbor;
7
8mod cardano;
9pub use cardano::*;
10pub use cardano::{
11    // Re-export types for easier consumption.
12    //
13    // NOTE: The main function of this comment is to force the formatter to put one import per
14    // line in the following import list; making diffs and extensions easier.
15    address::{Address, IsAddressKind},
16    credential::Credential,
17    crypto::ed25519::{LeakableSigningKey, Signature, SigningKey, VerificationKey},
18    datum::Datum,
19    execution_units::ExecutionUnits,
20    hash::Hash,
21    input::Input,
22    network::Network,
23    network_id::NetworkId,
24    output::Output,
25    output::change_strategy::ChangeStrategy,
26    plutus_data::PlutusData,
27    plutus_script::PlutusScript,
28    plutus_version::PlutusVersion,
29    protocol_parameters::ProtocolParameters,
30    redeemer_pointer::RedeemerPointer,
31    slot_bound::SlotBound,
32    transaction::{IsTransactionBodyState, Transaction},
33    value::Value,
34    with_network_id::WithNetworkId,
35};
36
37#[cfg(any(test, feature = "test-utils"))]
38pub mod any {
39    pub use super::cardano::{
40        address::tests::generators::*, credential::tests::generators::*,
41        execution_units::tests::generators::*, hash::tests::generators::*,
42        input::tests::generators::*, network_id::tests::generators::*,
43    };
44}
45
46mod non_extensible;
47mod pallas;
48mod pretty;
49
50pub(crate) type BoxedIterator<'iter, T> = Box<dyn Iterator<Item = T> + 'iter>;