Skip to content

Commit 68edfac

Browse files
committed
choir: cleanup rococo and auxiliary scripts
1 parent 3fcea1e commit 68edfac

File tree

5 files changed

+15
-176
lines changed

5 files changed

+15
-176
lines changed

polkadot/runtime/rococo/src/lib.rs

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,24 +1224,6 @@ impl parachains_slashing::Config for Runtime {
12241224
type BenchmarkingConfig = parachains_slashing::BenchConfig<200>;
12251225
}
12261226

1227-
parameter_types! {
1228-
pub const MaxPublishItems: u32 = 16;
1229-
pub const MaxKeyLength: u32 = 256;
1230-
pub const MaxValueLength: u32 = 1024;
1231-
pub const MaxStoredKeys: u32 = 100;
1232-
pub const MaxSubscriptions: u32 = 100;
1233-
pub const MaxPublishers: u32 = 1000;
1234-
}
1235-
1236-
impl polkadot_runtime_parachains::broadcaster::Config for Runtime {
1237-
type MaxPublishItems = MaxPublishItems;
1238-
type MaxKeyLength = MaxKeyLength;
1239-
type MaxValueLength = MaxValueLength;
1240-
type MaxStoredKeys = MaxStoredKeys;
1241-
type MaxSubscriptions = MaxSubscriptions;
1242-
type MaxPublishers = MaxPublishers;
1243-
}
1244-
12451227
parameter_types! {
12461228
pub const ParaDeposit: Balance = 40 * UNITS;
12471229
}
@@ -1616,7 +1598,6 @@ construct_runtime! {
16161598
Auctions: auctions = 72,
16171599
Crowdloan: crowdloan = 73,
16181600
Coretime: coretime = 74,
1619-
Broadcaster: polkadot_runtime_parachains::broadcaster = 75,
16201601

16211602
// Migrations pallet
16221603
MultiBlockMigrations: pallet_migrations = 98,
@@ -2029,7 +2010,7 @@ sp_api::impl_runtime_apis! {
20292010
}
20302011
}
20312012

2032-
#[api_version(16)]
2013+
#[api_version(15)]
20332014
impl polkadot_primitives::runtime_api::ParachainHost<Block> for Runtime {
20342015
fn validators() -> Vec<ValidatorId> {
20352016
parachains_runtime_api_impl::validators::<Runtime>()
@@ -2216,10 +2197,6 @@ sp_api::impl_runtime_apis! {
22162197
fn para_ids() -> Vec<ParaId> {
22172198
parachains_staging_runtime_api_impl::para_ids::<Runtime>()
22182199
}
2219-
2220-
fn get_subscribed_data(subscriber_para_id: ParaId) -> BTreeMap<ParaId, Vec<(Vec<u8>, Vec<u8>)>> {
2221-
Broadcaster::get_subscribed_data(subscriber_para_id)
2222-
}
22232200
}
22242201

22252202
#[api_version(6)]
@@ -2706,15 +2683,6 @@ sp_api::impl_runtime_apis! {
27062683
// The XCM executor of Rococo doesn't have a configured `Aliasers`
27072684
Err(BenchmarkError::Skip)
27082685
}
2709-
2710-
fn publish_origin() -> Result<Location, BenchmarkError> {
2711-
Ok(AssetHub::get())
2712-
}
2713-
2714-
fn valid_publisher() -> Result<u32, BenchmarkError> {
2715-
// Use Asset Hub's parachain ID as the publisher
2716-
Ok(rococo_runtime_constants::system_parachain::ASSET_HUB_ID)
2717-
}
27182686
}
27192687

27202688
let mut whitelist: Vec<TrackedStorageKey> = AllPalletsWithSystem::whitelisted_storage_keys();

polkadot/runtime/rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -349,41 +349,12 @@ impl<T: frame_system::Config> WeightInfo<T> {
349349
// Minimum execution time: 766_000 picoseconds.
350350
Weight::from_parts(807_000, 0)
351351
}
352-
/// Storage: `Broadcaster::PublisherExists` (r:1 w:1)
353-
/// Proof: `Broadcaster::PublisherExists` (`max_values`: None, `max_size`: Some(5), added: 2480, mode: `MaxEncodedLen`)
354-
/// Storage: `Broadcaster::PublishedKeys` (r:1 w:1)
355-
/// Proof: `Broadcaster::PublishedKeys` (`max_values`: None, `max_size`: Some(3205), added: 5680, mode: `MaxEncodedLen`)
356-
/// Storage: `Broadcaster::PublishedDataRoots` (r:1 w:1)
357-
/// Proof: `Broadcaster::PublishedDataRoots` (`max_values`: Some(1), `max_size`: Some(32027), added: 32522, mode: `MaxEncodedLen`)
358-
/// Storage: UNKNOWN KEY `0x0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e` (r:0 w:1)
359-
/// Proof: UNKNOWN KEY `0x0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e` (r:0 w:1)
360-
/// Storage: UNKNOWN KEY `0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f` (r:0 w:1)
361-
/// Proof: UNKNOWN KEY `0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f` (r:0 w:1)
362-
/// The range of component `n` is `[1, 16]`.
363-
pub fn publish(n: u32, ) -> Weight {
364-
// Proof Size summary in bytes:
365-
// Measured: `222`
366-
// Estimated: `38487 + n * (14 ±0)`
367-
// Minimum execution time: 18_000_000 picoseconds.
368-
Weight::from_parts(15_154_813, 0)
369-
.saturating_add(Weight::from_parts(0, 38487))
370-
// Standard Error: 6_584
371-
.saturating_add(Weight::from_parts(4_663_489, 0).saturating_mul(n.into()))
372-
.saturating_add(T::DbWeight::get().reads(3))
373-
.saturating_add(T::DbWeight::get().writes(4))
374-
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
375-
.saturating_add(Weight::from_parts(0, 14).saturating_mul(n.into()))
376-
}
377-
/// Storage: `Broadcaster::Subscriptions` (r:1 w:1)
378-
/// Proof: `Broadcaster::Subscriptions` (`max_values`: None, `max_size`: Some(422), added: 2897, mode: `MaxEncodedLen`)
352+
pub fn publish(_n: u32, ) -> Weight {
353+
// Template weights, not benchmarked
354+
Weight::from_parts(100_000_000, 0)
355+
}
379356
pub fn subscribe() -> Weight {
380-
// Proof Size summary in bytes:
381-
// Measured: `217`
382-
// Estimated: `3887`
383-
// Minimum execution time: 7_000_000 picoseconds.
384-
Weight::from_parts(7_000_000, 0)
385-
.saturating_add(Weight::from_parts(0, 3887))
386-
.saturating_add(T::DbWeight::get().reads(1))
387-
.saturating_add(T::DbWeight::get().writes(1))
357+
// Template weights, not benchmarked
358+
Weight::from_parts(100_000_000, 0)
388359
}
389360
}

polkadot/runtime/rococo/src/xcm_config.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
//! XCM configuration for Rococo.
1818
1919
use super::{
20-
parachains_origin, AccountId, AllPalletsWithSystem, Balances, Broadcaster, Dmp, Fellows,
21-
ParaId, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, TransactionByteFee, Treasurer,
22-
Treasury, WeightToFee, XcmPallet,
20+
parachains_origin, AccountId, AllPalletsWithSystem, Balances, Dmp, Fellows, ParaId, Runtime,
21+
RuntimeCall, RuntimeEvent, RuntimeOrigin, TransactionByteFee, Treasurer, Treasury,
22+
WeightToFee, XcmPallet,
2323
};
2424

2525
use crate::governance::StakingAdmin;
@@ -42,10 +42,10 @@ use xcm_builder::{
4242
AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, ChildParachainAsNative,
4343
ChildParachainConvertsVia, DescribeAllTerminal, DescribeFamily, FixedWeightBounds,
4444
FrameTransactionalProcessor, FungibleAdapter, HashedDescription, IsChildSystemParachain,
45-
IsConcrete, MintLocation, OriginToPluralityVoice, ParachainBroadcastAdapter,
46-
SendXcmFeeToAccount, SignedAccountId32AsNative, SignedToAccountId32,
47-
SovereignSignedViaLocation, TakeWeightCredit, TrailingSetTopicAsId, UsingComponents,
48-
WeightInfoBounds, WithComputedOrigin, WithUniqueTopic, XcmFeeManagerFromComponents,
45+
IsConcrete, MintLocation, OriginToPluralityVoice, SendXcmFeeToAccount,
46+
SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit,
47+
TrailingSetTopicAsId, UsingComponents, WeightInfoBounds, WithComputedOrigin, WithUniqueTopic,
48+
XcmFeeManagerFromComponents,
4949
};
5050
use xcm_executor::XcmExecutor;
5151

@@ -227,7 +227,7 @@ impl xcm_executor::Config for XcmConfig {
227227
type HrmpChannelAcceptedHandler = ();
228228
type HrmpChannelClosingHandler = ();
229229
type XcmRecorder = XcmPallet;
230-
type BroadcastHandler = ParachainBroadcastAdapter<OnlyParachains, Broadcaster>;
230+
type BroadcastHandler = ();
231231
}
232232

233233
parameter_types! {

pubsub-dev/build.sh

Lines changed: 0 additions & 56 deletions
This file was deleted.

pubsub-dev/zombienet.toml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)