@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.
- package/dist/index.d.ts +8 -7
- package/dist/index.js.map +2 -2
- package/dist/subgraphs/index.d.ts +6 -6
- package/dist/subgraphs/index.js.map +2 -2
- package/package.json +4 -6
|
@@ -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
|
-
*
|
|
1708
|
-
*
|
|
1709
|
-
type IndexPox5EventTopic =
|
|
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. */
|