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,12 +1,12 @@
|
||||
[package]
|
||||
name = "pallet-xcm-precompiles"
|
||||
name = "pezpallet-xcm-precompiles"
|
||||
version = "0.1.0"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
license = "Apache-2.0"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Provides precompiles for `pallet-xcm`"
|
||||
description = "Provides precompiles for `pezpallet-xcm`"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
@@ -18,22 +18,22 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
tracing = { workspace = true }
|
||||
|
||||
frame-support = { workspace = true }
|
||||
pallet-revive = { workspace = true }
|
||||
pallet-xcm = { workspace = true }
|
||||
pezframe-support = { workspace = true }
|
||||
pezpallet-revive = { workspace = true }
|
||||
pezpallet-xcm = { workspace = true }
|
||||
|
||||
xcm = { workspace = true }
|
||||
xcm-executor = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
frame-system = { workspace = true, default-features = true }
|
||||
pallet-assets = { workspace = true, default-features = true }
|
||||
pallet-balances = { workspace = true, default-features = true }
|
||||
pallet-timestamp = { workspace = true, default-features = true }
|
||||
pezframe-system = { workspace = true, default-features = true }
|
||||
pezpallet-assets = { workspace = true, default-features = true }
|
||||
pezpallet-balances = { workspace = true, default-features = true }
|
||||
pezpallet-timestamp = { workspace = true, default-features = true }
|
||||
pezkuwi-teyrchain-primitives = { workspace = true, default-features = true }
|
||||
scale-info = { workspace = true, default-features = true }
|
||||
sp-io = { workspace = true, default-features = true }
|
||||
sp-runtime = { workspace = true, default-features = true }
|
||||
pezsp-io = { workspace = true, default-features = true }
|
||||
pezsp-runtime = { workspace = true, default-features = true }
|
||||
xcm-builder = { workspace = true, default-features = true }
|
||||
xcm-simulator = { workspace = true, default-features = true }
|
||||
|
||||
@@ -41,45 +41,45 @@ xcm-simulator = { workspace = true, default-features = true }
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"frame-support/std",
|
||||
"frame-system/std",
|
||||
"pallet-assets/std",
|
||||
"pallet-balances/std",
|
||||
"pallet-revive/std",
|
||||
"pallet-timestamp/std",
|
||||
"pallet-xcm/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
"pezpallet-assets/std",
|
||||
"pezpallet-balances/std",
|
||||
"pezpallet-revive/std",
|
||||
"pezpallet-timestamp/std",
|
||||
"pezpallet-xcm/std",
|
||||
"pezkuwi-teyrchain-primitives/std",
|
||||
"scale-info/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-runtime/std",
|
||||
"tracing/std",
|
||||
"xcm-builder/std",
|
||||
"xcm-executor/std",
|
||||
"xcm/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"frame-support/runtime-benchmarks",
|
||||
"frame-system/runtime-benchmarks",
|
||||
"pallet-assets/runtime-benchmarks",
|
||||
"pallet-balances/runtime-benchmarks",
|
||||
"pallet-revive/runtime-benchmarks",
|
||||
"pallet-timestamp/runtime-benchmarks",
|
||||
"pallet-xcm/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezpallet-assets/runtime-benchmarks",
|
||||
"pezpallet-balances/runtime-benchmarks",
|
||||
"pezpallet-revive/runtime-benchmarks",
|
||||
"pezpallet-timestamp/runtime-benchmarks",
|
||||
"pezpallet-xcm/runtime-benchmarks",
|
||||
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
|
||||
"sp-io/runtime-benchmarks",
|
||||
"sp-runtime/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"xcm-builder/runtime-benchmarks",
|
||||
"xcm-executor/runtime-benchmarks",
|
||||
"xcm-simulator/runtime-benchmarks",
|
||||
"xcm/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = [
|
||||
"frame-support/try-runtime",
|
||||
"frame-system/try-runtime",
|
||||
"pallet-assets/try-runtime",
|
||||
"pallet-balances/try-runtime",
|
||||
"pallet-revive/try-runtime",
|
||||
"pallet-timestamp/try-runtime",
|
||||
"pallet-xcm/try-runtime",
|
||||
"sp-runtime/try-runtime",
|
||||
"pezframe-support/try-runtime",
|
||||
"pezframe-system/try-runtime",
|
||||
"pezpallet-assets/try-runtime",
|
||||
"pezpallet-balances/try-runtime",
|
||||
"pezpallet-revive/try-runtime",
|
||||
"pezpallet-timestamp/try-runtime",
|
||||
"pezpallet-xcm/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
]
|
||||
|
||||
@@ -22,15 +22,15 @@ extern crate alloc;
|
||||
use alloc::vec::Vec;
|
||||
use codec::{DecodeAll, DecodeLimit};
|
||||
use core::{fmt, marker::PhantomData, num::NonZero};
|
||||
use frame_support::dispatch::RawOrigin;
|
||||
use pallet_revive::{
|
||||
use pezframe_support::dispatch::RawOrigin;
|
||||
use pezpallet_revive::{
|
||||
precompiles::{
|
||||
alloy::{self, sol_types::SolValue},
|
||||
AddressMatcher, Error, Ext, Precompile,
|
||||
},
|
||||
DispatchInfo, ExecOrigin as Origin, Weight,
|
||||
};
|
||||
use pallet_xcm::{Config, WeightInfo};
|
||||
use pezpallet_xcm::{Config, WeightInfo};
|
||||
use tracing::error;
|
||||
use xcm::{v5, IdentifyVersion, VersionedLocation, VersionedXcm, MAX_XCM_DECODE_DEPTH};
|
||||
use xcm_executor::traits::WeightBounds;
|
||||
@@ -63,7 +63,7 @@ pub struct XcmPrecompile<T>(PhantomData<T>);
|
||||
|
||||
impl<Runtime> Precompile for XcmPrecompile<Runtime>
|
||||
where
|
||||
Runtime: crate::Config + pallet_revive::Config,
|
||||
Runtime: crate::Config + pezpallet_revive::Config,
|
||||
{
|
||||
type T = Runtime;
|
||||
const MATCHER: AddressMatcher = AddressMatcher::Fixed(NonZero::new(10).unwrap());
|
||||
@@ -83,7 +83,7 @@ where
|
||||
|
||||
match input {
|
||||
IXcmCalls::send(_) | IXcmCalls::execute(_) if env.is_read_only() =>
|
||||
Err(Error::Error(pallet_revive::Error::<Self::T>::StateChangeDenied.into())),
|
||||
Err(Error::Error(pezpallet_revive::Error::<Self::T>::StateChangeDenied.into())),
|
||||
IXcmCalls::send(IXcm::sendCall { destination, message }) => {
|
||||
let _ = env.charge(<Runtime as Config>::WeightInfo::send())?;
|
||||
|
||||
@@ -102,7 +102,7 @@ where
|
||||
|
||||
ensure_xcm_version(&final_message)?;
|
||||
|
||||
pallet_xcm::Pallet::<Runtime>::send(
|
||||
pezpallet_xcm::Pallet::<Runtime>::send(
|
||||
frame_origin,
|
||||
final_destination.into(),
|
||||
final_message.into(),
|
||||
@@ -129,7 +129,7 @@ where
|
||||
|
||||
ensure_xcm_version(&final_message)?;
|
||||
|
||||
let result = pallet_xcm::Pallet::<Runtime>::execute(
|
||||
let result = pezpallet_xcm::Pallet::<Runtime>::execute(
|
||||
frame_origin,
|
||||
final_message.into(),
|
||||
max_weight,
|
||||
@@ -142,7 +142,7 @@ where
|
||||
};
|
||||
|
||||
// Adjust gas using actual weight or fallback to initially charged weight
|
||||
let actual_weight = frame_support::dispatch::extract_actual_weight(&result, &pre);
|
||||
let actual_weight = pezframe_support::dispatch::extract_actual_weight(&result, &pre);
|
||||
env.adjust_gas(charged_amount, actual_weight);
|
||||
|
||||
result.map(|_| Vec::new()).map_err(|error| {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
pub use core::cell::RefCell;
|
||||
use frame_support::{
|
||||
use pezframe_support::{
|
||||
derive_impl, parameter_types,
|
||||
traits::{
|
||||
fungible::HoldConsideration, AsEnsureOriginWithArg, ConstU32, Equals, Everything,
|
||||
@@ -23,9 +23,9 @@ use frame_support::{
|
||||
},
|
||||
weights::Weight,
|
||||
};
|
||||
use frame_system::EnsureRoot;
|
||||
use pezframe_system::EnsureRoot;
|
||||
use pezkuwi_teyrchain_primitives::primitives::Id as ParaId;
|
||||
use sp_runtime::{
|
||||
use pezsp_runtime::{
|
||||
traits::{Convert, IdentityLookup},
|
||||
AccountId32, BuildStorage,
|
||||
};
|
||||
@@ -46,7 +46,7 @@ use crate::XcmPrecompile;
|
||||
|
||||
pub type AccountId = AccountId32;
|
||||
pub type Balance = u128;
|
||||
type Block = frame_system::mocking::MockBlock<Test>;
|
||||
type Block = pezframe_system::mocking::MockBlock<Test>;
|
||||
|
||||
pub const ALICE: AccountId32 = AccountId::new([0u8; 32]);
|
||||
|
||||
@@ -54,22 +54,22 @@ parameter_types! {
|
||||
pub const MinimumPeriod: u64 = 1;
|
||||
}
|
||||
|
||||
impl pallet_timestamp::Config for Test {
|
||||
impl pezpallet_timestamp::Config for Test {
|
||||
type Moment = u64;
|
||||
type OnTimestampSet = ();
|
||||
type MinimumPeriod = MinimumPeriod;
|
||||
type WeightInfo = ();
|
||||
}
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pezframe_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system,
|
||||
AssetsPallet: pallet_assets,
|
||||
Balances: pallet_balances,
|
||||
XcmPallet: pallet_xcm,
|
||||
Revive: pallet_revive,
|
||||
Timestamp: pallet_timestamp,
|
||||
System: pezframe_system,
|
||||
AssetsPallet: pezpallet_assets,
|
||||
Balances: pezpallet_balances,
|
||||
XcmPallet: pezpallet_xcm,
|
||||
Revive: pezpallet_revive,
|
||||
Timestamp: pezpallet_timestamp,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -129,20 +129,20 @@ impl SendXcm for TestSendXcmErrX8 {
|
||||
}
|
||||
}
|
||||
|
||||
#[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 Block = Block;
|
||||
type AccountData = pallet_balances::AccountData<Balance>;
|
||||
type AccountData = pezpallet_balances::AccountData<Balance>;
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
pub ExistentialDeposit: Balance = 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;
|
||||
@@ -152,20 +152,20 @@ impl pallet_balances::Config for Test {
|
||||
/// Simple conversion of `u32` into an `AssetId` for use in benchmarking.
|
||||
pub struct XcmBenchmarkHelper;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
impl pallet_assets::BenchmarkHelper<Location, ()> for XcmBenchmarkHelper {
|
||||
impl pezpallet_assets::BenchmarkHelper<Location, ()> for XcmBenchmarkHelper {
|
||||
fn create_asset_id_parameter(id: u32) -> Location {
|
||||
Location::new(1, [Teyrchain(id)])
|
||||
}
|
||||
fn create_reserve_id_parameter(_: u32) {}
|
||||
}
|
||||
|
||||
#[derive_impl(pallet_assets::config_preludes::TestDefaultConfig)]
|
||||
impl pallet_assets::Config for Test {
|
||||
#[derive_impl(pezpallet_assets::config_preludes::TestDefaultConfig)]
|
||||
impl pezpallet_assets::Config for Test {
|
||||
type Balance = Balance;
|
||||
type AssetId = Location;
|
||||
type AssetIdParameter = Location;
|
||||
type Currency = Balances;
|
||||
type CreateOrigin = AsEnsureOriginWithArg<frame_system::EnsureSigned<AccountId>>;
|
||||
type CreateOrigin = AsEnsureOriginWithArg<pezframe_system::EnsureSigned<AccountId>>;
|
||||
type ForceOrigin = EnsureRoot<AccountId>;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
type BenchmarkHelper = XcmBenchmarkHelper;
|
||||
@@ -258,7 +258,7 @@ pub type LocalOriginToLocation = xcm_builder::SignedToAccountId32<RuntimeOrigin,
|
||||
|
||||
parameter_types! {
|
||||
pub static AdvertisedXcmVersion: xcm::prelude::XcmVersion = 4;
|
||||
pub const AuthorizeAliasHoldReason: RuntimeHoldReason = RuntimeHoldReason::XcmPallet(pallet_xcm::HoldReason::AuthorizeAlias);
|
||||
pub const AuthorizeAliasHoldReason: RuntimeHoldReason = RuntimeHoldReason::XcmPallet(pezpallet_xcm::HoldReason::AuthorizeAlias);
|
||||
}
|
||||
|
||||
pub struct ConvertDeposit;
|
||||
@@ -268,7 +268,7 @@ impl Convert<Footprint, u128> for ConvertDeposit {
|
||||
}
|
||||
}
|
||||
|
||||
impl pallet_xcm::Config for Test {
|
||||
impl pezpallet_xcm::Config for Test {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type SendXcmOrigin = xcm_builder::EnsureXcmOrigin<RuntimeOrigin, LocalOriginToLocation>;
|
||||
type XcmRouter = XcmRouter;
|
||||
@@ -290,21 +290,21 @@ impl pallet_xcm::Config for Test {
|
||||
type MaxLockers = ConstU32<8>;
|
||||
type MaxRemoteLockConsumers = ConstU32<0>;
|
||||
type RemoteLockConsumerIdentifier = ();
|
||||
type WeightInfo = pallet_xcm::TestWeightInfo;
|
||||
type WeightInfo = pezpallet_xcm::TestWeightInfo;
|
||||
type AdminOrigin = EnsureRoot<AccountId>;
|
||||
type AuthorizedAliasConsideration =
|
||||
HoldConsideration<AccountId, Balances, AuthorizeAliasHoldReason, ConvertDeposit>;
|
||||
}
|
||||
|
||||
#[derive_impl(pallet_revive::config_preludes::TestDefaultConfig)]
|
||||
impl pallet_revive::Config for Test {
|
||||
type AddressMapper = pallet_revive::AccountId32Mapper<Self>;
|
||||
#[derive_impl(pezpallet_revive::config_preludes::TestDefaultConfig)]
|
||||
impl pezpallet_revive::Config for Test {
|
||||
type AddressMapper = pezpallet_revive::AccountId32Mapper<Self>;
|
||||
type Balance = Balance;
|
||||
type Currency = Balances;
|
||||
type Precompiles = (XcmPrecompile<Self>,);
|
||||
type Time = Timestamp;
|
||||
type UploadOrigin = frame_system::EnsureSigned<AccountId>;
|
||||
type InstantiateOrigin = frame_system::EnsureSigned<AccountId>;
|
||||
type UploadOrigin = pezframe_system::EnsureSigned<AccountId>;
|
||||
type InstantiateOrigin = pezframe_system::EnsureSigned<AccountId>;
|
||||
}
|
||||
|
||||
pub(crate) fn buy_execution<C>(fees: impl Into<Asset>) -> Instruction<C> {
|
||||
@@ -314,7 +314,7 @@ pub(crate) fn buy_execution<C>(fees: impl Into<Asset>) -> Instruction<C> {
|
||||
|
||||
pub(crate) fn new_test_ext_with_balances(
|
||||
balances: Vec<(AccountId, Balance)>,
|
||||
) -> sp_io::TestExternalities {
|
||||
) -> pezsp_io::TestExternalities {
|
||||
new_test_ext_with_balances_and_xcm_version(balances, Some(XCM_VERSION), vec![])
|
||||
}
|
||||
|
||||
@@ -322,22 +322,22 @@ pub fn new_test_ext_with_balances_and_xcm_version(
|
||||
balances: Vec<(AccountId, Balance)>,
|
||||
safe_xcm_version: Option<XcmVersion>,
|
||||
supported_version: Vec<(Location, XcmVersion)>,
|
||||
) -> sp_io::TestExternalities {
|
||||
let mut t = frame_system::GenesisConfig::<Test>::default().build_storage().unwrap();
|
||||
) -> pezsp_io::TestExternalities {
|
||||
let mut t = pezframe_system::GenesisConfig::<Test>::default().build_storage().unwrap();
|
||||
|
||||
pallet_balances::GenesisConfig::<Test> { balances, ..Default::default() }
|
||||
pezpallet_balances::GenesisConfig::<Test> { balances, ..Default::default() }
|
||||
.assimilate_storage(&mut t)
|
||||
.unwrap();
|
||||
|
||||
pallet_xcm::GenesisConfig::<Test> { safe_xcm_version, supported_version, ..Default::default() }
|
||||
pezpallet_xcm::GenesisConfig::<Test> { safe_xcm_version, supported_version, ..Default::default() }
|
||||
.assimilate_storage(&mut t)
|
||||
.unwrap();
|
||||
|
||||
pallet_revive::GenesisConfig::<Test> { mapped_accounts: vec![ALICE], ..Default::default() }
|
||||
pezpallet_revive::GenesisConfig::<Test> { mapped_accounts: vec![ALICE], ..Default::default() }
|
||||
.assimilate_storage(&mut t)
|
||||
.unwrap();
|
||||
|
||||
let mut ext = sp_io::TestExternalities::new(t);
|
||||
let mut ext = pezsp_io::TestExternalities::new(t);
|
||||
ext.execute_with(|| System::set_block_number(1));
|
||||
ext
|
||||
}
|
||||
|
||||
@@ -20,8 +20,8 @@ use crate::{
|
||||
IXcm::{self, weighMessageCall},
|
||||
VersionedLocation, VersionedXcm,
|
||||
};
|
||||
use frame_support::traits::Currency;
|
||||
use pallet_revive::{
|
||||
use pezframe_support::traits::Currency;
|
||||
use pezpallet_revive::{
|
||||
precompiles::{
|
||||
alloy::{
|
||||
hex,
|
||||
@@ -32,7 +32,7 @@ use pallet_revive::{
|
||||
ExecConfig, U256,
|
||||
};
|
||||
use pezkuwi_teyrchain_primitives::primitives::Id as ParaId;
|
||||
use sp_runtime::traits::AccountIdConversion;
|
||||
use pezsp_runtime::traits::AccountIdConversion;
|
||||
use xcm::{prelude::*, v3, v4};
|
||||
|
||||
const BOB: AccountId = AccountId::new([1u8; 32]);
|
||||
@@ -71,14 +71,14 @@ fn test_xcm_send_precompile_works() {
|
||||
let call = IXcm::IXcmCalls::send(xcm_send_params);
|
||||
let encoded_call = call.abi_encode();
|
||||
|
||||
let result = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let result = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
assert!(result.result.is_ok());
|
||||
let sent_message = Xcm(Some(DescendOrigin(sender.clone().try_into().unwrap()))
|
||||
@@ -120,14 +120,14 @@ fn test_xcm_send_precompile_to_teyrchain() {
|
||||
let call = IXcm::IXcmCalls::send(xcm_send_params);
|
||||
let encoded_call = call.abi_encode();
|
||||
|
||||
let result = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let result = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
|
||||
assert!(result.result.is_ok());
|
||||
@@ -169,14 +169,14 @@ fn test_xcm_send_precompile_fails() {
|
||||
let call = IXcm::IXcmCalls::send(xcm_send_params);
|
||||
let encoded_call = call.abi_encode();
|
||||
|
||||
let result = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let result = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
let return_value = match result.result {
|
||||
Ok(value) => value,
|
||||
@@ -219,14 +219,14 @@ fn send_fails_on_old_location_version() {
|
||||
let call = IXcm::IXcmCalls::send(xcm_send_params);
|
||||
let encoded_call = call.abi_encode();
|
||||
|
||||
let result = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let result = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
let return_value = match result.result {
|
||||
Ok(value) => value,
|
||||
@@ -246,14 +246,14 @@ fn send_fails_on_old_location_version() {
|
||||
let call = IXcm::IXcmCalls::send(xcm_send_params);
|
||||
let encoded_call = call.abi_encode();
|
||||
|
||||
let result = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let result = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
let return_value = match result.result {
|
||||
Ok(value) => value,
|
||||
@@ -296,14 +296,14 @@ fn send_fails_on_old_xcm_version() {
|
||||
let call = IXcm::IXcmCalls::send(xcm_send_params);
|
||||
let encoded_call = call.abi_encode();
|
||||
|
||||
let result = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let result = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
let return_value = match result.result {
|
||||
Ok(value) => value,
|
||||
@@ -324,14 +324,14 @@ fn send_fails_on_old_xcm_version() {
|
||||
let call = IXcm::IXcmCalls::send(xcm_send_params);
|
||||
let encoded_call = call.abi_encode();
|
||||
|
||||
let result = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let result = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
let return_value = match result.result {
|
||||
Ok(value) => value,
|
||||
@@ -367,14 +367,14 @@ fn test_xcm_execute_precompile_works() {
|
||||
let weight_call = IXcm::IXcmCalls::weighMessage(weight_params);
|
||||
let encoded_weight_call = weight_call.abi_encode();
|
||||
|
||||
let xcm_weight_results = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let xcm_weight_results = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_weight_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
|
||||
let weight_result = match xcm_weight_results.result {
|
||||
@@ -389,14 +389,14 @@ fn test_xcm_execute_precompile_works() {
|
||||
let call = IXcm::IXcmCalls::execute(xcm_execute_params);
|
||||
let encoded_call = call.abi_encode();
|
||||
|
||||
let result = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let result = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
|
||||
assert!(result.result.is_ok());
|
||||
@@ -428,14 +428,14 @@ fn test_xcm_execute_precompile_different_beneficiary() {
|
||||
let weight_call = IXcm::IXcmCalls::weighMessage(weight_params);
|
||||
let encoded_weight_call = weight_call.abi_encode();
|
||||
|
||||
let xcm_weight_results = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let xcm_weight_results = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_weight_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
|
||||
let weight_result = match xcm_weight_results.result {
|
||||
@@ -450,14 +450,14 @@ fn test_xcm_execute_precompile_different_beneficiary() {
|
||||
let call = IXcm::IXcmCalls::execute(xcm_execute_params);
|
||||
let encoded_call = call.abi_encode();
|
||||
|
||||
let result = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let result = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
|
||||
let return_value = match result.result {
|
||||
@@ -497,14 +497,14 @@ fn test_xcm_execute_precompile_fails() {
|
||||
let weight_call = IXcm::IXcmCalls::weighMessage(weight_params);
|
||||
let encoded_weight_call = weight_call.abi_encode();
|
||||
|
||||
let xcm_weight_results = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let xcm_weight_results = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_weight_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
|
||||
let weight_result = match xcm_weight_results.result {
|
||||
@@ -519,14 +519,14 @@ fn test_xcm_execute_precompile_fails() {
|
||||
let call = IXcm::IXcmCalls::execute(xcm_execute_params);
|
||||
let encoded_call = call.abi_encode();
|
||||
|
||||
let result = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let result = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
let return_value = match result.result {
|
||||
Ok(value) => value,
|
||||
@@ -565,14 +565,14 @@ fn execute_fails_on_old_version() {
|
||||
let weight_call = IXcm::IXcmCalls::weighMessage(weight_params);
|
||||
let encoded_weight_call = weight_call.abi_encode();
|
||||
|
||||
let xcm_weight_results = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let xcm_weight_results = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_weight_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
|
||||
let weight_result = match xcm_weight_results.result {
|
||||
@@ -594,14 +594,14 @@ fn execute_fails_on_old_version() {
|
||||
let call = IXcm::IXcmCalls::execute(xcm_execute_params);
|
||||
let encoded_call = call.abi_encode();
|
||||
|
||||
let result = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let result = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
|
||||
let return_value = match result.result {
|
||||
@@ -621,14 +621,14 @@ fn execute_fails_on_old_version() {
|
||||
let call = IXcm::IXcmCalls::execute(xcm_execute_params);
|
||||
let encoded_call = call.abi_encode();
|
||||
|
||||
let result = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let result = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
|
||||
let return_value = match result.result {
|
||||
@@ -670,14 +670,14 @@ fn weight_fails_on_old_version() {
|
||||
let weight_call = IXcm::IXcmCalls::weighMessage(weight_params);
|
||||
let encoded_weight_call = weight_call.abi_encode();
|
||||
|
||||
let xcm_weight_results = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let xcm_weight_results = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_weight_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
|
||||
let result = match xcm_weight_results.result {
|
||||
@@ -694,14 +694,14 @@ fn weight_fails_on_old_version() {
|
||||
let weight_call = IXcm::IXcmCalls::weighMessage(weight_params);
|
||||
let encoded_weight_call = weight_call.abi_encode();
|
||||
|
||||
let xcm_weight_results = pallet_revive::Pallet::<Test>::bare_call(
|
||||
let xcm_weight_results = pezpallet_revive::Pallet::<Test>::bare_call(
|
||||
RuntimeOrigin::signed(ALICE),
|
||||
xcm_precompile_addr,
|
||||
U256::zero(),
|
||||
Weight::MAX,
|
||||
u128::MAX,
|
||||
encoded_weight_call,
|
||||
ExecConfig::new_substrate_tx(),
|
||||
ExecConfig::new_bizinikiwi_tx(),
|
||||
);
|
||||
|
||||
let result = match xcm_weight_results.result {
|
||||
|
||||
Reference in New Issue
Block a user