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.
bridge_hub_polkadot
). - A macro that generates
StaticStrProvider
with the string set to its stringified argument.
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.
- Storage values size requirements.
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. - Errors that can occur when interacting with
UnverifiedStorageProof
andVerifiedStorageProof
. - Era of specific transaction.
Constants§
- Use this when something must be shared among all instances.
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 used 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.
- Insert values in the provided trie at common-prefix keys in order to inflate the resulting storage proof.
- Add extra data to the storage value so that it’ll be of given size.
- Calculates size for
RawStorageProof
. - 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. - Returns the storage prefix for a specific pallet name and storage name.
- This is how a storage key of storage value is computed.
Type Aliases§
- 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.