From 000176749274c37c5ead5da749157c20b3ae2495 Mon Sep 17 00:00:00 2001 From: Marian Vanderka Date: Tue, 18 Oct 2022 15:15:35 +0200 Subject: [PATCH] [metadata-xyk] add pool creation enabled metadata --- primitives/mangata-types/src/assets.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/primitives/mangata-types/src/assets.rs b/primitives/mangata-types/src/assets.rs index a247395d35c76..d6d42a53ed9ea 100644 --- a/primitives/mangata-types/src/assets.rs +++ b/primitives/mangata-types/src/assets.rs @@ -19,6 +19,8 @@ use scale_info::TypeInfo; pub struct CustomMetadata { /// XCM-related metadata, optional. pub xcm: Option, + /// XYK-related metadata, optional + pub xyk: Option, } #[derive( @@ -39,3 +41,22 @@ pub struct XcmMetadata { /// The fee charged for every second that an XCM message takes to execute. pub fee_per_second: u128, } + +#[derive( + Clone, + Copy, + Default, + PartialOrd, + Ord, + PartialEq, + Eq, + Debug, + Encode, + Decode, + TypeInfo, + MaxEncodedLen, +)] +pub struct XykMetadata { + /// If the asset can't be used in the xyk operations. + pub operations_disabled: bool, +}