snapshot before rebranding
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
//! Aura-related primitives for pezcumulus teyrchain collators.
|
||||
|
||||
use codec::Codec;
|
||||
use cumulus_primitives_aura::AuraUnincludedSegmentApi;
|
||||
use pezcumulus_primitives_aura::AuraUnincludedSegmentApi;
|
||||
use pezsp_consensus_aura::AuraApi;
|
||||
use pezsp_runtime::{
|
||||
app_crypto::{AppCrypto, AppPair, AppSignature, Pair},
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
use crate::common::spec::BaseNodeSpec;
|
||||
use cumulus_client_cli::ExportGenesisHeadCommand;
|
||||
use pezcumulus_client_cli::ExportGenesisHeadCommand;
|
||||
use pezframe_benchmarking_cli::BlockCmd;
|
||||
#[cfg(any(feature = "runtime-benchmarks"))]
|
||||
use pezframe_benchmarking_cli::StorageCmd;
|
||||
|
||||
@@ -29,7 +29,7 @@ pub mod types;
|
||||
|
||||
use crate::cli::AuthoringPolicy;
|
||||
|
||||
use cumulus_primitives_core::{CollectCollationInfo, GetTeyrchainInfo, RelayParentOffsetApi};
|
||||
use pezcumulus_primitives_core::{CollectCollationInfo, GetTeyrchainInfo, RelayParentOffsetApi};
|
||||
use pezsc_client_db::DbHash;
|
||||
use pezsc_offchain::OffchainWorkerApi;
|
||||
use serde::de::DeserializeOwned;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
//! Runtime parameters.
|
||||
|
||||
use codec::Decode;
|
||||
use cumulus_client_service::TeyrchainHostFunctions;
|
||||
use pezcumulus_client_service::TeyrchainHostFunctions;
|
||||
use pezsc_chain_spec::ChainSpec;
|
||||
use pezsc_executor::WasmExecutor;
|
||||
use pezsc_runtime_utilities::fetch_latest_metadata_from_code_blob;
|
||||
@@ -121,7 +121,7 @@ impl RuntimeResolver for DefaultRuntimeResolver {
|
||||
},
|
||||
};
|
||||
|
||||
if !metadata_inspector.pezpallet_exists(DEFAULT_TEYRCHAIN_SYSTEM_PALLET_NAME) {
|
||||
if !metadata_inspector.pallet_exists(DEFAULT_TEYRCHAIN_SYSTEM_PALLET_NAME) {
|
||||
log::warn!(
|
||||
r#"⚠️ The teyrchain system pallet (https://docs.rs/crate/pezcumulus-pezpallet-parachain-system/latest) is
|
||||
missing from the runtime’s metadata. Please check Omni Node docs for runtime conventions:
|
||||
@@ -141,11 +141,11 @@ impl MetadataInspector {
|
||||
}
|
||||
|
||||
fn pezpallet_exists(&self, name: &str) -> bool {
|
||||
self.0.pezpallet_by_name(name).is_some()
|
||||
self.0.pallet_by_name(name).is_some()
|
||||
}
|
||||
|
||||
fn block_number(&self) -> Option<BlockNumber> {
|
||||
let pezpallet_metadata = self.0.pezpallet_by_name(DEFAULT_FRAME_SYSTEM_PALLET_NAME);
|
||||
let pezpallet_metadata = self.0.pallet_by_name(DEFAULT_FRAME_SYSTEM_PALLET_NAME);
|
||||
pezpallet_metadata
|
||||
.and_then(|inner| inner.storage())
|
||||
.and_then(|inner| inner.entry_by_name("Number"))
|
||||
@@ -182,16 +182,16 @@ mod tests {
|
||||
DEFAULT_TEYRCHAIN_SYSTEM_PALLET_NAME,
|
||||
};
|
||||
use codec::Decode;
|
||||
use cumulus_client_service::TeyrchainHostFunctions;
|
||||
use pezcumulus_client_service::TeyrchainHostFunctions;
|
||||
use pezsc_executor::WasmExecutor;
|
||||
use pezsc_runtime_utilities::fetch_latest_metadata_from_code_blob;
|
||||
|
||||
fn cumulus_test_runtime_metadata() -> subxt_metadata::Metadata {
|
||||
fn pezcumulus_test_runtime_metadata() -> subxt_metadata::Metadata {
|
||||
let opaque_metadata = fetch_latest_metadata_from_code_blob(
|
||||
&WasmExecutor::<TeyrchainHostFunctions>::builder()
|
||||
.with_allow_missing_host_functions(true)
|
||||
.build(),
|
||||
pezsp_runtime::Cow::Borrowed(cumulus_test_runtime::WASM_BINARY.unwrap()),
|
||||
pezsp_runtime::Cow::Borrowed(pezcumulus_test_runtime::WASM_BINARY.unwrap()),
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
@@ -200,14 +200,14 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_pallet_exists() {
|
||||
let metadata_inspector = MetadataInspector(cumulus_test_runtime_metadata());
|
||||
assert!(metadata_inspector.pezpallet_exists(DEFAULT_TEYRCHAIN_SYSTEM_PALLET_NAME));
|
||||
assert!(metadata_inspector.pezpallet_exists(DEFAULT_FRAME_SYSTEM_PALLET_NAME));
|
||||
let metadata_inspector = MetadataInspector(pezcumulus_test_runtime_metadata());
|
||||
assert!(metadata_inspector.pallet_exists(DEFAULT_TEYRCHAIN_SYSTEM_PALLET_NAME));
|
||||
assert!(metadata_inspector.pallet_exists(DEFAULT_FRAME_SYSTEM_PALLET_NAME));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_runtime_block_number() {
|
||||
let metadata_inspector = MetadataInspector(cumulus_test_runtime_metadata());
|
||||
let metadata_inspector = MetadataInspector(pezcumulus_test_runtime_metadata());
|
||||
assert_eq!(metadata_inspector.block_number().unwrap(), BlockNumber::U32);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,15 +29,15 @@ use crate::{
|
||||
},
|
||||
};
|
||||
use codec::Encode;
|
||||
use cumulus_client_bootnodes::{start_bootnode_tasks, StartBootnodeTasksParams};
|
||||
use cumulus_client_cli::CollatorOptions;
|
||||
use cumulus_client_service::{
|
||||
use pezcumulus_client_bootnodes::{start_bootnode_tasks, StartBootnodeTasksParams};
|
||||
use pezcumulus_client_cli::CollatorOptions;
|
||||
use pezcumulus_client_service::{
|
||||
build_network, build_relay_chain_interface, prepare_node_config, start_relay_chain_tasks,
|
||||
BuildNetworkParams, CollatorSybilResistance, DARecoveryProfile, StartRelayChainTasksParams,
|
||||
TeyrchainTracingExecuteBlock,
|
||||
};
|
||||
use cumulus_primitives_core::{BlockT, GetTeyrchainInfo, ParaId};
|
||||
use cumulus_relay_chain_interface::{OverseerHandle, RelayChainInterface};
|
||||
use pezcumulus_primitives_core::{BlockT, GetTeyrchainInfo, ParaId};
|
||||
use pezcumulus_relay_chain_interface::{OverseerHandle, RelayChainInterface};
|
||||
use futures::FutureExt;
|
||||
use log::info;
|
||||
use pezkuwi_primitives::CollatorPair;
|
||||
@@ -175,7 +175,7 @@ pub(crate) trait BaseNodeSpec {
|
||||
.teyrchain_id(best_hash)
|
||||
.inspect_err(|err| {
|
||||
log::error!(
|
||||
"`cumulus_primitives_core::GetTeyrchainInfo` runtime API call errored with {}",
|
||||
"`pezcumulus_primitives_core::GetTeyrchainInfo` runtime API call errored with {}",
|
||||
err
|
||||
);
|
||||
})
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use cumulus_client_consensus_common::TeyrchainBlockImport as TTeyrchainBlockImport;
|
||||
use cumulus_primitives_core::relay_chain::UncheckedExtrinsic;
|
||||
use pezcumulus_client_consensus_common::TeyrchainBlockImport as TTeyrchainBlockImport;
|
||||
use pezcumulus_primitives_core::relay_chain::UncheckedExtrinsic;
|
||||
use pezsc_consensus::DefaultImportQueue;
|
||||
use pezsc_executor::WasmExecutor;
|
||||
use pezsc_service::{PartialComponents, TFullBackend, TFullClient};
|
||||
@@ -30,12 +30,12 @@ pub type Block<BlockNumber> = generic::Block<Header<BlockNumber>, UncheckedExtri
|
||||
|
||||
#[cfg(not(feature = "runtime-benchmarks"))]
|
||||
pub type TeyrchainHostFunctions = (
|
||||
cumulus_client_service::TeyrchainHostFunctions,
|
||||
pezcumulus_client_service::TeyrchainHostFunctions,
|
||||
pezsp_statement_store::runtime_api::HostFunctions,
|
||||
);
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
pub type TeyrchainHostFunctions = (
|
||||
cumulus_client_service::TeyrchainHostFunctions,
|
||||
pezcumulus_client_service::TeyrchainHostFunctions,
|
||||
pezsp_statement_store::runtime_api::HostFunctions,
|
||||
pezframe_benchmarking::benchmarking::HostFunctions,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user