Skip to content

Commit

Permalink
Provide a reference for the cost model keys
Browse files Browse the repository at this point in the history
So that the CDDL spec can reference it.

closes #2634
  • Loading branch information
Jared Corduan committed Jan 31, 2022
1 parent 8e9b094 commit 61f59c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eras/alonzo/test-suite/cddl-files/alonzo.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,11 @@ language = 0 ; Plutus v1

costmdls = { * language => cost_model } ; New

; The keys to the cost model map are not present in the serialization.
; 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
cost_model = [ 166*166 int ] ; New

transaction_metadatum =
Expand Down

0 comments on commit 61f59c8

Please sign in to comment.