mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
ModuleId to PalletId (#2864)
* lock substrate version for testing * `ModuleId` to `PalletId` * release substrate version * Update Cargo.lock Co-authored-by: Xavier Lau <c.estlavie@icloud.com>
This commit is contained in:
@@ -38,7 +38,7 @@ use runtime_common::{
|
||||
ParachainSessionKeyPlaceholder, AssignmentSessionKeyPlaceholder,
|
||||
};
|
||||
use sp_runtime::{
|
||||
create_runtime_str, generic, impl_opaque_keys, ModuleId,
|
||||
create_runtime_str, generic, impl_opaque_keys,
|
||||
ApplyExtrinsicResult, KeyTypeId, Percent, Permill, Perbill,
|
||||
transaction_validity::{TransactionValidity, TransactionSource, TransactionPriority},
|
||||
curve::PiecewiseLinear,
|
||||
@@ -56,7 +56,7 @@ use sp_version::NativeVersion;
|
||||
use sp_core::OpaqueMetadata;
|
||||
use sp_staking::SessionIndex;
|
||||
use frame_support::{
|
||||
parameter_types, construct_runtime, RuntimeDebug,
|
||||
parameter_types, construct_runtime, RuntimeDebug, PalletId,
|
||||
traits::{KeyOwnerProofSystem, Randomness, LockIdentifier, Filter, InstanceFilter},
|
||||
weights::Weight,
|
||||
};
|
||||
@@ -494,7 +494,7 @@ parameter_types! {
|
||||
pub const TermDuration: BlockNumber = 24 * HOURS;
|
||||
pub const DesiredMembers: u32 = 19;
|
||||
pub const DesiredRunnersUp: u32 = 19;
|
||||
pub const ElectionsPhragmenModuleId: LockIdentifier = *b"phrelect";
|
||||
pub const ElectionsPhragmenPalletId: LockIdentifier = *b"phrelect";
|
||||
}
|
||||
|
||||
// Make sure that there are no more than MaxMembers members elected via phragmen.
|
||||
@@ -514,7 +514,7 @@ impl pallet_elections_phragmen::Config for Runtime {
|
||||
type DesiredMembers = DesiredMembers;
|
||||
type DesiredRunnersUp = DesiredRunnersUp;
|
||||
type TermDuration = TermDuration;
|
||||
type ModuleId = ElectionsPhragmenModuleId;
|
||||
type PalletId = ElectionsPhragmenPalletId;
|
||||
type WeightInfo = weights::pallet_elections_phragmen::WeightInfo<Runtime>;
|
||||
}
|
||||
|
||||
@@ -552,7 +552,7 @@ parameter_types! {
|
||||
pub const ProposalBondMinimum: Balance = 20 * DOLLARS;
|
||||
pub const SpendPeriod: BlockNumber = 6 * DAYS;
|
||||
pub const Burn: Permill = Permill::from_perthousand(2);
|
||||
pub const TreasuryModuleId: ModuleId = ModuleId(*b"py/trsry");
|
||||
pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry");
|
||||
|
||||
pub const TipCountdown: BlockNumber = 1 * DAYS;
|
||||
pub const TipFindersFee: Percent = Percent::from_percent(20);
|
||||
@@ -573,7 +573,7 @@ type ApproveOrigin = EnsureOneOf<
|
||||
>;
|
||||
|
||||
impl pallet_treasury::Config for Runtime {
|
||||
type ModuleId = TreasuryModuleId;
|
||||
type PalletId = TreasuryPalletId;
|
||||
type Currency = Balances;
|
||||
type ApproveOrigin = ApproveOrigin;
|
||||
type RejectOrigin = MoreThanHalfCouncil;
|
||||
@@ -805,7 +805,7 @@ parameter_types! {
|
||||
pub const MaxLockDuration: BlockNumber = 36 * 30 * DAYS;
|
||||
pub const ChallengePeriod: BlockNumber = 7 * DAYS;
|
||||
pub const MaxCandidateIntake: u32 = 1;
|
||||
pub const SocietyModuleId: ModuleId = ModuleId(*b"py/socie");
|
||||
pub const SocietyPalletId: PalletId = PalletId(*b"py/socie");
|
||||
}
|
||||
|
||||
impl pallet_society::Config for Runtime {
|
||||
@@ -823,7 +823,7 @@ impl pallet_society::Config for Runtime {
|
||||
type SuspensionJudgementOrigin = pallet_society::EnsureFounder<Runtime>;
|
||||
type ChallengePeriod = ChallengePeriod;
|
||||
type MaxCandidateIntake = MaxCandidateIntake;
|
||||
type ModuleId = SocietyModuleId;
|
||||
type PalletId = SocietyPalletId;
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
|
||||
Reference in New Issue
Block a user