Skip to content

Add entities/stake_pools/v0 namespace and definitions#290

Merged
joaosreis merged 6 commits intomainfrom
joaosreis/entities-stake-pool
Apr 27, 2026
Merged

Add entities/stake_pools/v0 namespace and definitions#290
joaosreis merged 6 commits intomainfrom
joaosreis/entities-stake-pool

Conversation

@joaosreis
Copy link
Copy Markdown
Member

No description provided.

@joaosreis joaosreis self-assigned this Apr 7, 2026
@joaosreis joaosreis force-pushed the joaosreis/entities-stake-pool branch 3 times, most recently from 6c1cb78 to 9e3a9e4 Compare April 16, 2026 10:12
@joaosreis joaosreis force-pushed the joaosreis/entities-stake-pool branch from fd53099 to 4d28898 Compare April 27, 2026 09:26
@joaosreis joaosreis force-pushed the joaosreis/entities-stake-pool branch from 4d28898 to 3658206 Compare April 27, 2026 09:39
@joaosreis joaosreis marked this pull request as ready for review April 27, 2026 11:01
Copilot AI review requested due to automatic review settings April 27, 2026 11:01
Copy link
Copy Markdown
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

Adds support for the new entities/stake_pools/v0 CIP-0165 namespace to the scls-cardano CDDL/spec layer, and wires it into conformance testing and the pinned reference CIPs revision.

Changes:

  • Introduce Cardano.SCLS.Namespace.EntitiesStakePools and register it in Cardano.SCLS.CDDL (KnownSpec, knownNamespaces, key size).
  • Extend common CDDL rules with stake-pool-related primitives (staking_keyhash, relay, pool_metadata, etc.) used by the new namespace.
  • Update conformance/reference plumbing and bump the pinned tweag/CIPs revision (Nix + CI workflow).

Reviewed changes

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

Show a summary per file
File Description
scls-cardano/testlib/Cardano/SCLS/Testlib.hs Adds the new namespace to the implementor test matrix.
scls-cardano/test/Reference.hs Adds the namespace → reference CDDL filename mapping.
scls-cardano/scls-cardano.cabal Registers the new namespace module in the library build.
scls-cardano/cddl-src/Cardano/SCLS/Namespace/EntitiesStakePools.hs New CDDL rules for the entities/stake_pools/v0 namespace.
scls-cardano/cddl-src/Cardano/SCLS/Common.hs Adds shared stake-pool-related CDDL definitions.
scls-cardano/cddl-src/Cardano/SCLS/CDDL.hs Wires the namespace into KnownSpec/knownNamespaces and sets key size.
flake.nix Bumps pinned tweag/CIPs input revision.
flake.lock Updates lock data for the new tweag/CIPs revision.
.github/workflows/haskell-ci.yml Updates CI checkout ref for the pinned tweag/CIPs revision.

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

Comment thread scls-cardano/cddl-src/Cardano/SCLS/Common.hs
Comment thread scls-cardano/cddl-src/Cardano/SCLS/Namespace/EntitiesStakePools.hs Outdated
@joaosreis joaosreis requested a review from qnikst April 27, 2026 11:28
@joaosreis
Copy link
Copy Markdown
Member Author

IntersectMBO/cardano-ledger#5742 is approved

Copy link
Copy Markdown
Member

@qnikst qnikst left a comment

Choose a reason for hiding this comment

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

LGTM

@joaosreis joaosreis merged commit 3e6b5f4 into main Apr 27, 2026
26 checks passed
@joaosreis joaosreis deleted the joaosreis/entities-stake-pool branch April 27, 2026 15:57
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.

3 participants