use crate::{
data::{NetworkId, VotingPurpose},
SlotNo,
};
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub struct VotingPowerArgs {
pub min_slot: Option<SlotNo>,
pub max_slot: Option<SlotNo>,
pub network_id: NetworkId,
pub expected_voting_purpose: VotingPurpose,
pub cip_36_multidelegations: bool,
}
impl Default for VotingPowerArgs {
fn default() -> Self {
Self {
min_slot: None,
max_slot: None,
network_id: NetworkId::Mainnet,
expected_voting_purpose: VotingPurpose::CATALYST,
cip_36_multidelegations: false,
}
}
}