Expand description
Primitives that may be used at (bridges) runtime level.
Re-exports§
pub use sp_runtime::paste;
Modules§
- extensions
- Primitives that may be used for creating signed extensions for indirect runtimes.
- messages
- Primitives that may be used by different message delivery and dispatch mechanisms.
Macros§
- decl_
bridge_ finality_ runtime_ apis - Convenience macro that declares bridge finality runtime apis and related constants for a chain. This includes:
- decl_
bridge_ messages_ runtime_ apis - Convenience macro that declares bridge messages runtime apis and related constants for a chain. This includes:
- decl_
bridge_ runtime_ apis - 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
). - generate_
static_ str_ provider - A macro that generates
StaticStrProvider
with the string set to its stringified argument.
Structs§
- Bounded
Storage Value - A bounded runtime storage value.
- Header
Id - Generic header Id.
- Parachain
IdOf - Adapter for
Get<u32>
to accessPARACHAIN_ID
fromtrait Parachain
- PreComputed
Size - Pre-computed size.
- Storage
Proof Checker - 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 Mode - Basic operating modes for a bridges module (Normal/Halted).
- Encoded
OrDecoded Call - Chain call, that is either SCALE-encoded, or decoded.
- Owned
Bridge Module Error - Error generated by the
OwnedBridgeModule
trait. - Storage
Proof Error - Errors that can occur when interacting with
UnverifiedStorageProof
andVerifiedStorageProof
. - Transaction
Era - Era of specific transaction.
Constants§
- NO_
INSTANCE_ ID - Use this when something must be shared among all instances.
Traits§
- Chain
- Minimal Substrate-based chain representation that may be used from no_std environment.
- Header
IdProvider - Generic header id provider.
- Operating
Mode - Operating mode for a bridge module.
- Owned
Bridge Module - Bridge module that has owner and operating mode
- Parachain
- Minimal parachain representation that may be used from no_std environment.
- Range
Inclusive Ext - A trait defining helper methods for
RangeInclusive
(start..=end) - Size
- Anything that has size.
- Static
StrProvider - Trait that provides a static
str
. - Storage
Double MapKey Provider - Can be used to access the runtime storage key of a
StorageDoubleMap
. - Storage
MapKey Provider - Can be use to access the runtime storage key of a
StorageMap
. - Underlying
Chain Provider - A trait that provides the type of the underlying chain.
- Weight
Extra Ops - All extra operations with weights that we need in bridges.
Functions§
- craft_
valid_ storage_ proof - Return valid storage proof and state root.
- raw_
storage_ proof_ size - Calculates size for
RawStorageProof
. - storage_
map_ final_ key - This is a copy of the
frame_support::storage::generator::StorageMap::storage_map_final_key
for maps based on selected hasher. - storage_
value_ final_ key - Returns the storage prefix for a specific pallet name and storage name.
- storage_
value_ key - This is how a storage key of storage value is computed.
Type Aliases§
- Account
IdOf - Account id type used by the chain.
- Account
Public Of - Account public type used by the chain.
- Balance
Of - Balance type used by the chain.
- Block
Number Of - Block number used by the chain.
- ChainId
- Unique identifier of the chain.
- HashOf
- Hash type used by the chain.
- Hasher
Of - Hasher type used by the chain.
- Header
IdOf - Header id used by the chain.
- Header
Of - Header type used by the chain.
- NonceOf
- Transaction nonce type used by the chain.
- RawStorage
Proof - Raw storage proof type (just raw trie nodes).
- Signature
Of - Signature type used by the chain.
- Transaction
EraOf - Transaction era used by the chain.
- Underlying
Chain Of - Underlying chain type.