test(asset-registry): register xcFOON from Taifoon - #1485
Closed
yawningmonsoon wants to merge 1 commit into
Closed
Conversation
…ive asset)
Adds an integration test for accepting Taifoon's native currency (xcFOON) on
Hydration. Taifoon is a Moonbeam fork, so xcFOON uses the Moonbeam-family
multilocation shape { parents:1, X2(Parachain(TAIFOON_PARA_ID), PalletInstance(10)) }
(PalletInstance 10 = Balances / native token, 18 decimals) — not GeneralIndex.
The test asserts the assetRegistry.register → location↔asset round-trip, mirroring
root_should_update_location_when_asset_exists. In production this same register call
is submitted via a GeneralAdmin OpenGov referendum (no runtime change needed).
TAIFOON_PARA_ID is a placeholder (3369) until Taifoon reserves its real Polkadot para id.
Author
|
Closing to complete internal review first — Taifoon's para id isn't reserved yet (the test uses a placeholder). Will reopen when the real para id + HRMP are in place. Apologies for the premature draft. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an integration test for accepting xcFOON — the native currency of Taifoon (a Polkadot parachain, Moonbeam fork) — into Hydration's asset registry.
The multilocation (the load-bearing detail)
Taifoon is a Moonbeam fork, so xcFOON uses the Moonbeam-family shape —
PalletInstance(10)(Balances/native, 18 decimals), notGeneralIndex:Changes
integration-tests/src/polkadot_test_net.rs:TAIFOON_PARA_IDconst (placeholder).integration-tests/src/asset_registry.rs:root_should_register_xcfoon_from_taifoon— registers xcFOON viaAssetRegistry::register(18 decimals,AssetType::Token) and assertslocation_assets/locationsround-trip. Mirrors the existingroot_should_update_location_when_asset_existspattern and theAssetTypeusage inevm.rs.Also required for full integration (relay-chain governance, not this repo): bidirectional HRMP Taifoon↔Hydration via
hrmp.hrmpInitOpenChannel/hrmpAcceptOpenChannel.