Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mainnet and testnet runtimes #25

Open
metricaez opened this issue Jan 7, 2025 · 0 comments
Open

Mainnet and testnet runtimes #25

metricaez opened this issue Jan 7, 2025 · 0 comments

Comments

@metricaez
Copy link

Right now, the Polkadot SDK parachain template only includes one runtime by default, but there’s commonly a need for different setups for testnet and mainnet. It would be great if the template already came with a folder structure that separates the runtimes. Something like a common folder for shared logic and two runtime folders (e.g., mainnet and testnet).

My suggestion:

  • Set up a default folder structure in the template, with common, mainnet, and testnet folders.

Reasoning:

  • Makes it easier for developers to handle different setups for testnet and mainnet from the start.
  • Saves time and avoids big refactors later. In my case I had to do it to configure a transactor for XCM. The same asset had two different IDs—one for mainnet and another for testnet—which forced me to refactor everything to split the runtime for the XCM config.
  • Allows teams to define different business logic and perform runtime upgrades independently for testnet and mainnet, tailored to their specific use case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant