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

pop build parachain: Generate a chain specification file #28

Closed
AlexD10S opened this issue Mar 6, 2024 · 1 comment · Fixed by #219
Closed

pop build parachain: Generate a chain specification file #28

AlexD10S opened this issue Mar 6, 2024 · 1 comment · Fixed by #219
Labels
parachain Features related to parachain functionality

Comments

@AlexD10S
Copy link
Collaborator

AlexD10S commented Mar 6, 2024

Add an option for pop build parachain to generate a chain spec file after build it.

The steps are Modify the default chain specification:

  1. Generate the plain text chain specification: ./target/release/parachain-template-node build-spec --disable-default-bootnode > plain-parachain-chainspec.json
  2. Modify the file to change para_id indicated by the user (flag --para_id)
  3. Generate a raw chain specification file from the modified chain specification file: ./target/release/parachain-template-node build-spec --chain plain-parachain-chainspec.json --disable-default-bootnode --raw > raw-parachain-chainspec.json
@weezy20
Copy link
Collaborator

weezy20 commented Mar 7, 2024

Comment on the use of the word/subsubcommand parachain. Does this need to be under build more specificially, build parachain? Where possible I recommend designing at most, 1 subcommand deep commands to emphasize the quickness working with pop-cli

Here's some design alternatives to consider:

  1. pop build-spec <options> where options are simply piped to build-spec on the substrate cli.
  2. pop build spec <options> again, this means a separate subsubcommand but atleast the intent is clearly communciated with it and not using parachain everywhere redundantly. This is also important for future considerations where users will be allowed to use pop with custom templates/repositories (pop new --url ) which would mean avoiding code modification when we want to build-spec out of a solochain codebase.
  3. pop export <chainspec | runtime-wasm | genesis > a new export subcommand that deals specifically with exporting artifacts that are useful to the parachain developer.

@AlexD10S AlexD10S mentioned this issue Mar 7, 2024
2 tasks
@evilrobot-01 evilrobot-01 changed the title pop build parachain: Generate a chain specification file pop build parachain: Generate a chain specification file Mar 12, 2024
@AlexD10S AlexD10S added the parachain Features related to parachain functionality label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parachain Features related to parachain functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants