FAZ 1 Complete: Workspace compile fixes, warning cleanup, version bumps
- Fixed is_using_frame_crate() macro to check for pezframe/pezkuwi_sdk - Removed disable_pezframe_system_supertrait_check temporary bypasses - Feature-gated storage-benchmark and teyrchain-benchmarks code - Fixed dead_code warnings with underscore prefix (_Header) - Removed unused imports and shadowing use statements - Version bumps: procedural-tools 10.0.1, benchmarking-cli 32.0.1, docs 0.0.2, minimal-runtime 0.0.1, yet-another-teyrchain 0.6.1, umbrella 0.1.2 - Updated MAINNET_ROADMAP.md with FAZ 1 completion status
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#![cfg(feature = "runtime-benchmarks")]
|
||||
|
||||
use crate::*;
|
||||
use frame::{
|
||||
use pezframe::{
|
||||
benchmarking::prelude::v1::benchmarks_instance_pallet,
|
||||
deps::pezframe_support::traits::OnInitialize,
|
||||
};
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
//! Default weights for the MMR Pezpallet
|
||||
//! This file was not auto-generated.
|
||||
|
||||
use frame::{deps::pezframe_support::weights::constants::*, weights_prelude::*};
|
||||
use pezframe::{deps::pezframe_support::weights::constants::*, weights_prelude::*};
|
||||
|
||||
impl crate::WeightInfo for () {
|
||||
fn on_initialize(peaks: u32) -> Weight {
|
||||
|
||||
@@ -61,7 +61,7 @@ extern crate alloc;
|
||||
use alloc::vec::Vec;
|
||||
use log;
|
||||
|
||||
use frame::prelude::*;
|
||||
use pezframe::prelude::*;
|
||||
|
||||
pub use pezsp_mmr_primitives::{
|
||||
self as primitives, utils, utils::NodesUtils, AncestryProof, Error, FullLeaf, LeafDataProvider,
|
||||
@@ -144,7 +144,7 @@ pub(crate) type HashingOf<T, I> = <T as Config<I>>::Hashing;
|
||||
/// Hash type used for the pezpallet.
|
||||
pub(crate) type HashOf<T, I> = <<T as Config<I>>::Hashing as Hash>::Output;
|
||||
|
||||
#[frame::pezpallet]
|
||||
#[pezframe::pezpallet]
|
||||
pub mod pezpallet {
|
||||
use super::*;
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ use crate::{
|
||||
Config, HashOf, HashingOf,
|
||||
};
|
||||
use alloc::vec::Vec;
|
||||
use frame::prelude::*;
|
||||
use pezframe::prelude::*;
|
||||
|
||||
/// Stateless verification of the proof for a batch of leaves.
|
||||
/// Note, the leaves should be sorted such that corresponding leaves and leaf indices have the
|
||||
@@ -65,7 +65,7 @@ where
|
||||
|
||||
pub fn is_ancestry_proof_optimal<H>(ancestry_proof: &AncestryProof<H::Output>) -> bool
|
||||
where
|
||||
H: frame::traits::Hash,
|
||||
H: pezframe::traits::Hash,
|
||||
{
|
||||
let prev_mmr_size = NodesUtils::new(ancestry_proof.prev_leaf_count).size();
|
||||
let mmr_size = NodesUtils::new(ancestry_proof.leaf_count).size();
|
||||
|
||||
@@ -20,7 +20,7 @@ pub mod storage;
|
||||
|
||||
pub use self::mmr::{is_ancestry_proof_optimal, verify_ancestry_proof, verify_leaves_proof, Mmr};
|
||||
use crate::primitives::{mmr_lib, DataOrHash, FullLeaf};
|
||||
use frame::traits;
|
||||
use pezframe::traits;
|
||||
|
||||
/// Node type for runtime `T`.
|
||||
pub type NodeOf<T, I, L> = Node<<T as crate::Config<I>>::Hashing, L>;
|
||||
|
||||
@@ -25,7 +25,7 @@ use crate::{
|
||||
use alloc::{vec, vec::Vec};
|
||||
use codec::Encode;
|
||||
use core::iter::Peekable;
|
||||
use frame::{
|
||||
use pezframe::{
|
||||
deps::{
|
||||
pezsp_core::offchain::StorageKind,
|
||||
pezsp_io::{offchain, offchain_index},
|
||||
|
||||
@@ -23,7 +23,7 @@ use crate::{
|
||||
primitives::{Compact, LeafDataProvider},
|
||||
};
|
||||
use codec::{Decode, Encode};
|
||||
use frame::{
|
||||
use pezframe::{
|
||||
deps::pezframe_support::derive_impl,
|
||||
prelude::{pezframe_system, pezframe_system::config_preludes::TestDefaultConfig},
|
||||
testing_prelude::*,
|
||||
|
||||
@@ -19,7 +19,7 @@ use crate::{mock::*, *};
|
||||
|
||||
use crate::primitives::{mmr_lib::helper, utils, Compact, LeafProof};
|
||||
|
||||
use frame::{
|
||||
use pezframe::{
|
||||
deps::pezsp_core::{
|
||||
offchain::{testing::TestOffchainExt, OffchainDbExt, OffchainWorkerExt},
|
||||
H256,
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
#![allow(missing_docs)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
use frame::weights_prelude::*;
|
||||
use pezframe::weights_prelude::*;
|
||||
|
||||
/// Weight functions needed for `pezpallet_mmr`.
|
||||
pub trait WeightInfo {
|
||||
|
||||
Reference in New Issue
Block a user