Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 109017e

Browse files
committed
Merge branch 'master' into ao-update-kvdb-and-co
* master: Companion for #11649: Bound uses of `Call` (#5729)
2 parents 203ffe5 + 7870daf commit 109017e

File tree

19 files changed

+720
-1183
lines changed

19 files changed

+720
-1183
lines changed

Cargo.lock

Lines changed: 192 additions & 187 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime/kusama/src/governance/fellowship.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ impl pallet_referenda::Config<FellowshipReferendaInstance> for Runtime {
314314
type UndecidingTimeout = UndecidingTimeout;
315315
type AlarmInterval = AlarmInterval;
316316
type Tracks = TracksInfo;
317+
type Preimages = Preimage;
317318
}
318319

319320
pub type FellowshipCollectiveInstance = pallet_ranked_collective::Instance1;

runtime/kusama/src/governance/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,5 @@ impl pallet_referenda::Config for Runtime {
9191
type UndecidingTimeout = UndecidingTimeout;
9292
type AlarmInterval = AlarmInterval;
9393
type Tracks = TracksInfo;
94+
type Preimages = Preimage;
9495
}

runtime/kusama/src/governance/old.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ parameter_types! {
3232
}
3333

3434
impl pallet_democracy::Config for Runtime {
35-
type Proposal = RuntimeCall;
3635
type RuntimeEvent = RuntimeEvent;
3736
type Currency = Balances;
3837
type EnactmentPeriod = EnactmentPeriod;
@@ -74,14 +73,15 @@ impl pallet_democracy::Config for Runtime {
7473
// only do it once and it lasts only for the cooloff period.
7574
type VetoOrigin = pallet_collective::EnsureMember<AccountId, TechnicalCollective>;
7675
type CooloffPeriod = CooloffPeriod;
77-
type PreimageByteDeposit = PreimageByteDeposit;
78-
type OperationalPreimageOrigin = pallet_collective::EnsureMember<AccountId, CouncilCollective>;
7976
type Slash = Treasury;
8077
type Scheduler = Scheduler;
8178
type PalletsOrigin = OriginCaller;
8279
type MaxVotes = MaxVotes;
8380
type WeightInfo = weights::pallet_democracy::WeightInfo<Runtime>;
8481
type MaxProposals = MaxProposals;
82+
type Preimages = Preimage;
83+
type MaxDeposits = ConstU32<100>;
84+
type MaxBlacklisted = ConstU32<100>;
8585
}
8686

8787
parameter_types! {

runtime/kusama/src/lib.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,10 @@ impl pallet_scheduler::Config for Runtime {
225225
type MaxScheduledPerBlock = MaxScheduledPerBlock;
226226
type WeightInfo = weights::pallet_scheduler::WeightInfo<Runtime>;
227227
type OriginPrivilegeCmp = OriginPrivilegeCmp;
228-
type PreimageProvider = Preimage;
229-
type NoPreimagePostponement = NoPreimagePostponement;
228+
type Preimages = Preimage;
230229
}
231230

232231
parameter_types! {
233-
pub const PreimageMaxSize: u32 = 4096 * 1024;
234232
pub const PreimageBaseDeposit: Balance = deposit(2, 64);
235233
pub const PreimageByteDeposit: Balance = deposit(0, 1);
236234
}
@@ -239,8 +237,7 @@ impl pallet_preimage::Config for Runtime {
239237
type WeightInfo = weights::pallet_preimage::WeightInfo<Runtime>;
240238
type RuntimeEvent = RuntimeEvent;
241239
type Currency = Balances;
242-
type ManagerOrigin = EnsureRoot<AccountId>; // This might be too strong a requirenent?
243-
type MaxSize = PreimageMaxSize;
240+
type ManagerOrigin = EnsureRoot<AccountId>;
244241
type BaseDeposit = PreimageBaseDeposit;
245242
type ByteDeposit = PreimageByteDeposit;
246243
}
@@ -1471,6 +1468,12 @@ pub type Executive = frame_executive::Executive<
14711468
StakingMigrationV11OldPallet,
14721469
>,
14731470
pallet_staking::migrations::v12::MigrateToV12<Runtime>,
1471+
// "Bound uses of call" <https://github.com/paritytech/polkadot/pull/5729>
1472+
pallet_preimage::migration::v1::Migration<Runtime>,
1473+
pallet_scheduler::migration::v3::MigrateToV4<Runtime>,
1474+
pallet_democracy::migrations::v1::Migration<Runtime>,
1475+
pallet_multisig::migrations::v1::MigrateToV1<Runtime>,
1476+
// "Properly migrate weights to v2" <https://github.com/paritytech/polkadot/pull/6091>
14741477
parachains_configuration::migration::v3::MigrateToV3<Runtime>,
14751478
),
14761479
>;

0 commit comments

Comments
 (0)