Skip to content

feat: complete public API and native interoperability - #32

Merged
AngelCastilloB merged 4 commits into
mainfrom
feat/complete-public-api
Nov 4, 2026
Merged

AngelCastilloB merged 4 commits into
mainfrom
feat/complete-public-api

Conversation

@AngelCastilloB

@AngelCastilloB AngelCastilloB commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Complete the remaining public transaction operations: fee and script-data-hash calculations, implicit coin accounting, signed value imbalance, and standalone balancing. Balancing preserves the source draft, maintains spending-redeemer indices after selection, and accepts the existing coin-selector and evaluator interfaces.

Add the missing governance proposals to both builders and treasury donations to sub-transactions. The API reference documents the operations and their ledger semantics.

Expose explicit C interoperability: all 150 native-owning wrappers provide const and mutable nativeHandle() overloads. The 147 value wrappers also provide adopt() and release(). Collections synchronize iterator edits before borrowing or transfer, and mutable borrowing invalidates C++ element references. Builders and secure key handlers support borrowing only because a raw pointer cannot transfer their C++ callback state. JSON-writer adoption requires its format to preserve reset behavior.

Remove the friend declarations: cross-type access uses the interoperability API, and parsed-value validation uses internal functions operating on public accessors. Document ownership and invalidation contracts, and ship the matching C headers alongside the C++ headers.

Reconcile the coverage ledger against all 3,335 exported declarations in the pinned cardano-c revision. No planned entries remain; string convenience variants map to typed C++ APIs, while reference counting and builder bookkeeping remain internal to ordinary C++ operations. The native dependency is unchanged.

Validation: all 2,929 unit tests pass, including native ownership round trips, collection synchronization, and allocation-failure coverage. Full-suite Valgrind reports zero errors and zero retained allocations. Installed static/shared consumers, formatting, cppcheck, and the strict documentation build pass. All eight GitHub Actions checks pass: lint, documentation, Valgrind, Linux x64/ARM64, macOS x64/ARM64, and Windows x64.

@AngelCastilloB AngelCastilloB changed the title feat: complete transaction utilities and governance builders feat: complete public API and native interoperability Nov 4, 2026
@AngelCastilloB
AngelCastilloB merged commit 8c45e1c into main Nov 4, 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