All files / lib index.ts

100% Statements 55/55
100% Branches 0/0
0% Functions 0/16
100% Lines 54/54

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 671x     1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x       1x 1x 1x 1x 1x 1x 1x       1x 1x 1x 1x 1x 1x 1x 1x 1x     1x 1x 1x 1x 1x 1x 1x     1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
export * from '@node-dlc/bitcoin';
 
// Explicitly re-export commonly used types from bitcoin for better TypeScript support
export * from './AsyncProcessingQueue';
export * from './Base32';
export * from './BigIntUtils';
export * from './BitField';
export * from './ChannelId';
export * from './LinkedList';
export * from './LinkedListNode';
export * from './Queue';
export * from './ShortChannelId';
export * from './ShortChannelIdUtils';
export {
  HashByteOrder,
  HashValue,
  OutPoint,
  Script,
  Tx,
  TxBuilder,
  TxIn,
  TxOut,
  Value,
} from '@node-dlc/bitcoin';
 
// Explicitly export the utility functions that wire needs
export {
  shortChannelIdFromBuffer,
  shortChannelIdFromNumber,
  shortChannelIdFromString,
  shortChannelIdToBuffer,
  shortChannelIdToNumber,
  shortChannelIdToString,
} from './ShortChannelIdUtils';
 
// Lightning subdirectory exports (excluding ChannelId to avoid conflict)
export { ChannelId as LightningChannelId } from './lightning/ChannelId';
export * from './lightning/ChannelKeys';
export * from './lightning/CommitmentNumber';
export * from './lightning/CommitmentSecret';
export * from './lightning/CommitmentSecretStore';
export * from './lightning/Htlc';
export * from './lightning/HtlcDirection';
export * from './lightning/ScriptFactory';
export * from './lightning/TxFactory';
 
// Original node-dlc core exports
export * from './dlc/CETCalculator';
export * from './dlc/CoinSelect';
export * from './dlc/HyperbolaPayoutCurve';
export * from './dlc/PayoutCurve';
export * from './dlc/PolynomialPayoutCurve';
export * from './dlc/TxBuilder';
export * from './dlc/TxFinalizer';
 
// Finance subdirectory exports
export * from './dlc/finance/Builder';
export * from './dlc/finance/CoveredCall';
export * from './dlc/finance/CsoInfo';
export * from './dlc/finance/LinearPayout';
export * from './dlc/finance/LongCall';
export * from './dlc/finance/LongPut';
export * from './dlc/finance/OptionInfo';
export * from './dlc/finance/ShortPut';
export * from './utils/BigIntUtils';
export * from './utils/Precision';