Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
de39866
proxy: migrate from Currency to fungible traits
sigurpol Aug 26, 2025
1c65141
Add prdoc
sigurpol Aug 27, 2025
25989dd
proxy: add migration from reserves to holds
sigurpol Aug 27, 2025
d466f92
proxy: fix migration tests
sigurpol Aug 28, 2025
063680d
proxy: fix benchmarks after Currency to fungible migration
sigurpol Aug 29, 2025
5ee3ed9
proxy: introduce conservative weight limit for the migration
sigurpol Aug 29, 2025
60a8a76
proxy: add RuntimeHoldReasons to impl pallet_proxy::Config for Runtime
sigurpol Aug 29, 2025
898c610
tx-pause: add RuntimeHoldReasons in pallet_proxy::Config
sigurpol Aug 29, 2025
6b19fe4
tx-pause,revive,safe-mode: add RuntimeHoldReasons in pallet_proxy::Co…
sigurpol Aug 29, 2025
4712278
proxy: add force recovery functions for governance intervention
sigurpol Aug 29, 2025
83af159
proxy: add tests and benchmarks for force-recovery functions
sigurpol Aug 29, 2025
51fd84f
proxy: cleanup
sigurpol Aug 29, 2025
89945d7
Fix prdoc
sigurpol Aug 29, 2025
b28d340
proxy: remove force recovery functions in favour of Balances::force_t…
sigurpol Aug 29, 2025
a9dd7ff
Fix prdoc
sigurpol Aug 29, 2025
2b926ee
proxy: migrate to SteppedMigration for multi-block execution
sigurpol Aug 29, 2025
47540c1
proxy: (temporarily) add verbose stats around migration
sigurpol Aug 29, 2025
cd26cfb
proxy: add more temp logs + fix cursor handling and premature phase t…
sigurpol Sep 1, 2025
a2507c8
proxy: set storage version after migration
sigurpol Sep 1, 2025
7680b90
Make clippy happy
sigurpol Sep 1, 2025
60bc9a8
proxy: migration from v0 to v1 and not to v2
sigurpol Sep 1, 2025
04b0380
proxy: migration from v0 to v1 and not to v2 (follow-up)
sigurpol Sep 1, 2025
69f8cae
proxy: implement zero-deposit preservation strategy for migration fai…
sigurpol Sep 1, 2025
79f69af
Merge branch 'master' into sigurpol-migrate-proxy-to-fungibles
sigurpol Sep 1, 2025
ed10711
proxy: support single-block runtime upgrades and associated runtimes …
sigurpol Sep 1, 2025
c14cfb8
fmt
sigurpol Sep 1, 2025
6d4e90a
proxy: fix expected version after migration
sigurpol Sep 1, 2025
885b736
run proxy migration before revive (regression after merging #9285?)
sigurpol Sep 1, 2025
2236aee
proxy: fix asset-hub-rococo migration
sigurpol Sep 1, 2025
5b9574c
proxy: fix more runtimes to rely on MigrateReservesToHoldsVersioned
sigurpol Sep 1, 2025
ac0753f
Update from github-actions[bot] running command 'bench --pallet palle…
github-actions[bot] Sep 1, 2025
4a471da
Update from github-actions[bot] running command 'bench --pallet palle…
github-actions[bot] Sep 1, 2025
6af3ec0
Update from github-actions[bot] running command 'bench --pallet palle…
github-actions[bot] Sep 1, 2025
9845ecd
Improve prdoc
sigurpol Sep 2, 2025
8a3bc9a
Merge branch 'master' into sigurpol-migrate-proxy-to-fungibles
sigurpol Sep 2, 2025
5918d29
proxy: fix weight estimation
sigurpol Sep 2, 2025
04a2dc6
proxy: remove any ref to graceful degradation
sigurpol Sep 2, 2025
e577840
proxy: return an error if post_upgrade fails
sigurpol Sep 2, 2025
6d47b8c
proxy: improve logging for post_upgrade()
sigurpol Sep 2, 2025
4d5e882
Re-enable check-runtime-migration disabled by #8547
sigurpol Sep 2, 2025
298788e
proxy: multi-step migration on Westend to avoid to hit weight limit
sigurpol Sep 2, 2025
850c106
westend: temporary hack to exclude staking try-state check
sigurpol Sep 2, 2025
3aefc91
staking: fix panic while executing try-state on Westend
sigurpol Sep 2, 2025
24d5c53
Revert "staking: fix panic while executing try-state on Westend"
sigurpol Sep 2, 2025
97500db
Revert "westend: temporary hack to exclude staking try-state check"
sigurpol Sep 2, 2025
f61887d
Revert "Re-enable check-runtime-migration disabled by #8547"
sigurpol Sep 2, 2025
33b8e41
Merge branch 'master' into sigurpol-migrate-proxy-to-fungibles
sigurpol Sep 8, 2025
071fc72
proxy: improve doc around migration
sigurpol Sep 8, 2025
6cc4187
Rename MigrateReservesToHoldsVersioned into MigrateV0ToV1
sigurpol Sep 12, 2025
c842673
proxy: removed FunHoldBalanced from Currency, added FunMutate for ben…
sigurpol Sep 12, 2025
d36709d
Simplify code with set_on_hold
sigurpol Sep 12, 2025
440ba5c
defensive assert on balance_hold being zero in remove_all_proxy_deleg…
sigurpol Sep 12, 2025
ca3cd19
Merge branch 'master' into sigurpol-migrate-proxy-to-fungibles
sigurpol Sep 12, 2025
43b3f96
Migration stats in MBM cursor
sigurpol Sep 12, 2025
eefe881
Cleanup use statements
sigurpol Sep 12, 2025
a895759
Rename AccountCleanedup into StorageClearedDueToZeroDeposit
sigurpol Sep 12, 2025
83c6ba1
Added ProxyDefinitions<T> type alias
sigurpol Sep 12, 2025
eba9e39
Dynamic Weight Tracking for Multi-Block Migration
sigurpol Sep 12, 2025
2e409f6
Added BoundedAnnouncements type alias
sigurpol Sep 12, 2025
68b045b
migration: insufficient weight doesn't deserve a warning
sigurpol Sep 12, 2025
a2c7c5f
more review comments
sigurpol Sep 12, 2025
5c4aa06
better cursor
sigurpol Sep 12, 2025
0e4f07b
Fix review comments
sigurpol Sep 12, 2025
1b1f538
cleanup mock reserves code in migration tests
sigurpol Sep 15, 2025
8f49ba5
update proxy migration to be compliant with MBM pattern and ready to …
sigurpol Sep 15, 2025
1ca523b
benchmark infra for proxy migrations
sigurpol Sep 15, 2025
8a4cafc
benchmark proxy migration and cleanup
sigurpol Sep 15, 2025
a45f411
Add missing migration fn needed by WeightInfo trait in all runtimes
sigurpol Sep 15, 2025
5c99757
migration code reorg & cleanup
sigurpol Sep 15, 2025
047321a
fix doc
sigurpol Sep 15, 2025
43185f8
fix more runtimes
sigurpol Sep 15, 2025
29c66d1
Update from github-actions[bot] running command 'bench --pallet palle…
github-actions[bot] Sep 15, 2025
485dc05
Update from github-actions[bot] running command 'bench --pallet palle…
github-actions[bot] Sep 15, 2025
b9206d0
Update from github-actions[bot] running command 'bench --pallet palle…
github-actions[bot] Sep 15, 2025
ad29ed4
Update from github-actions[bot] running command 'bench --pallet palle…
github-actions[bot] Sep 15, 2025
0622fa5
Update from github-actions[bot] running command 'bench --pallet palle…
github-actions[bot] Sep 15, 2025
9dcd0ac
Revert "Update from github-actions[bot] running command 'bench --pall…
sigurpol Sep 15, 2025
17f3665
Merge branch 'master' into sigurpol-migrate-proxy-to-fungibles
sigurpol Sep 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
impl pallet_proxy::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type RuntimeHoldReason = RuntimeHoldReason;
type Currency = Balances;
type ProxyType = ProxyType;
type ProxyDepositBase = ProxyDepositBase;
Expand Down Expand Up @@ -1169,6 +1170,8 @@ pub type Migrations = (
Runtime,
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
>,
// Proxy pallet migration from reserves to holds
pallet_proxy::migrations::v1::MigrateV0ToV1<Runtime, Balances>,
// permanent
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,40 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// The range of component `p` is `[1, 50]`.
fn migrate_proxy_account(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `130 + p * (33 ±0)`
// Estimated: `3716`
// Minimum execution time: 7_000_000 picoseconds.
Weight::from_parts(8_000_000, 0)
.saturating_add(Weight::from_parts(0, 3716))
.saturating_add(Weight::from_parts(50_000, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// The range of component `a` is `[1, 50]`.
fn migrate_announcement_account(a: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `120 + a * (68 ±0)`
// Estimated: `4708`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(7_000_000, 0)
.saturating_add(Weight::from_parts(0, 4708))
.saturating_add(Weight::from_parts(80_000, 0).saturating_mul(a.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// The range of component `n` is `[1, 50]`.
fn migration_complete(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `250 + n * (100 ±0)`
// Estimated: `5000`
// Minimum execution time: 10_000_000 picoseconds.
Weight::from_parts(12_000_000, 0)
.saturating_add(Weight::from_parts(0, 5000))
.saturating_add(Weight::from_parts(200_000, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
impl pallet_proxy::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type RuntimeHoldReason = RuntimeHoldReason;
type Currency = Balances;
type ProxyType = ProxyType;
type ProxyDepositBase = ProxyDepositBase;
Expand Down Expand Up @@ -1202,6 +1203,7 @@ impl pallet_migrations::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
#[cfg(not(feature = "runtime-benchmarks"))]
type Migrations = (
pallet_proxy::migrations::v1::MigrateReservesToHolds<Runtime, Balances>,
pallet_revive::migrations::v1::Migration<Runtime>,
pallet_revive::migrations::v2::Migration<Runtime>,
);
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
impl pallet_proxy::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type RuntimeHoldReason = RuntimeHoldReason;
type Currency = Balances;
type ProxyType = ProxyType;
type ProxyDepositBase = ProxyDepositBase;
Expand Down Expand Up @@ -796,6 +797,8 @@ type Migrations = (
// unreleased
pallet_core_fellowship::migration::MigrateV0ToV1<Runtime, AmbassadorCoreInstance>,
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
// Proxy pallet migration from reserves to holds
pallet_proxy::migrations::v1::MigrateV0ToV1<Runtime, Balances>,
pallet_session::migrations::v1::MigrateV0ToV1<
Runtime,
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,40 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// The range of component `p` is `[1, 50]`.
fn migrate_proxy_account(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `130 + p * (33 ±0)`
// Estimated: `3716`
// Minimum execution time: 7_000_000 picoseconds.
Weight::from_parts(8_000_000, 0)
.saturating_add(Weight::from_parts(0, 3716))
.saturating_add(Weight::from_parts(50_000, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// The range of component `a` is `[1, 50]`.
fn migrate_announcement_account(a: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `120 + a * (68 ±0)`
// Estimated: `4708`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(7_000_000, 0)
.saturating_add(Weight::from_parts(0, 4708))
.saturating_add(Weight::from_parts(80_000, 0).saturating_mul(a.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// The range of component `n` is `[1, 50]`.
fn migration_complete(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `250 + n * (100 ±0)`
// Estimated: `5000`
// Minimum execution time: 10_000_000 picoseconds.
Weight::from_parts(12_000_000, 0)
.saturating_add(Weight::from_parts(0, 5000))
.saturating_add(Weight::from_parts(200_000, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ pub type Migrations = (
Runtime,
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
>,
// Proxy pallet migration from reserves to holds
pallet_proxy::migrations::v1::MigrateV0ToV1<Runtime, Balances>,
// permanent
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
Expand Down Expand Up @@ -585,6 +587,7 @@ parameter_types! {
impl pallet_proxy::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type RuntimeHoldReason = RuntimeHoldReason;
type Currency = Balances;
type ProxyType = ProxyType;
type ProxyDepositBase = ProxyDepositBase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,40 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// The range of component `p` is `[1, 50]`.
fn migrate_proxy_account(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `130 + p * (33 ±0)`
// Estimated: `3716`
// Minimum execution time: 7_000_000 picoseconds.
Weight::from_parts(8_000_000, 0)
.saturating_add(Weight::from_parts(0, 3716))
.saturating_add(Weight::from_parts(50_000, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// The range of component `a` is `[1, 50]`.
fn migrate_announcement_account(a: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `120 + a * (68 ±0)`
// Estimated: `4708`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(7_000_000, 0)
.saturating_add(Weight::from_parts(0, 4708))
.saturating_add(Weight::from_parts(80_000, 0).saturating_mul(a.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// The range of component `n` is `[1, 50]`.
fn migration_complete(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `250 + n * (100 ±0)`
// Estimated: `5000`
// Minimum execution time: 10_000_000 picoseconds.
Weight::from_parts(12_000_000, 0)
.saturating_add(Weight::from_parts(0, 5000))
.saturating_add(Weight::from_parts(200_000, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ pub type Migrations = (
Runtime,
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
>,
// Proxy pallet migration from reserves to holds
pallet_proxy::migrations::v1::MigrateV0ToV1<Runtime, Balances>,
// permanent
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
Expand Down Expand Up @@ -585,6 +587,7 @@ parameter_types! {
impl pallet_proxy::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type RuntimeHoldReason = RuntimeHoldReason;
type Currency = Balances;
type ProxyType = ProxyType;
type ProxyDepositBase = ProxyDepositBase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,40 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// The range of component `p` is `[1, 50]`.
fn migrate_proxy_account(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `130 + p * (33 ±0)`
// Estimated: `3716`
// Minimum execution time: 7_000_000 picoseconds.
Weight::from_parts(8_000_000, 0)
.saturating_add(Weight::from_parts(0, 3716))
.saturating_add(Weight::from_parts(50_000, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// The range of component `a` is `[1, 50]`.
fn migrate_announcement_account(a: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `120 + a * (68 ±0)`
// Estimated: `4708`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(7_000_000, 0)
.saturating_add(Weight::from_parts(0, 4708))
.saturating_add(Weight::from_parts(80_000, 0).saturating_mul(a.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// The range of component `n` is `[1, 50]`.
fn migration_complete(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `250 + n * (100 ±0)`
// Estimated: `5000`
// Minimum execution time: 10_000_000 picoseconds.
Weight::from_parts(12_000_000, 0)
.saturating_add(Weight::from_parts(0, 5000))
.saturating_add(Weight::from_parts(200_000, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
}
3 changes: 3 additions & 0 deletions cumulus/parachains/runtimes/people/people-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ pub type Migrations = (
Runtime,
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
>,
// Proxy pallet migration from reserves to holds
pallet_proxy::migrations::v1::MigrateV0ToV1<Runtime, Balances>,
// permanent
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
Expand Down Expand Up @@ -528,6 +530,7 @@ parameter_types! {
impl pallet_proxy::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type RuntimeHoldReason = RuntimeHoldReason;
type Currency = Balances;
type ProxyType = ProxyType;
type ProxyDepositBase = ProxyDepositBase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,40 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// The range of component `p` is `[1, 50]`.
fn migrate_proxy_account(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `130 + p * (33 ±0)`
// Estimated: `3716`
// Minimum execution time: 7_000_000 picoseconds.
Weight::from_parts(8_000_000, 0)
.saturating_add(Weight::from_parts(0, 3716))
.saturating_add(Weight::from_parts(50_000, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// The range of component `a` is `[1, 50]`.
fn migrate_announcement_account(a: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `120 + a * (68 ±0)`
// Estimated: `4708`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(7_000_000, 0)
.saturating_add(Weight::from_parts(0, 4708))
.saturating_add(Weight::from_parts(80_000, 0).saturating_mul(a.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// The range of component `n` is `[1, 50]`.
fn migration_complete(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `250 + n * (100 ±0)`
// Estimated: `5000`
// Minimum execution time: 10_000_000 picoseconds.
Weight::from_parts(12_000_000, 0)
.saturating_add(Weight::from_parts(0, 5000))
.saturating_add(Weight::from_parts(200_000, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
}
3 changes: 3 additions & 0 deletions cumulus/parachains/runtimes/people/people-westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ pub type Migrations = (
Runtime,
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
>,
// Proxy pallet migration from reserves to holds
pallet_proxy::migrations::v1::MigrateV0ToV1<Runtime, Balances>,
// permanent
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
Expand Down Expand Up @@ -531,6 +533,7 @@ parameter_types! {
impl pallet_proxy::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type RuntimeHoldReason = RuntimeHoldReason;
type Currency = Balances;
type ProxyType = ProxyType;
type ProxyDepositBase = ProxyDepositBase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,40 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// The range of component `p` is `[1, 50]`.
fn migrate_proxy_account(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `130 + p * (33 ±0)`
// Estimated: `3716`
// Minimum execution time: 7_000_000 picoseconds.
Weight::from_parts(8_000_000, 0)
.saturating_add(Weight::from_parts(0, 3716))
.saturating_add(Weight::from_parts(50_000, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// The range of component `a` is `[1, 50]`.
fn migrate_announcement_account(a: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `120 + a * (68 ±0)`
// Estimated: `4708`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(7_000_000, 0)
.saturating_add(Weight::from_parts(0, 4708))
.saturating_add(Weight::from_parts(80_000, 0).saturating_mul(a.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// The range of component `n` is `[1, 50]`.
fn migration_complete(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `250 + n * (100 ±0)`
// Estimated: `5000`
// Minimum execution time: 10_000_000 picoseconds.
Weight::from_parts(12_000_000, 0)
.saturating_add(Weight::from_parts(0, 5000))
.saturating_add(Weight::from_parts(200_000, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
}
4 changes: 4 additions & 0 deletions polkadot/runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
impl pallet_proxy::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type RuntimeHoldReason = RuntimeHoldReason;
type Currency = Balances;
type ProxyType = ProxyType;
type ProxyDepositBase = ProxyDepositBase;
Expand Down Expand Up @@ -1793,6 +1794,9 @@ pub mod migrations {
// migrates session storage item
pallet_session::migrations::v1::MigrateV0ToV1<Runtime, pallet_session::migrations::v1::InitOffenceSeverity<Runtime>>,

// Proxy pallet migration from reserves to holds
pallet_proxy::migrations::v1::MigrateV0ToV1<Runtime, Balances>,

// permanent
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
parachains_inclusion::migration::MigrateToV1<Runtime>,
Expand Down
Loading
Loading