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

provide a reference for the cost model keys #2635

Merged
merged 1 commit into from
Feb 10, 2022

Conversation

JaredCorduan
Copy link
Contributor

Provide a reference for the cost model keys so that the CDDL spec can reference it.

closes #2634

; The values in the serialization are assumed to be ordered
; lexicographically by their correpsonding key value.
; The key values can be found in the Plutus repository:
; https://github.com/input-output-hk/plutus/blob/748a0c62de00f9944100b616367d9b6549346022/plutus-core/plutus-core/test/CostModelInterface/defaultCostModelParams.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm less comfortable with referencing this externally. That's data that we use for testing, not anything that we're committing to be used as reference. If you're okay with that then fine.

Also there is a reference here: https://plutus.readthedocs.io/en/latest/reference/cost-model-parameters.html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm glad you said something, I must have misunderstood. Would you prefer if I add the text file back, the one which just lists the key names?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's whichever you're more comfortable with the risks for:

  • The text file we'll have to remember to keep up to date
  • The reference to the test file might become wrong, or we might move it, or who knows

So that the CDDL spec can reference it.

closes #2634
@JaredCorduan JaredCorduan force-pushed the jc/specify_cost_model_keys_for_cddl branch from 61f59c8 to 5bc6b77 Compare February 2, 2022 19:14
@nc6 nc6 merged commit 6e9cdbc into master Feb 10, 2022
@iohk-bors iohk-bors bot deleted the jc/specify_cost_model_keys_for_cddl branch February 10, 2022 22:49
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

Successfully merging this pull request may close these issues.

important to define the key names for costModel
3 participants