INNER CODE UNIT · Rust
allowed_candidacy
AstarNetwork/Astar · pallets/collator-selection/src/lib.rs:139
fn allowed_candidacy(account: &AccountId) -> bool;
}
/// Configure the pallet by specifying the parameters and types on which it depends.
#[pallet::config]
pub trait Config: frame_system::Config {
/// The currency mechanism.
type Currency: ReservableCurrency<Self::AccountId>;
/// Origin that can dictate updating parameters of this pallet.
type UpdateOrigin: EnsureOrigin<Self::RuntimeOrigin>;
/// Origin that can approve or reject candidacy applications.
/// Typically the governance council or root.
type GovernanceOrigin: EnsureOrigin<Self::RuntimeOrigin>;
/// Origin that can forcibly remove candidates from the active set.
/// Typically the same as GovernanceOrigin but separated for flexibility.