1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//! dhatu core libraries. aims to abstract away the complexity of interacting to substrate blockchain.
//! for now, is meant to be used with mandala based blockchains. but in future, it will be extended to support other substrate based blockchains.

//! # Re-exports
//! ```
//! #[cfg(feature = "unstable_sp_core")]
//! pub use sp_core;
//! #[cfg(feature = "subxt")]
//! pub use subxt;
//! #[cfg(feature = "sp_keyring")]
//! pub use sp_keyring;
//! ```
//! due to the unstable nature of substrate modules, they are not re-exported by default.
//! if you want to interact with the some of the low level feature of dhatu and use the raw substrate primitive types,
//! we reccomend you to enable `unstable` feature flag to properly interact with the low level modules.
//!
//! see [ext] for more details.

/// error associated with dhatu
pub mod error;
/// re export external libraries that makes up dhatu.
pub mod ext;
/// crate private modules
pub(crate) mod private;
/// identity registrar, consist of types and modules regarding blockchain identity.
/// i.e keypair.
pub mod registrar;
/// transaction module, consist of extrinsics abstraction.
pub mod tx;
/// global crate level types, code inside this modules is meant to be used globally.
pub mod types;

/// raw node runtime types, consist of types that are specific to mandala node.
/// generated using [subxt].
pub mod runtime_types;