mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 03:01:02 +00:00
Kusama: approve/reject treasury prop by treasurer (#6354)
This commit is contained in:
@@ -30,7 +30,7 @@ mod origins;
|
|||||||
pub use origins::{
|
pub use origins::{
|
||||||
pallet_custom_origins, AuctionAdmin, Fellows, FellowshipAdmin, FellowshipExperts,
|
pallet_custom_origins, AuctionAdmin, Fellows, FellowshipAdmin, FellowshipExperts,
|
||||||
FellowshipInitiates, FellowshipMasters, GeneralAdmin, LeaseAdmin, ReferendumCanceller,
|
FellowshipInitiates, FellowshipMasters, GeneralAdmin, LeaseAdmin, ReferendumCanceller,
|
||||||
ReferendumKiller, Spender, StakingAdmin, WhitelistedCaller,
|
ReferendumKiller, Spender, StakingAdmin, Treasurer, WhitelistedCaller,
|
||||||
};
|
};
|
||||||
mod tracks;
|
mod tracks;
|
||||||
pub use tracks::TracksInfo;
|
pub use tracks::TracksInfo;
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ pub mod pallet_custom_origins {
|
|||||||
}
|
}
|
||||||
decl_unit_ensures!(
|
decl_unit_ensures!(
|
||||||
StakingAdmin,
|
StakingAdmin,
|
||||||
|
Treasurer,
|
||||||
FellowshipAdmin,
|
FellowshipAdmin,
|
||||||
GeneralAdmin,
|
GeneralAdmin,
|
||||||
AuctionAdmin,
|
AuctionAdmin,
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ pub mod xcm_config;
|
|||||||
pub mod governance;
|
pub mod governance;
|
||||||
use governance::{
|
use governance::{
|
||||||
old::CouncilCollective, pallet_custom_origins, AuctionAdmin, GeneralAdmin, LeaseAdmin,
|
old::CouncilCollective, pallet_custom_origins, AuctionAdmin, GeneralAdmin, LeaseAdmin,
|
||||||
StakingAdmin, TreasurySpender,
|
StakingAdmin, Treasurer, TreasurySpender,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
@@ -633,8 +633,8 @@ parameter_types! {
|
|||||||
impl pallet_treasury::Config for Runtime {
|
impl pallet_treasury::Config for Runtime {
|
||||||
type PalletId = TreasuryPalletId;
|
type PalletId = TreasuryPalletId;
|
||||||
type Currency = Balances;
|
type Currency = Balances;
|
||||||
type ApproveOrigin = EnsureRoot<AccountId>;
|
type ApproveOrigin = EitherOfDiverse<EnsureRoot<AccountId>, Treasurer>;
|
||||||
type RejectOrigin = EnsureRoot<AccountId>;
|
type RejectOrigin = EitherOfDiverse<EnsureRoot<AccountId>, Treasurer>;
|
||||||
type RuntimeEvent = RuntimeEvent;
|
type RuntimeEvent = RuntimeEvent;
|
||||||
type OnSlash = Treasury;
|
type OnSlash = Treasury;
|
||||||
type ProposalBond = ProposalBond;
|
type ProposalBond = ProposalBond;
|
||||||
|
|||||||
Reference in New Issue
Block a user