mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 06:21:02 +00:00
Rococo & Westend People Chain (#2281)
Rococo and Westend runtimes for the "People Chain". This chain contains the Identity pallet with plans to migrate all related data from the Relay Chain. Changes `IdentityInfo` to: - Remove `additional_fields`. - Add `github` and `discord` as first class fields. From scraping chain data, these were the only two additional fields used (for the Fellowship and Ambassador Program, respectively). - Rename `riot` to `matrix`. Note: This will use the script in https://github.com/paritytech/polkadot-sdk/pull/2025 to generate the genesis state. TODO: - [x] https://github.com/paritytech/polkadot-sdk/pull/1814 and integration of the Identity Migrator pallet for migration. - [x] Tests: https://github.com/paritytech/polkadot-sdk/pull/2373 --------- Co-authored-by: Muharem <ismailov.m.h@gmail.com> Co-authored-by: Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com> Co-authored-by: Dónal Murray <donal.murray@parity.io> Co-authored-by: Richard Melkonian <35300528+0xmovses@users.noreply.github.com> Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
This commit is contained in:
@@ -59,9 +59,13 @@ pub use polkadot_runtime_parachains::inclusion::{AggregateMessageOrigin, UmpQueu
|
||||
|
||||
// Polkadot
|
||||
pub use polkadot_parachain_primitives::primitives::RelayChainBlockNumber;
|
||||
pub use xcm::v3::prelude::{
|
||||
Ancestor, MultiAssets, MultiLocation, Parachain as ParachainJunction, Parent, WeightLimit,
|
||||
XcmHash, X1,
|
||||
use sp_core::crypto::AccountId32;
|
||||
pub use xcm::{
|
||||
prelude::{AccountId32 as AccountId32Junction, Here},
|
||||
v3::prelude::{
|
||||
Ancestor, MultiAssets, MultiLocation, Parachain as ParachainJunction, Parent, WeightLimit,
|
||||
XcmHash, X1,
|
||||
},
|
||||
};
|
||||
pub use xcm_executor::traits::ConvertLocation;
|
||||
|
||||
@@ -1437,6 +1441,41 @@ pub struct TestArgs {
|
||||
pub weight_limit: WeightLimit,
|
||||
}
|
||||
|
||||
impl TestArgs {
|
||||
/// Returns a [`TestArgs`] instance to be used for the Relay Chain across integration tests.
|
||||
pub fn new_relay(dest: MultiLocation, beneficiary_id: AccountId32, amount: Balance) -> Self {
|
||||
Self {
|
||||
dest,
|
||||
beneficiary: AccountId32Junction { network: None, id: beneficiary_id.into() }.into(),
|
||||
amount,
|
||||
assets: (Here, amount).into(),
|
||||
asset_id: None,
|
||||
fee_asset_item: 0,
|
||||
weight_limit: WeightLimit::Unlimited,
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns a [`TestArgs`] instance to be used for parachains across integration tests.
|
||||
pub fn new_para(
|
||||
dest: MultiLocation,
|
||||
beneficiary_id: AccountId32,
|
||||
amount: Balance,
|
||||
assets: MultiAssets,
|
||||
asset_id: Option<u32>,
|
||||
fee_asset_item: u32,
|
||||
) -> Self {
|
||||
Self {
|
||||
dest,
|
||||
beneficiary: AccountId32Junction { network: None, id: beneficiary_id.into() }.into(),
|
||||
amount,
|
||||
assets,
|
||||
asset_id,
|
||||
fee_asset_item,
|
||||
weight_limit: WeightLimit::Unlimited,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Auxiliar struct to help creating a new `Test` instance
|
||||
pub struct TestContext<T, Origin: Chain, Destination: Chain> {
|
||||
pub sender: AccountIdOf<Origin::Runtime>,
|
||||
|
||||
Reference in New Issue
Block a user