mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 14:01:02 +00:00
update scheduler
This commit is contained in:
Generated
+2
-2
@@ -3873,9 +3873,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "parity-scale-codec"
|
name = "parity-scale-codec"
|
||||||
version = "1.3.0"
|
version = "1.3.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "329c8f7f4244ddb5c37c103641027a76c530e65e8e4b8240b29f81ea40508b17"
|
checksum = "a74f02beb35d47e0706155c9eac554b50c671e0d868fe8296bcdf44a9a4847bf"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arrayvec 0.5.1",
|
"arrayvec 0.5.1",
|
||||||
"bitvec",
|
"bitvec",
|
||||||
|
|||||||
@@ -300,7 +300,7 @@ pub trait Trait: CreateSignedTransaction<Call<Self>> + attestations::Trait + ses
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Origin for the parachains module.
|
/// Origin for the parachains module.
|
||||||
#[derive(PartialEq, Eq, Clone)]
|
#[derive(PartialEq, Eq, Clone, Encode, Decode)]
|
||||||
#[cfg_attr(feature = "std", derive(Debug))]
|
#[cfg_attr(feature = "std", derive(Debug))]
|
||||||
pub enum Origin {
|
pub enum Origin {
|
||||||
/// It comes from a parachain.
|
/// It comes from a parachain.
|
||||||
|
|||||||
@@ -149,8 +149,10 @@ impl system::Trait for Runtime {
|
|||||||
impl scheduler::Trait for Runtime {
|
impl scheduler::Trait for Runtime {
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
type Origin = Origin;
|
type Origin = Origin;
|
||||||
|
type PalletsOrigin = OriginCaller;
|
||||||
type Call = Call;
|
type Call = Call;
|
||||||
type MaximumWeight = MaximumBlockWeight;
|
type MaximumWeight = MaximumBlockWeight;
|
||||||
|
type ScheduleOrigin = EnsureRoot<AccountId>;
|
||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
@@ -365,6 +367,7 @@ impl democracy::Trait for Runtime {
|
|||||||
type PreimageByteDeposit = PreimageByteDeposit;
|
type PreimageByteDeposit = PreimageByteDeposit;
|
||||||
type Slash = Treasury;
|
type Slash = Treasury;
|
||||||
type Scheduler = Scheduler;
|
type Scheduler = Scheduler;
|
||||||
|
type PalletsOrigin = OriginCaller;
|
||||||
type MaxVotes = MaxVotes;
|
type MaxVotes = MaxVotes;
|
||||||
type OperationalPreimageOrigin = collective::EnsureMember<AccountId, CouncilCollective>;
|
type OperationalPreimageOrigin = collective::EnsureMember<AccountId, CouncilCollective>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -175,8 +175,10 @@ impl system::Trait for Runtime {
|
|||||||
impl scheduler::Trait for Runtime {
|
impl scheduler::Trait for Runtime {
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
type Origin = Origin;
|
type Origin = Origin;
|
||||||
|
type PalletsOrigin = OriginCaller;
|
||||||
type Call = Call;
|
type Call = Call;
|
||||||
type MaximumWeight = MaximumBlockWeight;
|
type MaximumWeight = MaximumBlockWeight;
|
||||||
|
type ScheduleOrigin = EnsureRoot<AccountId>;
|
||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
@@ -411,6 +413,7 @@ impl democracy::Trait for Runtime {
|
|||||||
type OperationalPreimageOrigin = collective::EnsureMember<AccountId, CouncilCollective>;
|
type OperationalPreimageOrigin = collective::EnsureMember<AccountId, CouncilCollective>;
|
||||||
type Slash = Treasury;
|
type Slash = Treasury;
|
||||||
type Scheduler = Scheduler;
|
type Scheduler = Scheduler;
|
||||||
|
type PalletsOrigin = OriginCaller;
|
||||||
type MaxVotes = MaxVotes;
|
type MaxVotes = MaxVotes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ use im_online::sr25519::AuthorityId as ImOnlineId;
|
|||||||
use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId;
|
use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId;
|
||||||
use transaction_payment_rpc_runtime_api::RuntimeDispatchInfo;
|
use transaction_payment_rpc_runtime_api::RuntimeDispatchInfo;
|
||||||
use session::historical as session_historical;
|
use session::historical as session_historical;
|
||||||
|
use system::EnsureRoot;
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
pub use staking::StakerStatus;
|
pub use staking::StakerStatus;
|
||||||
@@ -138,8 +139,10 @@ impl system::Trait for Runtime {
|
|||||||
impl scheduler::Trait for Runtime {
|
impl scheduler::Trait for Runtime {
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
type Origin = Origin;
|
type Origin = Origin;
|
||||||
|
type PalletsOrigin = OriginCaller;
|
||||||
type Call = Call;
|
type Call = Call;
|
||||||
type MaximumWeight = MaximumBlockWeight;
|
type MaximumWeight = MaximumBlockWeight;
|
||||||
|
type ScheduleOrigin = EnsureRoot<AccountId>;
|
||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
|
|||||||
Reference in New Issue
Block a user