mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 12:48:00 +00:00
BREAKING: Rename Origin (#12258)
* BREAKING: Rename Origin * more renaming * a bit more renaming * fix * more fixing * fix in frame_support * even more fixes * fix * small fix * ... * update .stderr * docs * update docs * update docs * docs
This commit is contained in:
@@ -132,7 +132,7 @@ pub mod v1 {
|
||||
use super::*;
|
||||
|
||||
/// A type that can be used as a scheduler.
|
||||
pub trait Anon<BlockNumber, Call, Origin> {
|
||||
pub trait Anon<BlockNumber, Call, RuntimeOrigin> {
|
||||
/// An address which can be used for removing a scheduled task.
|
||||
type Address: Codec + Clone + Eq + EncodeLike + Debug + TypeInfo + MaxEncodedLen;
|
||||
|
||||
@@ -143,7 +143,7 @@ pub mod v1 {
|
||||
when: DispatchTime<BlockNumber>,
|
||||
maybe_periodic: Option<Period<BlockNumber>>,
|
||||
priority: Priority,
|
||||
origin: Origin,
|
||||
origin: RuntimeOrigin,
|
||||
call: Call,
|
||||
) -> Result<Self::Address, DispatchError>;
|
||||
|
||||
@@ -177,7 +177,7 @@ pub mod v1 {
|
||||
}
|
||||
|
||||
/// A type that can be used as a scheduler.
|
||||
pub trait Named<BlockNumber, Call, Origin> {
|
||||
pub trait Named<BlockNumber, Call, RuntimeOrigin> {
|
||||
/// An address which can be used for removing a scheduled task.
|
||||
type Address: Codec + Clone + Eq + EncodeLike + sp_std::fmt::Debug + MaxEncodedLen;
|
||||
|
||||
@@ -189,7 +189,7 @@ pub mod v1 {
|
||||
when: DispatchTime<BlockNumber>,
|
||||
maybe_periodic: Option<Period<BlockNumber>>,
|
||||
priority: Priority,
|
||||
origin: Origin,
|
||||
origin: RuntimeOrigin,
|
||||
call: Call,
|
||||
) -> Result<Self::Address, ()>;
|
||||
|
||||
@@ -215,9 +215,9 @@ pub mod v1 {
|
||||
fn next_dispatch_time(id: Vec<u8>) -> Result<BlockNumber, ()>;
|
||||
}
|
||||
|
||||
impl<T, BlockNumber, Call, Origin> Anon<BlockNumber, Call, Origin> for T
|
||||
impl<T, BlockNumber, Call, RuntimeOrigin> Anon<BlockNumber, Call, RuntimeOrigin> for T
|
||||
where
|
||||
T: v2::Anon<BlockNumber, Call, Origin>,
|
||||
T: v2::Anon<BlockNumber, Call, RuntimeOrigin>,
|
||||
{
|
||||
type Address = T::Address;
|
||||
|
||||
@@ -225,7 +225,7 @@ pub mod v1 {
|
||||
when: DispatchTime<BlockNumber>,
|
||||
maybe_periodic: Option<Period<BlockNumber>>,
|
||||
priority: Priority,
|
||||
origin: Origin,
|
||||
origin: RuntimeOrigin,
|
||||
call: Call,
|
||||
) -> Result<Self::Address, DispatchError> {
|
||||
let c = MaybeHashed::<Call, T::Hash>::Value(call);
|
||||
@@ -248,9 +248,9 @@ pub mod v1 {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, BlockNumber, Call, Origin> Named<BlockNumber, Call, Origin> for T
|
||||
impl<T, BlockNumber, Call, RuntimeOrigin> Named<BlockNumber, Call, RuntimeOrigin> for T
|
||||
where
|
||||
T: v2::Named<BlockNumber, Call, Origin>,
|
||||
T: v2::Named<BlockNumber, Call, RuntimeOrigin>,
|
||||
{
|
||||
type Address = T::Address;
|
||||
|
||||
@@ -259,7 +259,7 @@ pub mod v1 {
|
||||
when: DispatchTime<BlockNumber>,
|
||||
maybe_periodic: Option<Period<BlockNumber>>,
|
||||
priority: Priority,
|
||||
origin: Origin,
|
||||
origin: RuntimeOrigin,
|
||||
call: Call,
|
||||
) -> Result<Self::Address, ()> {
|
||||
let c = MaybeHashed::<Call, T::Hash>::Value(call);
|
||||
@@ -287,7 +287,7 @@ pub mod v2 {
|
||||
use super::*;
|
||||
|
||||
/// A type that can be used as a scheduler.
|
||||
pub trait Anon<BlockNumber, Call, Origin> {
|
||||
pub trait Anon<BlockNumber, Call, RuntimeOrigin> {
|
||||
/// An address which can be used for removing a scheduled task.
|
||||
type Address: Codec + Clone + Eq + EncodeLike + Debug + TypeInfo + MaxEncodedLen;
|
||||
/// A means of expressing a call by the hash of its encoded data.
|
||||
@@ -300,7 +300,7 @@ pub mod v2 {
|
||||
when: DispatchTime<BlockNumber>,
|
||||
maybe_periodic: Option<Period<BlockNumber>>,
|
||||
priority: Priority,
|
||||
origin: Origin,
|
||||
origin: RuntimeOrigin,
|
||||
call: MaybeHashed<Call, Self::Hash>,
|
||||
) -> Result<Self::Address, DispatchError>;
|
||||
|
||||
@@ -334,7 +334,7 @@ pub mod v2 {
|
||||
}
|
||||
|
||||
/// A type that can be used as a scheduler.
|
||||
pub trait Named<BlockNumber, Call, Origin> {
|
||||
pub trait Named<BlockNumber, Call, RuntimeOrigin> {
|
||||
/// An address which can be used for removing a scheduled task.
|
||||
type Address: Codec + Clone + Eq + EncodeLike + sp_std::fmt::Debug + MaxEncodedLen;
|
||||
/// A means of expressing a call by the hash of its encoded data.
|
||||
@@ -348,7 +348,7 @@ pub mod v2 {
|
||||
when: DispatchTime<BlockNumber>,
|
||||
maybe_periodic: Option<Period<BlockNumber>>,
|
||||
priority: Priority,
|
||||
origin: Origin,
|
||||
origin: RuntimeOrigin,
|
||||
call: MaybeHashed<Call, Self::Hash>,
|
||||
) -> Result<Self::Address, ()>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user