feat: Rebrand Polkadot/Substrate references to PezkuwiChain
This commit systematically rebrands various references from Parity Technologies' Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk. Key changes include: - Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks. - Modified internal documentation and code comments to reflect PezkuwiChain naming and structure. - Replaced direct references to with or specific paths within the for XCM, Pezkuwi, and other modules. - Cleaned up deprecated issue and PR references in various and files, particularly in and modules. - Adjusted image and logo URLs in documentation to point to PezkuwiChain assets. - Removed or rephrased comments related to external Polkadot/Substrate PRs and issues. This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
This commit is contained in:
@@ -2,16 +2,16 @@
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
|
||||
use codec::Encode;
|
||||
use frame_support::{
|
||||
use pezframe_support::{
|
||||
assert_err, assert_ok,
|
||||
traits::{fungible::Mutate, OnFinalize, OnInitialize},
|
||||
};
|
||||
use frame_system::pallet_prelude::BlockNumberFor;
|
||||
use pezframe_system::pezpallet_prelude::BlockNumberFor;
|
||||
use snowbridge_core::{ChannelId, ParaId};
|
||||
use snowbridge_pallet_ethereum_client_fixtures::*;
|
||||
use sp_core::{Get, H160, U256};
|
||||
use sp_keyring::Sr25519Keyring::*;
|
||||
use sp_runtime::{traits::Header, AccountId32, DigestItem, SaturatedConversion, Saturating};
|
||||
use pezsp_core::{Get, H160, U256};
|
||||
use pezsp_keyring::Sr25519Keyring::*;
|
||||
use pezsp_runtime::{traits::Header, AccountId32, DigestItem, SaturatedConversion, Saturating};
|
||||
use teyrchains_runtimes_test_utils::{
|
||||
AccountIdOf, BalanceOf, CollatorSessionKeys, ExtBuilder, ValidatorIdOf, XcmReceivedFrom,
|
||||
};
|
||||
@@ -23,12 +23,12 @@ type RuntimeHelper<Runtime, AllPalletsWithoutSystem = ()> =
|
||||
|
||||
pub fn initial_fund<Runtime>(assethub_teyrchain_id: u32, initial_amount: u128)
|
||||
where
|
||||
Runtime: frame_system::Config + pallet_balances::Config,
|
||||
Runtime: pezframe_system::Config + pezpallet_balances::Config,
|
||||
{
|
||||
// fund asset hub sovereign account enough so it can pay fees
|
||||
let asset_hub_sovereign_account =
|
||||
snowbridge_core::sibling_sovereign_account::<Runtime>(assethub_teyrchain_id.into());
|
||||
<pallet_balances::Pallet<Runtime>>::mint_into(
|
||||
<pezpallet_balances::Pallet<Runtime>>::mint_into(
|
||||
&asset_hub_sovereign_account,
|
||||
initial_amount.saturated_into::<BalanceOf<Runtime>>(),
|
||||
)
|
||||
@@ -43,15 +43,15 @@ pub fn send_transfer_token_message<Runtime, XcmConfig>(
|
||||
fee_amount: u128,
|
||||
) -> Outcome
|
||||
where
|
||||
Runtime: frame_system::Config
|
||||
+ pallet_balances::Config
|
||||
+ pallet_session::Config
|
||||
+ pallet_xcm::Config
|
||||
Runtime: pezframe_system::Config
|
||||
+ pezpallet_balances::Config
|
||||
+ pezpallet_session::Config
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pallet_collator_selection::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ snowbridge_pallet_outbound_queue::Config
|
||||
+ pallet_timestamp::Config,
|
||||
+ pezpallet_timestamp::Config,
|
||||
XcmConfig: xcm_executor::Config,
|
||||
{
|
||||
let assethub_teyrchain_location = Location::new(1, Teyrchain(assethub_teyrchain_id));
|
||||
@@ -93,7 +93,7 @@ where
|
||||
]);
|
||||
|
||||
// execute XCM
|
||||
let mut hash = xcm.using_encoded(sp_io::hashing::blake2_256);
|
||||
let mut hash = xcm.using_encoded(pezsp_io::hashing::blake2_256);
|
||||
XcmExecutor::<XcmConfig>::prepare_and_execute(
|
||||
assethub_teyrchain_location,
|
||||
xcm,
|
||||
@@ -115,20 +115,20 @@ pub fn send_transfer_token_message_success<Runtime, XcmConfig>(
|
||||
dyn Fn(Vec<u8>) -> Option<snowbridge_pallet_outbound_queue::Event<Runtime>>,
|
||||
>,
|
||||
) where
|
||||
Runtime: frame_system::Config
|
||||
+ pallet_balances::Config
|
||||
+ pallet_session::Config
|
||||
+ pallet_xcm::Config
|
||||
Runtime: pezframe_system::Config
|
||||
+ pezpallet_balances::Config
|
||||
+ pezpallet_session::Config
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pallet_collator_selection::Config
|
||||
+ pallet_message_queue::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ pezpallet_message_queue::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ snowbridge_pallet_outbound_queue::Config
|
||||
+ snowbridge_pallet_system::Config
|
||||
+ pallet_timestamp::Config,
|
||||
+ pezpallet_timestamp::Config,
|
||||
XcmConfig: xcm_executor::Config,
|
||||
ValidatorIdOf<Runtime>: From<AccountIdOf<Runtime>>,
|
||||
<Runtime as frame_system::Config>::AccountId: From<sp_runtime::AccountId32> + AsRef<[u8]>,
|
||||
<Runtime as pezframe_system::Config>::AccountId: From<pezsp_runtime::AccountId32> + AsRef<[u8]>,
|
||||
{
|
||||
ExtBuilder::<Runtime>::default()
|
||||
.with_collators(collator_session_key.collators())
|
||||
@@ -157,7 +157,7 @@ pub fn send_transfer_token_message_success<Runtime, XcmConfig>(
|
||||
assert_ok!(outcome.ensure_complete());
|
||||
|
||||
// check events
|
||||
let mut events = <frame_system::Pallet<Runtime>>::events()
|
||||
let mut events = <pezframe_system::Pallet<Runtime>>::events()
|
||||
.into_iter()
|
||||
.filter_map(|e| snowbridge_pallet_outbound_queue(e.event.encode()));
|
||||
assert!(events.any(|e| matches!(
|
||||
@@ -165,25 +165,25 @@ pub fn send_transfer_token_message_success<Runtime, XcmConfig>(
|
||||
snowbridge_pallet_outbound_queue::Event::MessageQueued { .. }
|
||||
)));
|
||||
|
||||
let block_number = <frame_system::Pallet<Runtime>>::block_number();
|
||||
let next_block_number = <frame_system::Pallet<Runtime>>::block_number()
|
||||
let block_number = <pezframe_system::Pallet<Runtime>>::block_number();
|
||||
let next_block_number = <pezframe_system::Pallet<Runtime>>::block_number()
|
||||
.saturating_add(BlockNumberFor::<Runtime>::from(1u32));
|
||||
|
||||
// finish current block
|
||||
<pallet_message_queue::Pallet<Runtime>>::on_finalize(block_number);
|
||||
<pezpallet_message_queue::Pallet<Runtime>>::on_finalize(block_number);
|
||||
<snowbridge_pallet_outbound_queue::Pallet<Runtime>>::on_finalize(block_number);
|
||||
<frame_system::Pallet<Runtime>>::on_finalize(block_number);
|
||||
<pezframe_system::Pallet<Runtime>>::on_finalize(block_number);
|
||||
|
||||
// start next block
|
||||
<frame_system::Pallet<Runtime>>::set_block_number(next_block_number);
|
||||
<frame_system::Pallet<Runtime>>::on_initialize(next_block_number);
|
||||
<pezframe_system::Pallet<Runtime>>::set_block_number(next_block_number);
|
||||
<pezframe_system::Pallet<Runtime>>::on_initialize(next_block_number);
|
||||
<snowbridge_pallet_outbound_queue::Pallet<Runtime>>::on_initialize(next_block_number);
|
||||
<pallet_message_queue::Pallet<Runtime>>::on_initialize(next_block_number);
|
||||
<pezpallet_message_queue::Pallet<Runtime>>::on_initialize(next_block_number);
|
||||
|
||||
// finish next block
|
||||
<pallet_message_queue::Pallet<Runtime>>::on_finalize(next_block_number);
|
||||
<pezpallet_message_queue::Pallet<Runtime>>::on_finalize(next_block_number);
|
||||
<snowbridge_pallet_outbound_queue::Pallet<Runtime>>::on_finalize(next_block_number);
|
||||
let included_head = <frame_system::Pallet<Runtime>>::finalize();
|
||||
let included_head = <pezframe_system::Pallet<Runtime>>::finalize();
|
||||
|
||||
let origin: ParaId = assethub_teyrchain_id.into();
|
||||
let channel_id: ChannelId = origin.into();
|
||||
@@ -215,22 +215,22 @@ pub fn ethereum_outbound_queue_processes_messages_before_message_queue_works<
|
||||
dyn Fn(Vec<u8>) -> Option<snowbridge_pallet_outbound_queue::Event<Runtime>>,
|
||||
>,
|
||||
) where
|
||||
Runtime: frame_system::Config
|
||||
+ pallet_balances::Config
|
||||
+ pallet_session::Config
|
||||
+ pallet_xcm::Config
|
||||
Runtime: pezframe_system::Config
|
||||
+ pezpallet_balances::Config
|
||||
+ pezpallet_session::Config
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pallet_collator_selection::Config
|
||||
+ pallet_message_queue::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ pezpallet_message_queue::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ snowbridge_pallet_outbound_queue::Config
|
||||
+ snowbridge_pallet_system::Config
|
||||
+ pallet_timestamp::Config,
|
||||
+ pezpallet_timestamp::Config,
|
||||
XcmConfig: xcm_executor::Config,
|
||||
AllPalletsWithoutSystem:
|
||||
OnInitialize<BlockNumberFor<Runtime>> + OnFinalize<BlockNumberFor<Runtime>>,
|
||||
ValidatorIdOf<Runtime>: From<AccountIdOf<Runtime>>,
|
||||
<Runtime as frame_system::Config>::AccountId: From<sp_runtime::AccountId32> + AsRef<[u8]>,
|
||||
<Runtime as pezframe_system::Config>::AccountId: From<pezsp_runtime::AccountId32> + AsRef<[u8]>,
|
||||
{
|
||||
ExtBuilder::<Runtime>::default()
|
||||
.with_collators(collator_session_key.collators())
|
||||
@@ -259,7 +259,7 @@ pub fn ethereum_outbound_queue_processes_messages_before_message_queue_works<
|
||||
assert_ok!(outcome.ensure_complete());
|
||||
|
||||
// check events
|
||||
let mut events = <frame_system::Pallet<Runtime>>::events()
|
||||
let mut events = <pezframe_system::Pallet<Runtime>>::events()
|
||||
.into_iter()
|
||||
.filter_map(|e| snowbridge_pallet_outbound_queue(e.event.encode()));
|
||||
assert!(events.any(|e| matches!(
|
||||
@@ -267,7 +267,7 @@ pub fn ethereum_outbound_queue_processes_messages_before_message_queue_works<
|
||||
snowbridge_pallet_outbound_queue::Event::MessageQueued { .. }
|
||||
)));
|
||||
|
||||
let next_block_number: U256 = <frame_system::Pallet<Runtime>>::block_number()
|
||||
let next_block_number: U256 = <pezframe_system::Pallet<Runtime>>::block_number()
|
||||
.saturating_add(BlockNumberFor::<Runtime>::from(1u32))
|
||||
.into();
|
||||
|
||||
@@ -298,16 +298,16 @@ pub fn send_unpaid_transfer_token_message<Runtime, XcmConfig>(
|
||||
weth_contract_address: H160,
|
||||
destination_contract: H160,
|
||||
) where
|
||||
Runtime: frame_system::Config
|
||||
+ pallet_balances::Config
|
||||
+ pallet_session::Config
|
||||
+ pallet_xcm::Config
|
||||
Runtime: pezframe_system::Config
|
||||
+ pezpallet_balances::Config
|
||||
+ pezpallet_session::Config
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pallet_collator_selection::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ snowbridge_pallet_outbound_queue::Config
|
||||
+ snowbridge_pallet_system::Config
|
||||
+ pallet_timestamp::Config,
|
||||
+ pezpallet_timestamp::Config,
|
||||
XcmConfig: xcm_executor::Config,
|
||||
ValidatorIdOf<Runtime>: From<AccountIdOf<Runtime>>,
|
||||
{
|
||||
@@ -360,7 +360,7 @@ pub fn send_unpaid_transfer_token_message<Runtime, XcmConfig>(
|
||||
]);
|
||||
|
||||
// execute XCM
|
||||
let mut hash = xcm.using_encoded(sp_io::hashing::blake2_256);
|
||||
let mut hash = xcm.using_encoded(pezsp_io::hashing::blake2_256);
|
||||
let outcome = XcmExecutor::<XcmConfig>::prepare_and_execute(
|
||||
assethub_teyrchain_location,
|
||||
xcm,
|
||||
@@ -384,16 +384,16 @@ pub fn send_transfer_token_message_failure<Runtime, XcmConfig>(
|
||||
fee_amount: u128,
|
||||
expected_error: XcmError,
|
||||
) where
|
||||
Runtime: frame_system::Config
|
||||
+ pallet_balances::Config
|
||||
+ pallet_session::Config
|
||||
+ pallet_xcm::Config
|
||||
Runtime: pezframe_system::Config
|
||||
+ pezpallet_balances::Config
|
||||
+ pezpallet_session::Config
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pallet_collator_selection::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ snowbridge_pallet_outbound_queue::Config
|
||||
+ snowbridge_pallet_system::Config
|
||||
+ pallet_timestamp::Config,
|
||||
+ pezpallet_timestamp::Config,
|
||||
XcmConfig: xcm_executor::Config,
|
||||
ValidatorIdOf<Runtime>: From<AccountIdOf<Runtime>>,
|
||||
{
|
||||
@@ -431,26 +431,26 @@ pub fn ethereum_extrinsic<Runtime>(
|
||||
collator_session_key: CollatorSessionKeys<Runtime>,
|
||||
runtime_para_id: u32,
|
||||
construct_and_apply_extrinsic: fn(
|
||||
sp_keyring::Sr25519Keyring,
|
||||
<Runtime as frame_system::Config>::RuntimeCall,
|
||||
) -> sp_runtime::DispatchOutcome,
|
||||
pezsp_keyring::Sr25519Keyring,
|
||||
<Runtime as pezframe_system::Config>::RuntimeCall,
|
||||
) -> pezsp_runtime::DispatchOutcome,
|
||||
) where
|
||||
Runtime: frame_system::Config
|
||||
+ pallet_balances::Config
|
||||
+ pallet_session::Config
|
||||
+ pallet_xcm::Config
|
||||
+ pallet_utility::Config
|
||||
Runtime: pezframe_system::Config
|
||||
+ pezpallet_balances::Config
|
||||
+ pezpallet_session::Config
|
||||
+ pezpallet_xcm::Config
|
||||
+ pezpallet_utility::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pallet_collator_selection::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ snowbridge_pallet_outbound_queue::Config
|
||||
+ snowbridge_pallet_system::Config
|
||||
+ snowbridge_pallet_ethereum_client::Config
|
||||
+ pallet_timestamp::Config,
|
||||
+ pezpallet_timestamp::Config,
|
||||
ValidatorIdOf<Runtime>: From<AccountIdOf<Runtime>>,
|
||||
<Runtime as pallet_utility::Config>::RuntimeCall:
|
||||
<Runtime as pezpallet_utility::Config>::RuntimeCall:
|
||||
From<snowbridge_pallet_ethereum_client::Call<Runtime>>,
|
||||
<Runtime as frame_system::Config>::RuntimeCall: From<pallet_utility::Call<Runtime>>,
|
||||
<Runtime as pezframe_system::Config>::RuntimeCall: From<pezpallet_utility::Call<Runtime>>,
|
||||
AccountIdOf<Runtime>: From<AccountId32>,
|
||||
{
|
||||
ExtBuilder::<Runtime>::default()
|
||||
@@ -470,40 +470,40 @@ pub fn ethereum_extrinsic<Runtime>(
|
||||
|
||||
let alice = Alice;
|
||||
let alice_account = alice.to_account_id();
|
||||
<pallet_balances::Pallet<Runtime>>::mint_into(
|
||||
<pezpallet_balances::Pallet<Runtime>>::mint_into(
|
||||
&alice_account.clone().into(),
|
||||
10_000_000_000_000_u128.saturated_into::<BalanceOf<Runtime>>(),
|
||||
)
|
||||
.unwrap();
|
||||
let balance_before =
|
||||
<pallet_balances::Pallet<Runtime>>::free_balance(&alice_account.clone().into());
|
||||
<pezpallet_balances::Pallet<Runtime>>::free_balance(&alice_account.clone().into());
|
||||
|
||||
assert_ok!(<snowbridge_pallet_ethereum_client::Pallet<Runtime>>::force_checkpoint(
|
||||
RuntimeHelper::<Runtime>::root_origin(),
|
||||
initial_checkpoint.clone(),
|
||||
));
|
||||
let balance_after_checkpoint =
|
||||
<pallet_balances::Pallet<Runtime>>::free_balance(&alice_account.clone().into());
|
||||
<pezpallet_balances::Pallet<Runtime>>::free_balance(&alice_account.clone().into());
|
||||
|
||||
let update_call: <Runtime as pallet_utility::Config>::RuntimeCall =
|
||||
let update_call: <Runtime as pezpallet_utility::Config>::RuntimeCall =
|
||||
snowbridge_pallet_ethereum_client::Call::<Runtime>::submit {
|
||||
update: Box::new(*update.clone()),
|
||||
}
|
||||
.into();
|
||||
|
||||
let invalid_update_call: <Runtime as pallet_utility::Config>::RuntimeCall =
|
||||
let invalid_update_call: <Runtime as pezpallet_utility::Config>::RuntimeCall =
|
||||
snowbridge_pallet_ethereum_client::Call::<Runtime>::submit {
|
||||
update: Box::new(*invalid_update),
|
||||
}
|
||||
.into();
|
||||
|
||||
let update_sync_committee_call: <Runtime as pallet_utility::Config>::RuntimeCall =
|
||||
let update_sync_committee_call: <Runtime as pezpallet_utility::Config>::RuntimeCall =
|
||||
snowbridge_pallet_ethereum_client::Call::<Runtime>::submit {
|
||||
update: Box::new(*sync_committee_update),
|
||||
}
|
||||
.into();
|
||||
|
||||
let invalid_update_sync_committee_call: <Runtime as pallet_utility::Config>::RuntimeCall =
|
||||
let invalid_update_sync_committee_call: <Runtime as pezpallet_utility::Config>::RuntimeCall =
|
||||
snowbridge_pallet_ethereum_client::Call::<Runtime>::submit {
|
||||
update: Box::new(*invalid_sync_committee_update),
|
||||
}
|
||||
@@ -513,7 +513,7 @@ pub fn ethereum_extrinsic<Runtime>(
|
||||
let update_outcome = construct_and_apply_extrinsic(alice, update_call.into());
|
||||
assert_ok!(update_outcome);
|
||||
let balance_after_update =
|
||||
<pallet_balances::Pallet<Runtime>>::free_balance(&alice_account.clone().into());
|
||||
<pezpallet_balances::Pallet<Runtime>>::free_balance(&alice_account.clone().into());
|
||||
|
||||
// All the extrinsics in this test do no fit into 1 block
|
||||
let _ = RuntimeHelper::<Runtime>::run_to_block(2, alice_account.clone().into());
|
||||
@@ -526,14 +526,14 @@ pub fn ethereum_extrinsic<Runtime>(
|
||||
snowbridge_pallet_ethereum_client::Error::<Runtime>::InvalidUpdateSlot
|
||||
);
|
||||
let balance_after_invalid_update =
|
||||
<pallet_balances::Pallet<Runtime>>::free_balance(&alice_account.clone().into());
|
||||
<pezpallet_balances::Pallet<Runtime>>::free_balance(&alice_account.clone().into());
|
||||
|
||||
// Sync committee update
|
||||
let sync_committee_outcome =
|
||||
construct_and_apply_extrinsic(alice, update_sync_committee_call.into());
|
||||
assert_ok!(sync_committee_outcome);
|
||||
let balance_after_sync_com_update =
|
||||
<pallet_balances::Pallet<Runtime>>::free_balance(&alice_account.clone().into());
|
||||
<pezpallet_balances::Pallet<Runtime>>::free_balance(&alice_account.clone().into());
|
||||
|
||||
// Invalid sync committee update
|
||||
let invalid_sync_committee_outcome =
|
||||
@@ -543,7 +543,7 @@ pub fn ethereum_extrinsic<Runtime>(
|
||||
snowbridge_pallet_ethereum_client::Error::<Runtime>::InvalidUpdateSlot
|
||||
);
|
||||
let balance_after_invalid_sync_com_update =
|
||||
<pallet_balances::Pallet<Runtime>>::free_balance(&alice_account.clone().into());
|
||||
<pezpallet_balances::Pallet<Runtime>>::free_balance(&alice_account.clone().into());
|
||||
|
||||
// Assert paid operations are charged and free operations are free
|
||||
// Checkpoint is a free operation
|
||||
@@ -570,26 +570,26 @@ pub fn ethereum_to_pezkuwi_message_extrinsics_work<Runtime>(
|
||||
collator_session_key: CollatorSessionKeys<Runtime>,
|
||||
runtime_para_id: u32,
|
||||
construct_and_apply_extrinsic: fn(
|
||||
sp_keyring::Sr25519Keyring,
|
||||
<Runtime as frame_system::Config>::RuntimeCall,
|
||||
) -> sp_runtime::DispatchOutcome,
|
||||
pezsp_keyring::Sr25519Keyring,
|
||||
<Runtime as pezframe_system::Config>::RuntimeCall,
|
||||
) -> pezsp_runtime::DispatchOutcome,
|
||||
) where
|
||||
Runtime: frame_system::Config
|
||||
+ pallet_balances::Config
|
||||
+ pallet_session::Config
|
||||
+ pallet_xcm::Config
|
||||
+ pallet_utility::Config
|
||||
Runtime: pezframe_system::Config
|
||||
+ pezpallet_balances::Config
|
||||
+ pezpallet_session::Config
|
||||
+ pezpallet_xcm::Config
|
||||
+ pezpallet_utility::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pallet_collator_selection::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ snowbridge_pallet_outbound_queue::Config
|
||||
+ snowbridge_pallet_system::Config
|
||||
+ snowbridge_pallet_ethereum_client::Config
|
||||
+ pallet_timestamp::Config,
|
||||
+ pezpallet_timestamp::Config,
|
||||
ValidatorIdOf<Runtime>: From<AccountIdOf<Runtime>>,
|
||||
<Runtime as pallet_utility::Config>::RuntimeCall:
|
||||
<Runtime as pezpallet_utility::Config>::RuntimeCall:
|
||||
From<snowbridge_pallet_ethereum_client::Call<Runtime>>,
|
||||
<Runtime as frame_system::Config>::RuntimeCall: From<pallet_utility::Call<Runtime>>,
|
||||
<Runtime as pezframe_system::Config>::RuntimeCall: From<pezpallet_utility::Call<Runtime>>,
|
||||
AccountIdOf<Runtime>: From<AccountId32>,
|
||||
{
|
||||
ExtBuilder::<Runtime>::default()
|
||||
@@ -604,7 +604,7 @@ pub fn ethereum_to_pezkuwi_message_extrinsics_work<Runtime>(
|
||||
|
||||
let alice = Alice;
|
||||
let alice_account = alice.to_account_id();
|
||||
<pallet_balances::Pallet<Runtime>>::mint_into(
|
||||
<pezpallet_balances::Pallet<Runtime>>::mint_into(
|
||||
&alice_account.into(),
|
||||
10_000_000_000_000_u128.saturated_into::<BalanceOf<Runtime>>(),
|
||||
)
|
||||
@@ -615,7 +615,7 @@ pub fn ethereum_to_pezkuwi_message_extrinsics_work<Runtime>(
|
||||
initial_checkpoint,
|
||||
));
|
||||
|
||||
let update_sync_committee_call: <Runtime as pallet_utility::Config>::RuntimeCall =
|
||||
let update_sync_committee_call: <Runtime as pezpallet_utility::Config>::RuntimeCall =
|
||||
snowbridge_pallet_ethereum_client::Call::<Runtime>::submit {
|
||||
update: Box::new(*sync_committee_update),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user