referrerpolicy=no-referrer-when-downgrade
pallet_nomination_pools::mock

Type Alias T

Source
pub type T = Runtime;

Aliased Type§

struct T;

Implementations

Source§

impl Runtime

Source

pub fn execute_view_function( id: ViewFunctionId, input: Vec<u8>, ) -> Result<Vec<u8>, ViewFunctionDispatchError>

Convenience function for view functions dispatching and execution from the runtime API.

Source§

impl Runtime

Source

pub fn metadata() -> RuntimeMetadataPrefixed

Source

pub fn metadata_at_version(version: u32) -> Option<OpaqueMetadata>

Source

pub fn metadata_versions() -> Vec<u32>

Trait Implementations

Source§

impl Clone for Runtime

Source§

fn clone(&self) -> Runtime

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Config for Runtime

Source§

type Nonce = u64

This stores the number of previous transactions associated with a sender account.
Source§

type AccountId = u128

The user account identifier type for the runtime.
Source§

type Lookup = IdentityLookup<<Runtime as Config>::AccountId>

Converting trait to take a source type and convert to AccountId. Read more
Source§

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.
Source§

type AccountData = AccountData<u128>

Data to be associated with an account (other than nonce/transaction counter, which this pallet does regardless).
Source§

type Hash = <TestDefaultConfig as DefaultConfig>::Hash

The output of the Hashing function.
Source§

type Hashing = <TestDefaultConfig as DefaultConfig>::Hashing

The hashing system (algorithm) being used in the runtime (e.g. Blake2).
Source§

type MaxConsumers = <TestDefaultConfig as DefaultConfig>::MaxConsumers

The maximum number of consumers allowed on a single account.
Source§

type OnNewAccount = <TestDefaultConfig as DefaultConfig>::OnNewAccount

Handler for when a new account has just been created.
Source§

type OnKilledAccount = <TestDefaultConfig as DefaultConfig>::OnKilledAccount

A function that is invoked when an account has been determined to be dead. Read more
Source§

type SystemWeightInfo = <TestDefaultConfig as DefaultConfig>::SystemWeightInfo

Weight information for the extrinsics of this pallet.
Source§

type ExtensionsWeightInfo = <TestDefaultConfig as DefaultConfig>::ExtensionsWeightInfo

Weight information for the transaction extensions of this pallet.
Source§

type SS58Prefix = <TestDefaultConfig as DefaultConfig>::SS58Prefix

The designated SS58 prefix of this chain. Read more
Source§

type Version = <TestDefaultConfig as DefaultConfig>::Version

Get the chain’s in-code version.
Source§

type BlockWeights = <TestDefaultConfig as DefaultConfig>::BlockWeights

Block & extrinsics weights: base values and limits.
Source§

type BlockLength = <TestDefaultConfig as DefaultConfig>::BlockLength

The maximum length of a block (in bytes).
Source§

type DbWeight = <TestDefaultConfig as DefaultConfig>::DbWeight

The weight of runtime database operations the runtime can invoke.
Source§

type RuntimeEvent = RuntimeEvent

The aggregated event type of the runtime.
Source§

type RuntimeOrigin = RuntimeOrigin

The RuntimeOrigin type used by dispatchable calls.
Source§

type RuntimeCall = RuntimeCall

The aggregated RuntimeCall type.
Source§

type PalletInfo = PalletInfo

Provides information about the pallet setup in the runtime. Read more
Source§

type RuntimeTask = RuntimeTask

The aggregated RuntimeTask type.
Source§

type BaseCallFilter = <TestDefaultConfig as DefaultConfig>::BaseCallFilter

The basic call filter to use in Origin. All origins are built with this filter as base, except Root. Read more
Source§

type BlockHashCount = <TestDefaultConfig as DefaultConfig>::BlockHashCount

Maximum number of block number to block hash mappings to keep (oldest pruned first).
Source§

type OnSetCode = <TestDefaultConfig as DefaultConfig>::OnSetCode

What to do if the runtime wants to change the code to something new. Read more
Source§

type SingleBlockMigrations = <TestDefaultConfig as DefaultConfig>::SingleBlockMigrations

All migrations that should run in the next runtime upgrade. Read more
Source§

type MultiBlockMigrator = <TestDefaultConfig as DefaultConfig>::MultiBlockMigrator

The migrator that is used to run Multi-Block-Migrations. Read more
Source§

type PreInherents = <TestDefaultConfig as DefaultConfig>::PreInherents

A callback that executes in every block directly before all inherents were applied. Read more
Source§

type PostInherents = <TestDefaultConfig as DefaultConfig>::PostInherents

A callback that executes in every block directly after all inherents were applied. Read more
Source§

type PostTransactions = <TestDefaultConfig as DefaultConfig>::PostTransactions

A callback that executes in every block directly after all transactions were applied. Read more
Source§

impl Config for Runtime

Source§

type Balance = u128

The balance of an account.
Source§

type ExistentialDeposit = ExistentialDeposit

The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! Read more
Source§

type AccountStore = Pallet<Runtime>

The means of storing the balances of an account.
Source§

type FreezeIdentifier = RuntimeFreezeReason

The ID type for freezes.
Source§

type MaxFreezes = VariantCountOf<RuntimeFreezeReason>

The maximum number of individual freeze locks that can exist on an account at any time.
Source§

type RuntimeFreezeReason = RuntimeFreezeReason

The overarching freeze reason.
Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type RuntimeHoldReason = RuntimeHoldReason

The overarching hold reason.
Source§

type ReserveIdentifier = <TestDefaultConfig as DefaultConfig>::ReserveIdentifier

The ID type for reserves. Read more
Source§

type DustRemoval = <TestDefaultConfig as DefaultConfig>::DustRemoval

Handler for the unbalanced reduction when removing a dust account.
Source§

type MaxLocks = <TestDefaultConfig as DefaultConfig>::MaxLocks

The maximum number of locks that should exist on an account. Not strictly enforced, but used for weight estimation. Read more
Source§

type MaxReserves = <TestDefaultConfig as DefaultConfig>::MaxReserves

The maximum number of named reserves that can exist on an account. Read more
Source§

type WeightInfo = <TestDefaultConfig as DefaultConfig>::WeightInfo

Weight information for extrinsics in this pallet.
Source§

type DoneSlashHandler = <TestDefaultConfig as DefaultConfig>::DoneSlashHandler

Allows callbacks to other pallets so they can update their bookkeeping when a slash occurs.
Source§

impl Config for Runtime

Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type WeightInfo = ()

Weight information for extrinsics in this pallet.
Source§

type Currency = Pallet<Runtime>

The currency type used for nomination pool.
Source§

type RuntimeFreezeReason = RuntimeFreezeReason

The overarching freeze reason.
Source§

type RewardCounter = FixedU128

The type that is used for reward counter. Read more
Source§

type BalanceToU256 = BalanceToU256

Infallible method for converting Currency::Balance to U256.
Source§

type U256ToBalance = U256ToBalance

Infallible method for converting U256 to Currency::Balance.
Source§

type StakeAdapter = DelegateStake<Runtime, StakingMock, DelegateMock>

The interface for nominating. Read more
Source§

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.
Source§

type PalletId = PoolsPalletId

The nomination pool’s pallet id.
Source§

type MaxMetadataLen = MaxMetadataLen

The maximum length, in bytes, that a pools metadata maybe.
Source§

type MaxUnbonding = MaxUnbonding

The maximum number of simultaneous unbonding chunks that can exist per member.
Source§

type MaxPointsToBalance = ConstU8<10>

The maximum pool points-to-balance ratio that an open pool can have. Read more
Source§

type AdminOrigin = EnsureSignedBy<Admin, u128>

The origin that can manage pool configurations.
Source§

type BlockNumberProvider = Pallet<Runtime>

Provider for the block number. Normally this is the frame_system pallet.
Source§

type Filter = RestrictMock

Restrict some accounts from participating in a nomination pool.
Source§

impl Debug for Runtime

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl EnsureInherentsAreFirst<<Runtime as Config>::Block> for Runtime

Source§

fn ensure_inherents_are_first( block: &<Runtime as Config>::Block, ) -> Result<u32, u32>

Ensure the position of inherent is correct, i.e. they are before non-inherents. Read more
Source§

impl GetRuntimeBlockType for Runtime

Source§

type RuntimeBlock = <Runtime as Config>::Block

The RuntimeBlock type.
Source§

impl IsInherent<<<Runtime as Config>::Block as Block>::Extrinsic> for Runtime

Source§

fn is_inherent(ext: &<<Runtime as Config>::Block as Block>::Extrinsic) -> bool

Whether this extrinsic is an inherent.
Source§

impl PartialEq for Runtime

Source§

fn eq(&self, other: &Runtime) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TypeInfo for Runtime

Source§

type Identity = Runtime

The type identifying for which type info is provided. Read more
Source§

fn type_info() -> Type

Returns the static type identifier for Self.
Source§

impl ValidateUnsigned for Runtime

Source§

type Call = RuntimeCall

The call to validate
Source§

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

Return the validity of the call Read more
Source§

impl Copy for Runtime

Source§

impl Eq for Runtime

Source§

impl StructuralPartialEq for Runtime