mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-01 06:51:02 +00:00
add Treasurer to SchedulerOrigin (#1325)
This commit is contained in:
@@ -228,7 +228,8 @@ impl pallet_scheduler::Config for Runtime {
|
|||||||
type MaximumWeight = MaximumSchedulerWeight;
|
type MaximumWeight = MaximumSchedulerWeight;
|
||||||
// The goal of having ScheduleOrigin include AuctionAdmin is to allow the auctions track of
|
// The goal of having ScheduleOrigin include AuctionAdmin is to allow the auctions track of
|
||||||
// OpenGov to schedule periodic auctions.
|
// OpenGov to schedule periodic auctions.
|
||||||
type ScheduleOrigin = EitherOf<EnsureRoot<AccountId>, AuctionAdmin>;
|
// Also allow Treasurer to schedule recurring payments.
|
||||||
|
type ScheduleOrigin = EitherOf<EitherOf<EnsureRoot<AccountId>, AuctionAdmin>, Treasurer>;
|
||||||
type MaxScheduledPerBlock = MaxScheduledPerBlock;
|
type MaxScheduledPerBlock = MaxScheduledPerBlock;
|
||||||
type WeightInfo = weights::pallet_scheduler::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_scheduler::WeightInfo<Runtime>;
|
||||||
type OriginPrivilegeCmp = OriginPrivilegeCmp;
|
type OriginPrivilegeCmp = OriginPrivilegeCmp;
|
||||||
|
|||||||
@@ -212,7 +212,8 @@ impl pallet_scheduler::Config for Runtime {
|
|||||||
type MaximumWeight = MaximumSchedulerWeight;
|
type MaximumWeight = MaximumSchedulerWeight;
|
||||||
// The goal of having ScheduleOrigin include AuctionAdmin is to allow the auctions track of
|
// The goal of having ScheduleOrigin include AuctionAdmin is to allow the auctions track of
|
||||||
// OpenGov to schedule periodic auctions.
|
// OpenGov to schedule periodic auctions.
|
||||||
type ScheduleOrigin = EitherOf<EnsureRoot<AccountId>, AuctionAdmin>;
|
// Also allow Treasurer to schedule recurring payments.
|
||||||
|
type ScheduleOrigin = EitherOf<EitherOf<EnsureRoot<AccountId>, AuctionAdmin>, Treasurer>;
|
||||||
type MaxScheduledPerBlock = MaxScheduledPerBlock;
|
type MaxScheduledPerBlock = MaxScheduledPerBlock;
|
||||||
type WeightInfo = weights::pallet_scheduler::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_scheduler::WeightInfo<Runtime>;
|
||||||
type OriginPrivilegeCmp = OriginPrivilegeCmp;
|
type OriginPrivilegeCmp = OriginPrivilegeCmp;
|
||||||
|
|||||||
Reference in New Issue
Block a user