Skip to content

Conversation

@qnikst
Copy link
Contributor

@qnikst qnikst commented Nov 21, 2025

PR introduces and new namespace from the list

@qnikst qnikst requested review from Copilot and nc6 November 21, 2025 23:35
@qnikst qnikst self-assigned this Nov 21, 2025
Copilot finished reviewing on behalf of qnikst November 21, 2025 23:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a new gov/committee/v0 namespace for handling governance committee data and refactors common CDDL definitions to improve code reusability.

  • Creates new namespace module for governance committee specifications
  • Moves shared credential and hash-related definitions from Snapshots.hs to Common.hs for reuse across multiple namespaces
  • Renames scripthash to script_hash for consistency with naming conventions

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
scls-cddl/cddl-src/Cardano/SCLS/Namespace/GovCommitee.hs New file defining the governance committee namespace with record entry and committee structure specifications
scls-cddl/cddl-src/Cardano/SCLS/Common.hs Adds shared CDDL definitions for credentials, key hashes, and script hashes moved from Snapshots.hs
scls-cddl/cddl-src/Cardano/SCLS/Namespace/Snapshots.hs Removes definitions that have been relocated to Common.hs for better code organization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@qnikst qnikst force-pushed the 95-define-cddl-for-the-govcommittee-namespace-real branch from b2dc50f to b1d4da1 Compare November 21, 2025 23:39
@qnikst qnikst linked an issue Nov 21, 2025 that may be closed by this pull request
@qnikst qnikst force-pushed the 95-define-cddl-for-the-govcommittee-namespace-real branch 2 times, most recently from 9f15303 to 445f692 Compare November 24, 2025 23:21
Copy link
Member

@nc6 nc6 left a comment

Choose a reason for hiding this comment

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

Generally looks OK, but there's some weird stuff going on with the 'GovProposal' file.

=:= arr [0, a credential]
/ arr [1, a (anchor / VNil)]

epoch_no :: Rule
Copy link
Member

Choose a reason for hiding this comment

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

Probably want this in common

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks!

{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}

{-# HLINT ignore "Use camelCase" #-}
module Cardano.SCLS.Namespace.GovCommittee where
Copy link
Member

Choose a reason for hiding this comment

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

Wrong module name for the file

Copy link
Member

Choose a reason for hiding this comment

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

Also this module doesn't appear used at all?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I didn't indent to send it in this PR. Removed it from the PR

@qnikst qnikst force-pushed the 95-define-cddl-for-the-govcommittee-namespace-real branch from 445f692 to 1ae2071 Compare November 25, 2025 16:09
@qnikst qnikst force-pushed the 95-define-cddl-for-the-govcommittee-namespace-real branch from 1ae2071 to 3e889e4 Compare November 25, 2025 16:16
@qnikst qnikst requested review from Copilot and nc6 November 25, 2025 16:17
Copilot finished reviewing on behalf of qnikst November 25, 2025 16:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Define CDDL for the 'gov/committee' namespace

3 participants