@secondlayer/sdk 6.27.2 → 6.28.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.
@@ -1374,6 +1374,9 @@ type IndexSbtcWithdrawal = {
1374
1374
  recipient_btc_version: number | null
1375
1375
  recipient_btc_hashbytes: string | null
1376
1376
  sweep_txid: string | null
1377
+ /** BTC L1 settlement of the committed sweep: true once confirmed, false while
1378
+ * pending, null when there is no sweep yet (REQUESTED). */
1379
+ settlement_confirmed: boolean | null
1377
1380
  requested_at?: string | null
1378
1381
  resolved_at?: string | null
1379
1382
  };
@@ -1402,6 +1405,10 @@ type IndexSbtcWithdrawalDetail = {
1402
1405
  sweep_txid: string | null
1403
1406
  btc_confirmations: number | null
1404
1407
  settlement_confirmed: boolean | null
1408
+ /** Confirming Bitcoin block height; null until the sweep confirms. */
1409
+ btc_block_height: number | null
1410
+ /** ISO timestamp the sweep first crossed the confirmation threshold. */
1411
+ confirmed_at: string | null
1405
1412
  }
1406
1413
  finalized: boolean
1407
1414
  };
@@ -1503,6 +1510,9 @@ type SbtcWithdrawalsListParams = {
1503
1510
  status?: SbtcWithdrawalStatus
1504
1511
  sender?: string
1505
1512
  requestId?: number
1513
+ /** Filter by BTC L1 settlement: true → only confirmed sweeps; false → not
1514
+ * yet confirmed (pending or no sweep). */
1515
+ settlementConfirmed?: boolean
1506
1516
  fromHeight?: number
1507
1517
  toHeight?: number
1508
1518
  };
@@ -1201,6 +1201,7 @@ class Index extends BaseClient {
1201
1201
  status: params.status,
1202
1202
  sender: params.sender,
1203
1203
  request_id: params.requestId,
1204
+ settlement_confirmed: params.settlementConfirmed,
1204
1205
  from_height: params.fromHeight,
1205
1206
  to_height: params.toHeight
1206
1207
  })}`);
@@ -1957,5 +1958,5 @@ export {
1957
1958
  Subgraphs
1958
1959
  };
1959
1960
 
1960
- //# debugId=330E248B8FA1515864756E2164756E21
1961
+ //# debugId=C6E77062B0832DE064756E2164756E21
1961
1962
  //# sourceMappingURL=index.js.map