Type Alias development_runtime::TechnicalCommitteeMembership
source · pub type TechnicalCommitteeMembership = Pallet<Runtime, Instance1>;
Aliased Type§
struct TechnicalCommitteeMembership(/* private fields */);
Implementations
§impl<T, I> Pallet<T, I>where
T: Config<I>,
I: 'static,
impl<T, I> Pallet<T, I>where
T: Config<I>,
I: 'static,
pub fn add_member(
origin: <T as Config>::RuntimeOrigin,
who: <<T as Config>::Lookup as StaticLookup>::Source
) -> Result<(), DispatchError>
pub fn add_member( origin: <T as Config>::RuntimeOrigin, who: <<T as Config>::Lookup as StaticLookup>::Source ) -> Result<(), DispatchError>
Add a member who
to the set.
May only be called from T::AddOrigin
.
pub fn remove_member(
origin: <T as Config>::RuntimeOrigin,
who: <<T as Config>::Lookup as StaticLookup>::Source
) -> Result<(), DispatchError>
pub fn remove_member( origin: <T as Config>::RuntimeOrigin, who: <<T as Config>::Lookup as StaticLookup>::Source ) -> Result<(), DispatchError>
Remove a member who
from the set.
May only be called from T::RemoveOrigin
.
pub fn swap_member(
origin: <T as Config>::RuntimeOrigin,
remove: <<T as Config>::Lookup as StaticLookup>::Source,
add: <<T as Config>::Lookup as StaticLookup>::Source
) -> Result<(), DispatchError>
pub fn swap_member( origin: <T as Config>::RuntimeOrigin, remove: <<T as Config>::Lookup as StaticLookup>::Source, add: <<T as Config>::Lookup as StaticLookup>::Source ) -> Result<(), DispatchError>
Swap out one member remove
for another add
.
May only be called from T::SwapOrigin
.
Prime membership is not passed from remove
to add
, if extant.
pub fn reset_members(
origin: <T as Config>::RuntimeOrigin,
members: Vec<<T as Config>::AccountId>
) -> Result<(), DispatchError>
pub fn reset_members( origin: <T as Config>::RuntimeOrigin, members: Vec<<T as Config>::AccountId> ) -> Result<(), DispatchError>
Change the membership to a new set, disregarding the existing membership. Be nice and
pass members
pre-sorted.
May only be called from T::ResetOrigin
.
pub fn change_key(
origin: <T as Config>::RuntimeOrigin,
new: <<T as Config>::Lookup as StaticLookup>::Source
) -> Result<(), DispatchError>
pub fn change_key( origin: <T as Config>::RuntimeOrigin, new: <<T as Config>::Lookup as StaticLookup>::Source ) -> Result<(), DispatchError>
Swap out the sending member for some other key new
.
May only be called from Signed
origin of a current member.
Prime membership is passed from the origin account to new
, if extant.
pub fn set_prime(
origin: <T as Config>::RuntimeOrigin,
who: <<T as Config>::Lookup as StaticLookup>::Source
) -> Result<(), DispatchError>
pub fn set_prime( origin: <T as Config>::RuntimeOrigin, who: <<T as Config>::Lookup as StaticLookup>::Source ) -> Result<(), DispatchError>
Set the prime member. Must be a current member.
May only be called from T::PrimeOrigin
.
pub fn clear_prime(
origin: <T as Config>::RuntimeOrigin
) -> Result<(), DispatchError>
pub fn clear_prime( origin: <T as Config>::RuntimeOrigin ) -> Result<(), DispatchError>
Remove the prime member if it exists.
May only be called from T::PrimeOrigin
.
Trait Implementations
§impl<T, I> Callable<T> for Pallet<T, I>where
T: Config<I>,
I: 'static,
impl<T, I> Callable<T> for Pallet<T, I>where
T: Config<I>,
I: 'static,
type RuntimeCall = Call<T, I>
§impl<T, I> OnRuntimeUpgrade for Pallet<T, I>where
T: Config<I>,
I: 'static,
impl<T, I> OnRuntimeUpgrade for Pallet<T, I>where
T: Config<I>,
I: 'static,
§fn on_runtime_upgrade() -> Weight
fn on_runtime_upgrade() -> Weight
Hooks::on_runtime_upgrade
].§impl<T, I> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>where
T: Config<I>,
I: 'static,
impl<T, I> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>where
T: Config<I>,
I: 'static,
§fn on_initialize(_n: BlockNumber) -> Weight
fn on_initialize(_n: BlockNumber) -> Weight
§fn on_finalize(_n: BlockNumber)
fn on_finalize(_n: BlockNumber)
§fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight
fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight
Hooks::on_finalize
]). Read more§fn on_runtime_upgrade() -> Weight
fn on_runtime_upgrade() -> Weight
§fn offchain_worker(_n: BlockNumber)
fn offchain_worker(_n: BlockNumber)
§fn integrity_test()
fn integrity_test()
§impl<T, I> Contains<<T as Config>::AccountId> for Pallet<T, I>where
T: Config<I>,
I: 'static,
impl<T, I> Contains<<T as Config>::AccountId> for Pallet<T, I>where
T: Config<I>,
I: 'static,
§impl<T, I> IntegrityTest for Pallet<T, I>where
T: Config<I>,
I: 'static,
impl<T, I> IntegrityTest for Pallet<T, I>where
T: Config<I>,
I: 'static,
§fn integrity_test()
fn integrity_test()
Hooks::integrity_test
].§impl<T, I> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>where
T: Config<I>,
I: 'static,
impl<T, I> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>where
T: Config<I>,
I: 'static,
§fn on_initialize(
n: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number
) -> Weight
fn on_initialize( n: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number ) -> Weight
Hooks::on_initialize
].§impl<T, I> StorageInfoTrait for Pallet<T, I>where
T: Config<I>,
I: 'static,
impl<T, I> StorageInfoTrait for Pallet<T, I>where
T: Config<I>,
I: 'static,
fn storage_info() -> Vec<StorageInfo>
§impl<T, I> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>where
T: Config<I>,
I: 'static,
impl<T, I> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>where
T: Config<I>,
I: 'static,
§fn on_finalize(
n: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number
)
fn on_finalize( n: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number )
Hooks::on_finalize
].§impl<T, I> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>where
T: Config<I>,
I: 'static,
impl<T, I> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>where
T: Config<I>,
I: 'static,
§fn offchain_worker(
n: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number
)
fn offchain_worker( n: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number )
§impl<T, I> OnGenesis for Pallet<T, I>where
T: Config<I>,
I: 'static,
impl<T, I> OnGenesis for Pallet<T, I>where
T: Config<I>,
I: 'static,
§fn on_genesis()
fn on_genesis()
§impl<T, I> WhitelistedStorageKeys for Pallet<T, I>where
T: Config<I>,
I: 'static,
impl<T, I> WhitelistedStorageKeys for Pallet<T, I>where
T: Config<I>,
I: 'static,
§fn whitelisted_storage_keys() -> Vec<TrackedStorageKey>
fn whitelisted_storage_keys() -> Vec<TrackedStorageKey>
Vec<TrackedStorageKey>
indicating the storage keys that
should be whitelisted during benchmarking. This means that those keys
will be excluded from the benchmarking performance calculation.