snapshot before rebranding
This commit is contained in:
@@ -7,6 +7,7 @@ description = "Test utils for Asset Hub runtimes."
|
||||
license = "Apache-2.0"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/asset-test-utils"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
@@ -48,71 +49,71 @@ pezpallet-xcm-bridge-hub-router = { workspace = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"assets-common/std",
|
||||
"codec/std",
|
||||
"pezcumulus-pezpallet-teyrchain-system/std",
|
||||
"pezcumulus-pezpallet-xcmp-queue/std",
|
||||
"pezcumulus-primitives-core/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
"pezpallet-asset-conversion/std",
|
||||
"pezpallet-assets/std",
|
||||
"pezpallet-balances/std",
|
||||
"pezpallet-collator-selection/std",
|
||||
"pezpallet-session/std",
|
||||
"pezpallet-timestamp/std",
|
||||
"pezpallet-xcm-bridge-hub-router/std",
|
||||
"pezpallet-xcm/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-runtime/std",
|
||||
"teyrchain-info/std",
|
||||
"teyrchains-common/std",
|
||||
"teyrchains-runtimes-test-utils/std",
|
||||
"xcm-builder/std",
|
||||
"xcm-executor/std",
|
||||
"xcm-runtime-apis/std",
|
||||
"xcm/std",
|
||||
"assets-common/std",
|
||||
"codec/std",
|
||||
"pezcumulus-pezpallet-teyrchain-system/std",
|
||||
"pezcumulus-pezpallet-xcmp-queue/std",
|
||||
"pezcumulus-primitives-core/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
"pezpallet-asset-conversion/std",
|
||||
"pezpallet-assets/std",
|
||||
"pezpallet-balances/std",
|
||||
"pezpallet-collator-selection/std",
|
||||
"pezpallet-session/std",
|
||||
"pezpallet-timestamp/std",
|
||||
"pezpallet-xcm-bridge-hub-router/std",
|
||||
"pezpallet-xcm/std",
|
||||
"pezsp-io/std",
|
||||
"pezsp-runtime/std",
|
||||
"teyrchain-info/std",
|
||||
"teyrchains-common/std",
|
||||
"teyrchains-runtimes-test-utils/std",
|
||||
"xcm-builder/std",
|
||||
"xcm-executor/std",
|
||||
"xcm-runtime-apis/std",
|
||||
"xcm/std",
|
||||
]
|
||||
try-runtime = [
|
||||
"assets-common/try-runtime",
|
||||
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
|
||||
"pezcumulus-pezpallet-xcmp-queue/try-runtime",
|
||||
"pezframe-support/try-runtime",
|
||||
"pezframe-system/try-runtime",
|
||||
"pezpallet-asset-conversion/try-runtime",
|
||||
"pezpallet-assets/try-runtime",
|
||||
"pezpallet-balances/try-runtime",
|
||||
"pezpallet-collator-selection/try-runtime",
|
||||
"pezpallet-session/try-runtime",
|
||||
"pezpallet-timestamp/try-runtime",
|
||||
"pezpallet-xcm-bridge-hub-router/try-runtime",
|
||||
"pezpallet-xcm/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
"teyrchain-info/try-runtime",
|
||||
"teyrchains-common/try-runtime",
|
||||
"assets-common/try-runtime",
|
||||
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
|
||||
"pezcumulus-pezpallet-xcmp-queue/try-runtime",
|
||||
"pezframe-support/try-runtime",
|
||||
"pezframe-system/try-runtime",
|
||||
"pezpallet-asset-conversion/try-runtime",
|
||||
"pezpallet-assets/try-runtime",
|
||||
"pezpallet-balances/try-runtime",
|
||||
"pezpallet-collator-selection/try-runtime",
|
||||
"pezpallet-session/try-runtime",
|
||||
"pezpallet-timestamp/try-runtime",
|
||||
"pezpallet-xcm-bridge-hub-router/try-runtime",
|
||||
"pezpallet-xcm/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
"teyrchain-info/try-runtime",
|
||||
"teyrchains-common/try-runtime",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"assets-common/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks",
|
||||
"pezcumulus-primitives-core/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezpallet-asset-conversion/runtime-benchmarks",
|
||||
"pezpallet-assets/runtime-benchmarks",
|
||||
"pezpallet-balances/runtime-benchmarks",
|
||||
"pezpallet-collator-selection/runtime-benchmarks",
|
||||
"pezpallet-session/runtime-benchmarks",
|
||||
"pezpallet-timestamp/runtime-benchmarks",
|
||||
"pezpallet-xcm-bridge-hub-router/runtime-benchmarks",
|
||||
"pezpallet-xcm/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"teyrchain-info/runtime-benchmarks",
|
||||
"teyrchains-common/runtime-benchmarks",
|
||||
"teyrchains-runtimes-test-utils/runtime-benchmarks",
|
||||
"xcm-builder/runtime-benchmarks",
|
||||
"xcm-executor/runtime-benchmarks",
|
||||
"xcm-runtime-apis/runtime-benchmarks",
|
||||
"xcm/runtime-benchmarks",
|
||||
"assets-common/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks",
|
||||
"pezcumulus-primitives-core/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezpallet-asset-conversion/runtime-benchmarks",
|
||||
"pezpallet-assets/runtime-benchmarks",
|
||||
"pezpallet-balances/runtime-benchmarks",
|
||||
"pezpallet-collator-selection/runtime-benchmarks",
|
||||
"pezpallet-session/runtime-benchmarks",
|
||||
"pezpallet-timestamp/runtime-benchmarks",
|
||||
"pezpallet-xcm-bridge-hub-router/runtime-benchmarks",
|
||||
"pezpallet-xcm/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"teyrchain-info/runtime-benchmarks",
|
||||
"teyrchains-common/runtime-benchmarks",
|
||||
"teyrchains-runtimes-test-utils/runtime-benchmarks",
|
||||
"xcm-builder/runtime-benchmarks",
|
||||
"xcm-executor/runtime-benchmarks",
|
||||
"xcm-runtime-apis/runtime-benchmarks",
|
||||
"xcm/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -20,7 +20,7 @@ use crate::{assert_matches_reserve_asset_deposited_instructions, get_fungible_de
|
||||
use assets_common::local_and_foreign_assets::ForeignAssetReserveData;
|
||||
use codec::Encode;
|
||||
use core::ops::Mul;
|
||||
use cumulus_primitives_core::{UpwardMessageSender, XcmpMessageSource};
|
||||
use pezcumulus_primitives_core::{UpwardMessageSender, XcmpMessageSource};
|
||||
use pezframe_support::{
|
||||
assert_noop, assert_ok,
|
||||
traits::{
|
||||
@@ -77,8 +77,8 @@ pub fn teleports_for_native_asset_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ cumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezpallet_timestamp::Config,
|
||||
AllPalletsWithoutSystem:
|
||||
OnInitialize<BlockNumberFor<Runtime>> + OnFinalize<BlockNumberFor<Runtime>>,
|
||||
@@ -95,7 +95,7 @@ pub fn teleports_for_native_asset_works<
|
||||
XcmConfig: xcm_executor::Config,
|
||||
CheckingAccount: Get<Option<AccountIdOf<Runtime>>>,
|
||||
HrmpChannelOpener: pezframe_support::inherent::ProvideInherent<
|
||||
Call = cumulus_pallet_teyrchain_system::Call<Runtime>,
|
||||
Call = pezcumulus_pallet_teyrchain_system::Call<Runtime>,
|
||||
>,
|
||||
{
|
||||
let buy_execution_fee_amount_eta =
|
||||
@@ -194,7 +194,7 @@ pub fn teleports_for_native_asset_works<
|
||||
let native_asset_to_teleport_away = native_asset_amount_unit * 3.into();
|
||||
// 2. try to teleport asset back to the relaychain
|
||||
{
|
||||
<cumulus_pallet_teyrchain_system::Pallet<Runtime> as UpwardMessageSender>::ensure_successful_delivery();
|
||||
<pezcumulus_pallet_teyrchain_system::Pallet<Runtime> as UpwardMessageSender>::ensure_successful_delivery();
|
||||
|
||||
let dest = Location::parent();
|
||||
let mut dest_beneficiary = Location::parent()
|
||||
@@ -372,7 +372,7 @@ pub fn teleports_for_foreign_assets_works<
|
||||
asset_owner: AccountIdOf<Runtime>,
|
||||
unwrap_pallet_xcm_event: Box<dyn Fn(Vec<u8>) -> Option<pezpallet_xcm::Event<Runtime>>>,
|
||||
unwrap_xcmp_queue_event: Box<
|
||||
dyn Fn(Vec<u8>) -> Option<cumulus_pallet_xcmp_queue::Event<Runtime>>,
|
||||
dyn Fn(Vec<u8>) -> Option<pezcumulus_pallet_xcmp_queue::Event<Runtime>>,
|
||||
>,
|
||||
) where
|
||||
Runtime: pezframe_system::Config
|
||||
@@ -381,8 +381,8 @@ pub fn teleports_for_foreign_assets_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ cumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezpallet_assets::Config<ForeignAssetsPalletInstance, ReserveData = ForeignAssetReserveData>
|
||||
+ pezpallet_timestamp::Config,
|
||||
AllPalletsWithoutSystem:
|
||||
@@ -393,7 +393,7 @@ pub fn teleports_for_foreign_assets_works<
|
||||
XcmConfig: xcm_executor::Config,
|
||||
CheckingAccount: Get<AccountIdOf<Runtime>>,
|
||||
HrmpChannelOpener: pezframe_support::inherent::ProvideInherent<
|
||||
Call = cumulus_pallet_teyrchain_system::Call<Runtime>,
|
||||
Call = pezcumulus_pallet_teyrchain_system::Call<Runtime>,
|
||||
>,
|
||||
WeightToFee: pezframe_support::weights::WeightToFee<Balance = Balance>,
|
||||
<WeightToFee as pezframe_support::weights::WeightToFee>::Balance: From<u128> + Into<u128>,
|
||||
@@ -747,7 +747,7 @@ pub fn asset_transactor_transfer_with_local_consensus_currency_works<Runtime, Xc
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezpallet_timestamp::Config,
|
||||
AccountIdOf<Runtime>: Into<[u8; 32]>,
|
||||
ValidatorIdOf<Runtime>: From<AccountIdOf<Runtime>>,
|
||||
@@ -872,7 +872,7 @@ pub fn asset_transactor_transfer_with_pallet_assets_instance_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezpallet_assets::Config<AssetsPalletInstance>
|
||||
+ pezpallet_timestamp::Config,
|
||||
AccountIdOf<Runtime>: Into<[u8; 32]>,
|
||||
@@ -1140,7 +1140,7 @@ pub fn create_and_manage_foreign_assets_for_local_consensus_teyrchain_assets_wor
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezpallet_assets::Config<ForeignAssetsPalletInstance>
|
||||
+ pezpallet_timestamp::Config,
|
||||
AccountIdOf<Runtime>: Into<[u8; 32]>,
|
||||
@@ -1461,7 +1461,7 @@ pub fn reserve_transfer_native_asset_to_non_teleport_para_works<
|
||||
alice_account: AccountIdOf<Runtime>,
|
||||
unwrap_pallet_xcm_event: Box<dyn Fn(Vec<u8>) -> Option<pezpallet_xcm::Event<Runtime>>>,
|
||||
unwrap_xcmp_queue_event: Box<
|
||||
dyn Fn(Vec<u8>) -> Option<cumulus_pallet_xcmp_queue::Event<Runtime>>,
|
||||
dyn Fn(Vec<u8>) -> Option<pezcumulus_pallet_xcmp_queue::Event<Runtime>>,
|
||||
>,
|
||||
weight_limit: WeightLimit,
|
||||
) where
|
||||
@@ -1471,8 +1471,8 @@ pub fn reserve_transfer_native_asset_to_non_teleport_para_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ cumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezpallet_timestamp::Config,
|
||||
AllPalletsWithoutSystem:
|
||||
OnInitialize<BlockNumberFor<Runtime>> + OnFinalize<BlockNumberFor<Runtime>>,
|
||||
@@ -1488,7 +1488,7 @@ pub fn reserve_transfer_native_asset_to_non_teleport_para_works<
|
||||
From<<Runtime as pezframe_system::Config>::AccountId>,
|
||||
<Runtime as pezframe_system::Config>::AccountId: From<AccountId>,
|
||||
HrmpChannelOpener: pezframe_support::inherent::ProvideInherent<
|
||||
Call = cumulus_pallet_teyrchain_system::Call<Runtime>,
|
||||
Call = pezcumulus_pallet_teyrchain_system::Call<Runtime>,
|
||||
>,
|
||||
HrmpChannelSource: XcmpMessageSource,
|
||||
{
|
||||
@@ -1599,7 +1599,7 @@ pub fn reserve_transfer_native_asset_to_non_teleport_para_works<
|
||||
.into_iter()
|
||||
.filter_map(|e| unwrap_xcmp_queue_event(e.event.encode()))
|
||||
.find_map(|e| match e {
|
||||
cumulus_pallet_xcmp_queue::Event::XcmpMessageSent { message_hash } =>
|
||||
pezcumulus_pallet_xcmp_queue::Event::XcmpMessageSent { message_hash } =>
|
||||
Some(message_hash),
|
||||
_ => None,
|
||||
});
|
||||
@@ -1657,8 +1657,8 @@ where
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ cumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezpallet_timestamp::Config
|
||||
+ pezpallet_assets::Config<
|
||||
pezpallet_assets::Instance1,
|
||||
@@ -1844,8 +1844,8 @@ pub fn xcm_payment_api_foreign_asset_pool_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ cumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezpallet_timestamp::Config
|
||||
+ pezpallet_assets::Config<
|
||||
pezpallet_assets::Instance2,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
use crate::{assert_matches_reserve_asset_deposited_instructions, get_fungible_delivery_fees};
|
||||
use assets_common::local_and_foreign_assets::ForeignAssetReserveData;
|
||||
use codec::Encode;
|
||||
use cumulus_primitives_core::XcmpMessageSource;
|
||||
use pezcumulus_primitives_core::XcmpMessageSource;
|
||||
use pezframe_support::{
|
||||
assert_ok,
|
||||
traits::{Currency, Get, OnFinalize, OnInitialize, OriginTrait, ProcessMessageError},
|
||||
@@ -60,7 +60,7 @@ pub fn limited_reserve_transfer_assets_for_native_asset_works<
|
||||
alice_account: AccountIdOf<Runtime>,
|
||||
unwrap_pallet_xcm_event: Box<dyn Fn(Vec<u8>) -> Option<pezpallet_xcm::Event<Runtime>>>,
|
||||
unwrap_xcmp_queue_event: Box<
|
||||
dyn Fn(Vec<u8>) -> Option<cumulus_pallet_xcmp_queue::Event<Runtime>>,
|
||||
dyn Fn(Vec<u8>) -> Option<pezcumulus_pallet_xcmp_queue::Event<Runtime>>,
|
||||
>,
|
||||
prepare_configuration: fn() -> TestBridgingConfig,
|
||||
weight_limit: WeightLimit,
|
||||
@@ -73,8 +73,8 @@ pub fn limited_reserve_transfer_assets_for_native_asset_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ cumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezpallet_timestamp::Config,
|
||||
AllPalletsWithoutSystem:
|
||||
OnInitialize<BlockNumberFor<Runtime>> + OnFinalize<BlockNumberFor<Runtime>>,
|
||||
@@ -90,7 +90,7 @@ pub fn limited_reserve_transfer_assets_for_native_asset_works<
|
||||
From<<Runtime as pezframe_system::Config>::AccountId>,
|
||||
<Runtime as pezframe_system::Config>::AccountId: From<AccountId>,
|
||||
HrmpChannelOpener: pezframe_support::inherent::ProvideInherent<
|
||||
Call = cumulus_pallet_teyrchain_system::Call<Runtime>,
|
||||
Call = pezcumulus_pallet_teyrchain_system::Call<Runtime>,
|
||||
>,
|
||||
HrmpChannelSource: XcmpMessageSource,
|
||||
{
|
||||
@@ -220,7 +220,7 @@ pub fn limited_reserve_transfer_assets_for_native_asset_works<
|
||||
.into_iter()
|
||||
.filter_map(|e| unwrap_xcmp_queue_event(e.event.encode()))
|
||||
.find_map(|e| match e {
|
||||
cumulus_pallet_xcmp_queue::Event::XcmpMessageSent { message_hash } =>
|
||||
pezcumulus_pallet_xcmp_queue::Event::XcmpMessageSent { message_hash } =>
|
||||
Some(message_hash),
|
||||
_ => None,
|
||||
});
|
||||
@@ -357,8 +357,8 @@ pub fn receive_reserve_asset_deposited_from_different_consensus_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ cumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezpallet_assets::Config<ForeignAssetsPalletInstance, ReserveData = ForeignAssetReserveData>
|
||||
+ pezpallet_timestamp::Config,
|
||||
AllPalletsWithoutSystem:
|
||||
@@ -528,8 +528,8 @@ pub fn report_bridge_status_from_xcm_bridge_router_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ cumulus_pallet_teyrchain_system::Config
|
||||
+ cumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezpallet_xcm_bridge_hub_router::Config<XcmBridgeHubRouterInstance>
|
||||
+ pezpallet_timestamp::Config,
|
||||
AllPalletsWithoutSystem:
|
||||
|
||||
Reference in New Issue
Block a user