Move substrate/serai/* to substrate/*

This commit is contained in:
Luke Parker
2023-04-08 03:00:35 -04:00
parent bd06b95c05
commit 7abc8f19cd
41 changed files with 17 additions and 17 deletions

View File

@@ -0,0 +1,28 @@
#[cfg(feature = "coins")]
pub mod coins;
#[cfg(feature = "serai")]
mod serai;
#[cfg(feature = "serai")]
pub use serai::*;
// If we aren't exposing the Serai client (subxt), still expose all primitives
#[cfg(not(feature = "serai"))]
pub use serai_runtime::primitives;
#[cfg(not(feature = "serai"))]
mod other_primitives {
pub mod in_instructions {
pub use serai_runtime::in_instructions::primitives;
}
pub mod tokens {
pub use serai_runtime::tokens::primitives;
}
pub mod validator_sets {
pub use serai_runtime::validator_sets::primitives;
}
}
#[cfg(not(feature = "serai"))]
pub use other_primitives::*;
#[cfg(test)]
mod tests;