chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Simple pezpallet that stores the preset that was used to generate the genesis state in the state.
|
||||
//! Simple pezpallet that stores the preset that was used to generate the genesis state in the
|
||||
//! state.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
|
||||
@@ -63,8 +63,8 @@ pub mod fee {
|
||||
WeightToFeeCoefficient, WeightToFeeCoefficients, WeightToFeePolynomial,
|
||||
};
|
||||
use pezkuwi_primitives::Balance;
|
||||
use smallvec::smallvec;
|
||||
pub use pezsp_runtime::Perbill;
|
||||
use smallvec::smallvec;
|
||||
|
||||
/// The block saturation level. Fees will be updates based on this value.
|
||||
pub const TARGET_BLOCK_FULLNESS: Perbill = Perbill::from_percent(25);
|
||||
|
||||
@@ -25,8 +25,8 @@ use alloc::format;
|
||||
use alloc::{string::ToString, vec, vec::Vec};
|
||||
use core::panic;
|
||||
use pezframe_support::build_struct_json_patch;
|
||||
use pezpallet_staking_async_rc_runtime_constants::currency::UNITS as ZGR;
|
||||
use pezkuwi_primitives::{AccountId, AssignmentId, SchedulerParams, ValidatorId};
|
||||
use pezpallet_staking_async_rc_runtime_constants::currency::UNITS as ZGR;
|
||||
use pezsp_authority_discovery::AuthorityId as AuthorityDiscoveryId;
|
||||
use pezsp_consensus_babe::AuthorityId as BabeId;
|
||||
use pezsp_consensus_beefy::ecdsa_crypto::AuthorityId as BeefyId;
|
||||
|
||||
@@ -20,9 +20,9 @@ use codec::{Decode, Encode};
|
||||
use core::marker::PhantomData;
|
||||
use pezframe_support::pezpallet_prelude::DispatchResult;
|
||||
use pezframe_system::RawOrigin;
|
||||
use pezpallet_staking_async_rc_runtime_constants::currency::*;
|
||||
use pezkuwi_primitives::Balance;
|
||||
use pezkuwi_runtime_common::identity_migrator::{OnReapIdentity, WeightInfo};
|
||||
use pezpallet_staking_async_rc_runtime_constants::currency::*;
|
||||
use xcm::{latest::prelude::*, VersionedLocation, VersionedXcm};
|
||||
use xcm_executor::traits::TransactAsset;
|
||||
|
||||
|
||||
@@ -47,17 +47,6 @@ use pezframe_support::{
|
||||
};
|
||||
pub use pezframe_system::Call as SystemCall;
|
||||
use pezframe_system::{EnsureRoot, EnsureSigned};
|
||||
pub use pezpallet_balances::Call as BalancesCall;
|
||||
use pezpallet_grandpa::{fg_primitives, AuthorityId as GrandpaId};
|
||||
use pezpallet_identity::legacy::IdentityInfo;
|
||||
use pezpallet_session::{
|
||||
disabling::{DisablingDecision, DisablingStrategy},
|
||||
historical as session_historical,
|
||||
};
|
||||
use pezpallet_staking_async_ah_client::{self as ah_client};
|
||||
use pezpallet_staking_async_rc_client::{self as rc_client};
|
||||
pub use pezpallet_timestamp::Call as TimestampCall;
|
||||
use pezpallet_transaction_payment::{FeeDetails, FungibleAdapter, RuntimeDispatchInfo};
|
||||
use pezkuwi_primitives::{
|
||||
async_backing::Constraints, slashing, AccountId, AccountIndex, ApprovalVotingParams, Balance,
|
||||
BlockNumber, CandidateEvent, CandidateHash,
|
||||
@@ -94,7 +83,17 @@ use pezkuwi_runtime_teyrchains::{
|
||||
scheduler as teyrchains_scheduler, session_info as teyrchains_session_info,
|
||||
shared as teyrchains_shared,
|
||||
};
|
||||
use scale_info::TypeInfo;
|
||||
pub use pezpallet_balances::Call as BalancesCall;
|
||||
use pezpallet_grandpa::{fg_primitives, AuthorityId as GrandpaId};
|
||||
use pezpallet_identity::legacy::IdentityInfo;
|
||||
use pezpallet_session::{
|
||||
disabling::{DisablingDecision, DisablingStrategy},
|
||||
historical as session_historical,
|
||||
};
|
||||
use pezpallet_staking_async_ah_client::{self as ah_client};
|
||||
use pezpallet_staking_async_rc_client::{self as rc_client};
|
||||
pub use pezpallet_timestamp::Call as TimestampCall;
|
||||
use pezpallet_transaction_payment::{FeeDetails, FungibleAdapter, RuntimeDispatchInfo};
|
||||
use pezsp_authority_discovery::AuthorityId as AuthorityDiscoveryId;
|
||||
use pezsp_consensus_beefy::{
|
||||
ecdsa_crypto::{AuthorityId as BeefyId, Signature as BeefySignature},
|
||||
@@ -116,6 +115,7 @@ use pezsp_staking::{offence::OffenceSeverity, SessionIndex};
|
||||
#[cfg(any(feature = "std", test))]
|
||||
use pezsp_version::NativeVersion;
|
||||
use pezsp_version::RuntimeVersion;
|
||||
use scale_info::TypeInfo;
|
||||
use xcm::{
|
||||
latest::prelude::*, VersionedAsset, VersionedAssetId, VersionedAssets, VersionedLocation,
|
||||
VersionedXcm,
|
||||
@@ -143,7 +143,9 @@ pub mod pezpallet_reward_point_filler {
|
||||
use super::*;
|
||||
|
||||
#[pezpallet::config]
|
||||
pub trait Config: pezframe_system::Config + pezpallet_staking_async_ah_client::Config {
|
||||
pub trait Config:
|
||||
pezframe_system::Config + pezpallet_staking_async_ah_client::Config
|
||||
{
|
||||
type FillValidatorPointsTo: Get<u32>;
|
||||
}
|
||||
|
||||
@@ -192,8 +194,8 @@ use impls::ToTeyrchainIdentityReaper;
|
||||
// Governance and configurations.
|
||||
pub mod governance;
|
||||
use governance::{
|
||||
pezpallet_custom_origins, AuctionAdmin, FellowshipAdmin, GeneralAdmin, LeaseAdmin, StakingAdmin,
|
||||
Treasurer, TreasurySpender,
|
||||
pezpallet_custom_origins, AuctionAdmin, FellowshipAdmin, GeneralAdmin, LeaseAdmin,
|
||||
StakingAdmin, Treasurer, TreasurySpender,
|
||||
};
|
||||
|
||||
#[cfg(test)]
|
||||
@@ -236,10 +238,10 @@ pub fn native_version() -> NativeVersion {
|
||||
NativeVersion { runtime_version: VERSION, can_author_with: Default::default() }
|
||||
}
|
||||
|
||||
/// A type to identify calls to the Identity pezpallet. These will be filtered to prevent invocation,
|
||||
/// locking the state of the pezpallet and preventing further updates to identities and sub-identities.
|
||||
/// The locked state will be the genesis state of a new system chain and then removed from the Relay
|
||||
/// Chain.
|
||||
/// A type to identify calls to the Identity pezpallet. These will be filtered to prevent
|
||||
/// invocation, locking the state of the pezpallet and preventing further updates to identities and
|
||||
/// sub-identities. The locked state will be the genesis state of a new system chain and then
|
||||
/// removed from the Relay Chain.
|
||||
pub struct IsIdentityCall;
|
||||
impl Contains<RuntimeCall> for IsIdentityCall {
|
||||
fn contains(c: &RuntimeCall) -> bool {
|
||||
@@ -1743,8 +1745,8 @@ parameter_types! {
|
||||
impl pezpallet_migrations::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
// For this test runtime, always use MockedMigrations to satisfy both regular and benchmark
|
||||
// builds. When runtime-benchmarks is enabled on pezframe-support (via --benches), the Migrations
|
||||
// type must implement MockedMigrations, but LazyMigrationV1ToV2 doesn't.
|
||||
// builds. When runtime-benchmarks is enabled on pezframe-support (via --benches), the
|
||||
// Migrations type must implement MockedMigrations, but LazyMigrationV1ToV2 doesn't.
|
||||
type Migrations = pezpallet_migrations::mock_helpers::MockedMigrations;
|
||||
type CursorMaxLen = ConstU32<65_536>;
|
||||
type IdentifierMaxLen = ConstU32<256>;
|
||||
|
||||
@@ -17,6 +17,22 @@
|
||||
|
||||
pub mod pezframe_system;
|
||||
pub mod pezframe_system_extensions;
|
||||
pub mod pezkuwi_runtime_common_assigned_slots;
|
||||
pub mod pezkuwi_runtime_common_auctions;
|
||||
pub mod pezkuwi_runtime_common_crowdloan;
|
||||
pub mod pezkuwi_runtime_common_identity_migrator;
|
||||
pub mod pezkuwi_runtime_common_paras_registrar;
|
||||
pub mod pezkuwi_runtime_common_slots;
|
||||
pub mod pezkuwi_runtime_teyrchains_configuration;
|
||||
pub mod pezkuwi_runtime_teyrchains_coretime;
|
||||
pub mod pezkuwi_runtime_teyrchains_disputes;
|
||||
pub mod pezkuwi_runtime_teyrchains_disputes_slashing;
|
||||
pub mod pezkuwi_runtime_teyrchains_hrmp;
|
||||
pub mod pezkuwi_runtime_teyrchains_inclusion;
|
||||
pub mod pezkuwi_runtime_teyrchains_initializer;
|
||||
pub mod pezkuwi_runtime_teyrchains_on_demand;
|
||||
pub mod pezkuwi_runtime_teyrchains_paras;
|
||||
pub mod pezkuwi_runtime_teyrchains_paras_inherent;
|
||||
pub mod pezpallet_asset_rate;
|
||||
pub mod pezpallet_balances;
|
||||
pub mod pezpallet_beefy_mmr;
|
||||
@@ -41,20 +57,4 @@ pub mod pezpallet_utility;
|
||||
pub mod pezpallet_vesting;
|
||||
pub mod pezpallet_whitelist;
|
||||
pub mod pezpallet_xcm;
|
||||
pub mod pezkuwi_runtime_common_assigned_slots;
|
||||
pub mod pezkuwi_runtime_common_auctions;
|
||||
pub mod pezkuwi_runtime_common_crowdloan;
|
||||
pub mod pezkuwi_runtime_common_identity_migrator;
|
||||
pub mod pezkuwi_runtime_common_paras_registrar;
|
||||
pub mod pezkuwi_runtime_common_slots;
|
||||
pub mod pezkuwi_runtime_teyrchains_configuration;
|
||||
pub mod pezkuwi_runtime_teyrchains_coretime;
|
||||
pub mod pezkuwi_runtime_teyrchains_disputes;
|
||||
pub mod pezkuwi_runtime_teyrchains_disputes_slashing;
|
||||
pub mod pezkuwi_runtime_teyrchains_hrmp;
|
||||
pub mod pezkuwi_runtime_teyrchains_inclusion;
|
||||
pub mod pezkuwi_runtime_teyrchains_initializer;
|
||||
pub mod pezkuwi_runtime_teyrchains_on_demand;
|
||||
pub mod pezkuwi_runtime_teyrchains_paras;
|
||||
pub mod pezkuwi_runtime_teyrchains_paras_inherent;
|
||||
pub mod xcm;
|
||||
|
||||
@@ -29,14 +29,14 @@ use pezframe_support::{
|
||||
},
|
||||
};
|
||||
use pezframe_system::EnsureRoot;
|
||||
use pezpallet_staking_async_rc_runtime_constants::{
|
||||
currency::CENTS, system_teyrchain::*, xcm::body::FELLOWSHIP_ADMIN_INDEX,
|
||||
};
|
||||
use pezpallet_xcm::XcmPassthrough;
|
||||
use pezkuwi_runtime_common::{
|
||||
xcm_sender::{ChildTeyrchainRouter, ExponentialPrice},
|
||||
ToAuthor,
|
||||
};
|
||||
use pezpallet_staking_async_rc_runtime_constants::{
|
||||
currency::CENTS, system_teyrchain::*, xcm::body::FELLOWSHIP_ADMIN_INDEX,
|
||||
};
|
||||
use pezpallet_xcm::XcmPassthrough;
|
||||
use pezsp_core::ConstU32;
|
||||
use xcm::latest::{prelude::*, ZAGROS_GENESIS_HASH};
|
||||
use xcm_builder::{
|
||||
|
||||
@@ -27,10 +27,10 @@ use pezframe_support::{
|
||||
},
|
||||
};
|
||||
use pezframe_system::EnsureRootWithSuccess;
|
||||
use pezpallet_xcm::{EnsureXcm, IsVoiceOfBody};
|
||||
use pezkuwi_runtime_common::impls::{
|
||||
ContainsParts, LocatableAssetConverter, VersionedLocatableAsset, VersionedLocationConverter,
|
||||
};
|
||||
use pezpallet_xcm::{EnsureXcm, IsVoiceOfBody};
|
||||
use pezsp_runtime::{traits::IdentityLookup, Percent};
|
||||
use xcm::latest::{
|
||||
prelude::{InteriorLocation, PalletInstance},
|
||||
|
||||
@@ -44,7 +44,12 @@ use assets_common::{
|
||||
AssetIdForPoolAssets, AssetIdForPoolAssetsConvert, AssetIdForTrustBackedAssetsConvert,
|
||||
};
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use pezcumulus_pezpallet_teyrchain_system::{RelayNumberMonotonicallyIncreases, RelaychainDataProvider};
|
||||
use governance::{
|
||||
pezpallet_custom_origins, FellowshipAdmin, GeneralAdmin, StakingAdmin, Treasurer,
|
||||
};
|
||||
use pezcumulus_pezpallet_teyrchain_system::{
|
||||
RelayNumberMonotonicallyIncreases, RelaychainDataProvider,
|
||||
};
|
||||
use pezcumulus_primitives_core::{AggregateMessageOrigin, ParaId};
|
||||
use pezframe_support::{
|
||||
construct_runtime, derive_impl,
|
||||
@@ -66,12 +71,11 @@ use pezframe_system::{
|
||||
limits::{BlockLength, BlockWeights},
|
||||
EnsureRoot, EnsureSigned, EnsureSignedBy,
|
||||
};
|
||||
use governance::{pezpallet_custom_origins, FellowshipAdmin, GeneralAdmin, StakingAdmin, Treasurer};
|
||||
use pezkuwi_runtime_common::{BlockHashCount, SlowAdjustingFeeUpdate};
|
||||
use pezpallet_asset_conversion_tx_payment::SwapAssetAdapter;
|
||||
use pezpallet_nfts::PalletFeatures;
|
||||
use pezpallet_nomination_pools::PoolId;
|
||||
use pezpallet_xcm::EnsureXcm;
|
||||
use pezkuwi_runtime_common::{BlockHashCount, SlowAdjustingFeeUpdate};
|
||||
use pezsp_api::impl_runtime_apis;
|
||||
use pezsp_core::{crypto::KeyTypeId, OpaqueMetadata};
|
||||
#[cfg(any(feature = "std", test))]
|
||||
@@ -721,8 +725,9 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
|
||||
RuntimeCall::Uniques(pezpallet_uniques::Call::set_collection_metadata { .. }) |
|
||||
RuntimeCall::Uniques(pezpallet_uniques::Call::clear_metadata { .. }) |
|
||||
RuntimeCall::Uniques(pezpallet_uniques::Call::clear_attribute { .. }) |
|
||||
RuntimeCall::Uniques(pezpallet_uniques::Call::clear_collection_metadata { .. }) |
|
||||
RuntimeCall::Uniques(pezpallet_uniques::Call::set_collection_max_supply { .. }) |
|
||||
RuntimeCall::Uniques(
|
||||
pezpallet_uniques::Call::clear_collection_metadata { .. }
|
||||
) | RuntimeCall::Uniques(pezpallet_uniques::Call::set_collection_max_supply { .. }) |
|
||||
RuntimeCall::Utility { .. } |
|
||||
RuntimeCall::Multisig { .. }
|
||||
),
|
||||
|
||||
@@ -20,10 +20,10 @@ use super::*;
|
||||
use pezcumulus_primitives_core::relay_chain::SessionIndex;
|
||||
use pezframe_election_provider_support::{ElectionDataProvider, SequentialPhragmen};
|
||||
use pezframe_support::traits::{ConstU128, EitherOf};
|
||||
use pezkuwi_runtime_common::{prod_or_fast, BalanceToU256, U256ToBalance};
|
||||
use pezpallet_election_provider_multi_block::{self as multi_block, SolutionAccuracyOf};
|
||||
use pezpallet_staking_async::UseValidatorsMap;
|
||||
use pezpallet_staking_async_rc_client as rc_client;
|
||||
use pezkuwi_runtime_common::{prod_or_fast, BalanceToU256, U256ToBalance};
|
||||
use pezsp_core::Get;
|
||||
use pezsp_npos_elections::BalancingConfig;
|
||||
use pezsp_runtime::{
|
||||
@@ -444,7 +444,8 @@ impl pezpallet_staking_async::Config for Runtime {
|
||||
type VoterList = VoterList;
|
||||
type TargetList = UseValidatorsMap<Self>;
|
||||
type MaxValidatorSet = MaxValidatorSet;
|
||||
type NominationsQuota = pezpallet_staking_async::FixedNominationsQuota<{ MaxNominations::get() }>;
|
||||
type NominationsQuota =
|
||||
pezpallet_staking_async::FixedNominationsQuota<{ MaxNominations::get() }>;
|
||||
type MaxUnlockingChunks = pezframe_support::traits::ConstU32<32>;
|
||||
type HistoryDepth = ConstU32<1>;
|
||||
type MaxControllersInDeprecationBatch = MaxControllersInDeprecationBatch;
|
||||
@@ -659,7 +660,9 @@ where
|
||||
mod tests {
|
||||
use super::*;
|
||||
use pezframe_election_provider_support::ElectionProvider;
|
||||
use pezframe_support::weights::constants::{WEIGHT_PROOF_SIZE_PER_KB, WEIGHT_REF_TIME_PER_MILLIS};
|
||||
use pezframe_support::weights::constants::{
|
||||
WEIGHT_PROOF_SIZE_PER_KB, WEIGHT_REF_TIME_PER_MILLIS,
|
||||
};
|
||||
use pezpallet_election_provider_multi_block::{
|
||||
self as mb, signed::WeightInfo as _, unsigned::WeightInfo as _,
|
||||
};
|
||||
|
||||
@@ -16,10 +16,11 @@
|
||||
// limitations under the License.
|
||||
|
||||
pub mod block_weights;
|
||||
pub mod extrinsic_weights;
|
||||
pub mod paritydb_weights;
|
||||
pub mod pezcumulus_pezpallet_teyrchain_system;
|
||||
pub mod pezcumulus_pezpallet_weight_reclaim;
|
||||
pub mod pezcumulus_pezpallet_xcmp_queue;
|
||||
pub mod extrinsic_weights;
|
||||
pub mod pezframe_system;
|
||||
pub mod pezframe_system_extensions;
|
||||
pub mod pezpallet_asset_conversion;
|
||||
@@ -56,7 +57,6 @@ pub mod pezpallet_vesting;
|
||||
pub mod pezpallet_whitelist;
|
||||
pub mod pezpallet_xcm;
|
||||
pub mod pezpallet_xcm_bridge_hub_router;
|
||||
pub mod paritydb_weights;
|
||||
pub mod rocksdb_weights;
|
||||
pub mod xcm;
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@ use pezframe_support::{
|
||||
},
|
||||
};
|
||||
use pezframe_system::EnsureRoot;
|
||||
use pezpallet_xcm::XcmPassthrough;
|
||||
use pezkuwi_runtime_common::xcm_sender::ExponentialPrice;
|
||||
use pezkuwi_teyrchain_primitives::primitives::Sibling;
|
||||
use pezpallet_xcm::XcmPassthrough;
|
||||
use pezsp_runtime::traits::{AccountIdConversion, ConvertInto, TryConvertInto};
|
||||
use teyrchains_common::{
|
||||
xcm_config::{
|
||||
@@ -300,8 +300,8 @@ pub type Barrier = TrailingSetTopicAsId<
|
||||
// If the message is one that immediately attempts to pay for execution, then
|
||||
// allow it.
|
||||
AllowTopLevelPaidExecutionFrom<Everything>,
|
||||
// Parent, its pluralities (i.e. governance bodies), relay treasury pezpallet and
|
||||
// sibling teyrchains get free execution.
|
||||
// Parent, its pluralities (i.e. governance bodies), relay treasury pezpallet
|
||||
// and sibling teyrchains get free execution.
|
||||
AllowExplicitUnpaidExecutionFrom<(
|
||||
ParentOrParentsPlurality,
|
||||
Equals<RelayTreasuryLocation>,
|
||||
@@ -321,15 +321,20 @@ pub type Barrier = TrailingSetTopicAsId<
|
||||
>,
|
||||
>;
|
||||
|
||||
// TODO: This calls into the Assets pezpallet's default `BalanceToAssetBalance` implementation, which
|
||||
// uses the ratio of minimum balances and requires asset sufficiency. This means that purchasing
|
||||
// weight within XCM programs will still use the old way, and paying fees via asset conversion will
|
||||
// only be possible when transacting locally. We should add an impl of this trait that does asset
|
||||
// conversion.
|
||||
// TODO: This calls into the Assets pezpallet's default `BalanceToAssetBalance` implementation,
|
||||
// which uses the ratio of minimum balances and requires asset sufficiency. This means that
|
||||
// purchasing weight within XCM programs will still use the old way, and paying fees via asset
|
||||
// conversion will only be possible when transacting locally. We should add an impl of this trait
|
||||
// that does asset conversion.
|
||||
pub type AssetFeeAsExistentialDepositMultiplierFeeCharger = AssetFeeAsExistentialDepositMultiplier<
|
||||
Runtime,
|
||||
WeightToFee,
|
||||
pezpallet_assets::BalanceToAssetBalance<Balances, Runtime, ConvertInto, TrustBackedAssetsInstance>,
|
||||
pezpallet_assets::BalanceToAssetBalance<
|
||||
Balances,
|
||||
Runtime,
|
||||
ConvertInto,
|
||||
TrustBackedAssetsInstance,
|
||||
>,
|
||||
TrustBackedAssetsInstance,
|
||||
>;
|
||||
|
||||
@@ -338,7 +343,12 @@ pub type ForeignAssetFeeAsExistentialDepositMultiplierFeeCharger =
|
||||
AssetFeeAsExistentialDepositMultiplier<
|
||||
Runtime,
|
||||
WeightToFee,
|
||||
pezpallet_assets::BalanceToAssetBalance<Balances, Runtime, ConvertInto, ForeignAssetsInstance>,
|
||||
pezpallet_assets::BalanceToAssetBalance<
|
||||
Balances,
|
||||
Runtime,
|
||||
ConvertInto,
|
||||
ForeignAssetsInstance,
|
||||
>,
|
||||
ForeignAssetsInstance,
|
||||
>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user