@secondlayer/subgraphs 7.0.1 → 7.0.3
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 +148 -53
- package/dist/index.js +6 -5
- package/dist/index.js.map +15 -15
- package/dist/runtime/replay.d.ts +3 -0
- package/dist/runtime/replay.js +6 -5
- package/dist/runtime/replay.js.map +7 -7
- package/dist/schema/index.d.ts +18 -7
- package/dist/schema/index.js +6 -5
- package/dist/schema/index.js.map +6 -6
- package/dist/testing/index.d.ts +62 -10
- package/dist/testing/index.js +6 -5
- package/dist/testing/index.js.map +10 -10
- package/dist/types.d.ts +9 -2
- package/dist/validate.d.ts +18 -7
- package/dist/validate.js.map +2 -2
- package/dist/verification.d.ts +15 -4
- package/dist/verification.js +6 -5
- package/dist/verification.js.map +3 -3
- package/dist/verify/index.d.ts +37 -14
- package/dist/verify/index.js +6 -5
- package/dist/verify/index.js.map +10 -10
- package/package.json +5 -4
package/dist/runtime/replay.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Database as Database3 } from "@secondlayer/shared/db";
|
|
|
2
2
|
import { Webhook } from "@secondlayer/shared/db";
|
|
3
3
|
import { Kysely as Kysely3 } from "kysely";
|
|
4
4
|
import { Block, Event } from "@secondlayer/shared/db";
|
|
5
|
+
/** A transaction as a subgraph source matcher reads it. */
|
|
5
6
|
type TxRecord = {
|
|
6
7
|
tx_id: string;
|
|
7
8
|
type: string;
|
|
@@ -14,6 +15,7 @@ type TxRecord = {
|
|
|
14
15
|
function_args?: unknown | null;
|
|
15
16
|
raw_result?: string | null;
|
|
16
17
|
};
|
|
18
|
+
/** An event as a subgraph source matcher reads it. */
|
|
17
19
|
type EventRecord = {
|
|
18
20
|
id: string;
|
|
19
21
|
tx_id: string;
|
|
@@ -95,6 +97,7 @@ interface ReplayInput {
|
|
|
95
97
|
/** Force re-delivery by appending a unique suffix to the replay id. */
|
|
96
98
|
replayIdSuffix?: string;
|
|
97
99
|
}
|
|
100
|
+
/** How many events a replay scanned and enqueued. */
|
|
98
101
|
interface ReplayResult {
|
|
99
102
|
replayId: string;
|
|
100
103
|
enqueuedCount: number;
|
package/dist/runtime/replay.js
CHANGED
|
@@ -17,7 +17,7 @@ import { createHash } from "node:crypto";
|
|
|
17
17
|
// package.json
|
|
18
18
|
var package_default = {
|
|
19
19
|
name: "@secondlayer/subgraphs",
|
|
20
|
-
version: "7.0.
|
|
20
|
+
version: "7.0.3",
|
|
21
21
|
description: "Describe the Stacks data you want as one TypeScript file; it fills itself and survives reorgs.",
|
|
22
22
|
license: "MIT",
|
|
23
23
|
repository: {
|
|
@@ -73,12 +73,13 @@ var package_default = {
|
|
|
73
73
|
dev: "bunup --watch",
|
|
74
74
|
test: "bun test",
|
|
75
75
|
typecheck: "tsc --noEmit",
|
|
76
|
+
openpkg: "bun scripts/sync-openpkg.ts",
|
|
76
77
|
prepublishOnly: "bun run build"
|
|
77
78
|
},
|
|
78
79
|
dependencies: {
|
|
79
|
-
"@secondlayer/shared": "^12.
|
|
80
|
-
"@secondlayer/stacks": "^6.2.
|
|
81
|
-
"@secondlayer/verify": "^0.5.
|
|
80
|
+
"@secondlayer/shared": "^12.1.2",
|
|
81
|
+
"@secondlayer/stacks": "^6.2.2",
|
|
82
|
+
"@secondlayer/verify": "^0.5.4",
|
|
82
83
|
esbuild: "^0.28.2",
|
|
83
84
|
kysely: "0.28.17",
|
|
84
85
|
zod: "^4.3.6"
|
|
@@ -1849,5 +1850,5 @@ export {
|
|
|
1849
1850
|
replayWebhook
|
|
1850
1851
|
};
|
|
1851
1852
|
|
|
1852
|
-
//# debugId=
|
|
1853
|
+
//# debugId=E5DE9020F0912E8C64756E2164756E21
|
|
1853
1854
|
//# sourceMappingURL=replay.js.map
|