mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Allows us to finally remove the old `serai-dex/substrate` repository _and_ should have CI pass without issue on `develop` again. The changes made here should be trivial and maintain all prior behavior/functionality. The most notable are to `chain_spec.rs`, in order to still use a SCALE-encoded `GenesisConfig` (avoiding `serde_json`).
30 lines
609 B
Rust
30 lines
609 B
Rust
#![expect(clippy::cast_possible_truncation)]
|
|
|
|
#[cfg(feature = "networks")]
|
|
pub mod networks;
|
|
|
|
#[cfg(feature = "serai")]
|
|
mod serai;
|
|
#[cfg(feature = "serai")]
|
|
pub use serai::*;
|
|
|
|
#[cfg(not(feature = "serai"))]
|
|
pub use serai_abi::primitives;
|
|
#[cfg(not(feature = "serai"))]
|
|
mod other_primitives {
|
|
pub mod coins {
|
|
pub use serai_abi::coins::primitives;
|
|
}
|
|
pub mod validator_sets {
|
|
pub use serai_abi::validator_sets::primitives;
|
|
}
|
|
pub mod in_instructions {
|
|
pub use serai_abi::in_instructions::primitives;
|
|
}
|
|
}
|
|
#[cfg(not(feature = "serai"))]
|
|
pub use other_primitives::*;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|