lighthouse_sol/types/
stake_assertion.rs

1//! This code was AUTOGENERATED using the codama library.
2//! Please DO NOT EDIT THIS FILE, instead use visitors
3//! to add features, then rerun codama to update it.
4//!
5//! <https://github.com/codama-idl/codama>
6//!
7
8use crate::types::{EquatableOperator, IntegerOperator};
9use borsh::BorshDeserialize;
10use borsh::BorshSerialize;
11use solana_pubkey::Pubkey;
12
13#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
14#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
15pub enum StakeAssertion {
16    DelegationVoterPubkey {
17        #[cfg_attr(
18            feature = "serde",
19            serde(with = "serde_with::As::<serde_with::DisplayFromStr>")
20        )]
21        value: Pubkey,
22        operator: EquatableOperator,
23    },
24    DelegationStake {
25        value: u64,
26        operator: IntegerOperator,
27    },
28    DelegationActivationEpoch {
29        value: u64,
30        operator: IntegerOperator,
31    },
32    DelegationDeactivationEpoch {
33        value: u64,
34        operator: IntegerOperator,
35    },
36    CreditsObserved {
37        value: u64,
38        operator: IntegerOperator,
39    },
40}