@secondlayer/sdk 15.4.0 → 15.4.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.
package/dist/index.d.ts CHANGED
@@ -50,10 +50,9 @@ type ArchiveVerifyResult = {
50
50
  }>;
51
51
  reason?: string;
52
52
  };
53
+ import { ArchiveDataset } from "@secondlayer/shared/archive/datasets";
53
54
  import { RangeDigest } from "@secondlayer/shared/archive/range-digest";
54
55
  import { ArchiveStatus } from "@secondlayer/shared/archive/status";
55
- /** The three archive datasets: blocks, transactions, and events. */
56
- type ArchiveDataset = "blocks" | "transactions" | "events";
57
56
  /** Whether an archive purchase is a bootstrap or a repair. */
58
57
  type ArchiveFlow = "bootstrap" | "repair";
59
58
  /** One archive file: dataset, block range, path, rows, bytes. */
@@ -148,7 +147,7 @@ type ArchiveClient = {
148
147
  /**
149
148
  * List a loaded archive's partitions, optionally filtered.
150
149
  *
151
- * Runs locally on the manifest you already loaded and makes no request. Filter by `dataset` (`blocks`, `transactions`, or `events`) and a block range.
150
+ * Runs locally on the manifest you already loaded and makes no request. Filter by `dataset` (`blocks`, `transactions`, `events`, or `state_writes` when the archive publishes it) and a block range.
152
151
  */
153
152
  partitions(ref: LoadedArchive, filter?: {
154
153
  dataset?: ArchiveDataset;
@@ -353,10 +353,9 @@ type ArchiveVerifyResult = {
353
353
  }>;
354
354
  reason?: string;
355
355
  };
356
+ import { ArchiveDataset } from "@secondlayer/shared/archive/datasets";
356
357
  import { RangeDigest } from "@secondlayer/shared/archive/range-digest";
357
358
  import { ArchiveStatus } from "@secondlayer/shared/archive/status";
358
- /** The three archive datasets: blocks, transactions, and events. */
359
- type ArchiveDataset = "blocks" | "transactions" | "events";
360
359
  /** Whether an archive purchase is a bootstrap or a repair. */
361
360
  type ArchiveFlow = "bootstrap" | "repair";
362
361
  /** One archive file: dataset, block range, path, rows, bytes. */
@@ -451,7 +450,7 @@ type ArchiveClient = {
451
450
  /**
452
451
  * List a loaded archive's partitions, optionally filtered.
453
452
  *
454
- * Runs locally on the manifest you already loaded and makes no request. Filter by `dataset` (`blocks`, `transactions`, or `events`) and a block range.
453
+ * Runs locally on the manifest you already loaded and makes no request. Filter by `dataset` (`blocks`, `transactions`, `events`, or `state_writes` when the archive publishes it) and a block range.
455
454
  */
456
455
  partitions(ref: LoadedArchive, filter?: {
457
456
  dataset?: ArchiveDataset;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondlayer/sdk",
3
- "version": "15.4.0",
3
+ "version": "15.4.2",
4
4
  "description": "Decoded Stacks data in your own database — stream rows into your schema, or query the tables you defined.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -68,9 +68,9 @@
68
68
  "prepublishOnly": "bun run build"
69
69
  },
70
70
  "dependencies": {
71
- "@secondlayer/shared": "^13.8.0",
72
- "@secondlayer/stacks": "^6.4.0",
73
- "@secondlayer/subgraphs": "^7.6.0"
71
+ "@secondlayer/shared": "^14.0.0",
72
+ "@secondlayer/stacks": "^6.5.1",
73
+ "@secondlayer/subgraphs": "^7.7.1"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@openpkg-ts/cli": "^0.13.2",