@secondlayer/sdk 6.21.0 → 6.21.2

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.
Files changed (2) hide show
  1. package/README.md +7 -8
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -19,7 +19,7 @@ const sl = new SecondLayer({
19
19
  });
20
20
  ```
21
21
 
22
- `sl.datasets`, `sl.contracts`, `sl.index`, and `sl.subgraphs` reads are anonymous
22
+ `sl.contracts`, `sl.index`, and `sl.subgraphs` reads are anonymous
23
23
  — no key needed (`sl.index` rejects free-tier keys — Build+ for keyed access).
24
24
  **`sl.streams` reads require a bearer token** (`apiKey`) and resolve a per-tier tenant; a
25
25
  publicly-known free-tier token exists but a bearer is always required. Writes
@@ -36,15 +36,14 @@ plan's tier.
36
36
 
37
37
  ## Mental model
38
38
 
39
- - `sl.streams` reads raw ordered L1 events from Stacks Streams.
40
- - `sl.index` reads the decoded L2 layer from Stacks Index — FT/NFT transfers, all event types (`events`), and `contractCalls`.
41
- - `sl.datasets` reads the Foundation Datasets (sBTC, BNS, PoX-4, STX transfers); `listDatasets()` is the catalog.
39
+ - `sl.streams` reads raw ordered chain events from Stacks Streams.
40
+ - `sl.index` reads the decoded layer from Stacks Index — FT/NFT transfers, all event types (`events`), and `contractCalls`.
42
41
  - `sl.contracts` finds deployed contracts by trait (SIP-009/010/013).
43
- - `sl.subgraphs` reads app-specific L3 tables from Stacks Subgraphs.
42
+ - `sl.subgraphs` reads app-specific tables from Stacks Subgraphs.
44
43
 
45
44
  ## Stacks Streams
46
45
 
47
- Typed L1 HTTP client. Reads require a bearer token (`apiKey`).
46
+ Typed HTTP client for the raw event firehose. Reads require a bearer token (`apiKey`).
48
47
 
49
48
  ```typescript
50
49
  const tip = await sl.streams.tip();
@@ -220,7 +219,7 @@ helpers beside `src/streams/ft-transfer.ts` and export them through
220
219
 
221
220
  ## Stacks Index
222
221
 
223
- Decoded L2 transfer events.
222
+ Decoded transfer events.
224
223
 
225
224
  ```typescript
226
225
  const ftPage = await sl.index.ftTransfers.list({
@@ -317,7 +316,7 @@ Exported types: `TransactionProof`, `TransactionProofVerifyResult`, `RewardSet`.
317
316
 
318
317
  ## Stacks Subgraphs
319
318
 
320
- Deploy and query app-specific L3 tables.
319
+ Deploy and query app-specific tables.
321
320
 
322
321
  Subgraphs and subscriptions live on the platform API alongside Streams and Index. Deploying and managing them needs your `sk-sl_` key — no extra setup, no tenant URL.
323
322
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondlayer/sdk",
3
- "version": "6.21.0",
3
+ "version": "6.21.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,9 +40,9 @@
40
40
  "prepublishOnly": "bun run build"
41
41
  },
42
42
  "dependencies": {
43
- "@secondlayer/shared": "^6.30.0",
44
- "@secondlayer/stacks": "^2.5.0",
45
- "@secondlayer/subgraphs": "^3.11.0"
43
+ "@secondlayer/shared": "^6.31.0",
44
+ "@secondlayer/stacks": "^2.5.1",
45
+ "@secondlayer/subgraphs": "^3.12.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/bun": "latest",