ghost-eye/src/types/staking.rs
Uncle Stretch 5db96fa8f1
fix for the slashing spans calculation during withdrawals
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2025-09-29 17:27:01 +03:00

27 lines
600 B
Rust

use codec::Decode;
use strum::Display;
use serde::{Serialize, Deserialize};
#[derive(Debug, Default, Clone, PartialEq, Eq, Serialize, Deserialize, Decode)]
pub struct UnlockChunk {
pub value: u128,
pub era: u32,
}
#[derive(Debug, Default, Clone, PartialEq, Eq, Serialize, Deserialize, Decode)]
pub struct SlashingSpan {
pub index: u32,
pub start: u32,
pub length: Option<u32>
}
#[derive(Default, Debug, Clone, PartialEq, Eq, Display, Serialize, Deserialize)]
pub enum RewardDestination {
#[default]
None,
Staked,
Stash,
Account([u8; 32]),
Controller,
}