Skip to content

feat: support implicit domain conversions - #30

Merged
AngelCastilloB merged 3 commits into
mainfrom
feat/implicit-domain-conversions
Nov 3, 2026
Merged

AngelCastilloB merged 3 commits into
mainfrom
feat/implicit-domain-conversions

Conversation

@AngelCastilloB

@AngelCastilloB AngelCastilloB commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Concrete domain values can now be passed directly to functions and collections expecting their general form—for example, a ScriptInvalidBefore can be passed to a function taking const Script&.

Adds 55 conversion paths across scripts, addresses, certificates, MIR certificates, relays, structured Plutus data, and metadata. Direct leaf-to-root constructors avoid C++'s restriction on chaining implicit user-defined conversions. Copies remain independent; 41 direct alternatives also support consuming moves with source preservation on construction failure. Parsing, scalar construction, and role selection remain explicit. The design guide documents supported conversions and overload ambiguity.

Cppcheck disables noExplicitConstructor globally; unit tests verify the intended implicit and explicit conversion boundaries. Also fixes the README documentation badge using the verified Shields.io Read the Docs endpoint.

Validation:

  • All 2,710 unit tests pass, including all conversion paths and allocation-failure cleanup.
  • Full suite passes under Valgrind: zero errors and zero bytes outstanding.
  • Clang-format, Cppcheck, documentation build and documentation checks pass.
  • Installed static and shared package consumers build and pass.

@AngelCastilloB
AngelCastilloB merged commit 57258c0 into main Nov 3, 2026
9 checks passed
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.

1 participant