Refactoring Checkpoint: (WIP)

This commit is contained in:
2025-12-14 10:29:31 +03:00
parent 09735eb97a
commit c89d7cac55
1424 changed files with 6415 additions and 6064 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
[package]
name = "bp-runtime"
name = "pezbp-runtime"
description = "Primitives that may be used at (bridges) runtime level."
version = "0.7.0"
authors.workspace = true
edition.workspace = true
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
repository.workspace = true
documentation = "https://docs.rs/bp-runtime"
documentation = "https://docs.rs/pezbp-runtime"
homepage = { workspace = true }
[lints]
+6 -6
View File
@@ -312,7 +312,7 @@ pub type TransactionEraOf<C> = crate::TransactionEra<BlockNumberOf<C>, HashOf<C>
#[macro_export]
macro_rules! decl_bridge_finality_runtime_apis {
($chain: ident $(, $consensus: ident => $justification_type: ty)?) => {
bp_runtime::paste::item! {
pezbp_runtime::paste::item! {
mod [<$chain _finality_api>] {
use super::*;
@@ -339,7 +339,7 @@ macro_rules! decl_bridge_finality_runtime_apis {
/// chain's runtime itself.
pub trait [<$chain:camel FinalityApi>] {
/// Returns number and hash of the best finalized header known to the bridge module.
fn best_finalized() -> Option<bp_runtime::HeaderId<Hash, BlockNumber>>;
fn best_finalized() -> Option<pezbp_runtime::HeaderId<Hash, BlockNumber>>;
/// Returns free headers interval, if it is configured in the runtime.
/// The caller expects that if his transaction improves best known header
@@ -361,7 +361,7 @@ macro_rules! decl_bridge_finality_runtime_apis {
}
};
($chain: ident, grandpa) => {
decl_bridge_finality_runtime_apis!($chain, grandpa => bp_header_chain::StoredHeaderGrandpaInfo<Header>);
decl_bridge_finality_runtime_apis!($chain, grandpa => bp_header_pez_chain::StoredHeaderGrandpaInfo<Header>);
};
}
@@ -382,7 +382,7 @@ pub mod __private {
#[macro_export]
macro_rules! decl_bridge_messages_runtime_apis {
($chain: ident, $lane_id_type:ty) => {
bp_runtime::paste::item! {
pezbp_runtime::paste::item! {
mod [<$chain _messages_api>] {
use super::*;
@@ -440,7 +440,7 @@ macro_rules! decl_bridge_messages_runtime_apis {
#[macro_export]
macro_rules! decl_bridge_runtime_apis {
($chain: ident $(, $consensus: ident, $lane_id_type:ident)?) => {
bp_runtime::decl_bridge_finality_runtime_apis!($chain $(, $consensus)?);
bp_runtime::decl_bridge_messages_runtime_apis!($chain, $lane_id_type);
pezbp_runtime::decl_bridge_finality_runtime_apis!($chain $(, $consensus)?);
pezbp_runtime::decl_bridge_messages_runtime_apis!($chain, $lane_id_type);
};
}