Crate bp_runtime
source ·Expand description
Primitives that may be used at (bridges) runtime level.
Re-exports
pub use sp_runtime::paste;
Modules
- Primitives that may be used for creating signed extensions for indirect runtimes.
- Primitives that may be used by different message delivery and dispatch mechanisms.
Macros
- Convenience macro that declares bridge finality runtime apis and related constants for a chain. This includes:
- Convenience macro that declares bridge messages runtime apis and related constants for a chain. This includes:
- Convenience macro that declares bridge finality runtime apis, bridge messages runtime apis and related constants for a chain. The name of the chain has to be specified in snake case (e.g.
rialto_parachain
).
Structs
- A bounded runtime storage value.
- Generic header Id.
- Adapter for
Get<u32>
to accessPARACHAIN_ID
fromtrait Parachain
- Pre-computed size.
- This struct is used to read storage values from a subset of a Merklized database. The “proof” is a subset of the nodes in the Merkle structure of the database, so that it provides authentication against a known Merkle root as well as the values in the database themselves.
Enums
- Basic operating modes for a bridges module (Normal/Halted).
- Chain call, that is either SCALE-encoded, or decoded.
- Error generated by the
OwnedBridgeModule
trait. - Storage proof related errors.
- Storage proof size requirements.
- Era of specific transaction.
Constants
- AssetHubWestend chain id.
- BridgeHubKusama chain id.
- BridgeHubPolkadot chain id.
- BridgeHubRococo chain id.
- BridgeHubWococo chain id.
- Kusama chain id.
- Millau chain id.
- Use this when something must be shared among all instances.
- Polkadot chain id.
- Rialto chain id.
- RialtoParachain chain id.
- Rococo chain id.
- Westend chain id.
- Wococo chain id.
Traits
- Minimal Substrate-based chain representation that may be used from no_std environment.
- Generic header id provider.
- Operating mode for a bridge module.
- Bridge module that has owner and operating mode
- Minimal parachain representation that may be used from no_std environment.
- A trait defining helper methods for
RangeInclusive
(start..=end) - Anything that has size.
- Trait that provides a static
str
. - Can be use to access the runtime storage key of a
StorageDoubleMap
. - Can be use to access the runtime storage key of a
StorageMap
. - A trait that provides the type of the underlying chain.
- All extra operations with weights that we need in bridges.
Functions
- Return valid storage proof and state root.
- Record all keys for a given root.
- This is a copy of the
frame_support::storage::generator::StorageMap::storage_map_final_key
for maps based on selected hasher. - This is how a storage key of storage parameter (
parameter_types! { storage Param: bool = false; }
) is computed. - Returns the storage prefix for a specific pallet name and storage name.
- This is how a storage key of storage value is computed.
Type Definitions
- Account id type used by the chain.
- Account public type used by the chain.
- Balance type used by the chain.
- Block number used by the chain.
- Unique identifier of the chain.
- Hash type used by the chain.
- Hasher type used by the chain.
- Header id used by the chain.
- Header type used by the chain.
- Transaction nonce type used by the chain.
- Raw storage proof type (just raw trie nodes).
- Signature type used by the chain.
- Transaction era used by the chain.
- Underlying chain type.