@secondlayer/sdk 6.37.0 → 6.37.1

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.
@@ -277,6 +277,8 @@ declare class Contracts extends BaseClient {
277
277
  includeAbi?: boolean
278
278
  }): Promise<ContractSummary | null>;
279
279
  }
280
+ import { Pox5EventTopic } from "@secondlayer/stacks/pox5";
281
+ import { SbtcEventTopic } from "@secondlayer/stacks/sbtc";
280
282
  import { InferredTopicSchema } from "@secondlayer/subgraphs";
281
283
  import { RewardSet } from "@secondlayer/shared/node/consensus";
282
284
  import { MerkleProofStep } from "@secondlayer/shared/node/nakamoto";
@@ -1412,8 +1414,6 @@ type PrintSchemaResponse = {
1412
1414
  }
1413
1415
  tip: IndexTip
1414
1416
  };
1415
- /** The decoded `sbtc_events` topics. */
1416
- type SbtcEventTopic = "completed-deposit" | "withdrawal-create" | "withdrawal-accept" | "withdrawal-reject" | "key-rotation" | "update-protocol-contract";
1417
1417
  type SbtcWithdrawalStatus = "REQUESTED" | "ACCEPTED" | "REJECTED";
1418
1418
  /** A completed sBTC peg-in, keyed by `bitcoin_txid` (deposits carry no
1419
1419
  * `request_id`). One terminal `completed-deposit` event per deposit. */
@@ -1703,10 +1703,10 @@ interface PoxResource {
1703
1703
  get(rewardCycle: number): Promise<PoxCycleEnvelope | null>
1704
1704
  };
1705
1705
  }
1706
- /** The decoded `pox-5` boot-contract print topics (SIP-045 Bitcoin Staking).
1707
- * Declared locally rather than imported from the server packages — the SDK is
1708
- * published and owns its own dependency surface (same as {@link SbtcEventTopic}). */
1709
- type IndexPox5EventTopic = "set-bond-admin" | "set-pause-admin" | "pause-rewards" | "setup-bond" | "add-to-allowlist" | "register-for-bond" | "update-bond-registration" | "register-signer" | "stake" | "stake-update" | "announce-l1-early-exit" | "unstake-sbtc" | "unstake" | "calculate-rewards" | "bond-distribution" | "claim-rewards" | "claim-staker-rewards-for-signer" | "grant-signer-key" | "revoke-signer-grant";
1706
+ /** The decoded `pox-5` boot-contract print topics (SIP-045 Bitcoin Staking) —
1707
+ * one source of truth in `@secondlayer/stacks/pox5` (already a dependency;
1708
+ * the old "SDK owns its own dependency surface" rationale predated that). */
1709
+ type IndexPox5EventTopic = Pox5EventTopic;
1710
1710
  /** A raw decoded PoX-5 print event. Promoted fields cover the hot query paths;
1711
1711
  * `data` always carries the full decoded tuple, including nested shapes
1712
1712
  * (`btc-lockup`, `bond-rewards`, `bond-periods`) that have no flat column. */