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:
+5
-5
@@ -26,7 +26,7 @@ use pezbridge_hub_pezkuwichain_runtime::{
|
||||
use codec::{Decode, Encode};
|
||||
use pezcumulus_primitives_core::XcmError::FailedToTransactAsset;
|
||||
use pezframe_support::parameter_types;
|
||||
use snowbridge_pezpallet_ethereum_client::WeightInfo;
|
||||
use pezsnowbridge_pezpallet_ethereum_client::WeightInfo;
|
||||
use pezsp_core::H160;
|
||||
use pezsp_keyring::Sr25519Keyring::Alice;
|
||||
use pezsp_runtime::{
|
||||
@@ -97,9 +97,9 @@ pub fn transfer_token_to_ethereum_insufficient_fund() {
|
||||
fn max_message_queue_service_weight_is_more_than_beacon_extrinsic_weights() {
|
||||
let max_message_queue_weight = MessageQueueServiceWeight::get();
|
||||
let force_checkpoint =
|
||||
<Runtime as snowbridge_pezpallet_ethereum_client::Config>::WeightInfo::force_checkpoint();
|
||||
<Runtime as pezsnowbridge_pezpallet_ethereum_client::Config>::WeightInfo::force_checkpoint();
|
||||
let submit_checkpoint =
|
||||
<Runtime as snowbridge_pezpallet_ethereum_client::Config>::WeightInfo::submit();
|
||||
<Runtime as pezsnowbridge_pezpallet_ethereum_client::Config>::WeightInfo::submit();
|
||||
max_message_queue_weight.all_gt(force_checkpoint);
|
||||
max_message_queue_weight.all_gt(submit_checkpoint);
|
||||
}
|
||||
@@ -123,7 +123,7 @@ fn ethereum_to_pezkuwi_message_extrinsics_work() {
|
||||
}
|
||||
|
||||
/// Tests that the digest items are as expected when a Ethereum Outbound message is received.
|
||||
/// If the MessageQueue pallet is configured before (i.e. the MessageQueue pallet is listed before
|
||||
/// If the MessageQueue pezpallet is configured before (i.e. the MessageQueue pezpallet is listed before
|
||||
/// the EthereumOutboundQueue in the construct_runtime macro) the EthereumOutboundQueue, this test
|
||||
/// will fail.
|
||||
#[test]
|
||||
@@ -163,7 +163,7 @@ fn construct_extrinsic(
|
||||
pezframe_system::CheckGenesis::<Runtime>::new(),
|
||||
pezframe_system::CheckEra::<Runtime>::from(Era::immortal()),
|
||||
pezframe_system::CheckNonce::<Runtime>::from(
|
||||
pezframe_system::Pallet::<Runtime>::account(&account_id).nonce,
|
||||
pezframe_system::Pezpallet::<Runtime>::account(&account_id).nonce,
|
||||
),
|
||||
pezframe_system::CheckWeight::<Runtime>::new(),
|
||||
),
|
||||
|
||||
@@ -60,7 +60,7 @@ fn construct_extrinsic(
|
||||
pezframe_system::CheckGenesis::<Runtime>::new(),
|
||||
pezframe_system::CheckEra::<Runtime>::from(Era::immortal()),
|
||||
pezframe_system::CheckNonce::<Runtime>::from(
|
||||
pezframe_system::Pallet::<Runtime>::account(&account_id).nonce,
|
||||
pezframe_system::Pezpallet::<Runtime>::account(&account_id).nonce,
|
||||
),
|
||||
pezframe_system::CheckWeight::<Runtime>::new(),
|
||||
),
|
||||
@@ -240,32 +240,32 @@ mod bridge_hub_zagros_tests {
|
||||
bp_bridge_hub_pezkuwichain::BRIDGE_HUB_PEZKUWICHAIN_TEYRCHAIN_ID,
|
||||
Governance::get(),
|
||||
vec![
|
||||
(snowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::hashed_key_for::<ChannelId>(
|
||||
(pezsnowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::hashed_key_for::<ChannelId>(
|
||||
channel_id_one,
|
||||
)
|
||||
.to_vec(), 0u64.encode()),
|
||||
(snowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::hashed_key_for::<ChannelId>(
|
||||
(pezsnowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::hashed_key_for::<ChannelId>(
|
||||
channel_id_one,
|
||||
)
|
||||
.to_vec(), 0u64.encode()),
|
||||
],
|
||||
|| {
|
||||
// Outbound
|
||||
snowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
pezsnowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
channel_id_one,
|
||||
nonce,
|
||||
);
|
||||
snowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
pezsnowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
channel_id_two,
|
||||
nonce,
|
||||
);
|
||||
|
||||
// Inbound
|
||||
snowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
pezsnowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
channel_id_one,
|
||||
nonce,
|
||||
);
|
||||
snowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
pezsnowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
channel_id_two,
|
||||
nonce,
|
||||
);
|
||||
@@ -273,21 +273,21 @@ mod bridge_hub_zagros_tests {
|
||||
|| {
|
||||
// Outbound
|
||||
assert_eq!(
|
||||
snowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::get(channel_id_one),
|
||||
pezsnowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::get(channel_id_one),
|
||||
0
|
||||
);
|
||||
assert_eq!(
|
||||
snowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::get(channel_id_two),
|
||||
pezsnowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::get(channel_id_two),
|
||||
nonce
|
||||
);
|
||||
|
||||
// Inbound
|
||||
assert_eq!(
|
||||
snowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::get(channel_id_one),
|
||||
pezsnowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::get(channel_id_one),
|
||||
0
|
||||
);
|
||||
assert_eq!(
|
||||
snowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::get(channel_id_two),
|
||||
pezsnowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::get(channel_id_two),
|
||||
nonce
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user