Skip to content

Commit

Permalink
feat: add migrations for uplift
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwht committed Aug 2, 2023
1 parent d0255a6 commit 96559b2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
5 changes: 5 additions & 0 deletions runtime/devnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
(
pallet_assets::migration::v1::MigrateToV1<Runtime>,
pallet_xcm::migration::v1::MigrateToV1<Runtime>,
pallet_xc_asset_config::migrations::MigrationXcmV3<Runtime>,
)
>;

/// Handles converting a weight scalar to a fee value, based on the scale and granularity of the
Expand Down
2 changes: 1 addition & 1 deletion runtime/devnet/src/weights/pallet_block_reward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_block_reward::WeightInfo for WeightInfo<T> {
// Storage: BlockReward RewardDistributionConfigStorage (r:0 w:1)
fn set_configuration() -> Weight {
Weight::from_ref_time(17_000_000 as u64)
Weight::from_parts(17_000_000 as u64, 0)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
}
48 changes: 24 additions & 24 deletions runtime/devnet/src/weights/pallet_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
// Storage: Proxy Proxies (r:1 w:0)
/// The range of component `p` is `[1, 31]`.
fn proxy(p: u32, ) -> Weight {
Weight::from_ref_time(16_000_000 as u64)
Weight::from_parts(16_000_000 as u64, 0)
// Standard Error: 1_679
.saturating_add(Weight::from_ref_time(62_536 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_parts(62_536 as u64, 0).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
}
// Storage: Proxy Proxies (r:1 w:0)
Expand All @@ -60,11 +60,11 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn proxy_announced(a: u32, p: u32, ) -> Weight {
Weight::from_ref_time(32_000_000 as u64)
Weight::from_parts(32_000_000 as u64, 0)
// Standard Error: 2_798
.saturating_add(Weight::from_ref_time(197_053 as u64).saturating_mul(a as u64))
.saturating_add(Weight::from_parts(197_053 as u64, 0).saturating_mul(a as u64))
// Standard Error: 2_787
.saturating_add(Weight::from_ref_time(32_718 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_parts(32_718 as u64, 0).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
Expand All @@ -73,11 +73,11 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn remove_announcement(a: u32, p: u32, ) -> Weight {
Weight::from_ref_time(23_000_000 as u64)
Weight::from_parts(23_000_000 as u64, 0)
// Standard Error: 1_739
.saturating_add(Weight::from_ref_time(158_044 as u64).saturating_mul(a as u64))
.saturating_add(Weight::from_parts(158_044 as u64, 0).saturating_mul(a as u64))
// Standard Error: 1_732
.saturating_add(Weight::from_ref_time(26_141 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_parts(26_141 as u64, 0).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
Expand All @@ -86,11 +86,11 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn reject_announcement(a: u32, p: u32, ) -> Weight {
Weight::from_ref_time(24_000_000 as u64)
Weight::from_parts(24_000_000 as u64, 0)
// Standard Error: 1_764
.saturating_add(Weight::from_ref_time(133_349 as u64).saturating_mul(a as u64))
.saturating_add(Weight::from_parts(133_349 as u64, 0).saturating_mul(a as u64))
// Standard Error: 1_757
.saturating_add(Weight::from_ref_time(22_759 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_parts(22_759 as u64, 0).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
Expand All @@ -100,57 +100,57 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn announce(a: u32, p: u32, ) -> Weight {
Weight::from_ref_time(29_000_000 as u64)
Weight::from_parts(29_000_000 as u64, 0)
// Standard Error: 2_794
.saturating_add(Weight::from_ref_time(202_177 as u64).saturating_mul(a as u64))
.saturating_add(Weight::from_parts(202_177 as u64, 0).saturating_mul(a as u64))
// Standard Error: 2_783
.saturating_add(Weight::from_ref_time(33_471 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_parts(33_471 as u64, 0).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Proxy Proxies (r:1 w:1)
/// The range of component `p` is `[1, 31]`.
fn add_proxy(p: u32, ) -> Weight {
Weight::from_ref_time(25_000_000 as u64)
Weight::from_parts(25_000_000 as u64, 0)
// Standard Error: 2_970
.saturating_add(Weight::from_ref_time(142_211 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_parts(142_211 as u64, 0).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Proxy Proxies (r:1 w:1)
/// The range of component `p` is `[1, 31]`.
fn remove_proxy(p: u32, ) -> Weight {
Weight::from_ref_time(25_000_000 as u64)
Weight::from_parts(25_000_000 as u64, 0)
// Standard Error: 2_445
.saturating_add(Weight::from_ref_time(115_634 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_parts(115_634 as u64, 0).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Proxy Proxies (r:1 w:1)
/// The range of component `p` is `[1, 31]`.
fn remove_proxies(p: u32, ) -> Weight {
Weight::from_ref_time(21_000_000 as u64)
Weight::from_parts(21_000_000 as u64, 0)
// Standard Error: 2_769
.saturating_add(Weight::from_ref_time(123_291 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_parts(123_291 as u64, 0).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
// Storage: Proxy Proxies (r:1 w:1)
/// The range of component `p` is `[1, 31]`.
fn create_pure(p: u32, ) -> Weight {
Weight::from_ref_time(28_000_000 as u64)
Weight::from_parts(28_000_000 as u64, 0)
// Standard Error: 8_594
.saturating_add(Weight::from_ref_time(224_087 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_parts(224_087 as u64, 0).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Proxy Proxies (r:1 w:1)
/// The range of component `p` is `[0, 30]`.
fn kill_pure(p: u32, ) -> Weight {
Weight::from_ref_time(22_000_000 as u64)
Weight::from_parts(22_000_000 as u64, 0)
// Standard Error: 5_885
.saturating_add(Weight::from_ref_time(109_630 as u64).saturating_mul(p as u64))
.saturating_add(Weight::from_parts(109_630 as u64, 0).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
Expand Down

0 comments on commit 96559b2

Please sign in to comment.