timechain_runtime

Struct Runtime

Source
pub struct Runtime;

Implementations§

Source§

impl Runtime

Source

pub(crate) fn metadata_ir() -> MetadataIR

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 AccountNonceApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for Runtime

Source§

fn account_nonce(account: AccountId) -> Nonce

Get current account nonce of given AccountId.
Source§

impl AsSystemOriginSigner<<Runtime as Config>::AccountId> for RuntimeOrigin

Source§

fn as_system_origin_signer(&self) -> Option<&<Runtime as Config>::AccountId>

Extract a reference of the inner value of the System Origin::Signed variant, if self has that variant.
Source§

impl AuthorityDiscoveryApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

fn authorities() -> Vec<AuthorityDiscoveryId>

Retrieve authority identifiers of the current and next authority set.
Source§

impl BabeApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

fn configuration() -> BabeConfiguration

Return the configuration for BABE.
Source§

fn current_epoch_start() -> Slot

Returns the slot that started the current epoch.
Source§

fn current_epoch() -> Epoch

Returns information regarding the current epoch.
Source§

fn next_epoch() -> Epoch

Returns information regarding the next epoch (which was already previously announced).
Source§

fn generate_key_ownership_proof( _slot: Slot, authority_id: AuthorityId, ) -> Option<OpaqueKeyOwnershipProof>

Generates a proof of key ownership for the given authority in the current epoch. An example usage of this module is coupled with the session historical module to prove that a given authority key is tied to a given staking identity during a specific session. Proofs of key ownership are necessary for submitting equivocation reports. NOTE: even though the API takes a slot as parameter the current implementations ignores this parameter and instead relies on this method being called at the correct block height, i.e. any point at which the epoch for the given slot is live on-chain. Future implementations will instead use indexed data through an offchain worker, not requiring older states to be available.
Source§

fn submit_report_equivocation_unsigned_extrinsic( equivocation_proof: EquivocationProof<<Block as BlockT>::Header>, key_owner_proof: OpaqueKeyOwnershipProof, ) -> Option<()>

Submits an unsigned extrinsic to report an equivocation. The caller must provide the equivocation proof and a key ownership proof (should be obtained using generate_key_ownership_proof). The extrinsic will be unsigned and should only be accepted for local authorship (not to be broadcast to the network). This method returns None when creation of the extrinsic fails, e.g. if equivocation reporting is disabled for the given runtime (i.e. this method is hardcoded to return None). Only useful in an offchain context.
Source§

impl BenchmarkV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

fn benchmark_metadata(extra: bool) -> (Vec<BenchmarkList>, Vec<StorageInfo>)

Get the benchmark metadata available for this runtime. Read more
Source§

fn dispatch_benchmark( config: BenchmarkConfig, ) -> Result<Vec<BenchmarkBatch>, String>

Dispatch the given benchmark.
Source§

impl BlockBuilderV6<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

fn apply_extrinsic( extrinsic: <Block as BlockT>::Extrinsic, ) -> ApplyExtrinsicResult

Apply the given extrinsic. Read more
Source§

fn finalize_block() -> <Block as BlockT>::Header

Finish the current block.
Source§

fn inherent_extrinsics(data: InherentData) -> Vec<<Block as BlockT>::Extrinsic>

Generate inherent extrinsics. The inherent data will vary from chain to chain.
Source§

fn check_inherents(block: Block, data: InherentData) -> CheckInherentsResult

Check that the inherents are valid. The inherent data will vary from chain to chain.
Source§

impl CallerTrait<<Runtime as Config>::AccountId> for OriginCaller

Source§

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>>

Extract a reference to the system-level RawOrigin if it is that.
§

fn as_signed(&self) -> Option<&AccountId>

Extract the signer from it if a system Signed origin, None otherwise.
§

fn is_root(&self) -> bool

Returns true if self is a system Root origin, None otherwise.
§

fn is_none(&self) -> bool

Returns true if self is a system None origin, None otherwise.
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<Instance1> for Runtime

Source§

type RuntimeOrigin = RuntimeOrigin

The runtime origin type.
Source§

type Proposal = RuntimeCall

The runtime call dispatch type.
Source§

type RuntimeEvent = RuntimeEvent

The runtime event type.
Source§

type MotionDuration = TechnicalMotionDuration

The time-out for council motions.
Source§

type MaxProposals = TechnicalMaxProposals

Maximum number of proposals allowed to be active in parallel.
Source§

type MaxMembers = TechnicalMaxMembers

The maximum number of members supported by the pallet. Used for weight estimation. Read more
Source§

type DefaultVote = PrimeDefaultVote

Default vote strategy of this collective.
Source§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
Source§

type SetMembersOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Origin allowed to set collective members
Source§

type MaxProposalWeight = MaxCollectivesProposalWeight

The maximum weight of a dispatch call that can be proposed and executed.
Source§

type DisapproveOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Origin from which a proposal in any status may be disapproved without associated cost for a proposer.
Source§

type KillOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Origin from which any malicious proposal may be killed with associated cost for a proposer. Read more
Source§

type Consideration = ()

Mechanism to assess the necessity of some cost for publishing and storing a proposal. Read more
Source§

impl Config<Instance1> for Runtime

Config

Organizes nominations into bags by relative size

Source§

type ScoreProvider = Pallet<Runtime>

The voter bags-list is loosely kept up to date, and the real source of truth for the score of each node is the staking pallet.

Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type BagThresholds = BagThresholds

The list of thresholds separating the various bags. Read more
Source§

type Score = u64

The type used to dictate a node position relative to other nodes.
Source§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
Source§

impl Config for Runtime

Config

grandpa finality gadget

Source§

type RuntimeEvent = RuntimeEvent

The event type of this module.
Source§

type WeightInfo = ()

Weights for this pallet.
Source§

type MaxAuthorities = MaxAuthorities

Max Authorities in use
Source§

type MaxNominators = MaxNominators

The maximum number of nominators for each validator.
Source§

type MaxSetIdSessionEntries = MaxSetIdSessionEntries

The maximum number of entries to keep in the set id to session index mapping. Read more
Source§

type KeyOwnerProof = MembershipProof

The proof of key ownership, used for validating equivocation reports The proof include the session index and validator count of the session at which the equivocation occurred.
Source§

type EquivocationReportSystem = EquivocationReportSystem<Runtime, Pallet<Runtime>, Pallet<Runtime>, ReportLongevity>

The equivocation handling subsystem, defines methods to check/report an offence and for submitting a transaction to report an equivocation (from an offchain context).
Source§

impl Config for Runtime

Config

validator heartbeats

Source§

type AuthorityId = Public

The identifier type for an authority.
Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type NextSessionRotation = Pallet<Runtime>

A trait that allows us to estimate the current session progress and also the average session length. Read more
Source§

type ValidatorSet = Pallet<Runtime>

A type for retrieving the validators supposed to be online in a session.
Source§

type ReportUnresponsiveness = Pallet<Runtime>

A type that gives us the ability to submit unresponsiveness offence reports.
Source§

type UnsignedPriority = ImOnlineUnsignedPriority

A configuration for base priority of unsigned transactions. Read more
Source§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
Source§

type MaxKeys = MaxKeys

The maximum number of keys that can be added.
Source§

type MaxPeerInHeartbeats = MaxPeerInHeartbeats

The maximum number of peers to be stored in ReceivedHeartbeats
Source§

impl Config for Runtime

Config

Add validator peer discovery, takes minimal configuration

Source§

type MaxAuthorities = MaxAuthorities

The maximum number of authorities that can be added.
Source§

impl Config for Runtime

§00 - System Config

Represents the runtime base configuration, pretty standard appart from:

Source§

type BaseCallFilter = Everything

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

type BlockWeights = RuntimeBlockWeights

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

type BlockLength = RuntimeBlockLength

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

type DbWeight = ParityDbWeight

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

type Nonce = u32

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

type Hash = H256

The output of the Hashing function.
Source§

type AccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId

The user account identifier type for the runtime.
Source§

type Block = Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>

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 BlockHashCount = BlockHashCount

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

type Version = Version

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

type AccountData = AccountData<u128>

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

type SystemWeightInfo = WeightInfo<Runtime>

Weight information for the extrinsics of this pallet.
Source§

type SS58Prefix = ConstU16<{ SS58_ADDRESS_PREFIX }>

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

type MaxConsumers = ConstU32<16>

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

type Hashing = <SolochainDefaultConfig as DefaultConfig>::Hashing

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

type Lookup = <SolochainDefaultConfig as DefaultConfig>::Lookup

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

type OnNewAccount = <SolochainDefaultConfig as DefaultConfig>::OnNewAccount

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

type OnKilledAccount = <SolochainDefaultConfig as DefaultConfig>::OnKilledAccount

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

type ExtensionsWeightInfo = <SolochainDefaultConfig as DefaultConfig>::ExtensionsWeightInfo

Weight information for the transaction extensions of this pallet.
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 RuntimeTask = RuntimeTask

The aggregated RuntimeTask type.
Source§

type PalletInfo = PalletInfo

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

type OnSetCode = <SolochainDefaultConfig as DefaultConfig>::OnSetCode

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

type SingleBlockMigrations = <SolochainDefaultConfig as DefaultConfig>::SingleBlockMigrations

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

type MultiBlockMigrator = <SolochainDefaultConfig as DefaultConfig>::MultiBlockMigrator

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

type PreInherents = <SolochainDefaultConfig as DefaultConfig>::PreInherents

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

type PostInherents = <SolochainDefaultConfig as DefaultConfig>::PostInherents

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

type PostTransactions = <SolochainDefaultConfig as DefaultConfig>::PostTransactions

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

impl Config for Runtime

§01 - Timestamp Config

timestamp extension

Source§

type Moment = u64

Type used for expressing a timestamp.
Source§

type OnTimestampSet = Pallet<Runtime>

Something which can be notified (e.g. another pallet) when the timestamp is set. Read more
Source§

type MinimumPeriod = MinimumPeriod

The minimum period between blocks. Read more
Source§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
Source§

impl Config for Runtime

Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type AddOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Required origin for adding a member (though can always be Root).
Source§

type RemoveOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Required origin for removing a member (though can always be Root).
Source§

type SwapOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Required origin for adding and removing a member in a single action.
Source§

type ResetOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Required origin for resetting membership.
Source§

type PrimeOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Required origin for setting or resetting the prime member.
Source§

type MembershipInitialized = Pallet<Runtime, Instance1>

The receiver of the signal for when the membership has been initialized. This happens pre-genesis and will usually be the same as MembershipChanged. If you need to do something different on initialization, then you can change this accordingly.
Source§

type MembershipChanged = Pallet<Runtime, Instance1>

The receiver of the signal for when the membership has changed.
Source§

type MaxMembers = TechnicalMaxMembers

The maximum number of members that this membership can have. Read more
Source§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
Source§

impl Config for Runtime

Source§

type SystemAdmin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Default admin origin for system related governance

Source§

type StakingAdmin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Default admin origin for staking related governance

Source§

type BalancesAdmin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Default admin origin for balances related governance

Source§

impl Config for Runtime

Source§

type Time = Pallet<Runtime>

The time implementation used to supply timestamps to contracts through seal_now.
Source§

type Currency = Pallet<Runtime>

The fungible in which fees are paid and contract balances are held.
Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type RuntimeCall = RuntimeCall

The overarching call type.
Source§

type CallFilter = Nothing

Filter that is applied to calls dispatched by contracts. Read more
Source§

type DepositPerItem = DepositPerItem

The amount of balance a caller has to pay for each storage item. Read more
Source§

type DepositPerByte = DepositPerByte

The amount of balance a caller has to pay for each byte of storage. Read more
Source§

type WeightPrice = Pallet<Runtime>

Used to answer contracts’ queries regarding the current weight price. This is not used to calculate the actual fee and is only for informational purposes.
Source§

type WeightInfo = SubstrateWeight<Runtime>

Describes the weights of the dispatchables of this module and is also used to construct a default cost schedule.
Source§

type ChainExtension = ()

Type that allows the runtime authors to add new host functions for a contract to call.
Source§

type AddressMapper = AccountId32Mapper<Runtime>

Use either valid type is [address::AccountId32Mapper] or [address::H160Mapper].
Source§

type RuntimeMemory = ConstU32<{ 128 * 1024 * 1024 }>

The amount of memory in bytes that parachain nodes a lot to the runtime. Read more
Source§

type PVFMemory = ConstU32<{ 512 * 1024 * 1024 }>

The amount of memory in bytes that relay chain validators a lot to the PoV. Read more
Source§

type UnsafeUnstableInterface = ConstBool<false>

Make contract callable functions marked as #[unstable] available. Read more
Source§

type UploadOrigin = EnsureSigned<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Origin allowed to upload code. Read more
Source§

type InstantiateOrigin = EnsureSigned<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Origin allowed to instantiate code. Read more
Source§

type RuntimeHoldReason = RuntimeHoldReason

Overarching hold reason.
Source§

type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent

The percentage of the storage deposit that should be held for using a code hash. Instantiating a contract, protects the code from being removed. In order to prevent abuse these actions are protected with a percentage of the code deposit.
Source§

type Xcm = ()

A type that exposes XCM APIs, allowing contracts to interact with other parachains, and execute XCM programs.
Source§

type ChainId = ConstU64<12850>

The EIP-155 chain ID. Read more
Source§

type NativeToEthRatio = ConstU32<1000000>

The ratio between the decimal representation of the native token and the ETH token.
Source§

type EthGasEncoder = ()

Encode and decode Ethereum gas values. Only valid value is (). See [GasEncoder].
Source§

type FindAuthor = <Runtime as Config>::FindAuthor

Find the author of the current block.
Source§

impl Config for Runtime

Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type Currency = Pallet<Runtime>

The currency trait.
Source§

type BasicDeposit = BasicDeposit

The amount held on deposit for a registered identity.
Source§

type ByteDeposit = ByteDeposit

The amount held on deposit per encoded byte for a registered identity.
Source§

type UsernameDeposit = UsernameDeposit

The amount held on deposit per registered username. This value should change only in runtime upgrades with proper migration of existing deposits.
Source§

type SubAccountDeposit = SubAccountDeposit

The amount held on deposit for a registered subaccount. This should account for the fact that one storage item’s value will increase by the size of an account ID, and there will be another trie item whose value is the size of an account ID plus 32 bytes.
Source§

type MaxSubAccounts = MaxSubAccounts

The maximum number of sub-accounts allowed per identified account.
Source§

type IdentityInformation = IdentityInfo<MaxAdditionalFields>

Structure holding information about an identity.
Source§

type MaxRegistrars = MaxRegistrars

Maximum number of registrars allowed in the system. Needed to bound the complexity of, e.g., updating judgements.
Source§

type Slashed = ()

What to do with slashed funds.
Source§

type ForceOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

The origin which may forcibly set or remove a name. Root can always do this.
Source§

type RegistrarOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

The origin which may add or remove registrars. Root can always do this.
Source§

type OffchainSignature = MultiSignature

Signature type for pre-authorizing usernames off-chain. Read more
Source§

type SigningPublicKey = <MultiSignature as Verify>::Signer

Public key that corresponds to an on-chain Self::AccountId.
Source§

type UsernameAuthorityOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

The origin which may add or remove username authorities. Root can always do this.
Source§

type PendingUsernameExpiration = ConstU32<{ 7 * DAYS }>

The number of blocks within which a username grant must be accepted.
Source§

type UsernameGracePeriod = ConstU32<{ 30 * DAYS }>

The number of blocks that must pass to enable the permanent deletion of a username by its respective authority.
Source§

type MaxSuffixLength = ConstU32<7>

The maximum length of a suffix.
Source§

type MaxUsernameLength = ConstU32<32>

The maximum length of a username, including its suffix and any system-added delimiters.
Source§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
Source§

impl Config for Runtime

Source§

type WeightInfo = SubstrateWeight<Runtime>

The Weight information for this pallet.
Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type Currency = Pallet<Runtime>

Currency type for this pallet.
Source§

type ManagerOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

An origin that can request a preimage be placed on-chain without a deposit or fee, or manage existing preimages.
Source§

type Consideration = HoldConsideration<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Pallet<Runtime>, PreimageHoldReason, LinearStoragePrice<StorageBaseDeposit, StorageByteDeposit, u128>>

A means of providing some cost while data is stored on-chain.
Source§

impl Config for Runtime

Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type RuntimeOrigin = RuntimeOrigin

The aggregated origin which the dispatch will take.
Source§

type PalletsOrigin = OriginCaller

The caller origin, overarching type of all pallets origins.
Source§

type RuntimeCall = RuntimeCall

The aggregated call type.
Source§

type MaximumWeight = MaximumSchedulerWeight

The maximum weight that may be scheduled per block for any dispatchables.
Source§

type ScheduleOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Required origin to schedule or cancel calls.
Source§

type MaxScheduledPerBlock = ConstU32<512>

The maximum number of scheduled calls in the queue for a single block. Read more
Source§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
Source§

type OriginPrivilegeCmp = EqualPrivilegeOnly

Compare the privileges of origins. Read more
Source§

type Preimages = Pallet<Runtime>

The preimage provider with which we look up call hashes to get the call.
Source§

type BlockNumberProvider = Pallet<Runtime>

Query the current block number. Read more
Source§

impl Config for Runtime

Config

Manages off- and on-chain validator election

Source§

type RuntimeEvent = RuntimeEvent

Source§

type Currency = Pallet<Runtime>

Currency type.
Source§

type EstimateCallFee = Pallet<Runtime>

Something that can predict the fee of a call. Used to sensibly distribute rewards.
Source§

type SignedPhase = SignedPhase

Duration of the signed phase.
Source§

type UnsignedPhase = UnsignedPhase

Duration of the unsigned phase.
Source§

type BetterSignedThreshold = ()

The minimum amount of improvement to the solution score that defines a solution as “better” in the Signed phase.
Source§

type OffchainRepeat = OffchainRepeat

The repeat threshold of the offchain worker. Read more
Source§

type MinerTxPriority = MultiPhaseUnsignedPriority

The priority of the unsigned transaction submitted in the unsigned-phase
Source§

type MinerConfig = Runtime

Configurations of the embedded miner. Read more
Source§

type SignedMaxSubmissions = ConstU32<10>

Maximum number of signed submissions that can be queued. Read more
Source§

type SignedRewardBase = SignedRewardBase

Base reward for a signed solution
Source§

type SignedDepositBase = GeometricDepositBase<u128, SignedFixedDeposit, SignedDepositIncreaseFactor>

Something that calculates the signed deposit base based on the signed submissions queue size.
Source§

type SignedDepositByte = SignedDepositByte

Per-byte deposit for a signed solution.
Source§

type SignedMaxRefunds = ConstU32<3>

The maximum amount of unchecked solutions to refund the call fee for.
Source§

type SignedDepositWeight = ()

Per-weight deposit for a signed solution.
Source§

type SignedMaxWeight = MinerMaxWeight

Maximum weight of a signed solution. Read more
Source§

type SlashHandler = ()

Handler for the slashed deposits.
Source§

type RewardHandler = ()

Handler for the rewards.
Source§

type DataProvider = Pallet<Runtime>

Something that will provide the election data.
Source§

type Fallback = OnChainExecution<OnChainSeqPhragmen>

Configuration for the fallback.
Source§

type GovernanceFallback = OnChainExecution<OnChainSeqPhragmen>

Configuration of the governance-only fallback. Read more
Source§

type Solver = SequentialPhragmen<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, <<<Runtime as Config>::MinerConfig as MinerConfig>::Solution as NposSolution>::Accuracy, OffchainRandomBalancing>

OCW election solution miner algorithm implementation.
Source§

type ForceOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Origin that can control this pallet. Note that any action taken by this origin (such) as providing an emergency solution is not checked. Thus, it must be a trusted origin.
Source§

type MaxWinners = ConstU32<100>

The maximum number of winners that can be elected by this ElectionProvider implementation. Read more
Source§

type ElectionBounds = ElectionBoundsMultiPhase

The maximum number of electing voters and electable targets to put in the snapshot. At the moment, snapshots are only over a single block, but once multi-block elections are introduced they will take place over multiple blocks.
Source§

type BenchmarkingConfig = ElectionProviderBenchmarkConfig

The configuration of benchmarking.
Source§

type WeightInfo = SubstrateWeight<Runtime>

The weight of the pallet.
Source§

impl Config for Runtime

Config

Tracks nominations and stake

Source§

type Reward = RewardPool

Pay rewards from reward pool, otherwise mint them.

Source§

type AdminOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

A majority of the council can cancel the slash.

Source§

type EraPayout = ConvertCurve<RewardCurve>

Inflation curve that optimizes returned rewards

Source§

type Currency = Pallet<Runtime>

The staking balance.
Source§

type CurrencyBalance = u128

Just the Currency::Balance type; we have this item to allow us to constrain it to From<u64>.
Source§

type UnixTime = Pallet<Runtime>

Time used for computing era duration. Read more
Source§

type CurrencyToVote = U128CurrencyToVote

Convert a balance into a number used for election calculation. This must fit into a u64 but is allowed to be sensibly lossy. The u64 is used to communicate with the [frame_election_provider_support] crate which accepts u64 numbers and does operations in 128. Consequently, the backward convert is used convert the u128s from sp-elections back to a [BalanceOf].
Source§

type RewardRemainder = ()

Tokens have been minted and are unused for validator-reward. See Era payout.
Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type Slash = ()

Handler for the unbalanced reduction when slashing a staker.
Source§

type SessionsPerEra = SessionsPerEra

Number of sessions per era.
Source§

type BondingDuration = BondingDuration

Number of eras that staked funds must remain bonded for.
Source§

type SlashDeferDuration = SlashDeferDuration

Number of eras that slashes are deferred by, after computation. Read more
Source§

type SessionInterface = Runtime

Interface for interacting with a session pallet.
Source§

type MaxExposurePageSize = ConstU32<256>

The maximum size of each T::ExposurePage. Read more
Source§

type NextNewSession = Pallet<Runtime>

Something that can estimate the next session change, accurately or as a best effort guess.
Source§

type ElectionProvider = Pallet<Runtime>

Something that provides the election functionality.
Source§

type GenesisElectionProvider = OnChainExecution<OnChainSeqPhragmen>

Something that provides the election functionality at genesis.
Source§

type VoterList = Pallet<Runtime, Instance1>

Something that provides a best-effort sorted list of voters aka electing nominators, used for NPoS election. Read more
Source§

type TargetList = UseValidatorsMap<Runtime>

WIP: This is a noop as of now, the actual business logic that’s described below is going to be introduced in a follow-up PR. Read more
Source§

type NominationsQuota = FixedNominationsQuota<MAX_QUOTA_NOMINATIONS>

Something that defines the maximum number of nominations per nominator.
Source§

type MaxUnlockingChunks = ConstU32<32>

The maximum number of unlocking chunks a [StakingLedger] can have. Effectively determines how many unique eras a staker may be unbonding in. Read more
Source§

type HistoryDepth = HistoryDepth

Number of eras to keep in history. Read more
Source§

type MaxControllersInDeprecationBatch = MaxControllersInDeprecationBatch

The maximum amount of controller accounts that can be deprecated in one call.
Source§

type BenchmarkingConfig = StakingBenchmarkingConfig

Some parameters of the benchmarking.
Source§

type EventListeners = (Pallet<Runtime>, Pallet<Runtime>)

Something that listens to staking updates and performs actions based on the data it receives. Read more
Source§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
Source§

type OldCurrency = Pallet<Runtime>

The old trait for staking balance. Deprecated and only used for migrating old ledgers.
Source§

type RuntimeHoldReason = RuntimeHoldReason

Overarching hold reason.
Source§

type Filter = AllPoolMembers<Runtime>

Filter some accounts from participating in staking. Read more
Source§

impl Config for Runtime

§Offences Config

Tracks offences

Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type IdentificationTuple = (<Runtime as Config>::ValidatorId, <Runtime as Config>::FullIdentification)

Full identification of the validator.
Source§

type OnOffenceHandler = Pallet<Runtime>

A handler called for every offence report.
Source§

impl Config for Runtime

Source§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
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, Pallet<Runtime>, Pallet<Runtime>>

The interface for nominating. Read more
Source§

type PostUnbondingPoolsWindow = PostUnbondPoolsWindow

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 MaxMetadataLen = ConstU32<256>

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

type MaxUnbonding = <Runtime as Config>::MaxUnlockingChunks

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

type PalletId = NominationPoolsPalletId

The nomination pool’s pallet id.
Source§

type MaxPointsToBalance = MaxPointsToBalance

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

type AdminOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

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 = AllStakers<Runtime>

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

impl Config for Runtime

Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type PalletId = DelegatedStakingPalletId

Injected identifier for the pallet.
Source§

type Currency = Pallet<Runtime>

Currency type.
Source§

type OnSlash = ()

Handler for the unbalanced reduction when slashing a delegator.
Source§

type SlashRewardFraction = SlashRewardFraction

Fraction of the slash that is rewarded to the caller of pending slash to the agent.
Source§

type RuntimeHoldReason = RuntimeHoldReason

Overarching hold reason.
Source§

type CoreStaking = Pallet<Runtime>

Core staking implementation.
Source§

impl Config for Runtime

Config

Add balance tracking and transfers

Source§

type RuntimeHoldReason = RuntimeHoldReason

The overarching hold reason.
Source§

type RuntimeFreezeReason = RuntimeFreezeReason

The overarching freeze reason.
Source§

type MaxLocks = 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 = MaxReserves

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

type ReserveIdentifier = [u8; 8]

The ID type for reserves. Read more
Source§

type Balance = u128

The balance of an account.
Source§

type DustRemoval = ()

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

type RuntimeEvent = RuntimeEvent

The overarching event type.
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 WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
Source§

type FreezeIdentifier = RuntimeFreezeReason

The ID type for freezes.
Source§

type MaxFreezes = ConstU32<1>

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

type DoneSlashHandler = ()

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

impl Config for Runtime

§TransactionPayment Config

Charge users for their transactions according to the transactions weight.

  • WeightToFee is a custom curve, for details see crate::tokenomics
  • LengthToFee is a custom curve, for details see crate::tokenomics
Source§

type RuntimeEvent = RuntimeEvent

The event type that will be emitted for transaction payment events.

Source§

type OnChargeTransaction = FungibleAdapter<Pallet<Runtime>, DealWithFees>

Specify how to charge transaction fees.

Source§

type OperationalFeeMultiplier = OperationalFeeMultiplier

The multiplier applied to operational transaction fees.

Source§

type WeightToFee = WeightToFee

Use our custom weight to fee curve

Source§

type LengthToFee = LengthToFee

Use our custom length to fee curve

Source§

type FeeMultiplierUpdate = TargetedFeeAdjustment<Runtime, TargetBlockFullness, AdjustmentVariable, MinimumMultiplier, MaximumMultiplier>

Defines how the fee multiplier is updated based on the block fullness. The TargetedFeeAdjustment adjusts the fee multiplier to maintain the target block fullness.

Source§

type WeightInfo = SubstrateWeight<Runtime>

Benchmarked weights associated with transaction payments

Source§

impl Config for Runtime

§Vesting Config

Allow tokens to be locked following schedule

Source§

const MAX_VESTING_SCHEDULES: u32 = 28u32

Maximum number of vesting schedules an account may have at a given moment.
Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type Currency = Pallet<Runtime>

The currency trait.
Source§

type BlockNumberToBalance = ConvertInto

Convert the block number into a balance.
Source§

type MinVestedTransfer = MinVestedTransfer

The minimum amount transferred to call vested_transfer.
Source§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
Source§

type UnvestedFundsAllowedWithdrawReasons = UnvestedFundsAllowedWithdrawReasons

Reasons that determine under which conditions the balance may drop below the unvested amount.
Source§

type BlockNumberProvider = Pallet<Runtime>

Query the current block number. Read more
Source§

impl Config for Runtime

§Utility Config

Batch and other useful extrinsics

Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type RuntimeCall = RuntimeCall

The overarching call type.
Source§

type PalletsOrigin = OriginCaller

The caller origin, overarching type of all pallets origins.
Source§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
Source§

impl Config for Runtime

§Multisig Config

On-chain multi signature wallets

Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type RuntimeCall = RuntimeCall

The overarching call type.
Source§

type Currency = Pallet<Runtime>

The currency mechanism.
Source§

type DepositBase = DepositBase

The base amount of currency needed to reserve for creating a multisig execution or to store a dispatch call for later. Read more
Source§

type DepositFactor = DepositFactor

The amount of currency needed per unit threshold when creating a multisig execution. Read more
Source§

type MaxSignatories = ConstU32<100>

The maximum amount of signatories allowed in the multisig.
Source§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
Source§

type BlockNumberProvider = Pallet<Runtime>

Query the current block number. Read more
Source§

impl Config for Runtime

§Proxy Config

Allows to instantiate proxy wallets

Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type RuntimeCall = RuntimeCall

The overarching call type.
Source§

type Currency = Pallet<Runtime>

The currency mechanism.
Source§

type ProxyType = ProxyType

A kind of proxy; specified with the proxy and passed in to the IsProxyable filter. The instance filter determines whether a given call may be proxied under this type. Read more
Source§

type ProxyDepositBase = ProxyDepositBase

The base amount of currency needed to reserve for creating a proxy. Read more
Source§

type ProxyDepositFactor = ProxyDepositFactor

The amount of currency needed per proxy added. Read more
Source§

type MaxProxies = ConstU32<32>

The maximum amount of proxies allowed for a single account.
Source§

type WeightInfo = WeightInfo<Runtime>

Weight information for extrinsics in this pallet.
Source§

type MaxPending = ConstU32<32>

The maximum amount of time-delayed announcements that are allowed to be pending.
Source§

type CallHasher = BlakeTwo256

The type of hash used for hashing the call.
Source§

type AnnouncementDepositBase = AnnouncementDepositBase

The base amount of currency needed to reserve for creating an announcement. Read more
Source§

type AnnouncementDepositFactor = AnnouncementDepositFactor

The amount of currency needed per announcement made. Read more
Source§

type BlockNumberProvider = Pallet<Runtime>

Query the current block number. Read more
Source§

impl Config for Runtime

Source§

type RuntimeEvent = RuntimeEvent

The overarching runtime event type.
Source§

type PalletId = BridgeId

Identifier to use for pallet-owned wallets
Source§

type WeightInfo = WeightInfo<Runtime>

Weight information of the pallet
Source§

impl Config for Runtime

Source§

type RuntimeEvent = RuntimeEvent

Source§

type WeightInfo = WeightInfo<Runtime>

Source§

type Elections = Pallet<Runtime>

Source§

type Shards = Pallet<Runtime>

Source§

type AdminOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Ensured origin for calls to register/unregister members
Source§

type HeartbeatTimeout = ConstU32<300>

Source§

type MaxTimeoutsPerBlock = ConstU32<25>

Source§

impl Config for Runtime

Source§

type RuntimeEvent = RuntimeEvent

The runtime event type.
Source§

type WeightInfo = WeightInfo<Runtime>

The weight information for the pallet’s extrinsics.
Source§

type Members = Pallet<Runtime>

The storage interface for member-related data.
Source§

type Shards = Pallet<Runtime>

The interface for shard-related operations.
Source§

type Networks = Pallet<Runtime>

The networks interface for getting all networks
Source§

type MaxElectionsPerBlock = ConstU32<25>

Maximum number of shard elections per block
Source§

impl Config for Runtime

Source§

type RuntimeEvent = RuntimeEvent

Source§

type AdminOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Source§

type WeightInfo = WeightInfo<Runtime>

Source§

type Members = Pallet<Runtime>

Source§

type Elections = Pallet<Runtime>

Source§

type Tasks = Pallet<Runtime>

Source§

type DkgTimeout = ConstU32<10>

Source§

impl Config for Runtime

Source§

type RuntimeEvent = RuntimeEvent

Source§

type AdminOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Source§

type WeightInfo = WeightInfo<Runtime>

Source§

type Networks = Pallet<Runtime>

Source§

type Shards = Pallet<Runtime>

Source§

type MaxTasksPerBlock = ConstU32<50>

Maximum number of tasks scheduled per block in on_initialize
Source§

type MaxBatchesPerBlock = ConstU32<10>

Maximum number of batches started per block in on_initialize
Source§

impl Config for Runtime

Source§

type RuntimeEvent = RuntimeEvent

Source§

type WeightInfo = WeightInfo<Runtime>

Source§

type Currency = Pallet<Runtime>

Source§

type InitialRewardPoolAccount = InitialRewardPoolAccount

Source§

type InitialTimegraphAccount = InitialTimegraphAccount

Source§

type InitialThreshold = InitialThreshold

Source§

type AdminOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Source§

impl Config for Runtime

Source§

type RuntimeEvent = RuntimeEvent

Source§

type AdminOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>

Source§

type WeightInfo = WeightInfo<Runtime>

Source§

type Tasks = Pallet<Runtime>

Source§

impl Config for Runtime

§

fn prepare_set_code_data() -> Vec<u8>

Adds ability to the Runtime to test against their sample code. Read more
§

fn setup_set_code_requirements(_code: &Vec<u8>) -> Result<(), BenchmarkError>

Adds ability to the Runtime to prepare/initialize before running benchmark set_code.
§

fn verify_set_code()

Adds ability to the Runtime to do custom validation after benchmark. Read more
Source§

impl Config for Runtime

§Authorship Config

Tracks block authorship

Source§

type FindAuthor = FindAccountFromAuthorIndex<Runtime, Pallet<Runtime>>

Find the author of a block.
Source§

type EventHandler = (Pallet<Runtime>, Pallet<Runtime>)

An event handler for authored blocks.
Source§

impl Config for Runtime

Config

Tracks session keys

Source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
Source§

type ValidatorId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId

A stable ID for a validator.
Source§

type ValidatorIdOf = StashOf<Runtime>

A conversion from account ID to validator ID. Read more
Source§

type ShouldEndSession = Pallet<Runtime>

Indicator for when to end the session.
Source§

type NextSessionRotation = Pallet<Runtime>

Something that can predict the next session rotation. This should typically come from the same logical unit that provides [ShouldEndSession], yet, it gives a best effort estimate. It is helpful to implement [EstimateNextNewSession].
Source§

type SessionManager = NoteHistoricalRoot<Runtime, Pallet<Runtime>>

Handler for managing new session.
Source§

type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders

Handler when a session has changed.
Source§

type Keys = SessionKeys

The keys.
Source§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
Source§

type DisablingStrategy = UpToLimitDisablingStrategy

DisablingStragegy controls how validators are disabled
Source§

impl Config for Runtime

Config

Tracks historical session

Source§

type FullIdentification = Exposure<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128>

Full identification of the validator.
Source§

type FullIdentificationOf = ExposureOf<Runtime>

A conversion from validator ID to full identification. Read more
Source§

impl Config for Runtime

Config

babe block production

Source§

type EpochDuration = EpochDuration

The amount of time, in slots, that each epoch should last. NOTE: Currently it is not possible to change the epoch duration after the chain has started. Attempting to do so will brick block production.
Source§

type ExpectedBlockTime = ExpectedBlockTime

The expected average block time at which BABE should be creating blocks. Since BABE is probabilistic it is not trivial to figure out what the expected average block time should be based on the slot duration and the security parameter c (where 1 - c represents the probability of a slot being empty).
Source§

type EpochChangeTrigger = ExternalTrigger

BABE requires some logic to be triggered on every block to query for whether an epoch has ended and to perform the transition to the next epoch. Read more
Source§

type DisabledValidators = Pallet<Runtime>

A way to check whether a given validator is disabled and should not be authoring blocks. Blocks authored by a disabled validator will lead to a panic as part of this module’s initialization.
Source§

type WeightInfo = ()

Helper for weights computations
Source§

type MaxAuthorities = MaxAuthorities

Max number of authorities allowed
Source§

type MaxNominators = MaxNominators

The maximum number of nominators for each validator.
Source§

type KeyOwnerProof = MembershipProof

The proof of key ownership, used for validating equivocation reports. The proof must include the session index and validator count of the session at which the equivocation occurred.
Source§

type EquivocationReportSystem = EquivocationReportSystem<Runtime, Pallet<Runtime>, Pallet<Runtime>, ReportLongevity>

The equivocation handling subsystem, defines methods to check/report an offence and for submitting a transaction to report an equivocation (from an offchain context).
Source§

impl CoreV5<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

fn version() -> RuntimeVersion

Returns the version of the runtime.
Source§

fn execute_block(block: Block)

Execute the given block.
Source§

fn initialize_block( header: &<Block as BlockT>::Header, ) -> ExtrinsicInclusionMode

Initialize a block with the given header and return the runtime executive mode.
Source§

impl<LocalCall> CreateInherent<LocalCall> for Runtime
where RuntimeCall: From<LocalCall>,

Source§

impl<LocalCall> CreateSignedTransaction<LocalCall> for Runtime
where RuntimeCall: From<LocalCall>,

Source§

fn create_signed_transaction<C: AppCrypto<Self::Public, Self::Signature>>( call: RuntimeCall, public: <Signature as Verify>::Signer, account: AccountId, nonce: Nonce, ) -> Option<UncheckedExtrinsic>

Attempt to create signed extrinsic data that encodes call from given account. Read more
Source§

impl<LocalCall> CreateTransaction<LocalCall> for Runtime
where RuntimeCall: From<LocalCall>,

Source§

type Extension = (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>, PrevalidateFeeless<Runtime>)

The extension.
Source§

fn create_transaction( call: RuntimeCall, extension: RuntimeSignedExtra, ) -> UncheckedExtrinsic

Create a transaction using the call and the desired transaction extension.
Source§

impl<C> CreateTransactionBase<C> for Runtime
where RuntimeCall: From<C>,

Source§

type Extrinsic = UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>

The extrinsic.
Source§

type RuntimeCall = RuntimeCall

The runtime’s call type. Read more
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 GenesisBuilderV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

fn build_state(config: Vec<u8>) -> Result

Build RuntimeGenesisConfig from a JSON blob not using any defaults and store it in the storage. Read more
Source§

fn get_preset(id: &Option<PresetId>) -> Option<Vec<u8>>

Returns a JSON blob representation of the built-in RuntimeGenesisConfig identified by id. Read more
Source§

fn preset_names() -> Vec<PresetId>

Returns a list of identifiers for available builtin RuntimeGenesisConfig presets. Read more
Source§

impl GetRuntimeBlockType for Runtime

Source§

type RuntimeBlock = <Runtime as Config>::Block

The RuntimeBlock type.
Source§

impl GrandpaApiV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

fn grandpa_authorities() -> AuthorityList

Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed. Read more
Source§

fn current_set_id() -> SetId

Get current GRANDPA authority set id.
Source§

fn submit_report_equivocation_unsigned_extrinsic( equivocation_proof: EquivocationProof<<Block as BlockT>::Hash, NumberFor<Block>>, key_owner_proof: OpaqueKeyOwnershipProof, ) -> Option<()>

Submits an unsigned extrinsic to report an equivocation. The caller must provide the equivocation proof and a key ownership proof (should be obtained using generate_key_ownership_proof). The extrinsic will be unsigned and should only be accepted for local authorship (not to be broadcast to the network). This method returns None when creation of the extrinsic fails, e.g. if equivocation reporting is disabled for the given runtime (i.e. this method is hardcoded to return None). Only useful in an offchain context.
Source§

fn generate_key_ownership_proof( _set_id: SetId, authority_id: GrandpaId, ) -> Option<OpaqueKeyOwnershipProof>

Generates a proof of key ownership for the given authority in the given set. An example usage of this module is coupled with the session historical module to prove that a given authority key is tied to a given staking identity during a specific session. Proofs of key ownership are necessary for submitting equivocation reports. NOTE: even though the API takes a set_id as parameter the current implementations ignore this parameter and instead rely on this method being called at the correct block height, i.e. any point at which the given set id is live on-chain. Future implementations will instead use indexed data through an offchain worker, not requiring older states to be available.
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 MembersApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

impl MetadataV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

fn metadata() -> OpaqueMetadata

Returns the metadata of a runtime.
Source§

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

Returns the metadata at a given version. Read more
Source§

fn metadata_versions() -> Vec<u32>

Returns the supported metadata versions. Read more
Source§

impl MinerConfig for Runtime

Source§

type AccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId

The account id type.
Source§

type MaxLength = MinerMaxLength

Maximum length of the solution that the miner is allowed to generate. Read more
Source§

type MaxWeight = MinerMaxWeight

Maximum weight of the solution that the miner is allowed to generate. Read more
Source§

type Solution = NposSolution32

The solution that the miner is mining.
Source§

type MaxVotesPerVoter = <<Runtime as Config>::DataProvider as ElectionDataProvider>::MaxVotesPerVoter

Maximum number of votes per voter in the snapshots.
Source§

type MaxWinners = ConstU32<100>

The maximum number of winners that can be elected.
Source§

fn solution_weight(v: u32, t: u32, a: u32, d: u32) -> Weight

Something that can compute the weight of a solution. Read more
Source§

impl NetworksApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

impl NominationPoolsApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128> for Runtime

Source§

fn pending_rewards(member: AccountId) -> Balance

Returns the pending rewards for the member that the AccountId was given for.
Source§

fn points_to_balance(pool_id: PoolId, points: Balance) -> Balance

Returns the equivalent balance of points for a given pool.
Source§

fn balance_to_points(pool_id: PoolId, new_funds: Balance) -> Balance

Returns the equivalent points of new_funds for a given pool.
Source§

fn pool_pending_slash(pool_id: PoolId) -> Balance

Returns the pending slash for a given pool.
Source§

fn member_pending_slash(member: AccountId) -> Balance

Returns the pending slash for a given pool member. Read more
Source§

fn pool_needs_delegate_migration(pool_id: PoolId) -> bool

Returns true if the pool with pool_id needs migration. Read more
Source§

fn member_needs_delegate_migration(member: AccountId) -> bool

Returns true if the delegated funds of the pool member needs migration. Read more
Source§

fn member_total_balance(who: AccountId) -> Balance

Returns the total contribution of a pool member including any balance that is unbonding.
Source§

fn pool_balance(pool_id: PoolId) -> Balance

Total balance contributed to the pool.
Source§

fn pool_accounts(pool_id: PoolId) -> (AccountId, AccountId)

Returns the bonded account and reward account associated with the pool_id.
Source§

impl OffchainWorkerApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

fn offchain_worker(header: &<Block as BlockT>::Header)

Starts the off-chain task for given block header.
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 ReviveApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128, u32, u32> for Runtime

Source§

fn balance(address: H160) -> U256

Returns the free balance of the given [H160] address, using EVM decimals.
Source§

fn block_gas_limit() -> U256

Returns the block gas limit.
Source§

fn gas_price() -> U256

Returns the gas price.
Source§

fn nonce(address: H160) -> Nonce

Returns the nonce of the given [H160] address.
Source§

fn eth_transact( tx: GenericTransaction, ) -> Result<EthTransactInfo<Balance>, EthTransactError>

Perform an Ethereum call. Read more
Source§

fn call( origin: AccountId, dest: H160, value: Balance, gas_limit: Option<Weight>, storage_deposit_limit: Option<Balance>, input_data: Vec<u8>, ) -> ContractResult<ExecReturnValue, Balance>

Perform a call from a specified account to a given contract. Read more
Source§

fn instantiate( origin: AccountId, value: Balance, gas_limit: Option<Weight>, storage_deposit_limit: Option<Balance>, code: Code, data: Vec<u8>, salt: Option<[u8; 32]>, ) -> ContractResult<InstantiateReturnValue, Balance>

Instantiate a new contract. Read more
Source§

fn upload_code( origin: AccountId, code: Vec<u8>, storage_deposit_limit: Option<Balance>, ) -> CodeUploadResult<Balance>

Upload new code without instantiating a contract from it. Read more
Source§

fn get_storage(address: H160, key: [u8; 32]) -> GetStorageResult

Query a given storage key in a given contract. Read more
Source§

fn trace_block(block: Block, tracer_type: TracerType) -> Vec<(u32, Trace)>

Traces the execution of an entire block and returns call traces. Read more
Source§

fn trace_tx( block: Block, tx_index: u32, tracer_type: TracerType, ) -> Option<Trace>

Traces the execution of a specific transaction within a block. Read more
Source§

fn trace_call( tx: GenericTransaction, trace_type: TracerType, ) -> Result<Trace, EthTransactError>

Dry run and return the trace of the given call. Read more
Source§

impl SessionKeysV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

fn generate_session_keys(seed: Option<Vec<u8>>) -> Vec<u8>

Generate a set of session keys with optionally using the given seed. The keys should be stored within the keystore exposed via runtime externalities. Read more
Source§

fn decode_session_keys(encoded: Vec<u8>) -> Option<Vec<(Vec<u8>, KeyTypeId)>>

Decode the given public session keys. Read more
Source§

impl ShardsApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

impl SigningTypes for Runtime

Source§

type Public = <MultiSignature as Verify>::Signer

A public key that is capable of identifying AccountIds. Read more
Source§

type Signature = MultiSignature

A matching Signature type.
Source§

impl StakingApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>, u128, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId> for Runtime

Source§

fn nominations_quota(balance: Balance) -> u32

Returns the nominations quota for a nominator with a given balance.
Source§

fn eras_stakers_page_count(era: EraIndex, account: AccountId) -> Page

Returns the page count of exposures for a validator account in a given era.
Source§

fn pending_rewards(era: EraIndex, account: AccountId) -> bool

Returns true if validator account has pages to be claimed for the given era.
Source§

impl SubmitTransactionApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

fn submit_transaction(encoded_transaction: Vec<u8>) -> Result<(), ()>

Source§

impl TaggedTransactionQueueV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

fn validate_transaction( source: TransactionSource, tx: <Block as BlockT>::Extrinsic, block_hash: <Block as BlockT>::Hash, ) -> TransactionValidity

Validate the transaction. Read more
Source§

impl TasksApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

impl TransactionPaymentApiV4<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>, u128> for Runtime

Source§

fn query_info( uxt: <Block as BlockT>::Extrinsic, len: u32, ) -> RuntimeDispatchInfo<Balance>

Source§

fn query_fee_details( uxt: <Block as BlockT>::Extrinsic, len: u32, ) -> FeeDetails<Balance>

Source§

fn query_weight_to_fee(weight: Weight) -> Balance

Source§

fn query_length_to_fee(length: u32) -> Balance

Source§

impl TransactionPaymentCallApiV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>, u128, RuntimeCall> for Runtime

Source§

fn query_call_info(call: RuntimeCall, len: u32) -> RuntimeDispatchInfo<Balance>

Query information of a dispatch class, weight, and fee of a given encoded Call.
Source§

fn query_call_fee_details(call: RuntimeCall, len: u32) -> FeeDetails<Balance>

Query fee details of a given encoded Call.
Source§

fn query_weight_to_fee(weight: Weight) -> Balance

Query the output of the current WeightToFee given some input.
Source§

fn query_length_to_fee(length: u32) -> Balance

Query the output of the current LengthToFee given some input.
Source§

impl TryRuntimeV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, MultiSignature, EthExtraImpl>>> for Runtime

Source§

fn on_runtime_upgrade(checks: UpgradeCheckSelect) -> (Weight, Weight)

dry-run runtime upgrades, returning the total weight consumed. Read more
Source§

fn execute_block( block: Block, state_root_check: bool, signature_check: bool, select: TryStateSelect, ) -> Weight

Execute the given block, but optionally disable state-root and signature checks. Read more
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 Config for Runtime

Source§

impl Config for Runtime

Source§

impl Config for Runtime

Source§

impl Config for Runtime

Source§

impl Config for Runtime

Source§

impl Copy for Runtime

Source§

impl Eq for Runtime

Source§

impl StructuralPartialEq for Runtime

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

fn checked_from<T>(t: T) -> Option<Self>
where Self: TryFrom<T>,

Convert from a value of T into an equivalent instance of Option<Self>. Read more
§

fn checked_into<T>(self) -> Option<T>
where Self: TryInto<T>,

Consume self to return Some equivalent value of Option<T>. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> IdTupleConvert<T> for T
where T: Config + Config, <T as Config>::IdentificationTuple: From<(<T as Config>::ValidatorId, <T as Config>::FullIdentification)>,

§

fn convert( id: (<T as Config>::ValidatorId, <T as Config>::FullIdentification), ) -> <T as Config>::IdentificationTuple

Convert identification tuple from historical trait to the one expected by offences.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T, U> IntoKey<U> for T
where U: FromKey<T>,

§

fn into_key(self) -> U

§

impl<Src, Dest> IntoTuple<Dest> for Src
where Dest: FromTuple<Src>,

§

fn into_tuple(self) -> Dest

§

impl<T> IsType<T> for T

§

fn from_ref(t: &T) -> &T

Cast reference.
§

fn into_ref(&self) -> &T

Cast reference.
§

fn from_mut(t: &mut T) -> &mut T

Cast mutable reference.
§

fn into_mut(&mut self) -> &mut T

Cast mutable reference.
§

impl<T, Outer> IsWrappedBy<Outer> for T
where Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,

§

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

§

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> SaturatedConversion for T

§

fn saturated_from<T>(t: T) -> Self
where Self: UniqueSaturatedFrom<T>,

Convert from a value of T into an equivalent instance of Self. Read more
§

fn saturated_into<T>(self) -> T
where Self: UniqueSaturatedInto<T>,

Consume self to return an equivalent value of T. Read more
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

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

Checks if self is actually part of its subset T (and can be converted to it).
§

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

The inclusion map: converts self to the equivalent element of its superset.
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T, U> TryIntoKey<U> for T
where U: TryFromKey<T>,

§

type Error = <U as TryFromKey<T>>::Error

§

fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>

§

impl<S, T> UncheckedInto<T> for S
where T: UncheckedFrom<S>,

§

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
§

impl<T, S> UniqueSaturatedInto<T> for S
where T: Bounded, S: TryInto<T>,

§

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> JsonSchemaMaybe for T

§

impl<T> MaybeDebug for T
where T: Debug,

§

impl<T> MaybeRefUnwindSafe for T
where T: RefUnwindSafe,

§

impl<T> MaybeSend for T
where T: Send,

§

impl<T> Member for T
where T: Send + Sync + Debug + Eq + PartialEq + Clone + 'static,

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

§

impl<T> StaticTypeInfo for T
where T: TypeInfo + 'static,