Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast Fellowship Promote Tracks #356

Merged
merged 7 commits into from
Aug 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use EnsureCanFastPromote in the Fellowship
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
ggwpez committed Aug 2, 2024
commit e8fef1c504b65a8c775102b58adc97a19453687a
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@
mod origins;
mod tracks;
use crate::{
fellowship::origins::EnsureCanFastPromoteTo,
impls::ToParentTreasury,
weights,
xcm_config::{AssetHubUsdt, LocationToAccountId, TreasurerBodyId},
@@ -33,7 +34,7 @@ use frame_support::{
},
PalletId,
};
use frame_system::{EnsureNever, EnsureRoot, EnsureRootWithSuccess, EnsureWithSuccess};
use frame_system::{EnsureRoot, EnsureRootWithSuccess};
pub use origins::{
pallet_origins as pallet_fellowship_origins, Architects, EnsureCanPromoteTo, EnsureCanRetainAt,
EnsureFellowship, Fellows, Masters, Members, ToVoice,
@@ -206,8 +207,7 @@ impl pallet_core_fellowship::Config<FellowshipCoreInstance> for Runtime {
>,
EnsureCanPromoteTo,
>;
// TODO until https://github.com/polkadot-fellows/runtimes/pull/356/files
type FastPromoteOrigin = EnsureWithSuccess<EnsureNever<u16>, AccountId, ConstU16<0>>;
type FastPromoteOrigin = EnsureCanFastPromoteTo;
type EvidenceSize = ConstU32<65536>;
type MaxRank = ConstU32<9>;
}