mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 22:11:06 +00:00
Fix docs (#5928)
* Fix docs * Update frame/support/src/dispatch.rs Prettier link Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Update primitives/runtime/src/traits.rs Prettier link Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
//!
|
||||
//! ##### Renouncing candidacy.
|
||||
//!
|
||||
//! All candidates, elected or not, can renounce their candidacy. A call to [`renounce_candidacy`]
|
||||
//! All candidates, elected or not, can renounce their candidacy. A call to [`Module::renounce_candidacy`]
|
||||
//! will always cause the candidacy bond to be refunded.
|
||||
//!
|
||||
//! Note that with the members being the default candidates for the next round and votes persisting
|
||||
|
||||
@@ -144,12 +144,12 @@ use proc_macro::TokenStream;
|
||||
///
|
||||
/// * `#vis`: Set the visibility of the structure. `pub` or nothing.
|
||||
/// * `#name`: Name of the storage item, used as a prefix in storage.
|
||||
/// * [optional] `get(fn #getter)`: Implements the function #getter to `Module`.
|
||||
/// * [optional] `config(#field_name)`: `field_name` is optional if get is set.
|
||||
/// * \[optional\] `get(fn #getter)`: Implements the function #getter to `Module`.
|
||||
/// * \[optional\] `config(#field_name)`: `field_name` is optional if get is set.
|
||||
/// Will include the item in `GenesisConfig`.
|
||||
/// * [optional] `build(#closure)`: Closure called with storage overlays.
|
||||
/// * \[optional\] `build(#closure)`: Closure called with storage overlays.
|
||||
/// * `#type`: Storage type.
|
||||
/// * [optional] `#default`: Value returned when none.
|
||||
/// * \[optional\] `#default`: Value returned when none.
|
||||
///
|
||||
/// Storage items are accessible in multiple ways:
|
||||
///
|
||||
|
||||
@@ -106,7 +106,7 @@ impl<T> Parameter for T where T: Codec + EncodeLike + Clone + Eq + fmt::Debug {}
|
||||
/// ### Shorthand Example
|
||||
///
|
||||
/// The macro automatically expands a shorthand function declaration to return the
|
||||
/// [`DispatchResult`] type. These functions are the same:
|
||||
/// [`DispatchResult`](dispatch::DispatchResult) type. These functions are the same:
|
||||
///
|
||||
/// ```
|
||||
/// # #[macro_use]
|
||||
@@ -133,7 +133,7 @@ impl<T> Parameter for T where T: Codec + EncodeLike + Clone + Eq + fmt::Debug {}
|
||||
/// ### Consuming only portions of the annotated static weight
|
||||
///
|
||||
/// Per default a callable function consumes all of its static weight as declared via
|
||||
/// the #[weight] attribute. However, there are use cases where only a portion of this
|
||||
/// the #\[weight\] attribute. However, there are use cases where only a portion of this
|
||||
/// weight should be consumed. In that case the static weight is charged pre dispatch and
|
||||
/// the difference is refunded post dispatch.
|
||||
///
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
//! chance to be included by the transaction queue.
|
||||
//!
|
||||
//! Additionally, this module allows one to configure:
|
||||
//! - The mapping between one unit of weight to one unit of fee via [`WeightToFee`].
|
||||
//! - The mapping between one unit of weight to one unit of fee via [`Trait::WeightToFee`].
|
||||
//! - A means of updating the fee for the next block, via defining a multiplier, based on the
|
||||
//! final state of the chain at the end of the previous block. This can be configured via
|
||||
//! [`FeeMultiplierUpdate`]
|
||||
//! [`Trait::FeeMultiplierUpdate`]
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user