-
Notifications
You must be signed in to change notification settings - Fork 41
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
Create file with Cardano minimum versions in repository #1615
Comments
Would be great if we can make this future-proof to e.g. also have In the hydra project we also created a It's not a big deal, and maybe YAGNI, but would be great if we can have something more future proof like: {
"mainnet": {
"minCardanoNodeVersion": "8.7.3",
// ....
}
} Maybe having a descriptive field name (e.g. |
This issue only aims at handling the Cardano minimum versions for the signer, but it could lead to a broader issue about Mithril configurations. In that case, the file used would be named differently (with a different JSON model). The current Maybe the following format is more future proof as Cardano minimum versions could also be related to other types of nodes on the network (at least the aggregator): {
"about": "minimum supported Cardano node versions",
"network":{
"mainnet": {
"minCardanoNodeVersionForMithrilSigner": "8.7.3",
}
"preprod": {
"minCardanoNodeVersionForMithrilSigner": "8.7.3",
}
"preview": {
"minCardanoNodeVersionForMithrilSigner": "8.7.3",
}
"sanchonet": {
"minCardanoNodeVersionForMithrilSigner": "8.9.0",
}
}
} WDYT? |
LGTM 👍, also remove the |
I realize if we only aim for that, you don't need to consider my feedback because it does not need to be future proof. I guess my comment only holds if you already want to build something more generice (i.e. a If we go for |
I agree, let's use this format 🙂 instead {
"mainnet": {
"mithrilSigner": "8.7.3",
},
"preprod": {
"mithrilSigner": "8.7.3",
},
"preview": {
"mithrilSigner": "8.7.3",
},
"sanchonet": {
"mithrilSigner": "8.9.0",
}
} |
I like all the thought going into this, as well as the future proofing by explicitly defining which component the Cardano version relates to. As for the name of the file, I have no strong preference between |
Is the name style meant to match something? My first glance at the example I presumed camel case matched a crate/module in the repo, so didn't think much more of it at the time. I was starting on the proof of concept from discussion #1624 based on the example code today. I decided just to poke around a bit more into the current Mithril code and noticed camel case results in zero hits in the repo, so dug in a bit more: Camel Case
Pascal Case
Snake Case
Kebab Case
Since snake case is related to variables I'll just drop it from the list with the camel case 0 results. I didn't see anything about naming conventions in the Contributions guidelines other than to use rustfmt. I could also be missing there is a standard JSON library or that rustfmt itself enforces a naming convention of camelCase. Short of either of those, and based solely on Type/Use and commonality, I have 2 suggestions:
My apologies if this seems overly meticulous for a request to define minimum versions. Anything is better than nothing, so if I overlooked a reason to persist camel case please feel free to ignore my request and continue with the camel case style. EDIT: |
Thanks @TrevorBenson for your comments. We've made several changes:
|
Why
Following the discussion #1606, we want to advertise the supported Cardano node versions for the Mithril signer.
What
Add a
cardano-min-versions.json
file at the root of the repository which details the minimum supported versions:How
2418
distribution #1614mithril/docs/website/root/manual/getting-started/run-signer-node.md
Line 96 in a7d6f38
The text was updated successfully, but these errors were encountered: