@secondlayer/subgraphs 0.9.0 → 0.9.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/src/index.d.ts +4 -2
- package/dist/src/index.js +48 -15
- package/dist/src/index.js.map +4 -4
- package/dist/src/runtime/block-processor.d.ts +3 -1
- package/dist/src/runtime/block-processor.js +48 -15
- package/dist/src/runtime/block-processor.js.map +4 -4
- package/dist/src/runtime/catchup.d.ts +3 -1
- package/dist/src/runtime/catchup.js +48 -15
- package/dist/src/runtime/catchup.js.map +4 -4
- package/dist/src/runtime/context.d.ts +3 -1
- package/dist/src/runtime/processor.js +48 -15
- package/dist/src/runtime/processor.js.map +4 -4
- package/dist/src/runtime/reindex.d.ts +3 -1
- package/dist/src/runtime/reindex.js +48 -15
- package/dist/src/runtime/reindex.js.map +4 -4
- package/dist/src/runtime/reorg.d.ts +3 -1
- package/dist/src/runtime/reorg.js +48 -15
- package/dist/src/runtime/reorg.js.map +4 -4
- package/dist/src/runtime/runner.d.ts +5 -1
- package/dist/src/runtime/runner.js +48 -15
- package/dist/src/runtime/runner.js.map +3 -3
- package/dist/src/runtime/source-matcher.d.ts +2 -0
- package/dist/src/runtime/source-matcher.js.map +2 -2
- package/dist/src/schema/index.d.ts +3 -1
- package/dist/src/service.js +48 -15
- package/dist/src/service.js.map +4 -4
- package/dist/src/types.d.ts +4 -2
- package/dist/src/validate.d.ts +3 -1
- package/package.json +2 -2
package/dist/src/validate.d.ts
CHANGED
|
@@ -108,8 +108,10 @@ interface TxMeta {
|
|
|
108
108
|
contractId?: string | null;
|
|
109
109
|
functionName?: string | null;
|
|
110
110
|
}
|
|
111
|
+
/** Scalar types that can appear as row values */
|
|
112
|
+
type RowValue = string | number | bigint | boolean | null | undefined | Record<string, unknown> | unknown[];
|
|
111
113
|
/** Value or computed function that receives existing row */
|
|
112
|
-
type ComputedValue
|
|
114
|
+
type ComputedValue = RowValue | ((existing: Record<string, unknown> | null) => RowValue);
|
|
113
115
|
/** Context passed to subgraph handlers during event processing */
|
|
114
116
|
interface SubgraphContext {
|
|
115
117
|
block: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@secondlayer/subgraphs",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@secondlayer/shared": "^0.10.1",
|
|
41
41
|
"@secondlayer/stacks": "^0.2.2",
|
|
42
|
-
"kysely": "
|
|
42
|
+
"kysely": "0.28.15",
|
|
43
43
|
"postgres": "^3.4.6",
|
|
44
44
|
"zod": "^4.3.6"
|
|
45
45
|
},
|