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:
@@ -3,9 +3,9 @@
|
||||
use super::*;
|
||||
|
||||
use crate::Pallet as InboundQueue;
|
||||
use frame_benchmarking::v2::*;
|
||||
use frame_support::assert_ok;
|
||||
use frame_system::RawOrigin;
|
||||
use pezframe_benchmarking::v2::*;
|
||||
use pezframe_support::assert_ok;
|
||||
use pezframe_system::RawOrigin;
|
||||
|
||||
#[benchmarks]
|
||||
mod benchmarks {
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
use snowbridge_core::ChannelId;
|
||||
use snowbridge_inbound_queue_primitives::Log;
|
||||
|
||||
use sp_core::{RuntimeDebug, H160, H256};
|
||||
use sp_std::prelude::*;
|
||||
use pezsp_core::{RuntimeDebug, H160, H256};
|
||||
use pezsp_std::prelude::*;
|
||||
|
||||
use alloy_core::{primitives::B256, sol, sol_types::SolEvent};
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ mod test;
|
||||
|
||||
use codec::{Decode, DecodeAll, Encode};
|
||||
use envelope::Envelope;
|
||||
use frame_support::{
|
||||
use pezframe_support::{
|
||||
traits::{
|
||||
fungible::{Inspect, Mutate},
|
||||
tokens::{Fortitude, Preservation},
|
||||
@@ -46,11 +46,11 @@ use frame_support::{
|
||||
weights::WeightToFee,
|
||||
PalletError,
|
||||
};
|
||||
use frame_system::ensure_signed;
|
||||
use pezframe_system::ensure_signed;
|
||||
use scale_info::TypeInfo;
|
||||
use sp_core::H160;
|
||||
use sp_runtime::traits::Zero;
|
||||
use sp_std::vec;
|
||||
use pezsp_core::H160;
|
||||
use pezsp_runtime::traits::Zero;
|
||||
use pezsp_std::vec;
|
||||
use xcm::prelude::{
|
||||
send_xcm, Junction::*, Location, SendError as XcmpSendError, SendXcm, Xcm, XcmContext, XcmHash,
|
||||
};
|
||||
@@ -65,24 +65,24 @@ use snowbridge_inbound_queue_primitives::{
|
||||
EventProof, VerificationError, Verifier,
|
||||
};
|
||||
|
||||
use sp_runtime::{traits::Saturating, SaturatedConversion, TokenError};
|
||||
use pezsp_runtime::{traits::Saturating, SaturatedConversion, TokenError};
|
||||
|
||||
pub use weights::WeightInfo;
|
||||
|
||||
type BalanceOf<T> =
|
||||
<<T as pallet::Config>::Token as Inspect<<T as frame_system::Config>::AccountId>>::Balance;
|
||||
<<T as pallet::Config>::Token as Inspect<<T as pezframe_system::Config>::AccountId>>::Balance;
|
||||
|
||||
pub use pallet::*;
|
||||
|
||||
pub const LOG_TARGET: &str = "snowbridge-inbound-queue";
|
||||
|
||||
#[frame_support::pallet]
|
||||
#[pezframe_support::pallet]
|
||||
pub mod pallet {
|
||||
use super::*;
|
||||
|
||||
use frame_support::pallet_prelude::*;
|
||||
use frame_system::pallet_prelude::*;
|
||||
use sp_core::H256;
|
||||
use pezframe_support::pezpallet_prelude::*;
|
||||
use pezframe_system::pezpallet_prelude::*;
|
||||
use pezsp_core::H256;
|
||||
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
use snowbridge_inbound_queue_primitives::EventFixture;
|
||||
@@ -96,9 +96,9 @@ pub mod pallet {
|
||||
}
|
||||
|
||||
#[pallet::config]
|
||||
pub trait Config: frame_system::Config {
|
||||
pub trait Config: pezframe_system::Config {
|
||||
#[allow(deprecated)]
|
||||
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
|
||||
type RuntimeEvent: From<Event<Self>> + IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
|
||||
|
||||
/// The verifier for inbound messages from Ethereum
|
||||
type Verifier: Verifier;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use super::*;
|
||||
|
||||
use frame_support::{derive_impl, parameter_types, traits::ConstU32, weights::IdentityFee};
|
||||
use pezframe_support::{derive_impl, parameter_types, traits::ConstU32, weights::IdentityFee};
|
||||
use hex_literal::hex;
|
||||
use snowbridge_beacon_primitives::{
|
||||
types::deneb, BeaconHeader, ExecutionProof, Fork, ForkVersions, VersionedExecutionPayloadHeader,
|
||||
@@ -11,12 +11,12 @@ use snowbridge_core::{
|
||||
gwei, meth, Channel, ChannelId, PricingParameters, Rewards, StaticLookup, TokenId,
|
||||
};
|
||||
use snowbridge_inbound_queue_primitives::{v1::MessageToXcm, Log, Proof, VerificationError};
|
||||
use sp_core::{H160, H256};
|
||||
use sp_runtime::{
|
||||
use pezsp_core::{H160, H256};
|
||||
use pezsp_runtime::{
|
||||
traits::{IdentifyAccount, IdentityLookup, MaybeConvert, Verify},
|
||||
BuildStorage, FixedU128, MultiSignature,
|
||||
};
|
||||
use sp_std::{convert::From, default::Default};
|
||||
use pezsp_std::{convert::From, default::Default};
|
||||
use xcm::{
|
||||
latest::{SendXcm, ZAGROS_GENESIS_HASH},
|
||||
prelude::*,
|
||||
@@ -30,13 +30,13 @@ use snowbridge_pallet_inbound_queue_fixtures::register_token::make_register_toke
|
||||
|
||||
use crate::{self as inbound_queue};
|
||||
|
||||
type Block = frame_system::mocking::MockBlock<Test>;
|
||||
type Block = pezframe_system::mocking::MockBlock<Test>;
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pezframe_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
System: pezframe_system::{Pallet, Call, Storage, Event<T>},
|
||||
Balances: pezpallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
EthereumBeaconClient: snowbridge_pallet_ethereum_client::{Pallet, Call, Storage, Event<T>},
|
||||
InboundQueue: inbound_queue::{Pallet, Call, Storage, Event<T>},
|
||||
}
|
||||
@@ -47,11 +47,11 @@ pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::Account
|
||||
|
||||
type Balance = u128;
|
||||
|
||||
#[derive_impl(frame_system::config_preludes::TestDefaultConfig)]
|
||||
impl frame_system::Config for Test {
|
||||
#[derive_impl(pezframe_system::config_preludes::TestDefaultConfig)]
|
||||
impl pezframe_system::Config for Test {
|
||||
type AccountId = AccountId;
|
||||
type Lookup = IdentityLookup<Self::AccountId>;
|
||||
type AccountData = pallet_balances::AccountData<u128>;
|
||||
type AccountData = pezpallet_balances::AccountData<u128>;
|
||||
type Block = Block;
|
||||
}
|
||||
|
||||
@@ -59,8 +59,8 @@ parameter_types! {
|
||||
pub const ExistentialDeposit: u128 = 1;
|
||||
}
|
||||
|
||||
#[derive_impl(pallet_balances::config_preludes::TestDefaultConfig)]
|
||||
impl pallet_balances::Config for Test {
|
||||
#[derive_impl(pezpallet_balances::config_preludes::TestDefaultConfig)]
|
||||
impl pezpallet_balances::Config for Test {
|
||||
type Balance = Balance;
|
||||
type ExistentialDeposit = ExistentialDeposit;
|
||||
type AccountStore = System;
|
||||
@@ -159,7 +159,7 @@ impl SendXcm for MockXcmSender {
|
||||
}
|
||||
|
||||
fn deliver(xcm: Self::Ticket) -> core::result::Result<XcmHash, XcmpSendError> {
|
||||
let hash = xcm.using_encoded(sp_io::hashing::blake2_256);
|
||||
let hash = xcm.using_encoded(pezsp_io::hashing::blake2_256);
|
||||
Ok(hash)
|
||||
}
|
||||
}
|
||||
@@ -271,9 +271,9 @@ pub fn setup() {
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
pub fn new_tester() -> sp_io::TestExternalities {
|
||||
let storage = frame_system::GenesisConfig::<Test>::default().build_storage().unwrap();
|
||||
let mut ext: sp_io::TestExternalities = storage.into();
|
||||
pub fn new_tester() -> pezsp_io::TestExternalities {
|
||||
let storage = pezframe_system::GenesisConfig::<Test>::default().build_storage().unwrap();
|
||||
let mut ext: pezsp_io::TestExternalities = storage.into();
|
||||
ext.execute_with(setup);
|
||||
ext
|
||||
}
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use super::*;
|
||||
|
||||
use frame_support::{assert_noop, assert_ok};
|
||||
use pezframe_support::{assert_noop, assert_ok};
|
||||
use hex_literal::hex;
|
||||
use snowbridge_core::ChannelId;
|
||||
use snowbridge_inbound_queue_primitives::Proof;
|
||||
use sp_keyring::Sr25519Keyring as Keyring;
|
||||
use sp_runtime::DispatchError;
|
||||
use sp_std::convert::From;
|
||||
use pezsp_keyring::Sr25519Keyring as Keyring;
|
||||
use pezsp_runtime::DispatchError;
|
||||
use pezsp_std::convert::From;
|
||||
|
||||
use crate::Error;
|
||||
|
||||
@@ -37,9 +37,9 @@ fn test_submit_happy_path() {
|
||||
|
||||
assert_ok!(InboundQueue::submit(origin.clone(), event.clone()));
|
||||
|
||||
let pallet_events = frame_system::Pallet::<Test>::events();
|
||||
let pezpallet_events = pezframe_system::Pallet::<Test>::events();
|
||||
assert!(
|
||||
pallet_events.iter().any(|event| matches!(
|
||||
pezpallet_events.iter().any(|event| matches!(
|
||||
event.event,
|
||||
RuntimeEvent::InboundQueue(Event::MessageReceived { nonce, ..})
|
||||
if nonce == 1
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
//! Autogenerated weights for `snowbridge_inbound_queue`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-07-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `macbook pro 14 m2`, CPU: `m2-arm64`
|
||||
@@ -12,8 +12,8 @@
|
||||
#![allow(unused_parens)]
|
||||
#![allow(unused_imports)]
|
||||
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use sp_std::marker::PhantomData;
|
||||
use pezframe_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use pezsp_std::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for ethereum_beacon_client.
|
||||
pub trait WeightInfo {
|
||||
|
||||
Reference in New Issue
Block a user