Repository navigation
feat: complete public API and native interoperability - #32
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 provideadopt()andrelease(). 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.