From 41b30206b8b0d903cf8bb1a4d196fd81f1226004 Mon Sep 17 00:00:00 2001 From: Fahrrader Date: Fri, 27 May 2022 14:01:54 +0000 Subject: [PATCH] build: remove RMRK usage --- --- a/node/cli/src/service.rs +++ b/node/cli/src/service.rs @@ -68,10 +68,10 @@ use unique_runtime_common::types::{AuraId, RuntimeInstance, AccountId, Balance, Index, Hash, Block}; // RMRK -use up_data_structs::{ +/* TODO free RMRK! use up_data_structs::{ RmrkCollectionInfo, RmrkInstanceInfo, RmrkResourceInfo, RmrkPropertyInfo, RmrkBaseInfo, RmrkPartType, RmrkTheme, -}; +};*/ /// Unique native executor instance. #[cfg(feature = "unique-runtime")] @@ -353,6 +353,7 @@ + pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi + sp_api::ApiExt> + up_rpc::UniqueApi + /* TODO free RMRK! + rmrk_rpc::RmrkApi< Block, AccountId, @@ -363,7 +364,7 @@ RmrkBaseInfo, RmrkPartType, RmrkTheme, - > + substrate_frame_rpc_system::AccountNonceApi + >*/ + substrate_frame_rpc_system::AccountNonceApi + sp_api::Metadata + sp_offchain::OffchainWorkerApi + cumulus_primitives_core::CollectCollationInfo, @@ -644,6 +645,7 @@ + pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi + sp_api::ApiExt> + up_rpc::UniqueApi + /* TODO free RMRK! + rmrk_rpc::RmrkApi< Block, AccountId, @@ -654,7 +656,7 @@ RmrkBaseInfo, RmrkPartType, RmrkTheme, - > + substrate_frame_rpc_system::AccountNonceApi + >*/ + substrate_frame_rpc_system::AccountNonceApi + sp_api::Metadata + sp_offchain::OffchainWorkerApi + cumulus_primitives_core::CollectCollationInfo @@ -787,6 +789,7 @@ + pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi + sp_api::ApiExt> + up_rpc::UniqueApi + /* TODO free RMRK! + rmrk_rpc::RmrkApi< Block, AccountId, @@ -797,7 +800,7 @@ RmrkBaseInfo, RmrkPartType, RmrkTheme, - > + substrate_frame_rpc_system::AccountNonceApi + >*/ + substrate_frame_rpc_system::AccountNonceApi + sp_api::Metadata + sp_offchain::OffchainWorkerApi + cumulus_primitives_core::CollectCollationInfo --- a/node/rpc/src/lib.rs +++ b/node/rpc/src/lib.rs @@ -44,10 +44,10 @@ Hash, AccountId, RuntimeInstance, Index, Block, BlockNumber, Balance, }; // RMRK -use up_data_structs::{ +/* TODO free RMRK! use up_data_structs::{ RmrkCollectionInfo, RmrkInstanceInfo, RmrkResourceInfo, RmrkPropertyInfo, RmrkBaseInfo, RmrkPartType, RmrkTheme, -}; +};*/ /// Public io handler for exporting into other modules pub type IoHandler = jsonrpc_core::IoHandler; @@ -149,6 +149,7 @@ C::Api: fp_rpc::EthereumRuntimeRPCApi, C::Api: fp_rpc::ConvertTransactionRuntimeApi, C::Api: up_rpc::UniqueApi::CrossAccountId, AccountId>, + /* TODO free RMRK! C::Api: rmrk_rpc::RmrkApi< Block, AccountId, @@ -159,7 +160,7 @@ RmrkBaseInfo, RmrkPartType, RmrkTheme, - >, + >,*/ B: sc_client_api::Backend + Send + Sync + 'static, B::State: sc_client_api::backend::StateBackend>, P: TransactionPool + 'static, @@ -233,7 +234,7 @@ // todo look into //let unique = Unique::new(client.clone()); io.extend_with(UniqueApi::to_delegate(Unique::new(client.clone()))); - io.extend_with(RmrkApi::to_delegate(Unique::new(client.clone()))); + // TODO free RMRK! io.extend_with(RmrkApi::to_delegate(Unique::new(client.clone()))); if let Some(filter_pool) = filter_pool { io.extend_with(EthFilterApiServer::to_delegate(EthFilterApi::new( --- a/runtime/common/src/runtime_apis.rs +++ b/runtime/common/src/runtime_apis.rs @@ -126,6 +126,8 @@ } } + /* + TODO free RMRK! impl rmrk_rpc::RmrkApi< Block, AccountId, @@ -459,7 +461,7 @@ Ok(Some(theme)) } - } + }*/ impl sp_api::Core for Runtime { fn version() -> RuntimeVersion { --- a/runtime/opal/src/lib.rs +++ b/runtime/opal/src/lib.rs @@ -903,13 +903,15 @@ type WeightInfo = pallet_nonfungible::weights::SubstrateWeight; } +/* +TODO free RMRK! impl pallet_proxy_rmrk_core::Config for Runtime { type Event = Event; } impl pallet_proxy_rmrk_equip::Config for Runtime { type Event = Event; -} +}*/ impl pallet_unique::Config for Runtime { type Event = Event; @@ -1032,8 +1034,10 @@ Refungible: pallet_refungible::{Pallet, Storage} = 68, Nonfungible: pallet_nonfungible::{Pallet, Storage} = 69, Structure: pallet_structure::{Pallet, Call, Storage, Event} = 70, + /* TODO free RMRK! RmrkCore: pallet_proxy_rmrk_core::{Pallet, Call, Storage, Event} = 71, RmrkEquip: pallet_proxy_rmrk_equip::{Pallet, Call, Storage, Event} = 72, + */ // Frontier EVM: pallet_evm::{Pallet, Config, Call, Storage, Event} = 100, --- a/runtime/quartz/src/lib.rs +++ b/runtime/quartz/src/lib.rs @@ -887,14 +887,14 @@ impl pallet_nonfungible::Config for Runtime { type WeightInfo = pallet_nonfungible::weights::SubstrateWeight; } - +/* TODO free RMRK! impl pallet_proxy_rmrk_core::Config for Runtime { type Event = Event; } impl pallet_proxy_rmrk_equip::Config for Runtime { type Event = Event; -} +}*/ impl pallet_unique::Config for Runtime { type Event = Event; @@ -1017,8 +1017,9 @@ Refungible: pallet_refungible::{Pallet, Storage} = 68, Nonfungible: pallet_nonfungible::{Pallet, Storage} = 69, Structure: pallet_structure::{Pallet, Call, Storage, Event} = 70, + /* TODO free RMRK! RmrkCore: pallet_proxy_rmrk_core::{Pallet, Call, Storage, Event} = 71, - RmrkEquip: pallet_proxy_rmrk_equip::{Pallet, Call, Storage, Event} = 72, + RmrkEquip: pallet_proxy_rmrk_equip::{Pallet, Call, Storage, Event} = 72,*/ // Frontier EVM: pallet_evm::{Pallet, Config, Call, Storage, Event} = 100, --- a/runtime/unique/src/lib.rs +++ b/runtime/unique/src/lib.rs @@ -892,14 +892,14 @@ impl pallet_nonfungible::Config for Runtime { type WeightInfo = pallet_nonfungible::weights::SubstrateWeight; } - +/* TODO free RMRK! impl pallet_proxy_rmrk_core::Config for Runtime { type Event = Event; } impl pallet_proxy_rmrk_equip::Config for Runtime { type Event = Event; -} +}*/ impl pallet_unique::Config for Runtime { type Event = Event; @@ -1022,8 +1022,9 @@ Refungible: pallet_refungible::{Pallet, Storage} = 68, Nonfungible: pallet_nonfungible::{Pallet, Storage} = 69, Structure: pallet_structure::{Pallet, Call, Storage, Event} = 70, + /* TODO free RMRK! RmrkCore: pallet_proxy_rmrk_core::{Pallet, Call, Storage, Event} = 71, - RmrkEquip: pallet_proxy_rmrk_equip::{Pallet, Call, Storage, Event} = 72, + RmrkEquip: pallet_proxy_rmrk_equip::{Pallet, Call, Storage, Event} = 72,*/ // Frontier EVM: pallet_evm::{Pallet, Config, Call, Storage, Event} = 100, -- gitstuff