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:
@@ -19,7 +19,7 @@ use alloc::{
|
||||
vec::Vec,
|
||||
};
|
||||
use core::mem;
|
||||
use sp_runtime::{traits::Saturating, RuntimeDebug};
|
||||
use pezsp_runtime::{traits::Saturating, RuntimeDebug};
|
||||
use xcm::latest::{
|
||||
Asset, AssetFilter, AssetId, AssetInstance, Assets,
|
||||
Fungibility::{Fungible, NonFungible},
|
||||
@@ -434,7 +434,7 @@ impl AssetsInHolding {
|
||||
/// Example:
|
||||
///
|
||||
/// ```
|
||||
/// use staging_xcm_executor::AssetsInHolding;
|
||||
/// use pezstaging_xcm_executor::AssetsInHolding;
|
||||
/// use xcm::latest::prelude::*;
|
||||
/// let assets_i_have: AssetsInHolding = vec![ (Here, 100).into(), (Junctions::from([GeneralIndex(0)]), 100).into() ].into();
|
||||
/// let assets_they_want: AssetFilter = vec![ (Here, 200).into(), (Junctions::from([GeneralIndex(0)]), 50).into() ].into();
|
||||
|
||||
@@ -20,11 +20,11 @@ use crate::traits::{
|
||||
HandleHrmpNewChannelOpenRequest, OnResponse, ProcessTransaction, RecordXcm, ShouldExecute,
|
||||
TransactAsset, VersionChangeNotifier, WeightBounds, WeightTrader,
|
||||
};
|
||||
use frame_support::{
|
||||
use pezframe_support::{
|
||||
dispatch::{GetDispatchInfo, Parameter, PostDispatchInfo},
|
||||
traits::{Contains, ContainsPair, Get, PalletsInfoAccess},
|
||||
};
|
||||
use sp_runtime::traits::Dispatchable;
|
||||
use pezsp_runtime::traits::Dispatchable;
|
||||
use xcm::prelude::*;
|
||||
|
||||
/// The trait to parameterize the `XcmExecutor`.
|
||||
|
||||
@@ -21,14 +21,14 @@ extern crate alloc;
|
||||
use alloc::{vec, vec::Vec};
|
||||
use codec::{Decode, Encode};
|
||||
use core::{fmt::Debug, marker::PhantomData};
|
||||
use frame_support::{
|
||||
use pezframe_support::{
|
||||
dispatch::GetDispatchInfo,
|
||||
ensure,
|
||||
traits::{Contains, ContainsPair, Defensive, Get, PalletsInfoAccess},
|
||||
};
|
||||
use sp_core::defer;
|
||||
use sp_io::hashing::blake2_128;
|
||||
use sp_weights::Weight;
|
||||
use pezsp_core::defer;
|
||||
use pezsp_io::hashing::blake2_128;
|
||||
use pezsp_weights::Weight;
|
||||
use xcm::latest::{prelude::*, AssetTransferFilter};
|
||||
|
||||
pub mod traits;
|
||||
@@ -346,7 +346,7 @@ pub struct ExecutorError {
|
||||
}
|
||||
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
impl From<ExecutorError> for frame_benchmarking::BenchmarkError {
|
||||
impl From<ExecutorError> for pezframe_benchmarking::BenchmarkError {
|
||||
fn from(error: ExecutorError) -> Self {
|
||||
tracing::error!(
|
||||
index = ?error.index,
|
||||
@@ -1888,7 +1888,7 @@ impl<Config: config::Config> XcmExecutor<Config> {
|
||||
if !matches!(
|
||||
error,
|
||||
XcmError::FailedToTransactAsset(string)
|
||||
if *string == *<&'static str>::from(sp_runtime::TokenError::BelowMinimum)
|
||||
if *string == *<&'static str>::from(pezsp_runtime::TokenError::BelowMinimum)
|
||||
) {
|
||||
return Err(error);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
//! [specification](https://github.com/polkadot-fellows/xcm-format) for more information.
|
||||
|
||||
use codec::Encode;
|
||||
use frame_support::BoundedVec;
|
||||
use pezframe_support::BoundedVec;
|
||||
use xcm::{latest::AssetTransferFilter, prelude::*};
|
||||
|
||||
use super::mock::*;
|
||||
|
||||
@@ -19,13 +19,13 @@
|
||||
use alloc::collections::btree_map::BTreeMap;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use core::cell::RefCell;
|
||||
use frame_support::{
|
||||
use pezframe_support::{
|
||||
dispatch::{DispatchInfo, DispatchResultWithPostInfo, GetDispatchInfo, PostDispatchInfo},
|
||||
parameter_types,
|
||||
traits::{Everything, Nothing, ProcessMessageError},
|
||||
weights::Weight,
|
||||
};
|
||||
use sp_runtime::traits::Dispatchable;
|
||||
use pezsp_runtime::traits::Dispatchable;
|
||||
use xcm::prelude::*;
|
||||
|
||||
use crate::{
|
||||
@@ -43,7 +43,7 @@ pub fn instantiate_executor(
|
||||
message: Xcm<<XcmConfig as Config>::RuntimeCall>,
|
||||
) -> (XcmExecutor<XcmConfig>, Weight) {
|
||||
let mut vm =
|
||||
XcmExecutor::<XcmConfig>::new(origin, message.using_encoded(sp_io::hashing::blake2_256));
|
||||
XcmExecutor::<XcmConfig>::new(origin, message.using_encoded(pezsp_io::hashing::blake2_256));
|
||||
let weight = XcmExecutor::<XcmConfig>::prepare(message.clone(), Weight::MAX)
|
||||
.unwrap()
|
||||
.weight_of();
|
||||
@@ -138,7 +138,7 @@ impl TransactAsset for TestAssetTransactor {
|
||||
// fail if below the configured existential deposit
|
||||
if amount < ExistentialDeposit::get() {
|
||||
return Err(XcmError::FailedToTransactAsset(
|
||||
sp_runtime::TokenError::BelowMinimum.into(),
|
||||
pezsp_runtime::TokenError::BelowMinimum.into(),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
//! Unit tests for the XCM executor.
|
||||
//!
|
||||
//! These exclude any cross-chain functionality. For those, look at the
|
||||
//! `xcm-emulator` based tests in the cumulus folder.
|
||||
//! `xcm-emulator` based tests in the pezcumulus folder.
|
||||
//! These tests deal with internal state changes of the XCVM.
|
||||
|
||||
mod initiate_transfer;
|
||||
|
||||
@@ -45,7 +45,7 @@ fn set_asset_claimer() {
|
||||
// We create an XCVM instance instead of calling `XcmExecutor::<_>::prepare_and_execute` so we
|
||||
// can inspect its fields.
|
||||
let mut vm =
|
||||
XcmExecutor::<XcmConfig>::new(sender, xcm.using_encoded(sp_io::hashing::blake2_256));
|
||||
XcmExecutor::<XcmConfig>::new(sender, xcm.using_encoded(pezsp_io::hashing::blake2_256));
|
||||
vm.message_weight =
|
||||
XcmExecutor::<XcmConfig>::prepare(xcm.clone(), Weight::MAX).unwrap().weight_of();
|
||||
|
||||
@@ -72,7 +72,7 @@ fn do_not_set_asset_claimer_none() {
|
||||
// We create an XCVM instance instead of calling `XcmExecutor::<_>::prepare_and_execute` so we
|
||||
// can inspect its fields.
|
||||
let mut vm =
|
||||
XcmExecutor::<XcmConfig>::new(sender, xcm.using_encoded(sp_io::hashing::blake2_256));
|
||||
XcmExecutor::<XcmConfig>::new(sender, xcm.using_encoded(pezsp_io::hashing::blake2_256));
|
||||
vm.message_weight =
|
||||
XcmExecutor::<XcmConfig>::prepare(xcm.clone(), Weight::MAX).unwrap().weight_of();
|
||||
|
||||
@@ -102,7 +102,7 @@ fn trap_then_set_asset_claimer() {
|
||||
// We create an XCVM instance instead of calling `XcmExecutor::<_>::prepare_and_execute` so we
|
||||
// can inspect its fields.
|
||||
let mut vm =
|
||||
XcmExecutor::<XcmConfig>::new(sender, xcm.using_encoded(sp_io::hashing::blake2_256));
|
||||
XcmExecutor::<XcmConfig>::new(sender, xcm.using_encoded(pezsp_io::hashing::blake2_256));
|
||||
vm.message_weight =
|
||||
XcmExecutor::<XcmConfig>::prepare(xcm.clone(), Weight::MAX).unwrap().weight_of();
|
||||
|
||||
@@ -132,7 +132,7 @@ fn set_asset_claimer_then_trap() {
|
||||
// We create an XCVM instance instead of calling `XcmExecutor::<_>::prepare_and_execute` so we
|
||||
// can inspect its fields.
|
||||
let mut vm =
|
||||
XcmExecutor::<XcmConfig>::new(sender, xcm.using_encoded(sp_io::hashing::blake2_256));
|
||||
XcmExecutor::<XcmConfig>::new(sender, xcm.using_encoded(pezsp_io::hashing::blake2_256));
|
||||
vm.message_weight =
|
||||
XcmExecutor::<XcmConfig>::prepare(xcm.clone(), Weight::MAX).unwrap().weight_of();
|
||||
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use crate::traits::TransactAsset;
|
||||
use frame_support::traits::ContainsPair;
|
||||
use pezframe_support::traits::ContainsPair;
|
||||
use scale_info::TypeInfo;
|
||||
use sp_runtime::codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use pezsp_runtime::codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use xcm::prelude::*;
|
||||
|
||||
/// Errors related to determining asset transfer support.
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use core::{marker::PhantomData, result::Result};
|
||||
use frame_support::traits::{Contains, OriginTrait};
|
||||
use sp_runtime::{traits::Dispatchable, DispatchErrorWithPostInfo};
|
||||
use pezframe_support::traits::{Contains, OriginTrait};
|
||||
use pezsp_runtime::{traits::Dispatchable, DispatchErrorWithPostInfo};
|
||||
use xcm::latest::prelude::*;
|
||||
|
||||
/// Means of converting a location into an account identifier.
|
||||
@@ -46,7 +46,7 @@ impl<AccountId> ConvertLocation<AccountId> for Tuple {
|
||||
///
|
||||
/// ```rust
|
||||
/// # use xcm::latest::{Location, Junctions, Junction, OriginKind};
|
||||
/// # use staging_xcm_executor::traits::ConvertOrigin;
|
||||
/// # use pezstaging_xcm_executor::traits::ConvertOrigin;
|
||||
/// // A convertor that will bump the para id and pass it to the next one.
|
||||
/// struct BumpParaId;
|
||||
/// impl ConvertOrigin<u32> for BumpParaId {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
use crate::AssetsInHolding;
|
||||
use core::marker::PhantomData;
|
||||
use frame_support::traits::Contains;
|
||||
use pezframe_support::traits::Contains;
|
||||
use xcm::latest::{Assets, Location, Weight, XcmContext};
|
||||
|
||||
/// Define a handler for when some non-empty `AssetsInHolding` value should be dropped.
|
||||
|
||||
@@ -28,7 +28,7 @@ pub trait EventEmitter {
|
||||
/// # Parameters
|
||||
/// - `origin`: The origin location of the XCM.
|
||||
/// - `destination`: The target location where the message is sent.
|
||||
/// - `message`: `Some(Xcm)` for `pallet_xcm::Event::Sent`, `None` for other events to reduce
|
||||
/// - `message`: `Some(Xcm)` for `pezpallet_xcm::Event::Sent`, `None` for other events to reduce
|
||||
/// storage.
|
||||
/// - `message_id`: A unique identifier for the XCM.
|
||||
fn emit_sent_event(
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use frame_support::traits::ContainsPair;
|
||||
use pezframe_support::traits::ContainsPair;
|
||||
use xcm::latest::{Asset, Location};
|
||||
|
||||
/// Filters assets/location pairs.
|
||||
///
|
||||
/// Can be amalgamated into tuples. If any item returns `true`, it short-circuits, else `false` is
|
||||
/// returned.
|
||||
#[deprecated = "Use `frame_support::traits::ContainsPair<Asset, Location>` instead"]
|
||||
#[deprecated = "Use `pezframe_support::traits::ContainsPair<Asset, Location>` instead"]
|
||||
pub trait FilterAssetLocation {
|
||||
/// A filter to distinguish between asset/location pairs.
|
||||
fn contains(asset: &Asset, origin: &Location) -> bool;
|
||||
|
||||
@@ -56,8 +56,8 @@ mod weight;
|
||||
pub use event_emitter::EventEmitter;
|
||||
|
||||
pub use record_xcm::RecordXcm;
|
||||
#[deprecated = "Use `sp_runtime::traits::` instead"]
|
||||
pub use sp_runtime::traits::{Identity, TryConvertInto as JustTry};
|
||||
#[deprecated = "Use `pezsp_runtime::traits::` instead"]
|
||||
pub use pezsp_runtime::traits::{Identity, TryConvertInto as JustTry};
|
||||
pub use weight::{WeightBounds, WeightTrader};
|
||||
|
||||
pub mod prelude {
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
use crate::{Junctions::Here, Xcm};
|
||||
use codec::{Decode, Encode};
|
||||
use core::{fmt::Debug, result};
|
||||
use frame_support::{pallet_prelude::Get, parameter_types};
|
||||
use sp_arithmetic::traits::Zero;
|
||||
use pezframe_support::{pezpallet_prelude::Get, parameter_types};
|
||||
use pezsp_arithmetic::traits::Zero;
|
||||
use xcm::latest::{
|
||||
Error as XcmError, InteriorLocation, Location, QueryId, Response, Result as XcmResult, Weight,
|
||||
XcmContext,
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use core::result::Result;
|
||||
use frame_support::traits::ProcessMessageError;
|
||||
use pezframe_support::traits::ProcessMessageError;
|
||||
use xcm::latest::{Instruction, Location, Weight, XcmHash};
|
||||
|
||||
/// Properties of an XCM message and its imminent execution.
|
||||
|
||||
Reference in New Issue
Block a user