timechain_runtime::apis

Trait MembersInterface

Source
pub trait MembersInterface {
    // Required methods
    fn member_peer_id(
        account: &<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId,
    ) -> Option<[u8; 32]>;
    fn is_member_registered(
        account: &<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId,
    ) -> bool;
    fn is_member_online(
        account: &<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId,
    ) -> bool;
}

Required Methods§

Source

fn member_peer_id( account: &<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ) -> Option<[u8; 32]>

Source

fn is_member_registered( account: &<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ) -> bool

Source

fn is_member_online( account: &<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> MembersInterface for Pallet<T>
where T: Config,

Source§

fn member_peer_id( account: &<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ) -> Option<[u8; 32]>

Retrieves the peer ID of a specific member.

Source§

fn is_member_online( account: &<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ) -> bool

Checks if a specific member is online.

Source§

fn is_member_registered( account: &<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ) -> bool

Implementors§