fix(xcm): correct MintLocation for AH migration (RC 1_020_007, AH 1_020_006)
Relay Chain no longer has mint authority — teleport tracking set to None. Asset Hub is now the canonical minter with MintLocation::Local tracking. RC: LocalCheckAccount → TeleportTracking = None AH: () → TeleportTracking = Some((CheckingAccount, MintLocation::Local))
This commit is contained in:
@@ -138,7 +138,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
spec_name: alloc::borrow::Cow::Borrowed("asset-hub-pezkuwichain"),
|
||||
impl_name: alloc::borrow::Cow::Borrowed("asset-hub-pezkuwichain"),
|
||||
authoring_version: 1,
|
||||
spec_version: 1_020_005,
|
||||
spec_version: 1_020_006,
|
||||
impl_version: 0,
|
||||
apis: RUNTIME_API_VERSIONS,
|
||||
transaction_version: 16,
|
||||
|
||||
@@ -58,7 +58,7 @@ use xcm_builder::{
|
||||
DenyRecursively, DenyReserveTransferToRelayChain, DenyThenTry, DescribeAllTerminal,
|
||||
DescribeFamily, EnsureXcmOrigin, ExternalConsensusLocationsConverterFor,
|
||||
FrameTransactionalProcessor, FungibleAdapter, FungiblesAdapter, HashedDescription, IsConcrete,
|
||||
LocalMint, MatchInClassInstances, MatchedConvertedConcreteId, NetworkExportTableItem,
|
||||
LocalMint, MatchInClassInstances, MatchedConvertedConcreteId, MintLocation, NetworkExportTableItem,
|
||||
NoChecking, ParentAsSuperuser, ParentIsPreset, RelayChainAsNative, SendXcmFeeToAccount,
|
||||
SiblingTeyrchainAsNative, SiblingTeyrchainConvertsVia, SignedAccountId32AsNative,
|
||||
SignedToAccountId32, SingleAssetExchangeAdapter, SovereignPaidRemoteExporter,
|
||||
@@ -91,6 +91,8 @@ parameter_types! {
|
||||
pub UniquesPalletLocation: Location =
|
||||
PalletInstance(<Uniques as PalletInfoAccess>::index() as u8).into();
|
||||
pub CheckingAccount: AccountId = PezkuwiXcm::check_account();
|
||||
/// Asset Hub has mint authority since the Asset Hub migration.
|
||||
pub TeleportTracking: Option<(AccountId, MintLocation)> = Some((CheckingAccount::get(), MintLocation::Local));
|
||||
pub const GovernanceLocation: Location = Location::parent();
|
||||
pub StakingPot: AccountId = CollatorSelection::account_id();
|
||||
pub TreasuryAccount: AccountId = TREASURY_PALLET_ID.into_account_truncating();
|
||||
@@ -123,8 +125,8 @@ pub type FungibleTransactor = FungibleAdapter<
|
||||
LocationToAccountId,
|
||||
// Our chain's account ID type (we can't get away without mentioning it explicitly):
|
||||
AccountId,
|
||||
// We don't track any teleports of `Balances`.
|
||||
(),
|
||||
// Teleports tracking — Asset Hub is the canonical minter post-migration.
|
||||
TeleportTracking,
|
||||
>;
|
||||
|
||||
/// `AssetId`/`Balance` converter for `TrustBackedAssets`.
|
||||
|
||||
@@ -174,7 +174,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
spec_name: alloc::borrow::Cow::Borrowed("pezkuwichain"),
|
||||
impl_name: alloc::borrow::Cow::Borrowed("parity-pezkuwichain"),
|
||||
authoring_version: 0,
|
||||
spec_version: 1_020_006,
|
||||
spec_version: 1_020_007,
|
||||
impl_version: 0,
|
||||
apis: RUNTIME_API_VERSIONS,
|
||||
transaction_version: 26,
|
||||
|
||||
@@ -55,7 +55,8 @@ parameter_types! {
|
||||
pub const ThisNetwork: NetworkId = NetworkId::ByGenesis(PEZKUWICHAIN_GENESIS_HASH);
|
||||
pub UniversalLocation: InteriorLocation = ThisNetwork::get().into();
|
||||
pub CheckAccount: AccountId = XcmPallet::check_account();
|
||||
pub LocalCheckAccount: (AccountId, MintLocation) = (CheckAccount::get(), MintLocation::Local);
|
||||
/// Pezkuwi relay does not have mint authority anymore after the Asset Hub migration.
|
||||
pub TeleportTracking: Option<(AccountId, MintLocation)> = None;
|
||||
pub TreasuryAccount: AccountId = Treasury::account_id();
|
||||
}
|
||||
|
||||
@@ -81,8 +82,7 @@ pub type LocalAssetTransactor = FungibleAdapter<
|
||||
LocationConverter,
|
||||
// Our chain's account ID type (we can't get away without mentioning it explicitly):
|
||||
AccountId,
|
||||
// We track our teleports in/out to keep total issuance correct.
|
||||
LocalCheckAccount,
|
||||
TeleportTracking,
|
||||
>;
|
||||
|
||||
/// The means that we convert the XCM message origin location into a local dispatch origin.
|
||||
|
||||
Reference in New Issue
Block a user