bolt5

On-chain transaction handling for Lightning (docs.ppad.tech/bolt5).
git clone git://git.ppad.tech/bolt5.git
Log | Files | Refs | README | LICENSE

commit 7db162dafa2b9afa048ea546efbd6bc1eb1649bb
parent c994874e73c9b556a9a2f22f00528504d8e81720
Author: Jared Tobin <jared@jtobin.io>
Date:   Mon, 20 Apr 2026 15:34:49 +0800

add Internal module exposing all constructors for test use

Diffstat:
Alib/Lightning/Protocol/BOLT5/Internal.hs | 27+++++++++++++++++++++++++++
Mppad-bolt5.cabal | 1+
2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/lib/Lightning/Protocol/BOLT5/Internal.hs b/lib/Lightning/Protocol/BOLT5/Internal.hs @@ -0,0 +1,27 @@ +{-# OPTIONS_HADDOCK hide #-} + +-- | +-- Module: Lightning.Protocol.BOLT5.Internal +-- Copyright: (c) 2025 Jared Tobin +-- License: MIT +-- Maintainer: Jared Tobin <jared@ppad.tech> +-- +-- Internal definitions for BOLT #5. +-- +-- This module re-exports all constructors from the Types +-- module, including those not exported by the public API. +-- Use only in tests or trusted internal code. + +module Lightning.Protocol.BOLT5.Internal ( + -- * All type constructors (for test use) + CloseType(..) + , UnresolvedOutput(..) + , OutputResolution(..) + , HTLCOutputType(..) + , SpendingTx(..) + , RevokedOutput(..) + , RevokedOutputType(..) + , PenaltyContext(..) + ) where + +import Lightning.Protocol.BOLT5.Types diff --git a/ppad-bolt5.cabal b/ppad-bolt5.cabal @@ -26,6 +26,7 @@ library exposed-modules: Lightning.Protocol.BOLT5 Lightning.Protocol.BOLT5.Detect + Lightning.Protocol.BOLT5.Internal Lightning.Protocol.BOLT5.Spend Lightning.Protocol.BOLT5.Types build-depends: