chore: regenerate umbrella crate, fix feature propagation

This commit is contained in:
2025-12-16 11:28:32 +03:00
parent dd6d48f528
commit 620b0e3aa0
1358 changed files with 9464 additions and 7656 deletions
@@ -265,9 +265,11 @@ pub fn set_status<T: Config<I>, I: 'static>(
child_bounty_id: Option<BountyIndex>,
new_payment_status: PaymentState<PaymentIdOf<T, I>>,
) -> Result<(), BenchmarkError> {
let bounty =
pezpallet_bounties::Pezpallet::<T, I>::get_bounty_details(parent_bounty_id, child_bounty_id)
.expect("no bounty");
let bounty = pezpallet_bounties::Pezpallet::<T, I>::get_bounty_details(
parent_bounty_id,
child_bounty_id,
)
.expect("no bounty");
let new_status = match bounty.3 {
BountyStatus::FundingAttempted { curator, .. } =>
@@ -448,7 +450,10 @@ mod benchmarks {
let s = create_funded_child_bounty::<T, I>()?;
let caller = s.child_curator.clone();
<T as pezpallet_bounties::Config<I>>::Consideration::ensure_successful(&caller, s.child_value);
<T as pezpallet_bounties::Config<I>>::Consideration::ensure_successful(
&caller,
s.child_value,
);
#[block]
{
@@ -96,11 +96,11 @@ use pezframe_support::{
use pezframe_system::pezpallet_prelude::{
ensure_signed, BlockNumberFor as SystemBlockNumberFor, OriginFor,
};
use scale_info::TypeInfo;
use pezsp_runtime::{
traits::{AccountIdConversion, BadOrigin, Convert, Saturating, StaticLookup, TryConvert, Zero},
Permill, RuntimeDebug,
};
use scale_info::TypeInfo;
pub type BalanceOf<T, I = ()> = <<T as Config<I>>::Paymaster as PayWithSource>::Balance;
pub type BeneficiaryLookupOf<T, I> = <<T as Config<I>>::BeneficiaryLookup as StaticLookup>::Source;
@@ -515,8 +515,8 @@ pub mod pezpallet {
/// The consideration cost incurred by the child-/bounty curator for committing to the role.
///
/// Determined by [`pezpallet::Config::Consideration`]. It is created when the curator accepts the
/// role, and is either burned if the curator misbehaves or consumed upon successful
/// Determined by [`pezpallet::Config::Consideration`]. It is created when the curator accepts
/// the role, and is either burned if the curator misbehaves or consumed upon successful
/// completion of the child-/bounty.
///
/// Note: If the parent curator is also assigned to the child-bounty,
@@ -325,9 +325,11 @@ pub fn get_payment_id(
parent_bounty_id: BountyIndex,
child_bounty_id: Option<BountyIndex>,
) -> Option<u64> {
let bounty =
pezpallet_bounties::Pezpallet::<Test>::get_bounty_details(parent_bounty_id, child_bounty_id)
.expect("no bounty");
let bounty = pezpallet_bounties::Pezpallet::<Test>::get_bounty_details(
parent_bounty_id,
child_bounty_id,
)
.expect("no bounty");
match bounty.3 {
BountyStatus::FundingAttempted {
@@ -356,8 +356,11 @@ fn fund_child_bounty_works() {
}
);
assert_eq!(
pezpallet_bounties::CuratorDeposit::<Test>::get(s.parent_bounty_id, None::<BountyIndex>)
.unwrap(),
pezpallet_bounties::CuratorDeposit::<Test>::get(
s.parent_bounty_id,
None::<BountyIndex>
)
.unwrap(),
consideration(s.value)
);
assert_eq!(
@@ -526,7 +529,10 @@ fn check_status_works() {
}
);
assert_eq!(
pezpallet_bounties::CuratorDeposit::<Test>::get(s.parent_bounty_id, None::<BountyIndex>),
pezpallet_bounties::CuratorDeposit::<Test>::get(
s.parent_bounty_id,
None::<BountyIndex>
),
None
);
@@ -576,8 +582,11 @@ fn check_status_works() {
assert_eq!(Balances::free_balance(s.curator), Balances::minimum_balance());
assert_eq!(Balances::reserved_balance(s.curator), s.curator_deposit);
assert_eq!(
pezpallet_bounties::CuratorDeposit::<Test>::get(s.parent_bounty_id, None::<BountyIndex>)
.unwrap(),
pezpallet_bounties::CuratorDeposit::<Test>::get(
s.parent_bounty_id,
None::<BountyIndex>
)
.unwrap(),
consideration(s.value)
);
@@ -607,7 +616,10 @@ fn check_status_works() {
Balances::minimum_balance() + s.curator_deposit
); // initial
assert_eq!(
pezpallet_bounties::CuratorDeposit::<Test>::get(s.parent_bounty_id, None::<BountyIndex>),
pezpallet_bounties::CuratorDeposit::<Test>::get(
s.parent_bounty_id,
None::<BountyIndex>
),
None
);
@@ -636,8 +648,11 @@ fn check_status_works() {
assert!(Preimage::is_requested(&s.metadata));
assert_eq!(Balances::free_balance(s.curator), Balances::minimum_balance());
assert_eq!(
pezpallet_bounties::CuratorDeposit::<Test>::get(s.parent_bounty_id, None::<BountyIndex>)
.unwrap(),
pezpallet_bounties::CuratorDeposit::<Test>::get(
s.parent_bounty_id,
None::<BountyIndex>
)
.unwrap(),
consideration(s.value)
);
@@ -666,7 +681,10 @@ fn check_status_works() {
);
assert!(!Preimage::is_requested(&s.metadata));
assert_eq!(
pezpallet_bounties::CuratorDeposit::<Test>::get(s.parent_bounty_id, None::<BountyIndex>),
pezpallet_bounties::CuratorDeposit::<Test>::get(
s.parent_bounty_id,
None::<BountyIndex>
),
None
);
assert_eq!(
@@ -1046,7 +1064,10 @@ fn retry_payment_works() {
}
);
assert_eq!(
pezpallet_bounties::CuratorDeposit::<Test>::get(s.parent_bounty_id, None::<BountyIndex>),
pezpallet_bounties::CuratorDeposit::<Test>::get(
s.parent_bounty_id,
None::<BountyIndex>
),
None
);
@@ -1338,8 +1359,11 @@ fn accept_curator_works() {
}
);
assert_eq!(
pezpallet_bounties::CuratorDeposit::<Test>::get(s.parent_bounty_id, None::<BountyIndex>)
.unwrap(),
pezpallet_bounties::CuratorDeposit::<Test>::get(
s.parent_bounty_id,
None::<BountyIndex>
)
.unwrap(),
consideration(s.value)
);
assert_eq!(Balances::reserved_balance(&s.curator), s.curator_deposit);
@@ -1596,7 +1620,10 @@ fn unassign_curator_works() {
}
);
assert_eq!(
pezpallet_bounties::CuratorDeposit::<Test>::get(s.parent_bounty_id, None::<BountyIndex>),
pezpallet_bounties::CuratorDeposit::<Test>::get(
s.parent_bounty_id,
None::<BountyIndex>
),
None
);
assert_eq!(
@@ -1816,7 +1843,10 @@ fn propose_curator_works() {
}
);
assert_eq!(
pezpallet_bounties::CuratorDeposit::<Test>::get(s.parent_bounty_id, None::<BountyIndex>),
pezpallet_bounties::CuratorDeposit::<Test>::get(
s.parent_bounty_id,
None::<BountyIndex>
),
None
);
@@ -2001,8 +2031,11 @@ fn award_bounty_works() {
}
);
assert_eq!(
pezpallet_bounties::CuratorDeposit::<Test>::get(s.parent_bounty_id, None::<BountyIndex>)
.unwrap(),
pezpallet_bounties::CuratorDeposit::<Test>::get(
s.parent_bounty_id,
None::<BountyIndex>
)
.unwrap(),
consideration(s.value)
);
@@ -2147,7 +2180,10 @@ fn close_bounty_works() {
}
);
assert_eq!(
pezpallet_bounties::CuratorDeposit::<Test>::get(s.parent_bounty_id, None::<BountyIndex>),
pezpallet_bounties::CuratorDeposit::<Test>::get(
s.parent_bounty_id,
None::<BountyIndex>
),
None
);