fix: Complete snowbridge pezpallet rebrand and critical bug fixes
- snowbridge-pezpallet-* → pezsnowbridge-pezpallet-* (201 refs) - pallet/ directories → pezpallet/ (4 locations) - Fixed pezpallet.rs self-include recursion bug - Fixed sc-chain-spec hardcoded crate name in derive macro - Reverted .pezpallet_by_name() to .pallet_by_name() (subxt API) - Added BizinikiwiConfig type alias for zombienet tests - Deleted obsolete session state files Verified: pezsnowbridge-pezpallet-*, pezpallet-staking, pezpallet-staking-async, pezframe-benchmarking-cli all pass cargo check
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Benchmarks for Verify Signature Pallet
|
||||
//! Benchmarks for Verify Signature Pezpallet
|
||||
|
||||
#![cfg(feature = "runtime-benchmarks")]
|
||||
|
||||
@@ -24,7 +24,7 @@ extern crate alloc;
|
||||
use super::*;
|
||||
|
||||
#[allow(unused)]
|
||||
use crate::{extension::VerifySignature, Config, Pallet as VerifySignaturePallet};
|
||||
use crate::{extension::VerifySignature, Config, Pezpallet as VerifySignaturePallet};
|
||||
use alloc::vec;
|
||||
use pezframe_benchmarking::{v2::*, BenchmarkError};
|
||||
use pezframe_support::{
|
||||
@@ -90,5 +90,5 @@ mod benchmarks {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
impl_benchmark_test_suite!(Pallet, crate::tests::new_test_ext(), crate::tests::Test);
|
||||
impl_benchmark_test_suite!(Pezpallet, crate::tests::new_test_ext(), crate::tests::Test);
|
||||
}
|
||||
|
||||
@@ -37,29 +37,29 @@ pub use extension::VerifySignature;
|
||||
use pezframe_support::Parameter;
|
||||
pub use weights::WeightInfo;
|
||||
|
||||
pub use pallet::*;
|
||||
pub use pezpallet::*;
|
||||
|
||||
#[pezframe_support::pallet]
|
||||
pub mod pallet {
|
||||
#[pezframe_support::pezpallet]
|
||||
pub mod pezpallet {
|
||||
use super::*;
|
||||
use pezsp_runtime::traits::{IdentifyAccount, Verify};
|
||||
|
||||
#[pallet::pallet]
|
||||
pub struct Pallet<T>(_);
|
||||
#[pezpallet::pezpallet]
|
||||
pub struct Pezpallet<T>(_);
|
||||
|
||||
/// Configuration trait.
|
||||
#[pallet::config]
|
||||
#[pezpallet::config]
|
||||
pub trait Config: pezframe_system::Config {
|
||||
/// Signature type that the extension of this pallet can verify.
|
||||
/// Signature type that the extension of this pezpallet can verify.
|
||||
type Signature: Verify<Signer = Self::AccountIdentifier>
|
||||
+ Parameter
|
||||
+ Encode
|
||||
+ Decode
|
||||
+ Send
|
||||
+ Sync;
|
||||
/// The account identifier used by this pallet's signature type.
|
||||
/// The account identifier used by this pezpallet's signature type.
|
||||
type AccountIdentifier: IdentifyAccount<AccountId = Self::AccountId>;
|
||||
/// Weight information for extrinsics in this pallet.
|
||||
/// Weight information for extrinsics in this pezpallet.
|
||||
type WeightInfo: WeightInfo;
|
||||
/// Helper to create a signature to be benchmarked.
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// Tests for Utility Pallet
|
||||
// Tests for Utility Pezpallet
|
||||
|
||||
#![cfg(test)]
|
||||
|
||||
|
||||
@@ -44,10 +44,10 @@
|
||||
// frame-omni-bencher
|
||||
// v1
|
||||
// benchmark
|
||||
// pallet
|
||||
// pezpallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/pez-kitchensink-runtime/pez_kitchensink_runtime.wasm
|
||||
// --pallet=pezpallet_verify_signature
|
||||
// --pezpallet=pezpallet_verify_signature
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/bizinikiwi/HEADER-APACHE2
|
||||
// --output=/__w/pezkuwi-sdk/pezkuwi-sdk/bizinikiwi/pezframe/verify-signature/src/weights.rs
|
||||
// --wasm-execution=compiled
|
||||
|
||||
Reference in New Issue
Block a user