Add register-system-para subcommand#56
Open
karolk91 wants to merge 7 commits into
Open
Conversation
New command that generates all calls needed to register a system parachain on the relay chain via Asset Hub governance. Uses the whitelist+preimage pattern to work around the 128 KB UMP limit: the large force_register call (with WASM) is stored as a preimage on the relay chain, while Asset Hub sends a tiny XCM batch that whitelists and dispatches it. Asset Hub has Root on the relay via LocationAsSuperuser
seadanda
reviewed
Apr 21, 2026
| println!(" REGISTER SYSTEM PARACHAIN {}", args.para_id); | ||
| println!("{}", "=".repeat(60)); | ||
| println!(); | ||
| println!(" STEP 1 — Submit on Relay Chain (permissionless):"); |
Collaborator
There was a problem hiding this comment.
This means they'd get charged the full fee and deposit, and isn't the intended order if they're doing the delay path
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.
Adds composable primitives for building Asset Hub governance proposals that
register a system parachain and/or reserve cores on Coretime.
New subcommands
xcm-force-register— relay-chainRegistrar.force_registerwrapped inthe whitelist + preimage pattern, with optional delayed dispatch for the
free-preimage path. Outputs
preimage.hex,xcm_whitelist.hex,xcm_dispatch.hex.xcm-force-reserve— AH XCM send carryingBroker.force_reserve(para, core).batch-ah— combines hex-encoded AH calls into a singleUtility.batch_allproposal.register-system-para— convenience wrapper that chains the primitivesabove for the common single-para case.
Docs
See README for details and a worked multi-parachain example.
Real-world scenario
Used to prepare the Bulletin (para 1010) registration + extra core reservations
for Polkadot People (para 1004): https://hackmd.io/@karolk/S1qWzAs2-x