chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -20,11 +20,11 @@
|
||||
use crate::types::Delegations;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use core::result::Result;
|
||||
use scale_info::TypeInfo;
|
||||
use pezsp_runtime::{
|
||||
traits::{Bounded, CheckedDiv, CheckedMul, Zero},
|
||||
RuntimeDebug,
|
||||
};
|
||||
use scale_info::TypeInfo;
|
||||
|
||||
/// A value denoting the strength of conviction of a vote.
|
||||
#[derive(
|
||||
|
||||
@@ -223,7 +223,8 @@ pub mod pezpallet {
|
||||
pub trait Config: pezframe_system::Config + Sized {
|
||||
type WeightInfo: WeightInfo;
|
||||
#[allow(deprecated)]
|
||||
type RuntimeEvent: From<Event<Self>> + IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
|
||||
type RuntimeEvent: From<Event<Self>>
|
||||
+ IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
|
||||
|
||||
/// The Scheduler.
|
||||
type Scheduler: ScheduleNamed<
|
||||
@@ -841,8 +842,8 @@ pub mod pezpallet {
|
||||
.try_insert(insert_position, who.clone())
|
||||
.map_err(|_| Error::<T>::TooMany)?;
|
||||
|
||||
let until =
|
||||
pezframe_system::Pezpallet::<T>::block_number().saturating_add(T::CooloffPeriod::get());
|
||||
let until = pezframe_system::Pezpallet::<T>::block_number()
|
||||
.saturating_add(T::CooloffPeriod::get());
|
||||
Blacklist::<T>::insert(&proposal_hash, (until, existing_vetoers));
|
||||
|
||||
Self::deposit_event(Event::<T>::Vetoed { who, proposal_hash, until });
|
||||
|
||||
@@ -166,8 +166,8 @@ where
|
||||
/// 4. Prints summary statistics about the state to be migrated.
|
||||
/// 5. Encodes and returns pre-migration data to be used in post_upgrade.
|
||||
///
|
||||
/// Fails with a `TryRuntimeError` if somehow the amount reserved by this pezpallet is greater than
|
||||
/// the actual total reserved amount for any accounts.
|
||||
/// Fails with a `TryRuntimeError` if somehow the amount reserved by this pezpallet is greater
|
||||
/// than the actual total reserved amount for any accounts.
|
||||
#[cfg(feature = "try-runtime")]
|
||||
fn pre_upgrade() -> Result<Vec<u8>, pezsp_runtime::TryRuntimeError> {
|
||||
use alloc::collections::btree_set::BTreeSet;
|
||||
@@ -187,7 +187,8 @@ where
|
||||
.collect();
|
||||
|
||||
// Total deposited for each account *should* be less than or equal to the total reserved,
|
||||
// however this does not hold for all cases due to bugs in the reserve logic of this pezpallet.
|
||||
// however this does not hold for all cases due to bugs in the reserve logic of this
|
||||
// pezpallet.
|
||||
let bugged_deposits = all_accounts
|
||||
.iter()
|
||||
.filter(|account| {
|
||||
|
||||
@@ -32,7 +32,11 @@ mod v0 {
|
||||
#[storage_alias]
|
||||
pub type PublicProps<T: Config> = StorageValue<
|
||||
Pezpallet<T>,
|
||||
Vec<(PropIndex, <T as pezframe_system::Config>::Hash, <T as pezframe_system::Config>::AccountId)>,
|
||||
Vec<(
|
||||
PropIndex,
|
||||
<T as pezframe_system::Config>::Hash,
|
||||
<T as pezframe_system::Config>::AccountId,
|
||||
)>,
|
||||
ValueQuery,
|
||||
>;
|
||||
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
|
||||
use crate::{AccountVote, Conviction, Vote, VoteThreshold};
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use scale_info::TypeInfo;
|
||||
use pezsp_runtime::{
|
||||
traits::{Bounded, CheckedAdd, CheckedDiv, CheckedMul, CheckedSub, Saturating, Zero},
|
||||
RuntimeDebug,
|
||||
};
|
||||
use scale_info::TypeInfo;
|
||||
|
||||
/// A proposal index.
|
||||
pub type PropIndex = u32;
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
use crate::{Conviction, Delegations, ReferendumIndex};
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, EncodeLike, Input, MaxEncodedLen, Output};
|
||||
use pezframe_support::traits::Get;
|
||||
use scale_info::TypeInfo;
|
||||
use pezsp_runtime::{
|
||||
traits::{Saturating, Zero},
|
||||
BoundedVec, RuntimeDebug,
|
||||
};
|
||||
use scale_info::TypeInfo;
|
||||
|
||||
/// A number of lock periods, plus a vote, one way or the other.
|
||||
#[derive(DecodeWithMemTracking, Copy, Clone, Eq, PartialEq, Default, RuntimeDebug)]
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
use crate::Tally;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use core::ops::{Add, Div, Mul, Rem};
|
||||
use pezsp_runtime::traits::{IntegerSquareRoot, Zero};
|
||||
use scale_info::TypeInfo;
|
||||
#[cfg(feature = "std")]
|
||||
use serde::{Deserialize, Serialize};
|
||||
use pezsp_runtime::traits::{IntegerSquareRoot, Zero};
|
||||
|
||||
/// A means of determining if a vote is past pass threshold.
|
||||
#[derive(
|
||||
|
||||
Reference in New Issue
Block a user