reasampler_pure_library(origin_ledger SOURCES origin_ledger.cpp LINK PRIVATE json)
reasampler_test(origin_ledger LINK origin_ledger json)

# prune_reconcile + bank_book are linked into the authority's test, not the library:
# the test proves end-to-end that a tied usage can never reach the orphan set, which
# is the "consumers cannot disagree" property stated at the pure layer.
reasampler_pure_library(tracking_authority
    SOURCES tracking_authority.cpp
    LINK PUBLIC origin_ledger sample_usage)
reasampler_test(tracking_authority LINK tracking_authority prune_reconcile bank_book)
