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:
@@ -172,12 +172,12 @@ pub type Migrations = (
|
||||
bridge_common_config::BridgeRelayersInstance,
|
||||
bp_messages::LegacyLaneId,
|
||||
>,
|
||||
snowbridge_pezpallet_system::migration::v0::InitializeOnUpgrade<
|
||||
pezsnowbridge_pezpallet_system::migration::v0::InitializeOnUpgrade<
|
||||
Runtime,
|
||||
ConstU32<BRIDGE_HUB_ID>,
|
||||
ConstU32<ASSET_HUB_ID>,
|
||||
>,
|
||||
snowbridge_pezpallet_system::migration::FeePerGasMigrationV0ToV1<Runtime>,
|
||||
pezsnowbridge_pezpallet_system::migration::FeePerGasMigrationV0ToV1<Runtime>,
|
||||
bridge_to_ethereum_config::migrations::MigrationForXcmV5<Runtime>,
|
||||
pezpallet_session::migrations::v1::MigrateV0ToV1<
|
||||
Runtime,
|
||||
@@ -300,9 +300,9 @@ impl pezframe_system::Config for Runtime {
|
||||
type AccountData = pezpallet_balances::AccountData<Balance>;
|
||||
/// The weight of database operations that the runtime can invoke.
|
||||
type DbWeight = RocksDbWeight;
|
||||
/// Weight information for the extrinsics of this pallet.
|
||||
/// Weight information for the extrinsics of this pezpallet.
|
||||
type SystemWeightInfo = weights::pezframe_system::WeightInfo<Runtime>;
|
||||
/// Weight information for the transaction extensions of this pallet.
|
||||
/// Weight information for the transaction extensions of this pezpallet.
|
||||
type ExtensionsWeightInfo = weights::pezframe_system_extensions::WeightInfo<Runtime>;
|
||||
/// Block & extrinsics weights: base values and limits.
|
||||
type BlockWeights = RuntimeBlockWeights;
|
||||
@@ -381,7 +381,7 @@ impl pezcumulus_pezpallet_teyrchain_system::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pezpallet_teyrchain_system::WeightInfo<Runtime>;
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type OnSystemEvent = ();
|
||||
type SelfParaId = teyrchain_info::Pallet<Runtime>;
|
||||
type SelfParaId = teyrchain_info::Pezpallet<Runtime>;
|
||||
type OutboundXcmpMessageSource = XcmpQueue;
|
||||
type DmpQueue = pezframe_support::traits::EnqueueWithOrigin<MessageQueue, RelayOrigin>;
|
||||
type ReservedDmpWeight = ReservedDmpWeight;
|
||||
@@ -426,7 +426,7 @@ impl pezpallet_message_queue::Config for Runtime {
|
||||
EthereumOutboundQueueV2,
|
||||
>;
|
||||
type Size = u32;
|
||||
// The XCMP queue pallet is only ever able to handle the `Sibling(ParaId)` origin:
|
||||
// The XCMP queue pezpallet is only ever able to handle the `Sibling(ParaId)` origin:
|
||||
type QueueChangeHandler = NarrowOriginToSibling<XcmpQueue>;
|
||||
type QueuePausedQuery = NarrowOriginToSibling<XcmpQueue>;
|
||||
type HeapSize = pezsp_core::ConstU32<{ 103 * 1024 }>;
|
||||
@@ -542,7 +542,7 @@ impl pezpallet_multisig::Config for Runtime {
|
||||
type DepositFactor = DepositFactor;
|
||||
type MaxSignatories = ConstU32<100>;
|
||||
type WeightInfo = weights::pezpallet_multisig::WeightInfo<Runtime>;
|
||||
type BlockNumberProvider = pezframe_system::Pallet<Runtime>;
|
||||
type BlockNumberProvider = pezframe_system::Pezpallet<Runtime>;
|
||||
}
|
||||
|
||||
impl pezpallet_utility::Config for Runtime {
|
||||
@@ -590,14 +590,14 @@ construct_runtime!(
|
||||
BridgePezkuwichainMessages: pezpallet_bridge_messages::<Instance1> = 44,
|
||||
XcmOverBridgeHubPezkuwichain: pezpallet_xcm_bridge_hub::<Instance1> = 45,
|
||||
|
||||
EthereumInboundQueue: snowbridge_pezpallet_inbound_queue = 80,
|
||||
EthereumOutboundQueue: snowbridge_pezpallet_outbound_queue = 81,
|
||||
EthereumBeaconClient: snowbridge_pezpallet_ethereum_client = 82,
|
||||
EthereumSystem: snowbridge_pezpallet_system = 83,
|
||||
EthereumInboundQueue: pezsnowbridge_pezpallet_inbound_queue = 80,
|
||||
EthereumOutboundQueue: pezsnowbridge_pezpallet_outbound_queue = 81,
|
||||
EthereumBeaconClient: pezsnowbridge_pezpallet_ethereum_client = 82,
|
||||
EthereumSystem: pezsnowbridge_pezpallet_system = 83,
|
||||
|
||||
EthereumSystemV2: snowbridge_pezpallet_system_v2 = 90,
|
||||
EthereumInboundQueueV2: snowbridge_pezpallet_inbound_queue_v2 = 91,
|
||||
EthereumOutboundQueueV2: snowbridge_pezpallet_outbound_queue_v2 = 92,
|
||||
EthereumSystemV2: pezsnowbridge_pezpallet_system_v2 = 90,
|
||||
EthereumInboundQueueV2: pezsnowbridge_pezpallet_inbound_queue_v2 = 91,
|
||||
EthereumOutboundQueueV2: pezsnowbridge_pezpallet_outbound_queue_v2 = 92,
|
||||
|
||||
// Message Queue. Importantly, is registered last so that messages are processed after
|
||||
// the `on_initialize` hooks of bridging pallets.
|
||||
@@ -652,14 +652,14 @@ mod benches {
|
||||
[pezpallet_bridge_teyrchains, WithinPezkuwichain]
|
||||
[pezpallet_bridge_messages, ZagrosToPezkuwichain]
|
||||
// Ethereum Bridge V1
|
||||
[snowbridge_pezpallet_system, EthereumSystem]
|
||||
[snowbridge_pezpallet_ethereum_client, EthereumBeaconClient]
|
||||
[snowbridge_pezpallet_inbound_queue, EthereumInboundQueue]
|
||||
[snowbridge_pezpallet_outbound_queue, EthereumOutboundQueue]
|
||||
[pezsnowbridge_pezpallet_system, EthereumSystem]
|
||||
[pezsnowbridge_pezpallet_ethereum_client, EthereumBeaconClient]
|
||||
[pezsnowbridge_pezpallet_inbound_queue, EthereumInboundQueue]
|
||||
[pezsnowbridge_pezpallet_outbound_queue, EthereumOutboundQueue]
|
||||
// Ethereum Bridge V2
|
||||
[snowbridge_pezpallet_system_v2, EthereumSystemV2]
|
||||
[snowbridge_pezpallet_inbound_queue_v2, EthereumInboundQueueV2]
|
||||
[snowbridge_pezpallet_outbound_queue_v2, EthereumOutboundQueueV2]
|
||||
[pezsnowbridge_pezpallet_system_v2, EthereumSystemV2]
|
||||
[pezsnowbridge_pezpallet_inbound_queue_v2, EthereumInboundQueueV2]
|
||||
[pezsnowbridge_pezpallet_outbound_queue_v2, EthereumOutboundQueueV2]
|
||||
|
||||
[pezcumulus_pezpallet_weight_reclaim, WeightReclaim]
|
||||
);
|
||||
@@ -945,29 +945,29 @@ impl_runtime_apis! {
|
||||
|
||||
impl pezsnowbridge_outbound_queue_runtime_api::OutboundQueueApi<Block, Balance> for Runtime {
|
||||
fn prove_message(leaf_index: u64) -> Option<pezsnowbridge_merkle_tree::MerkleProof> {
|
||||
snowbridge_pezpallet_outbound_queue::api::prove_message::<Runtime>(leaf_index)
|
||||
pezsnowbridge_pezpallet_outbound_queue::api::prove_message::<Runtime>(leaf_index)
|
||||
}
|
||||
|
||||
fn calculate_fee(command: Command, parameters: Option<PricingParameters<Balance>>) -> Fee<Balance> {
|
||||
snowbridge_pezpallet_outbound_queue::api::calculate_fee::<Runtime>(command, parameters)
|
||||
pezsnowbridge_pezpallet_outbound_queue::api::calculate_fee::<Runtime>(command, parameters)
|
||||
}
|
||||
}
|
||||
|
||||
impl pezsnowbridge_outbound_queue_v2_runtime_api::OutboundQueueV2Api<Block, Balance> for Runtime {
|
||||
fn prove_message(leaf_index: u64) -> Option<pezsnowbridge_merkle_tree::MerkleProof> {
|
||||
snowbridge_pezpallet_outbound_queue_v2::api::prove_message::<Runtime>(leaf_index)
|
||||
pezsnowbridge_pezpallet_outbound_queue_v2::api::prove_message::<Runtime>(leaf_index)
|
||||
}
|
||||
}
|
||||
|
||||
impl pezsnowbridge_system_runtime_api::ControlApi<Block> for Runtime {
|
||||
fn agent_id(location: VersionedLocation) -> Option<AgentId> {
|
||||
snowbridge_pezpallet_system::api::agent_id::<Runtime>(location)
|
||||
pezsnowbridge_pezpallet_system::api::agent_id::<Runtime>(location)
|
||||
}
|
||||
}
|
||||
|
||||
impl pezsnowbridge_system_v2_runtime_api::ControlV2Api<Block> for Runtime {
|
||||
fn agent_id(location: VersionedLocation) -> Option<AgentId> {
|
||||
snowbridge_pezpallet_system_v2::api::agent_id::<Runtime>(location)
|
||||
pezsnowbridge_pezpallet_system_v2::api::agent_id::<Runtime>(location)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -998,22 +998,22 @@ impl_runtime_apis! {
|
||||
) {
|
||||
use pezframe_benchmarking::BenchmarkList;
|
||||
use pezframe_support::traits::StorageInfoTrait;
|
||||
use pezframe_system_benchmarking::Pallet as SystemBench;
|
||||
use pezframe_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
|
||||
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pezpallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
|
||||
use pezframe_system_benchmarking::Pezpallet as SystemBench;
|
||||
use pezframe_system_benchmarking::extensions::Pezpallet as SystemExtensionsBench;
|
||||
use pezcumulus_pezpallet_session_benchmarking::Pezpallet as SessionBench;
|
||||
use pezpallet_xcm::benchmarking::Pezpallet as PalletXcmExtrinsicsBenchmark;
|
||||
|
||||
// This is defined once again in dispatch_benchmark, because list_benchmarks!
|
||||
// and add_benchmarks! are macros exported by define_benchmarks! macros and those types
|
||||
// are referenced in that call.
|
||||
type XcmBalances = pezpallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
||||
type XcmGeneric = pezpallet_xcm_benchmarks::generic::Pallet::<Runtime>;
|
||||
type XcmBalances = pezpallet_xcm_benchmarks::fungible::Pezpallet::<Runtime>;
|
||||
type XcmGeneric = pezpallet_xcm_benchmarks::generic::Pezpallet::<Runtime>;
|
||||
|
||||
use pezpallet_bridge_relayers::benchmarking::Pallet as BridgeRelayersBench;
|
||||
use pezpallet_bridge_relayers::benchmarking::Pezpallet as BridgeRelayersBench;
|
||||
// Change weight file names.
|
||||
type PezkuwichainFinality = BridgePezkuwichainGrandpa;
|
||||
type WithinPezkuwichain = pezpallet_bridge_teyrchains::benchmarking::Pallet::<Runtime, bridge_to_pezkuwichain_config::BridgeTeyrchainPezkuwichainInstance>;
|
||||
type ZagrosToPezkuwichain = pezpallet_bridge_messages::benchmarking::Pallet ::<Runtime, bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance>;
|
||||
type WithinPezkuwichain = pezpallet_bridge_teyrchains::benchmarking::Pezpallet::<Runtime, bridge_to_pezkuwichain_config::BridgeTeyrchainPezkuwichainInstance>;
|
||||
type ZagrosToPezkuwichain = pezpallet_bridge_messages::benchmarking::Pezpallet ::<Runtime, bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance>;
|
||||
|
||||
let mut list = Vec::<BenchmarkList>::new();
|
||||
list_benchmarks!(list, extra);
|
||||
@@ -1029,8 +1029,8 @@ impl_runtime_apis! {
|
||||
use pezframe_benchmarking::{BenchmarkBatch, BenchmarkError};
|
||||
use pezsp_storage::TrackedStorageKey;
|
||||
|
||||
use pezframe_system_benchmarking::Pallet as SystemBench;
|
||||
use pezframe_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
|
||||
use pezframe_system_benchmarking::Pezpallet as SystemBench;
|
||||
use pezframe_system_benchmarking::extensions::Pezpallet as SystemExtensionsBench;
|
||||
impl pezframe_system_benchmarking::Config for Runtime {
|
||||
fn setup_set_code_requirements(code: &alloc::vec::Vec<u8>) -> Result<(), BenchmarkError> {
|
||||
TeyrchainSystem::initialize_for_set_code_benchmark(code.len() as u32);
|
||||
@@ -1042,7 +1042,7 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pezcumulus_pezpallet_session_benchmarking::Pezpallet as SessionBench;
|
||||
impl pezcumulus_pezpallet_session_benchmarking::Config for Runtime {}
|
||||
|
||||
use xcm::latest::prelude::*;
|
||||
@@ -1055,7 +1055,7 @@ impl_runtime_apis! {
|
||||
).into());
|
||||
}
|
||||
|
||||
use pezpallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
|
||||
use pezpallet_xcm::benchmarking::Pezpallet as PalletXcmExtrinsicsBenchmark;
|
||||
impl pezpallet_xcm::benchmarking::Config for Runtime {
|
||||
type DeliveryHelper = pezkuwi_runtime_common::xcm_sender::ToTeyrchainDeliveryHelper<
|
||||
xcm_config::XcmConfig,
|
||||
@@ -1270,12 +1270,12 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
type XcmBalances = pezpallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
||||
type XcmGeneric = pezpallet_xcm_benchmarks::generic::Pallet::<Runtime>;
|
||||
type XcmBalances = pezpallet_xcm_benchmarks::fungible::Pezpallet::<Runtime>;
|
||||
type XcmGeneric = pezpallet_xcm_benchmarks::generic::Pezpallet::<Runtime>;
|
||||
|
||||
type PezkuwichainFinality = BridgePezkuwichainGrandpa;
|
||||
type WithinPezkuwichain = pezpallet_bridge_teyrchains::benchmarking::Pallet::<Runtime, bridge_to_pezkuwichain_config::BridgeTeyrchainPezkuwichainInstance>;
|
||||
type ZagrosToPezkuwichain = pezpallet_bridge_messages::benchmarking::Pallet ::<Runtime, bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance>;
|
||||
type WithinPezkuwichain = pezpallet_bridge_teyrchains::benchmarking::Pezpallet::<Runtime, bridge_to_pezkuwichain_config::BridgeTeyrchainPezkuwichainInstance>;
|
||||
type ZagrosToPezkuwichain = pezpallet_bridge_messages::benchmarking::Pezpallet ::<Runtime, bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance>;
|
||||
|
||||
use pezbridge_runtime_common::messages_benchmarking::{
|
||||
prepare_message_delivery_proof_from_teyrchain,
|
||||
@@ -1293,7 +1293,7 @@ impl_runtime_apis! {
|
||||
let bench_lane_id = <Self as BridgeMessagesConfig<bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance>>::bench_lane_id();
|
||||
use pezbp_runtime::Chain;
|
||||
let bridged_chain_id =<Self as pezpallet_bridge_messages::Config<bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance>>::BridgedChain::ID;
|
||||
pezpallet_bridge_relayers::Pallet::<Runtime, bridge_common_config::BridgeRelayersInstance>::relayer_reward(
|
||||
pezpallet_bridge_relayers::Pezpallet::<Runtime, bridge_common_config::BridgeRelayersInstance>::relayer_reward(
|
||||
relayer,
|
||||
bridge_common_config::BridgeReward::PezkuwichainZagros(
|
||||
bp_relayers::RewardsAccountParams::new(
|
||||
@@ -1347,7 +1347,7 @@ impl_runtime_apis! {
|
||||
use pezbridge_runtime_common::teyrchains_benchmarking::prepare_teyrchain_heads_proof;
|
||||
use pezpallet_bridge_teyrchains::benchmarking::Config as BridgeTeyrchainsConfig;
|
||||
use pezpallet_bridge_relayers::benchmarking::{
|
||||
Pallet as BridgeRelayersBench,
|
||||
Pezpallet as BridgeRelayersBench,
|
||||
Config as BridgeRelayersConfig,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user