diff --git a/.github/workflows/haskell-ci.yml b/.github/workflows/haskell-ci.yml index 4052ac74..84910220 100644 --- a/.github/workflows/haskell-ci.yml +++ b/.github/workflows/haskell-ci.yml @@ -165,7 +165,7 @@ jobs: uses: actions/checkout@v6 with: repository: tweag/CIPs - ref: 5a4f49835b01695583830e01e2dfd11e9e582efc + ref: 281cccd9e5c7eaf30b9e5cef69062aefcc4822db path: cips - name: set env for reference CDDL run: | diff --git a/flake.lock b/flake.lock index bd5fde29..be1dafbd 100644 --- a/flake.lock +++ b/flake.lock @@ -69,17 +69,17 @@ "cips": { "flake": false, "locked": { - "lastModified": 1774517331, - "narHash": "sha256-Iu6jgcoa/WZcruKaym/3Y5/1awx53eKgvI0l6/+fMIQ=", + "lastModified": 1776254123, + "narHash": "sha256-uTm+6vCEPhVgksUTtmFqF7YAwrY+XPAfM1XTiVNyeTc=", "owner": "tweag", "repo": "CIPs", - "rev": "5a4f49835b01695583830e01e2dfd11e9e582efc", + "rev": "281cccd9e5c7eaf30b9e5cef69062aefcc4822db", "type": "github" }, "original": { "owner": "tweag", "repo": "CIPs", - "rev": "5a4f49835b01695583830e01e2dfd11e9e582efc", + "rev": "281cccd9e5c7eaf30b9e5cef69062aefcc4822db", "type": "github" } }, diff --git a/flake.nix b/flake.nix index 59874068..022a762d 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ inputs.nixpkgs.follows = "nixpkgs"; }; inputs.cips = { - url = "github:tweag/CIPs?rev=5a4f49835b01695583830e01e2dfd11e9e582efc"; + url = "github:tweag/CIPs?rev=281cccd9e5c7eaf30b9e5cef69062aefcc4822db"; flake = false; }; outputs = { self, nixpkgs, flake-utils, haskellNix, git-hooks, treefmt-nix diff --git a/scls-cardano/cddl-src/Cardano/SCLS/CDDL.hs b/scls-cardano/cddl-src/Cardano/SCLS/CDDL.hs index d8ccbcc3..8026b189 100644 --- a/scls-cardano/cddl-src/Cardano/SCLS/CDDL.hs +++ b/scls-cardano/cddl-src/Cardano/SCLS/CDDL.hs @@ -99,4 +99,4 @@ type instance Spec.NamespaceKeySize "entities/committee/v0" = 8 type instance Spec.NamespaceKeySize "gov/committee/v0" = 8 type instance Spec.NamespaceKeySize "gov/constitution/v0" = 8 type instance Spec.NamespaceKeySize "gov/pparams/v0" = 4 -type instance Spec.NamespaceKeySize "gov/proposals/v0" = 34 -- 32 bytes txid+tx index + 2 bytes for proposal index +type instance Spec.NamespaceKeySize "gov/proposals/v0" = 34 -- 28 bytes txid, 4 bytes tx index, 2 bytes for proposal index diff --git a/scls-cardano/cddl-src/Cardano/SCLS/Namespace/GovProposals.hs b/scls-cardano/cddl-src/Cardano/SCLS/Namespace/GovProposals.hs index 5a51c6a0..aa074f54 100644 --- a/scls-cardano/cddl-src/Cardano/SCLS/Namespace/GovProposals.hs +++ b/scls-cardano/cddl-src/Cardano/SCLS/Namespace/GovProposals.hs @@ -47,7 +47,7 @@ record_entry = | ``` | |] - $ "record_entry" =:= proposal + $ "record_entry" =:= arr [a word64, a proposal] committee_cold_credential :: Rule committee_cold_credential = "committee_cold_credential" =:= credential