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:
Sergej Sakac
2022-09-21 00:13:09 +02:00
committed by GitHub
parent 986d20b352
commit e4b6f4a66d
221 changed files with 5233 additions and 4200 deletions
+4 -4
View File
@@ -245,7 +245,7 @@ pub mod pallet {
/// The outer call dispatch type.
type Proposal: Parameter
+ Dispatchable<Origin = Self::Origin, PostInfo = PostDispatchInfo>
+ Dispatchable<RuntimeOrigin = Self::RuntimeOrigin, PostInfo = PostDispatchInfo>
+ From<frame_system::Call<Self>>
+ From<Call<Self, I>>
+ GetDispatchInfo
@@ -253,13 +253,13 @@ pub mod pallet {
+ IsType<<Self as frame_system::Config>::RuntimeCall>;
/// Origin for admin-level operations, like setting the Alliance's rules.
type AdminOrigin: EnsureOrigin<Self::Origin>;
type AdminOrigin: EnsureOrigin<Self::RuntimeOrigin>;
/// Origin that manages entry and forcible discharge from the Alliance.
type MembershipManager: EnsureOrigin<Self::Origin>;
type MembershipManager: EnsureOrigin<Self::RuntimeOrigin>;
/// Origin for making announcements and adding/removing unscrupulous items.
type AnnouncementOrigin: EnsureOrigin<Self::Origin>;
type AnnouncementOrigin: EnsureOrigin<Self::RuntimeOrigin>;
/// The currency used for deposits.
type Currency: ReservableCurrency<Self::AccountId>;