@secondlayer/sdk 6.49.1 → 6.50.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/dist/index.d.ts CHANGED
@@ -1645,6 +1645,17 @@ type IndexPostCondition = {
1645
1645
  asset_value: unknown;
1646
1646
  condition_code: number;
1647
1647
  condition_code_name: string | null;
1648
+ } | {
1649
+ type: "staking";
1650
+ principal: string;
1651
+ condition_code: number;
1652
+ condition_code_name: string | null;
1653
+ amount: string;
1654
+ } | {
1655
+ type: "pox";
1656
+ principal: string;
1657
+ condition_code: number;
1658
+ condition_code_name: string | null;
1648
1659
  };
1649
1660
  /** Full transaction document: columnar fields plus `raw_tx`-decoded enrichment.
1650
1661
  * Payload sub-objects are present only for the matching `tx_type`; enrichment
@@ -3337,8 +3348,7 @@ interface ConsumerHealth {
3337
3348
  * `blocks_behind` is the actual backlog (`tip - scanned_height`, ~0 for a
3338
3349
  * caught-up tail even on a quiet contract), while `last_delivered_height`
3339
3350
  * is the last DELIVERED row — its distance from the tip is event age, not
3340
- * lag. (`block_height` duplicates it, deprecated: alongside three heights
3341
- * the bare name read as "the block I'm on"; it will be removed.)
3351
+ * lag.
3342
3352
  */
3343
3353
  declare function consumerHealth(options?: {
3344
3354
  staleAfterMs?: number;
package/dist/index.js CHANGED
@@ -2688,7 +2688,6 @@ function consumerHealth(options = {}) {
2688
2688
  ok,
2689
2689
  checkpoint: lastCtx?.cursor ?? null,
2690
2690
  last_delivered_height: lastCtx?.height ?? null,
2691
- block_height: lastCtx?.height ?? null,
2692
2691
  scanned_height: lastCtx?.scannedHeight ?? null,
2693
2692
  tip_height: lastCtx?.tipHeight ?? null,
2694
2693
  blocks_behind: lastCtx?.blocksBehind ?? null,
@@ -2930,5 +2929,5 @@ export {
2930
2929
  ApiError
2931
2930
  };
2932
2931
 
2933
- //# debugId=C06785C1ADD4B30364756E2164756E21
2932
+ //# debugId=FF0374F12DD08F8A64756E2164756E21
2934
2933
  //# sourceMappingURL=index.js.map