radix_common/constants/
system_execution.rsuse crate::constants::SYSTEM_EXECUTION_RESOURCE;
use crate::data::scrypto::model::NonFungibleLocalId;
use crate::types::*;
#[derive(Debug, Clone, Copy)]
pub enum SystemExecution {
Protocol = 0,
Validator = 1,
}
impl SystemExecution {
pub fn proof(self) -> NonFungibleGlobalId {
self.into()
}
}
impl Into<NonFungibleGlobalId> for SystemExecution {
fn into(self) -> NonFungibleGlobalId {
NonFungibleGlobalId::new(
SYSTEM_EXECUTION_RESOURCE,
NonFungibleLocalId::integer(self as u64),
)
}
}