From 61f59c88fecd809612d3cb8f9ccd6ed7b4baffb1 Mon Sep 17 00:00:00 2001 From: Jared Corduan Date: Mon, 31 Jan 2022 13:10:12 -0500 Subject: [PATCH] Provide a reference for the cost model keys So that the CDDL spec can reference it. closes #2634 --- eras/alonzo/test-suite/cddl-files/alonzo.cddl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eras/alonzo/test-suite/cddl-files/alonzo.cddl b/eras/alonzo/test-suite/cddl-files/alonzo.cddl index a92de3e74ca..3988808a65a 100644 --- a/eras/alonzo/test-suite/cddl-files/alonzo.cddl +++ b/eras/alonzo/test-suite/cddl-files/alonzo.cddl @@ -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 =