@mikeargento/bitgraph-audit 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.ts CHANGED
@@ -1364,6 +1364,37 @@ export interface CeilingCheck {
1364
1364
  /** Online check against a Base RPC: null when not asked or unreachable. */
1365
1365
  onChain: boolean | null;
1366
1366
  onChainDetail?: string;
1367
+ /** Present when the ceiling file carries a settlement pointer (bitgraph-settlement/1). */
1368
+ settlement?: CeilingSettlementCheck;
1369
+ }
1370
+
1371
+ /**
1372
+ * A ceiling's settlement on Ethereum, checked offline in two layers: the
1373
+ * POINTER (the Ethereum header, the batcher transaction's inclusion, its
1374
+ * blob commitments) and the BLOBS (blob bytes kept in the bundle, verified
1375
+ * against those commitments and decoded down to the ceiling transaction).
1376
+ * Blob bytes absent from the bundle are reported, never a failure.
1377
+ */
1378
+ export interface CeilingSettlementCheck {
1379
+ /** verified: both layers passed. pointer-only: the pointer passed and no blob bytes were in the bundle. failed: a layer that ran failed. */
1380
+ status: "verified" | "pointer-only" | "failed";
1381
+ pointer: {
1382
+ ok: boolean;
1383
+ reason?: string;
1384
+ /** The Ethereum block the batcher transaction is in, read from its verified header. */
1385
+ existedBy?: { blockNumber: number; blockHash: string; blockTimestamp: number };
1386
+ };
1387
+ blobs: {
1388
+ status: "verified" | "failed" | "absent";
1389
+ detail: string;
1390
+ /** Blobs the pointer names, and how many had bytes in the bundle. */
1391
+ listed: number;
1392
+ supplied: number;
1393
+ /** Where the ceiling transaction was found inside the decoded batch data. */
1394
+ located?: { baseBlockNumber: number; baseTxIndex: number; txHash: string; batchComplete: boolean; framesDecoded: number; framesTotal: number | null };
1395
+ };
1396
+ /** One line per layer, for people. */
1397
+ lines: string[];
1367
1398
  }
1368
1399
 
1369
1400
  export interface CeilingAnalysis {