Enum pallet_nomination_pools::pallet::Call
source · pub enum Call<T: Config> {
Show 21 variants
join {
amount: BalanceOf<T>,
pool_id: PoolId,
},
bond_extra {
extra: BondExtra<BalanceOf<T>>,
},
claim_payout {},
unbond {
member_account: <<T as Config>::Lookup as StaticLookup>::Source,
unbonding_points: BalanceOf<T>,
},
pool_withdraw_unbonded {
pool_id: PoolId,
num_slashing_spans: u32,
},
withdraw_unbonded {
member_account: <<T as Config>::Lookup as StaticLookup>::Source,
num_slashing_spans: u32,
},
create {
amount: BalanceOf<T>,
root: <<T as Config>::Lookup as StaticLookup>::Source,
nominator: <<T as Config>::Lookup as StaticLookup>::Source,
bouncer: <<T as Config>::Lookup as StaticLookup>::Source,
},
create_with_pool_id {
amount: BalanceOf<T>,
root: <<T as Config>::Lookup as StaticLookup>::Source,
nominator: <<T as Config>::Lookup as StaticLookup>::Source,
bouncer: <<T as Config>::Lookup as StaticLookup>::Source,
pool_id: PoolId,
},
nominate {
pool_id: PoolId,
validators: Vec<T::AccountId>,
},
set_state {
pool_id: PoolId,
state: PoolState,
},
set_metadata {
pool_id: PoolId,
metadata: Vec<u8>,
},
set_configs {
min_join_bond: ConfigOp<BalanceOf<T>>,
min_create_bond: ConfigOp<BalanceOf<T>>,
max_pools: ConfigOp<u32>,
max_members: ConfigOp<u32>,
max_members_per_pool: ConfigOp<u32>,
global_max_commission: ConfigOp<Perbill>,
},
update_roles {
pool_id: PoolId,
new_root: ConfigOp<T::AccountId>,
new_nominator: ConfigOp<T::AccountId>,
new_bouncer: ConfigOp<T::AccountId>,
},
chill {
pool_id: PoolId,
},
bond_extra_other {
member: <<T as Config>::Lookup as StaticLookup>::Source,
extra: BondExtra<BalanceOf<T>>,
},
set_claim_permission {
permission: ClaimPermission,
},
claim_payout_other {
other: T::AccountId,
},
set_commission {
pool_id: PoolId,
new_commission: Option<(Perbill, T::AccountId)>,
},
set_commission_max {
pool_id: PoolId,
max_commission: Perbill,
},
set_commission_change_rate {
pool_id: PoolId,
change_rate: CommissionChangeRate<BlockNumberFor<T>>,
},
claim_commission {
pool_id: PoolId,
},
// some variants omitted
}
Expand description
Contains a variant per dispatchable extrinsic that this pallet has.
Variants§
join
See Pallet::join
.
bond_extra
See Pallet::bond_extra
.
claim_payout
Fields
See Pallet::claim_payout
.
unbond
Fields
member_account: <<T as Config>::Lookup as StaticLookup>::Source
See Pallet::unbond
.
pool_withdraw_unbonded
withdraw_unbonded
create
Fields
root: <<T as Config>::Lookup as StaticLookup>::Source
nominator: <<T as Config>::Lookup as StaticLookup>::Source
bouncer: <<T as Config>::Lookup as StaticLookup>::Source
See Pallet::create
.
create_with_pool_id
Fields
root: <<T as Config>::Lookup as StaticLookup>::Source
nominator: <<T as Config>::Lookup as StaticLookup>::Source
bouncer: <<T as Config>::Lookup as StaticLookup>::Source
nominate
See Pallet::nominate
.
set_state
See Pallet::set_state
.
set_metadata
See Pallet::set_metadata
.
set_configs
Fields
See Pallet::set_configs
.
update_roles
Fields
See Pallet::update_roles
.
chill
See Pallet::chill
.
bond_extra_other
set_claim_permission
Fields
permission: ClaimPermission
claim_payout_other
set_commission
set_commission_max
set_commission_change_rate
claim_commission
Implementations§
source§impl<T: Config> Call<T>
impl<T: Config> Call<T>
sourcepub fn new_call_variant_join(amount: BalanceOf<T>, pool_id: PoolId) -> Self
pub fn new_call_variant_join(amount: BalanceOf<T>, pool_id: PoolId) -> Self
Create a call with the variant join
.
sourcepub fn new_call_variant_bond_extra(extra: BondExtra<BalanceOf<T>>) -> Self
pub fn new_call_variant_bond_extra(extra: BondExtra<BalanceOf<T>>) -> Self
Create a call with the variant bond_extra
.
sourcepub fn new_call_variant_claim_payout() -> Self
pub fn new_call_variant_claim_payout() -> Self
Create a call with the variant claim_payout
.
sourcepub fn new_call_variant_unbond(
member_account: <<T as Config>::Lookup as StaticLookup>::Source,
unbonding_points: BalanceOf<T>
) -> Self
pub fn new_call_variant_unbond( member_account: <<T as Config>::Lookup as StaticLookup>::Source, unbonding_points: BalanceOf<T> ) -> Self
Create a call with the variant unbond
.
sourcepub fn new_call_variant_pool_withdraw_unbonded(
pool_id: PoolId,
num_slashing_spans: u32
) -> Self
pub fn new_call_variant_pool_withdraw_unbonded( pool_id: PoolId, num_slashing_spans: u32 ) -> Self
Create a call with the variant pool_withdraw_unbonded
.
sourcepub fn new_call_variant_withdraw_unbonded(
member_account: <<T as Config>::Lookup as StaticLookup>::Source,
num_slashing_spans: u32
) -> Self
pub fn new_call_variant_withdraw_unbonded( member_account: <<T as Config>::Lookup as StaticLookup>::Source, num_slashing_spans: u32 ) -> Self
Create a call with the variant withdraw_unbonded
.
sourcepub fn new_call_variant_create(
amount: BalanceOf<T>,
root: <<T as Config>::Lookup as StaticLookup>::Source,
nominator: <<T as Config>::Lookup as StaticLookup>::Source,
bouncer: <<T as Config>::Lookup as StaticLookup>::Source
) -> Self
pub fn new_call_variant_create( amount: BalanceOf<T>, root: <<T as Config>::Lookup as StaticLookup>::Source, nominator: <<T as Config>::Lookup as StaticLookup>::Source, bouncer: <<T as Config>::Lookup as StaticLookup>::Source ) -> Self
Create a call with the variant create
.
sourcepub fn new_call_variant_create_with_pool_id(
amount: BalanceOf<T>,
root: <<T as Config>::Lookup as StaticLookup>::Source,
nominator: <<T as Config>::Lookup as StaticLookup>::Source,
bouncer: <<T as Config>::Lookup as StaticLookup>::Source,
pool_id: PoolId
) -> Self
pub fn new_call_variant_create_with_pool_id( amount: BalanceOf<T>, root: <<T as Config>::Lookup as StaticLookup>::Source, nominator: <<T as Config>::Lookup as StaticLookup>::Source, bouncer: <<T as Config>::Lookup as StaticLookup>::Source, pool_id: PoolId ) -> Self
Create a call with the variant create_with_pool_id
.
sourcepub fn new_call_variant_nominate(
pool_id: PoolId,
validators: Vec<T::AccountId>
) -> Self
pub fn new_call_variant_nominate( pool_id: PoolId, validators: Vec<T::AccountId> ) -> Self
Create a call with the variant nominate
.
sourcepub fn new_call_variant_set_state(pool_id: PoolId, state: PoolState) -> Self
pub fn new_call_variant_set_state(pool_id: PoolId, state: PoolState) -> Self
Create a call with the variant set_state
.
sourcepub fn new_call_variant_set_metadata(pool_id: PoolId, metadata: Vec<u8>) -> Self
pub fn new_call_variant_set_metadata(pool_id: PoolId, metadata: Vec<u8>) -> Self
Create a call with the variant set_metadata
.
sourcepub fn new_call_variant_set_configs(
min_join_bond: ConfigOp<BalanceOf<T>>,
min_create_bond: ConfigOp<BalanceOf<T>>,
max_pools: ConfigOp<u32>,
max_members: ConfigOp<u32>,
max_members_per_pool: ConfigOp<u32>,
global_max_commission: ConfigOp<Perbill>
) -> Self
pub fn new_call_variant_set_configs( min_join_bond: ConfigOp<BalanceOf<T>>, min_create_bond: ConfigOp<BalanceOf<T>>, max_pools: ConfigOp<u32>, max_members: ConfigOp<u32>, max_members_per_pool: ConfigOp<u32>, global_max_commission: ConfigOp<Perbill> ) -> Self
Create a call with the variant set_configs
.
sourcepub fn new_call_variant_update_roles(
pool_id: PoolId,
new_root: ConfigOp<T::AccountId>,
new_nominator: ConfigOp<T::AccountId>,
new_bouncer: ConfigOp<T::AccountId>
) -> Self
pub fn new_call_variant_update_roles( pool_id: PoolId, new_root: ConfigOp<T::AccountId>, new_nominator: ConfigOp<T::AccountId>, new_bouncer: ConfigOp<T::AccountId> ) -> Self
Create a call with the variant update_roles
.
sourcepub fn new_call_variant_chill(pool_id: PoolId) -> Self
pub fn new_call_variant_chill(pool_id: PoolId) -> Self
Create a call with the variant chill
.
sourcepub fn new_call_variant_bond_extra_other(
member: <<T as Config>::Lookup as StaticLookup>::Source,
extra: BondExtra<BalanceOf<T>>
) -> Self
pub fn new_call_variant_bond_extra_other( member: <<T as Config>::Lookup as StaticLookup>::Source, extra: BondExtra<BalanceOf<T>> ) -> Self
Create a call with the variant bond_extra_other
.
sourcepub fn new_call_variant_set_claim_permission(
permission: ClaimPermission
) -> Self
pub fn new_call_variant_set_claim_permission( permission: ClaimPermission ) -> Self
Create a call with the variant set_claim_permission
.
sourcepub fn new_call_variant_claim_payout_other(other: T::AccountId) -> Self
pub fn new_call_variant_claim_payout_other(other: T::AccountId) -> Self
Create a call with the variant claim_payout_other
.
sourcepub fn new_call_variant_set_commission(
pool_id: PoolId,
new_commission: Option<(Perbill, T::AccountId)>
) -> Self
pub fn new_call_variant_set_commission( pool_id: PoolId, new_commission: Option<(Perbill, T::AccountId)> ) -> Self
Create a call with the variant set_commission
.
sourcepub fn new_call_variant_set_commission_max(
pool_id: PoolId,
max_commission: Perbill
) -> Self
pub fn new_call_variant_set_commission_max( pool_id: PoolId, max_commission: Perbill ) -> Self
Create a call with the variant set_commission_max
.
sourcepub fn new_call_variant_set_commission_change_rate(
pool_id: PoolId,
change_rate: CommissionChangeRate<BlockNumberFor<T>>
) -> Self
pub fn new_call_variant_set_commission_change_rate( pool_id: PoolId, change_rate: CommissionChangeRate<BlockNumberFor<T>> ) -> Self
Create a call with the variant set_commission_change_rate
.
sourcepub fn new_call_variant_claim_commission(pool_id: PoolId) -> Self
pub fn new_call_variant_claim_commission(pool_id: PoolId) -> Self
Create a call with the variant claim_commission
.
Trait Implementations§
source§impl<T: Config> Decode for Call<T>
impl<T: Config> Decode for Call<T>
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where I: Input,
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
source§impl<T: Config> Encode for Call<T>
impl<T: Config> Encode for Call<T>
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl<T: Config> GetCallIndex for Call<T>
impl<T: Config> GetCallIndex for Call<T>
source§fn get_call_index(&self) -> u8
fn get_call_index(&self) -> u8
source§fn get_call_indices() -> &'static [u8] ⓘ
fn get_call_indices() -> &'static [u8] ⓘ
GetCallName
.source§impl<T: Config> GetCallName for Call<T>
impl<T: Config> GetCallName for Call<T>
source§fn get_call_name(&self) -> &'static str
fn get_call_name(&self) -> &'static str
source§fn get_call_names() -> &'static [&'static str]
fn get_call_names() -> &'static [&'static str]
GetCallIndex
.source§impl<T: Config> GetDispatchInfo for Call<T>
impl<T: Config> GetDispatchInfo for Call<T>
source§fn get_dispatch_info(&self) -> DispatchInfo
fn get_dispatch_info(&self) -> DispatchInfo
DispatchInfo
, containing relevant information of this dispatch. Read moresource§impl<T: Config> PartialEq<Call<T>> for Call<T>
impl<T: Config> PartialEq<Call<T>> for Call<T>
source§impl<T> TypeInfo for Call<T>where
PhantomData<(T,)>: TypeInfo + 'static,
BalanceOf<T>: HasCompact,
BondExtra<BalanceOf<T>>: TypeInfo + 'static,
<<T as Config>::Lookup as StaticLookup>::Source: TypeInfo + 'static,
Vec<T::AccountId>: TypeInfo + 'static,
ConfigOp<BalanceOf<T>>: TypeInfo + 'static,
ConfigOp<T::AccountId>: TypeInfo + 'static,
T::AccountId: TypeInfo + 'static,
Option<(Perbill, T::AccountId)>: TypeInfo + 'static,
CommissionChangeRate<BlockNumberFor<T>>: TypeInfo + 'static,
T: Config + 'static,
impl<T> TypeInfo for Call<T>where PhantomData<(T,)>: TypeInfo + 'static, BalanceOf<T>: HasCompact, BondExtra<BalanceOf<T>>: TypeInfo + 'static, <<T as Config>::Lookup as StaticLookup>::Source: TypeInfo + 'static, Vec<T::AccountId>: TypeInfo + 'static, ConfigOp<BalanceOf<T>>: TypeInfo + 'static, ConfigOp<T::AccountId>: TypeInfo + 'static, T::AccountId: TypeInfo + 'static, Option<(Perbill, T::AccountId)>: TypeInfo + 'static, CommissionChangeRate<BlockNumberFor<T>>: TypeInfo + 'static, T: Config + 'static,
source§impl<T: Config> UnfilteredDispatchable for Call<T>
impl<T: Config> UnfilteredDispatchable for Call<T>
§type RuntimeOrigin = <T as Config>::RuntimeOrigin
type RuntimeOrigin = <T as Config>::RuntimeOrigin
frame_system::Config::RuntimeOrigin
).source§fn dispatch_bypass_filter(
self,
origin: Self::RuntimeOrigin
) -> DispatchResultWithPostInfo
fn dispatch_bypass_filter( self, origin: Self::RuntimeOrigin ) -> DispatchResultWithPostInfo
impl<T: Config> EncodeLike<Call<T>> for Call<T>
impl<T: Config> Eq for Call<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Call<T>where T: RefUnwindSafe, <T as Config>::AccountId: RefUnwindSafe, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance: RefUnwindSafe, <<<T as Config>::Block as Block>::Header as Header>::Number: RefUnwindSafe, <<T as Config>::Lookup as StaticLookup>::Source: RefUnwindSafe,
impl<T> Send for Call<T>where T: Send, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance: Send, <<T as Config>::Lookup as StaticLookup>::Source: Send,
impl<T> Sync for Call<T>where T: Sync, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance: Sync, <<T as Config>::Lookup as StaticLookup>::Source: Sync,
impl<T> Unpin for Call<T>where T: Unpin, <T as Config>::AccountId: Unpin, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance: Unpin, <<<T as Config>::Block as Block>::Header as Header>::Number: Unpin, <<T as Config>::Lookup as StaticLookup>::Source: Unpin,
impl<T> UnwindSafe for Call<T>where T: UnwindSafe, <T as Config>::AccountId: UnwindSafe, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance: UnwindSafe, <<<T as Config>::Block as Block>::Header as Header>::Number: UnwindSafe, <<T as Config>::Lookup as StaticLookup>::Source: UnwindSafe,
Blanket Implementations§
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere T: Decode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
source§impl<T> Hashable for Twhere
T: Codec,
impl<T> Hashable for Twhere T: Codec,
fn blake2_128(&self) -> [u8; 16]
fn blake2_256(&self) -> [u8; 32]
fn blake2_128_concat(&self) -> Vec<u8, Global> ⓘ
fn twox_128(&self) -> [u8; 16]
fn twox_256(&self) -> [u8; 32]
fn twox_64_concat(&self) -> Vec<u8, Global> ⓘ
fn identity(&self) -> Vec<u8, Global> ⓘ
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere T: Codec,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
T
. Read more§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.source§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.