mithril_client/
type_alias.rs

1/// Mithril result type, an alias of [anyhow::Result]
2pub type MithrilResult<T> = anyhow::Result<T>;
3
4/// Mithril error type, an alias of [anyhow::Error]
5pub type MithrilError = anyhow::Error;
6
7/// A Mithril snapshot of a Cardano Node database.
8///
9pub use mithril_common::messages::SnapshotMessage as Snapshot;
10
11/// List item of Mithril snapshots
12///
13pub use mithril_common::messages::SnapshotListItemMessage as SnapshotListItem;
14
15cfg_unstable! {
16    /// A Cardano node database snapshot
17    ///
18    pub use mithril_common::messages::CardanoDatabaseSnapshotMessage as CardanoDatabaseSnapshot;
19
20    /// List items of Cardano node database snapshot
21    ///
22    pub use mithril_common::messages::CardanoDatabaseSnapshotListItemMessage as CardanoDatabaseSnapshotListItem;
23}
24/// A Mithril stake distribution.
25///
26pub use mithril_common::messages::MithrilStakeDistributionMessage as MithrilStakeDistribution;
27
28/// List item of Mithril stake distributions.
29///
30pub use mithril_common::messages::MithrilStakeDistributionListItemMessage as MithrilStakeDistributionListItem;
31
32/// A Mithril certificate.
33///
34pub use mithril_common::messages::CertificateMessage as MithrilCertificate;
35
36pub use mithril_common::messages::CertificateMetadataMessagePart as MithrilCertificateMetadata;
37
38/// List item of Mithril certificates
39///
40pub use mithril_common::messages::CertificateListItemMessage as MithrilCertificateListItem;
41
42pub use mithril_common::messages::CertificateListItemMessageMetadata as MithrilCertificateListItemMetadata;
43
44/// An individual signer of a [Mithril certificate][MithrilCertificate]
45///
46pub use mithril_common::messages::SignerWithStakeMessagePart as MithrilSigner;
47
48pub use mithril_common::messages::CardanoTransactionsProofsMessage as CardanoTransactionsProofs;
49
50pub use mithril_common::messages::CardanoTransactionsSetProofMessagePart as CardanoTransactionsSetProof;
51
52pub use mithril_common::messages::VerifiedCardanoTransactions;
53
54pub use mithril_common::messages::VerifyCardanoTransactionsProofsError;
55
56/// A snapshot that allow to know up to which [point of time][common::CardanoDbBeacon] Mithril have certified Cardano transactions.
57pub use mithril_common::messages::CardanoTransactionSnapshotMessage as CardanoTransactionSnapshot;
58
59/// List item of a Cardano transaction snapshot.
60pub use mithril_common::messages::CardanoTransactionSnapshotListItemMessage as CardanoTransactionSnapshotListItem;
61
62/// A Cardano stake distribution.
63pub use mithril_common::messages::CardanoStakeDistributionMessage as CardanoStakeDistribution;
64
65/// List item of Cardano stake distributions.
66pub use mithril_common::messages::CardanoStakeDistributionListItemMessage as CardanoStakeDistributionListItem;
67
68/// `mithril-common` re-exports
69pub mod common {
70    pub use mithril_common::entities::{
71        BlockHash, BlockNumber, CardanoDbBeacon, ChainPoint, CompressionAlgorithm, Epoch,
72        ImmutableFileNumber, ProtocolMessage, ProtocolMessagePartKey, ProtocolParameters,
73        SignedEntityType, SlotNumber, StakeDistribution, TransactionHash,
74    };
75    cfg_unstable! {
76        pub use mithril_common::entities::{
77            AncillaryLocation, DigestLocation, ImmutablesLocation, MultiFilesUri, TemplateUri,
78        };
79        pub use mithril_common::crypto_helper::MKProof;
80        pub use mithril_common::messages::{DigestsMessagePart, ImmutablesMessagePart, AncillaryMessagePart};
81    }
82}