mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-15 23:35:17 +00:00
17 lines
437 B
Rust
17 lines
437 B
Rust
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||
|
|
||
|
use sp_core::sr25519::Public;
|
||
|
use sp_std::vec::Vec;
|
||
|
|
||
|
sp_api::decl_runtime_apis! {
|
||
|
/// TendermintApi trait for runtimes to implement.
|
||
|
pub trait TendermintApi {
|
||
|
/// Current session number. A session is NOT a fixed length of blocks, yet rather a continuous
|
||
|
/// set of validators.
|
||
|
fn current_session() -> u32;
|
||
|
|
||
|
/// Current validators.
|
||
|
fn validators() -> Vec<Public>;
|
||
|
}
|
||
|
}
|