mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-15 15:24:52 +00:00
18 lines
602 B
Rust
18 lines
602 B
Rust
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||
|
|
||
|
use scale::{Encode, Decode, MaxEncodedLen};
|
||
|
use scale_info::TypeInfo;
|
||
|
|
||
|
use serai_primitives::NetworkId;
|
||
|
|
||
|
#[derive(Clone, Copy, PartialEq, Eq, Debug, Encode, Decode, MaxEncodedLen, TypeInfo)]
|
||
|
#[cfg_attr(feature = "std", derive(zeroize::Zeroize))]
|
||
|
#[cfg_attr(feature = "borsh", derive(borsh::BorshSerialize, borsh::BorshDeserialize))]
|
||
|
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||
|
pub enum SignalId {
|
||
|
Retirement([u8; 32]),
|
||
|
Halt(NetworkId),
|
||
|
}
|