1

Which are the absolute must-have pallets that need to be added to a runtime to make it parachain-compatible?

I am looking at the parachain template.

Are the XCM helpers necessary?

2 Answers 2

1

The essential ones are:

  • frame_system
  • cumulus_pallet_parachain_system
  • pallet_timestamp
  • pallet_authorship
  • pallet_collator_selection
  • pallet_session
  • pallet_aura
  • cumulus_pallet_xcm: This pallet enables communication between your parachain and the Relay Chain using XCM. It is essential for parachain interoperability and cannot be removed.

You can make do with the other ones depending on your specific use-case by implementing custom pallets.

3
  • Can cumulus-pallet-aura-ext be skipped, as I see that it passes a ConsensusHook to cumulus-pallet-parachain-system and execute_block for validate_block runtime function?
    – lime
    Commented Feb 22 at 7:51
  • Yes, you can delete it if you're using an alternative consensus mechanism like GRANDPA
    – philoniare
    Commented Feb 26 at 15:15
  • Thanks. Isn't pallet-xcm necessary as well? I see that cumulus-pallet-xcm expects an xcm executor.
    – lime
    Commented Feb 26 at 15:52
0

I found out that the must-have parachain pallets for parachain compatibility are:

  • cumulus_pallet_parachain_system
  • parachain_info
  • cumulus_pallet_aura_ext (if you are using pallet_aura for consensus)

This does not include XCM message processing. In order to process XCM messages, you will need to import the necessary XCM pallets.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.