From b33461b469356658b9a855f8a57b09dae6a5af7e Mon Sep 17 00:00:00 2001 From: muharem Date: Sat, 25 Feb 2023 16:45:48 +0100 Subject: [PATCH] Polkadot XCM Body constants --- runtime/polkadot/constants/src/lib.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/runtime/polkadot/constants/src/lib.rs b/runtime/polkadot/constants/src/lib.rs index 68b2fdcd306e..c205415acb6b 100644 --- a/runtime/polkadot/constants/src/lib.rs +++ b/runtime/polkadot/constants/src/lib.rs @@ -98,6 +98,18 @@ pub mod fee { } } +/// XCM protocol related constants. +pub mod xcm { + /// Pluralistic bodies existing within the consensus. + pub mod body { + // Preallocated for the Root body. + #[allow(dead_code)] + const ROOT_INDEX: u32 = 0; + // The bodies corresponding to the Polkadot OpenGov Origins. + pub const FELLOWSHIP_ADMIN_INDEX: u32 = 1; + } +} + #[cfg(test)] mod tests { use super::{