mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 20:59:23 +00:00
Uses a full-fledged serai-abi to do so. Removes use of UncheckedExtrinsic as a pointlessly (for us) length-prefixed block with a more complicated signing algorithm than advantageous. In the future, we should considering consolidating the various primitives crates. I'm not convinced we benefit from one primitives crate per pallet.
28 lines
563 B
Rust
28 lines
563 B
Rust
#[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;
|