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:
@@ -17,16 +17,16 @@ exclude-from-umbrella = true
|
||||
[dependencies]
|
||||
bp-relayers = { workspace = true, default-features = true }
|
||||
codec = { workspace = true, default-features = true }
|
||||
frame-benchmarking = { optional = true, workspace = true, default-features = true }
|
||||
frame-support = { workspace = true, default-features = true }
|
||||
frame-system = { workspace = true, default-features = true }
|
||||
pallet-asset-conversion = { workspace = true, default-features = true }
|
||||
pezframe-benchmarking = { optional = true, workspace = true, default-features = true }
|
||||
pezframe-support = { workspace = true, default-features = true }
|
||||
pezframe-system = { workspace = true, default-features = true }
|
||||
pezpallet-asset-conversion = { workspace = true, default-features = true }
|
||||
scale-info = { features = [
|
||||
"derive",
|
||||
], workspace = true, default-features = true }
|
||||
snowbridge-core = { workspace = true, default-features = true }
|
||||
snowbridge-outbound-queue-primitives = { workspace = true, default-features = true }
|
||||
sp-core = { workspace = true, default-features = true }
|
||||
pezsp-core = { workspace = true, default-features = true }
|
||||
xcm = { workspace = true, default-features = true }
|
||||
xcm-builder = { workspace = true, default-features = true }
|
||||
xcm-executor = { workspace = true, default-features = true }
|
||||
@@ -34,10 +34,10 @@ xcm-executor = { workspace = true, default-features = true }
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
"bp-relayers/runtime-benchmarks",
|
||||
"frame-benchmarking/runtime-benchmarks",
|
||||
"frame-support/runtime-benchmarks",
|
||||
"frame-system/runtime-benchmarks",
|
||||
"pallet-asset-conversion/runtime-benchmarks",
|
||||
"pezframe-benchmarking/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezpallet-asset-conversion/runtime-benchmarks",
|
||||
"snowbridge-core/runtime-benchmarks",
|
||||
"snowbridge-outbound-queue-primitives/runtime-benchmarks",
|
||||
"xcm-builder/runtime-benchmarks",
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
|
||||
use codec::Encode;
|
||||
use frame_support::sp_runtime::traits::MaybeConvert;
|
||||
use pezframe_support::pezsp_runtime::traits::MaybeConvert;
|
||||
use snowbridge_core::TokenIdOf;
|
||||
use sp_core::H256;
|
||||
use pezsp_core::H256;
|
||||
use std::{cell::RefCell, collections::HashMap};
|
||||
use xcm::{
|
||||
latest::InteriorLocation,
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
|
||||
// A stripped-down version of pallet-xcm that only inserts an XCM origin into the runtime
|
||||
#[frame_support::pallet]
|
||||
pub mod pallet_xcm_origin {
|
||||
// A stripped-down version of pezpallet-xcm that only inserts an XCM origin into the runtime
|
||||
#[pezframe_support::pallet]
|
||||
pub mod pezpallet_xcm_origin {
|
||||
use codec::DecodeWithMemTracking;
|
||||
use frame_support::{
|
||||
pallet_prelude::*,
|
||||
use pezframe_support::{
|
||||
pezpallet_prelude::*,
|
||||
traits::{Contains, OriginTrait},
|
||||
};
|
||||
use xcm::latest::prelude::*;
|
||||
@@ -15,8 +15,8 @@ pub mod pallet_xcm_origin {
|
||||
pub struct Pallet<T>(_);
|
||||
|
||||
#[pallet::config]
|
||||
pub trait Config: frame_system::Config {
|
||||
type RuntimeOrigin: From<Origin> + From<<Self as frame_system::Config>::RuntimeOrigin>;
|
||||
pub trait Config: pezframe_system::Config {
|
||||
type RuntimeOrigin: From<Origin> + From<<Self as pezframe_system::Config>::RuntimeOrigin>;
|
||||
}
|
||||
|
||||
// Insert this custom Origin into the aggregate RuntimeOrigin
|
||||
|
||||
@@ -8,7 +8,7 @@ use snowbridge_outbound_queue_primitives::{
|
||||
v2::{Message, SendMessage},
|
||||
SendMessageFeeProvider,
|
||||
};
|
||||
use sp_core::H256;
|
||||
use pezsp_core::H256;
|
||||
|
||||
pub struct MockOkOutboundQueue;
|
||||
impl SendMessage for MockOkOutboundQueue {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use bp_relayers::{PaymentProcedure, RewardLedger, RewardsAccountOwner, RewardsAccountParams};
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use frame_support::{pallet_prelude::DispatchResult, parameter_types, sp_runtime};
|
||||
use pezframe_support::{pezpallet_prelude::DispatchResult, parameter_types, pezsp_runtime};
|
||||
use scale_info::TypeInfo;
|
||||
use xcm::opaque::latest::Location;
|
||||
|
||||
@@ -27,13 +27,13 @@ pub enum BridgeReward {
|
||||
pub struct MockPaymentProcedure;
|
||||
|
||||
// Provide a no-op or mock implementation for the required trait
|
||||
impl PaymentProcedure<sp_runtime::AccountId32, RewardsAccountParams<u64>, u128>
|
||||
impl PaymentProcedure<pezsp_runtime::AccountId32, RewardsAccountParams<u64>, u128>
|
||||
for MockPaymentProcedure
|
||||
{
|
||||
type Error = DispatchResult;
|
||||
type Beneficiary = Location;
|
||||
fn pay_reward(
|
||||
_who: &sp_runtime::AccountId32,
|
||||
_who: &pezsp_runtime::AccountId32,
|
||||
_reward_params: bp_relayers::RewardsAccountParams<u64>,
|
||||
_reward_balance: u128,
|
||||
_beneficiary: Self::Beneficiary,
|
||||
@@ -55,9 +55,9 @@ parameter_types! {
|
||||
|
||||
pub struct MockRewardLedger;
|
||||
|
||||
impl RewardLedger<sp_runtime::AccountId32, BridgeReward, u128> for MockRewardLedger {
|
||||
impl RewardLedger<pezsp_runtime::AccountId32, BridgeReward, u128> for MockRewardLedger {
|
||||
fn register_reward(
|
||||
_relayer: &sp_runtime::AccountId32,
|
||||
_relayer: &pezsp_runtime::AccountId32,
|
||||
_reward: BridgeReward,
|
||||
reward_balance: u128,
|
||||
) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
|
||||
use frame_support::pallet_prelude::DispatchError;
|
||||
use pallet_asset_conversion::Swap;
|
||||
use pezframe_support::pezpallet_prelude::DispatchError;
|
||||
use pezpallet_asset_conversion::Swap;
|
||||
use xcm::opaque::latest::Location;
|
||||
pub struct SwapExecutor;
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ impl SendXcm for MockXcmSender {
|
||||
if let Some((_, ref f)) = &*s.borrow() {
|
||||
f(ticket)
|
||||
} else {
|
||||
let hash = ticket.using_encoded(sp_core::hashing::blake2_256);
|
||||
let hash = ticket.using_encoded(pezsp_core::hashing::blake2_256);
|
||||
Ok(hash)
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user