Struct pallet_nomination_pools::mock::Runtime
source · pub struct Runtime;
Implementations§
source§impl Runtime
impl Runtime
pub fn metadata() -> RuntimeMetadataPrefixed
pub fn metadata_at_version(version: u32) -> Option<OpaqueMetadata>
pub fn metadata_versions() -> Vec<u32>
Trait Implementations§
source§impl CallerTrait<<Runtime as Config>::AccountId> for OriginCaller
impl CallerTrait<<Runtime as Config>::AccountId> for OriginCaller
source§fn into_system(self) -> Option<RawOrigin<<Runtime as Config>::AccountId>>
fn into_system(self) -> Option<RawOrigin<<Runtime as Config>::AccountId>>
Extract the signer from the message if it is a
Signed
origin.source§fn as_system_ref(&self) -> Option<&RawOrigin<<Runtime as Config>::AccountId>>
fn as_system_ref(&self) -> Option<&RawOrigin<<Runtime as Config>::AccountId>>
Extract a reference to the system-level
RawOrigin
if it is that.source§fn as_signed(&self) -> Option<&AccountId>
fn as_signed(&self) -> Option<&AccountId>
Extract the signer from it if a system
Signed
origin, None
otherwise.source§impl Config<()> for Runtime
impl Config<()> for Runtime
§type MaxLocks = ConstU32<1024>
type MaxLocks = ConstU32<1024>
The maximum number of locks that should exist on an account.
Not strictly enforced, but used for weight estimation.
§type MaxReserves = ()
type MaxReserves = ()
The maximum number of named reserves that can exist on an account.
§type ReserveIdentifier = [u8; 8]
type ReserveIdentifier = [u8; 8]
The ID type for reserves. Read more
§type RuntimeEvent = RuntimeEvent
type RuntimeEvent = RuntimeEvent
The overarching event type.
§type DustRemoval = ()
type DustRemoval = ()
Handler for the unbalanced reduction when removing a dust account.
§type ExistentialDeposit = ExistentialDeposit
type ExistentialDeposit = ExistentialDeposit
The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! Read more
§type AccountStore = Pallet<Runtime>
type AccountStore = Pallet<Runtime>
The means of storing the balances of an account.
§type WeightInfo = ()
type WeightInfo = ()
Weight information for extrinsics in this pallet.
§type FreezeIdentifier = ()
type FreezeIdentifier = ()
The ID type for freezes.
§type MaxFreezes = ()
type MaxFreezes = ()
The maximum number of individual freeze locks that can exist on an account at any time.
§type RuntimeHoldReason = ()
type RuntimeHoldReason = ()
The overarching hold reason.
source§impl Config for Runtime
impl Config for Runtime
§type RuntimeEvent = RuntimeEvent
type RuntimeEvent = RuntimeEvent
The overarching event type.
§type WeightInfo = ()
type WeightInfo = ()
Weight information for extrinsics in this pallet.
§type RewardCounter = FixedU128
type RewardCounter = FixedU128
The type that is used for reward counter. Read more
§type BalanceToU256 = BalanceToU256
type BalanceToU256 = BalanceToU256
Infallible method for converting
Currency::Balance
to U256
.§type U256ToBalance = U256ToBalance
type U256ToBalance = U256ToBalance
Infallible method for converting
U256
to Currency::Balance
.§type Staking = StakingMock
type Staking = StakingMock
The interface for nominating.
§type PostUnbondingPoolsWindow = PostUnbondingPoolsWindow
type PostUnbondingPoolsWindow = PostUnbondingPoolsWindow
The amount of eras a
SubPools::with_era
pool can exist before it gets merged into the
SubPools::no_era
pool. In other words, this is the amount of eras a member will be
able to withdraw from an unbonding pool which is guaranteed to have the correct ratio of
points to balance; once the with_era
pool is merged into the no_era
pool, the ratio
can become skewed due to some slashed ratio getting merged in at some point.§type PalletId = PoolsPalletId
type PalletId = PoolsPalletId
The nomination pool’s pallet id.
§type MaxMetadataLen = MaxMetadataLen
type MaxMetadataLen = MaxMetadataLen
The maximum length, in bytes, that a pools metadata maybe.
§type MaxUnbonding = MaxUnbonding
type MaxUnbonding = MaxUnbonding
The maximum number of simultaneous unbonding chunks that can exist per member.
§type MaxPointsToBalance = ConstU8<10>
type MaxPointsToBalance = ConstU8<10>
The maximum pool points-to-balance ratio that an
open
pool can have. Read moresource§impl Config for Runtime
impl Config for Runtime
§type SS58Prefix = ()
type SS58Prefix = ()
The designated SS58 prefix of this chain. Read more
§type BaseCallFilter = Everything
type BaseCallFilter = Everything
The basic call filter to use in Origin. All origins are built with this filter as base,
except Root. Read more
§type RuntimeOrigin = RuntimeOrigin
type RuntimeOrigin = RuntimeOrigin
The
RuntimeOrigin
type used by dispatchable calls.§type RuntimeCall = RuntimeCall
type RuntimeCall = RuntimeCall
The aggregated
RuntimeCall
type.§type Hashing = BlakeTwo256
type Hashing = BlakeTwo256
The hashing system (algorithm) being used in the runtime (e.g. Blake2).
§type Lookup = IdentityLookup<<Runtime as Config>::AccountId>
type Lookup = IdentityLookup<<Runtime as Config>::AccountId>
Converting trait to take a source type and convert to
AccountId
. Read more§type Block = Block<Header<u64, BlakeTwo256>, UncheckedExtrinsic<<Runtime as Config>::AccountId, <Runtime as Config>::RuntimeCall, (), ()>>
type Block = Block<Header<u64, BlakeTwo256>, UncheckedExtrinsic<<Runtime as Config>::AccountId, <Runtime as Config>::RuntimeCall, (), ()>>
The Block type used by the runtime. This is used by
construct_runtime
to retrieve the
extrinsics or other block specific data as needed.§type RuntimeEvent = RuntimeEvent
type RuntimeEvent = RuntimeEvent
The aggregated event type of the runtime.
§type BlockHashCount = ()
type BlockHashCount = ()
Maximum number of block number to block hash mappings to keep (oldest pruned first).
§type BlockLength = ()
type BlockLength = ()
The maximum length of a block (in bytes).
§type BlockWeights = ()
type BlockWeights = ()
Block & extrinsics weights: base values and limits.
§type PalletInfo = PalletInfo
type PalletInfo = PalletInfo
Provides information about the pallet setup in the runtime. Read more
§type AccountData = AccountData<u128>
type AccountData = AccountData<u128>
Data to be associated with an account (other than nonce/transaction counter, which this
pallet does regardless).
§type OnNewAccount = ()
type OnNewAccount = ()
Handler for when a new account has just been created.
§type OnKilledAccount = ()
type OnKilledAccount = ()
A function that is invoked when an account has been determined to be dead. Read more
type SystemWeightInfo = ()
§type MaxConsumers = ConstU32<16>
type MaxConsumers = ConstU32<16>
The maximum number of consumers allowed on a single account.
source§impl GetRuntimeBlockType for Runtime
impl GetRuntimeBlockType for Runtime
§type RuntimeBlock = <Runtime as Config>::Block
type RuntimeBlock = <Runtime as Config>::Block
The
RuntimeBlock
type.source§impl PartialEq<Runtime> for Runtime
impl PartialEq<Runtime> for Runtime
source§impl ValidateUnsigned for Runtime
impl ValidateUnsigned for Runtime
§type Call = RuntimeCall
type Call = RuntimeCall
The call to validate
source§fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError>
fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError>
Validate the call right before dispatch. Read more
source§fn validate_unsigned(
source: TransactionSource,
call: &Self::Call
) -> TransactionValidity
fn validate_unsigned( source: TransactionSource, call: &Self::Call ) -> TransactionValidity
Return the validity of the call Read more
impl Copy for Runtime
impl Eq for Runtime
impl StructuralEq for Runtime
impl StructuralPartialEq for Runtime
Auto Trait Implementations§
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnwindSafe for Runtime
Blanket Implementations§
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
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> 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>,
Consume self to return an equivalent value of
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>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
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
The counterpart to
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
Consume self to return an equivalent value of
T
.