[Idea] OP Stack - Deploy Config Generator #559
rabbitprincess
started this conversation in
Ideas
Replies: 1 comment
-
Hey @rabbitprincess, I think this is a great idea. There is some efforts being put forward on the protocol front that will help ease this process, but in the meantime, a tool like this would be a great resource. The work around the OP Stack Manager will help modularize the deployment configurations to make them easier to manage when deploying a new chain. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea
During the deployment of the OP stack, one of the most challenging aspects was managing the deployment configs.
It's difficult to find all the configuration specifications and use cases. The only complete reference is the golang code, but It is hard to find for chain operators.
Another issue is the format of the deployment configuration. JSON, being unordered and uncategorized, cannot effectively represent empty values. People have trouble distinguishing between numerous fields that need to be changed, and need to be kept.
As an alternative, I suggest generating the deployment config using jsonnet. it offers several advantages:
Required
: Throws an error if missing.Default
: Uses a default value if missing.Optional
: Returns an empty if missing.It can be used in simple scripts ( shell script, python, golang ), and also used in interactive UIs.
For reference, here are some prototypes:
Jsonnet example: jsonnet template
config generation example: shell script for json generation
It is currently part of builderism. If possible, I would like to see it adopted as a specification in the optimism tutorials.
Beta Was this translation helpful? Give feedback.
All reactions