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:
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "snowbridge-pallet-inbound-queue-v2"
|
||||
name = "snowbridge-pezpallet-inbound-queue-v2"
|
||||
description = "Snowbridge Inbound Queue Pallet V2"
|
||||
version = "0.2.0"
|
||||
authors = ["Snowfork <contact@snowfork.com>"]
|
||||
@@ -24,14 +24,14 @@ scale-info = { features = ["derive"], workspace = true }
|
||||
serde = { optional = true, workspace = true, default-features = true }
|
||||
tracing = { workspace = true }
|
||||
|
||||
frame-benchmarking = { optional = true, workspace = true }
|
||||
frame-support = { workspace = true }
|
||||
frame-system = { workspace = true }
|
||||
pallet-balances = { workspace = true }
|
||||
sp-core = { workspace = true }
|
||||
sp-io = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
pezframe-benchmarking = { optional = true, workspace = true }
|
||||
pezframe-support = { workspace = true }
|
||||
pezframe-system = { workspace = true }
|
||||
pezpallet-balances = { workspace = true }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-io = { workspace = true }
|
||||
pezsp-runtime = { workspace = true }
|
||||
pezsp-std = { workspace = true }
|
||||
|
||||
xcm = { workspace = true }
|
||||
xcm-builder = { workspace = true }
|
||||
@@ -40,15 +40,15 @@ xcm-executor = { workspace = true }
|
||||
snowbridge-beacon-primitives = { workspace = true }
|
||||
snowbridge-core = { workspace = true }
|
||||
snowbridge-inbound-queue-primitives = { workspace = true }
|
||||
snowbridge-pallet-inbound-queue-v2-fixtures = { optional = true, workspace = true }
|
||||
snowbridge-pezpallet-inbound-queue-v2-fixtures = { optional = true, workspace = true }
|
||||
|
||||
bp-relayers = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
frame-benchmarking = { workspace = true, default-features = true }
|
||||
pezframe-benchmarking = { workspace = true, default-features = true }
|
||||
hex-literal = { workspace = true, default-features = true }
|
||||
snowbridge-test-utils = { workspace = true }
|
||||
sp-keyring = { workspace = true, default-features = true }
|
||||
pezsp-keyring = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
@@ -56,20 +56,20 @@ std = [
|
||||
"alloy-core/std",
|
||||
"bp-relayers/std",
|
||||
"codec/std",
|
||||
"frame-benchmarking/std",
|
||||
"frame-support/std",
|
||||
"frame-system/std",
|
||||
"pallet-balances/std",
|
||||
"pezframe-benchmarking/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
"pezpallet-balances/std",
|
||||
"scale-info/std",
|
||||
"serde",
|
||||
"snowbridge-beacon-primitives/std",
|
||||
"snowbridge-core/std",
|
||||
"snowbridge-inbound-queue-primitives/std",
|
||||
"snowbridge-pallet-inbound-queue-v2-fixtures?/std",
|
||||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
"snowbridge-pezpallet-inbound-queue-v2-fixtures?/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-std/std",
|
||||
"tracing/std",
|
||||
"xcm-builder/std",
|
||||
"xcm-executor/std",
|
||||
@@ -77,27 +77,27 @@ std = [
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"bp-relayers/runtime-benchmarks",
|
||||
"frame-benchmarking",
|
||||
"frame-benchmarking/runtime-benchmarks",
|
||||
"frame-support/runtime-benchmarks",
|
||||
"frame-system/runtime-benchmarks",
|
||||
"pallet-balances/runtime-benchmarks",
|
||||
"pezframe-benchmarking",
|
||||
"pezframe-benchmarking/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezpallet-balances/runtime-benchmarks",
|
||||
"snowbridge-beacon-primitives/runtime-benchmarks",
|
||||
"snowbridge-core/runtime-benchmarks",
|
||||
"snowbridge-inbound-queue-primitives/runtime-benchmarks",
|
||||
"snowbridge-pallet-inbound-queue-v2-fixtures/runtime-benchmarks",
|
||||
"snowbridge-pezpallet-inbound-queue-v2-fixtures/runtime-benchmarks",
|
||||
"snowbridge-test-utils/runtime-benchmarks",
|
||||
"sp-io/runtime-benchmarks",
|
||||
"sp-keyring/runtime-benchmarks",
|
||||
"sp-runtime/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-keyring/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"xcm-builder/runtime-benchmarks",
|
||||
"xcm-executor/runtime-benchmarks",
|
||||
"xcm/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = [
|
||||
"frame-support/try-runtime",
|
||||
"frame-system/try-runtime",
|
||||
"pallet-balances/try-runtime",
|
||||
"pezframe-support/try-runtime",
|
||||
"pezframe-system/try-runtime",
|
||||
"pezpallet-balances/try-runtime",
|
||||
"snowbridge-inbound-queue-primitives/try-runtime",
|
||||
"sp-runtime/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "snowbridge-pallet-inbound-queue-v2-fixtures"
|
||||
name = "snowbridge-pezpallet-inbound-queue-v2-fixtures"
|
||||
description = "Snowbridge Inbound Queue Test Fixtures V2"
|
||||
version = "0.10.0"
|
||||
authors = ["Snowfork <contact@snowfork.com>"]
|
||||
@@ -22,8 +22,8 @@ hex-literal = { workspace = true, default-features = true }
|
||||
snowbridge-beacon-primitives = { workspace = true }
|
||||
snowbridge-core = { workspace = true }
|
||||
snowbridge-inbound-queue-primitives = { workspace = true }
|
||||
sp-core = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-std = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
@@ -31,8 +31,8 @@ std = [
|
||||
"snowbridge-beacon-primitives/std",
|
||||
"snowbridge-core/std",
|
||||
"snowbridge-inbound-queue-primitives/std",
|
||||
"sp-core/std",
|
||||
"sp-std/std",
|
||||
"pezsp-core/std",
|
||||
"pezsp-std/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"snowbridge-beacon-primitives/runtime-benchmarks",
|
||||
|
||||
@@ -8,8 +8,8 @@ use snowbridge_beacon_primitives::{
|
||||
types::deneb, AncestryProof, BeaconHeader, ExecutionProof, VersionedExecutionPayloadHeader,
|
||||
};
|
||||
use snowbridge_inbound_queue_primitives::{EventFixture, EventProof, Log, Proof};
|
||||
use sp_core::U256;
|
||||
use sp_std::vec;
|
||||
use pezsp_core::U256;
|
||||
use pezsp_std::vec;
|
||||
|
||||
pub fn make_register_token_message() -> EventFixture {
|
||||
EventFixture {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -37,7 +37,7 @@ mod test;
|
||||
|
||||
pub use crate::weights::WeightInfo;
|
||||
use bp_relayers::RewardLedger;
|
||||
use frame_system::ensure_signed;
|
||||
use pezframe_system::ensure_signed;
|
||||
use snowbridge_core::{
|
||||
reward::{AddTip, AddTipError},
|
||||
sparse_bitmap::{SparseBitmap, SparseBitmapImpl},
|
||||
@@ -47,25 +47,25 @@ use snowbridge_inbound_queue_primitives::{
|
||||
v2::{ConvertMessage, ConvertMessageError, Message},
|
||||
EventProof, VerificationError, Verifier,
|
||||
};
|
||||
use sp_core::H160;
|
||||
use sp_runtime::traits::TryConvert;
|
||||
use sp_std::prelude::*;
|
||||
use pezsp_core::H160;
|
||||
use pezsp_runtime::traits::TryConvert;
|
||||
use pezsp_std::prelude::*;
|
||||
use xcm::prelude::{ExecuteXcm, Junction::*, Location, SendXcm, *};
|
||||
|
||||
pub use pallet::*;
|
||||
|
||||
pub const LOG_TARGET: &str = "snowbridge-pallet-inbound-queue-v2";
|
||||
pub const LOG_TARGET: &str = "snowbridge-pezpallet-inbound-queue-v2";
|
||||
|
||||
pub type AccountIdOf<T> = <T as frame_system::Config>::AccountId;
|
||||
pub type AccountIdOf<T> = <T as pezframe_system::Config>::AccountId;
|
||||
|
||||
pub type Nonce<T> = SparseBitmapImpl<crate::NonceBitmap<T>>;
|
||||
|
||||
#[frame_support::pallet]
|
||||
#[pezframe_support::pallet]
|
||||
pub mod pallet {
|
||||
use super::*;
|
||||
|
||||
use frame_support::pallet_prelude::*;
|
||||
use frame_system::pallet_prelude::*;
|
||||
use pezframe_support::pezpallet_prelude::*;
|
||||
use pezframe_system::pezpallet_prelude::*;
|
||||
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
use snowbridge_inbound_queue_primitives::EventFixture;
|
||||
@@ -79,9 +79,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;
|
||||
/// XCM message sender.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
use super::*;
|
||||
|
||||
use crate::{self as inbound_queue_v2};
|
||||
use frame_support::{derive_impl, parameter_types, traits::ConstU32};
|
||||
use pezframe_support::{derive_impl, parameter_types, traits::ConstU32};
|
||||
use hex_literal::hex;
|
||||
use snowbridge_beacon_primitives::{
|
||||
types::deneb, BeaconHeader, ExecutionProof, VersionedExecutionPayloadHeader,
|
||||
@@ -13,14 +13,14 @@ use snowbridge_inbound_queue_primitives::{
|
||||
v2::{CreateAssetCallInfo, MessageToXcm},
|
||||
Log, Proof, VerificationError,
|
||||
};
|
||||
use sp_core::H160;
|
||||
use sp_runtime::{
|
||||
use pezsp_core::H160;
|
||||
use pezsp_runtime::{
|
||||
traits::{IdentityLookup, MaybeConvert},
|
||||
BuildStorage,
|
||||
};
|
||||
use sp_std::{convert::From, default::Default, marker::PhantomData};
|
||||
use pezsp_std::{convert::From, default::Default, marker::PhantomData};
|
||||
use xcm::{opaque::latest::ZAGROS_GENESIS_HASH, prelude::*};
|
||||
type Block = frame_system::mocking::MockBlock<Test>;
|
||||
type Block = pezframe_system::mocking::MockBlock<Test>;
|
||||
use snowbridge_test_utils::mock_rewards::{BridgeReward, MockRewardLedger};
|
||||
pub use snowbridge_test_utils::mock_xcm::{MockXcmExecutor, MockXcmSender};
|
||||
|
||||
@@ -29,25 +29,25 @@ use snowbridge_inbound_queue_primitives::EventFixture;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
use snowbridge_pallet_inbound_queue_v2_fixtures::register_token::make_register_token_message;
|
||||
|
||||
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>},
|
||||
InboundQueue: inbound_queue_v2::{Pallet, Call, Storage, Event<T>},
|
||||
}
|
||||
);
|
||||
|
||||
pub(crate) const ERROR_ADDRESS: [u8; 20] = hex!("0000000000000000000000000000000000000911");
|
||||
|
||||
pub type AccountId = sp_runtime::AccountId32;
|
||||
pub type AccountId = pezsp_runtime::AccountId32;
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -55,8 +55,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;
|
||||
@@ -148,9 +148,9 @@ pub fn setup() {
|
||||
System::set_block_number(1);
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
@@ -4,14 +4,14 @@ use super::*;
|
||||
|
||||
use crate::{mock::*, Error};
|
||||
use codec::Encode;
|
||||
use frame_support::{assert_noop, assert_ok};
|
||||
use pezframe_support::{assert_noop, assert_ok};
|
||||
use snowbridge_inbound_queue_primitives::{v2::XcmPayload, EventProof, Proof};
|
||||
use snowbridge_test_utils::{
|
||||
mock_rewards::{RegisteredRewardAmount, RegisteredRewardsCount},
|
||||
mock_xcm::{set_charge_fees_override, set_sender_override},
|
||||
};
|
||||
use sp_keyring::sr25519::Keyring;
|
||||
use sp_runtime::DispatchError;
|
||||
use pezsp_keyring::sr25519::Keyring;
|
||||
use pezsp_runtime::DispatchError;
|
||||
|
||||
#[test]
|
||||
fn test_submit_happy_path() {
|
||||
@@ -31,7 +31,7 @@ fn test_submit_happy_path() {
|
||||
|
||||
assert_ok!(InboundQueue::submit(origin.clone(), Box::new(event.clone())));
|
||||
|
||||
let events = frame_system::Pallet::<Test>::events();
|
||||
let events = pezframe_system::Pallet::<Test>::events();
|
||||
assert!(
|
||||
events.iter().any(|event| matches!(
|
||||
event.event,
|
||||
@@ -132,7 +132,7 @@ fn test_using_same_nonce_fails() {
|
||||
|
||||
assert_ok!(InboundQueue::submit(origin.clone(), Box::new(event.clone())));
|
||||
|
||||
let events = frame_system::Pallet::<Test>::events();
|
||||
let events = pezframe_system::Pallet::<Test>::events();
|
||||
assert!(
|
||||
events.iter().any(|event| matches!(
|
||||
event.event,
|
||||
@@ -226,7 +226,7 @@ fn test_xcm_send_validate_failure() {
|
||||
set_sender_override(
|
||||
|_, _| return Err(SendError::NotApplicable),
|
||||
|xcm| {
|
||||
let hash = xcm.using_encoded(sp_io::hashing::blake2_256);
|
||||
let hash = xcm.using_encoded(pezsp_io::hashing::blake2_256);
|
||||
Ok(hash)
|
||||
},
|
||||
);
|
||||
|
||||
@@ -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