mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 15:11:02 +00:00
Rename Statemint to Asset Hub (#2633)
* change dir names * cargo toml updates * fix crate imports for build * change chain spec names and PR review rule * update cli to accept asset-hub * find/replace benchmark commands * integration tests * bridges docs * more integration tests * AuraId * other statemint tidying * rename statemint mod * chain spec mod * rename e2e test dirs * one more Runtime::Statemine * benchmark westmint * rename chain spec name and id * rename chain spec files * more tidying in scripts/docs/tests * rename old dir if exists * Force people to manually do the move. (Safer as there could be additional considerations with their setup) * review touchups * more renaming * Update polkadot-parachain/src/command.rs Co-authored-by: Bastian Köcher <git@kchr.de> * better error message * do not break on-chain spec_name * log info message that path has been renamed * better penpal docs --------- Co-authored-by: gilescope <gilescope@gmail.com> Co-authored-by: Bastian Köcher <git@kchr.de> Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
//! This configuration dictates how the Penpal chain will communicate with other chains.
|
||||
//!
|
||||
//! One of the main uses of the penpal chain will be to be a benefactor of reserve asset transfers
|
||||
//! with statemine as the reserve. At present no derivative tokens are minted on receipt of a
|
||||
//! ReserveAssetTransferDeposited message but that will but the intension will be to support this soon.
|
||||
//! with Asset Hub as the reserve. At present no derivative tokens are minted on receipt of a
|
||||
//! `ReserveAssetTransferDeposited` message but that will but the intension will be to support this soon.
|
||||
use super::{
|
||||
AccountId, AllPalletsWithSystem, AssetId as AssetIdPalletAssets, Assets, Balance, Balances,
|
||||
ParachainInfo, ParachainSystem, PolkadotXcm, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin,
|
||||
@@ -94,7 +94,7 @@ pub type FungiblesTransactor = FungiblesAdapter<
|
||||
ConvertedConcreteId<
|
||||
AssetIdPalletAssets,
|
||||
Balance,
|
||||
AsPrefixedGeneralIndex<CommonGoodAssetsPalletLocation, AssetIdPalletAssets, JustTry>,
|
||||
AsPrefixedGeneralIndex<SystemAssetHubAssetsPalletLocation, AssetIdPalletAssets, JustTry>,
|
||||
JustTry,
|
||||
>,
|
||||
// Convert an XCM MultiLocation into a local account id:
|
||||
@@ -256,15 +256,16 @@ impl ContainsPair<MultiAsset, MultiLocation> for MultiNativeAsset {
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
pub CommonGoodAssetsLocation: MultiLocation = MultiLocation::new(1, X1(Parachain(1000)));
|
||||
/// The location that this chain recognizes as the Relay network's Asset Hub.
|
||||
pub SystemAssetHubLocation: MultiLocation = MultiLocation::new(1, X1(Parachain(1000)));
|
||||
// ALWAYS ensure that the index in PalletInstance stays up-to-date with
|
||||
// Statemint's Assets pallet index
|
||||
pub CommonGoodAssetsPalletLocation: MultiLocation =
|
||||
// the Relay Chain's Asset Hub's Assets pallet index
|
||||
pub SystemAssetHubAssetsPalletLocation: MultiLocation =
|
||||
MultiLocation::new(1, X2(Parachain(1000), PalletInstance(50)));
|
||||
pub CheckingAccount: AccountId = PolkadotXcm::check_account();
|
||||
}
|
||||
|
||||
pub type Reserves = (NativeAsset, AssetsFrom<CommonGoodAssetsLocation>);
|
||||
pub type Reserves = (NativeAsset, AssetsFrom<SystemAssetHubLocation>);
|
||||
|
||||
pub struct XcmConfig;
|
||||
impl xcm_executor::Config for XcmConfig {
|
||||
|
||||
Reference in New Issue
Block a user