chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -35,9 +35,9 @@
|
||||
//! curator or once the bounty is active or payout is pending, resulting in the slash of the
|
||||
//! curator's deposit.
|
||||
//!
|
||||
//! This pezpallet may opt into using a [`ChildBountyManager`] that enables bounties to be split into
|
||||
//! sub-bounties, as children of an established bounty (called the parent in the context of it's
|
||||
//! children).
|
||||
//! This pezpallet may opt into using a [`ChildBountyManager`] that enables bounties to be split
|
||||
//! into sub-bounties, as children of an established bounty (called the parent in the context of
|
||||
//! it's children).
|
||||
//!
|
||||
//! > NOTE: The parent bounty cannot be closed if it has a non-zero number of it has active child
|
||||
//! > bounties associated with it.
|
||||
@@ -232,7 +232,9 @@ pub mod pezpallet {
|
||||
pub struct Pezpallet<T, I = ()>(_);
|
||||
|
||||
#[pezpallet::config]
|
||||
pub trait Config<I: 'static = ()>: pezframe_system::Config + pezpallet_treasury::Config<I> {
|
||||
pub trait Config<I: 'static = ()>:
|
||||
pezframe_system::Config + pezpallet_treasury::Config<I>
|
||||
{
|
||||
/// The amount held on deposit for placing a bounty proposal.
|
||||
#[pezpallet::constant]
|
||||
type BountyDepositBase: Get<BalanceOf<Self, I>>;
|
||||
|
||||
@@ -29,7 +29,8 @@ use pezsp_io::{hashing::twox_128, storage};
|
||||
|
||||
use crate as pezpallet_bounties;
|
||||
|
||||
/// Migrate the storage of the bounties pezpallet to a new prefix, leaving all other storage untouched
|
||||
/// Migrate the storage of the bounties pezpallet to a new prefix, leaving all other storage
|
||||
/// untouched
|
||||
///
|
||||
/// This new prefix must be the same as the one set in construct_runtime. For safety, use
|
||||
/// `PalletInfo` to get it, as:
|
||||
@@ -113,7 +114,11 @@ pub fn migrate<
|
||||
/// `pezframe_support::traits::OnRuntimeUpgrade::pre_upgrade` for further testing.
|
||||
///
|
||||
/// Panics if anything goes wrong.
|
||||
pub fn pre_migration<T: pezpallet_bounties::Config, P: GetStorageVersion + 'static, N: AsRef<str>>(
|
||||
pub fn pre_migration<
|
||||
T: pezpallet_bounties::Config,
|
||||
P: GetStorageVersion + 'static,
|
||||
N: AsRef<str>,
|
||||
>(
|
||||
old_pallet_name: N,
|
||||
new_pallet_name: N,
|
||||
) {
|
||||
@@ -123,7 +128,8 @@ pub fn pre_migration<T: pezpallet_bounties::Config, P: GetStorageVersion + 'stat
|
||||
let storage_prefix_bounties = pezpallet_bounties::Bounties::<T>::storage_prefix();
|
||||
let storage_prefix_bounties_description =
|
||||
pezpallet_bounties::BountyDescriptions::<T>::storage_prefix();
|
||||
let storage_prefix_bounties_approvals = pezpallet_bounties::BountyApprovals::<T>::storage_prefix();
|
||||
let storage_prefix_bounties_approvals =
|
||||
pezpallet_bounties::BountyApprovals::<T>::storage_prefix();
|
||||
log_migration("pre-migration", storage_prefix_bounties_count, old_pallet_name, new_pallet_name);
|
||||
log_migration("pre-migration", storage_prefix_bounties, old_pallet_name, new_pallet_name);
|
||||
log_migration(
|
||||
@@ -177,7 +183,8 @@ pub fn post_migration<T: pezpallet_bounties::Config, P: GetStorageVersion, N: As
|
||||
let storage_prefix_bounties = pezpallet_bounties::Bounties::<T>::storage_prefix();
|
||||
let storage_prefix_bounties_description =
|
||||
pezpallet_bounties::BountyDescriptions::<T>::storage_prefix();
|
||||
let storage_prefix_bounties_approvals = pezpallet_bounties::BountyApprovals::<T>::storage_prefix();
|
||||
let storage_prefix_bounties_approvals =
|
||||
pezpallet_bounties::BountyApprovals::<T>::storage_prefix();
|
||||
log_migration(
|
||||
"post-migration",
|
||||
storage_prefix_bounties_count,
|
||||
|
||||
Reference in New Issue
Block a user