@secondlayer/shared 11.19.0 → 11.19.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/src/archive/range-digest.d.ts +0 -1
- package/dist/src/archive/semantic-digest-builder.d.ts +0 -1
- package/dist/src/coverage/index.d.ts +0 -1
- package/dist/src/db/index.d.ts +0 -1
- package/dist/src/db/queries/chain-reorgs.d.ts +0 -1
- package/dist/src/db/queries/contracts.d.ts +0 -1
- package/dist/src/db/queries/instance.d.ts +0 -1
- package/dist/src/db/queries/integrity.d.ts +0 -1
- package/dist/src/db/queries/subgraph-gaps.d.ts +0 -1
- package/dist/src/db/queries/subgraph-operations.d.ts +0 -1
- package/dist/src/db/queries/subgraphs.d.ts +0 -1
- package/dist/src/db/queries/sync-scope.d.ts +0 -1
- package/dist/src/db/queries/webhooks.d.ts +0 -1
- package/dist/src/db/schema.d.ts +0 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/node/local-client.d.ts +0 -1
- package/migrations/0152_drop_subgraphs_sandbox_workers.ts +24 -0
- package/package.json +1 -1
|
@@ -160,7 +160,6 @@ interface SubgraphsTable {
|
|
|
160
160
|
expires_at: Date | null;
|
|
161
161
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
162
162
|
sparse_probe_targets: unknown | null;
|
|
163
|
-
sandbox_workers: Generated<boolean>;
|
|
164
163
|
created_at: Generated<Date>;
|
|
165
164
|
updated_at: Generated<Date>;
|
|
166
165
|
}
|
|
@@ -160,7 +160,6 @@ interface SubgraphsTable {
|
|
|
160
160
|
expires_at: Date | null;
|
|
161
161
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
162
162
|
sparse_probe_targets: unknown | null;
|
|
163
|
-
sandbox_workers: Generated<boolean>;
|
|
164
163
|
created_at: Generated<Date>;
|
|
165
164
|
updated_at: Generated<Date>;
|
|
166
165
|
}
|
|
@@ -477,7 +477,6 @@ interface SubgraphsTable {
|
|
|
477
477
|
expires_at: Date | null;
|
|
478
478
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
479
479
|
sparse_probe_targets: unknown | null;
|
|
480
|
-
sandbox_workers: Generated<boolean>;
|
|
481
480
|
created_at: Generated<Date>;
|
|
482
481
|
updated_at: Generated<Date>;
|
|
483
482
|
}
|
package/dist/src/db/index.d.ts
CHANGED
|
@@ -161,7 +161,6 @@ interface SubgraphsTable {
|
|
|
161
161
|
expires_at: Date | null;
|
|
162
162
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
163
163
|
sparse_probe_targets: unknown | null;
|
|
164
|
-
sandbox_workers: Generated<boolean>;
|
|
165
164
|
created_at: Generated<Date>;
|
|
166
165
|
updated_at: Generated<Date>;
|
|
167
166
|
}
|
|
@@ -160,7 +160,6 @@ interface SubgraphsTable {
|
|
|
160
160
|
expires_at: Date | null;
|
|
161
161
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
162
162
|
sparse_probe_targets: unknown | null;
|
|
163
|
-
sandbox_workers: Generated<boolean>;
|
|
164
163
|
created_at: Generated<Date>;
|
|
165
164
|
updated_at: Generated<Date>;
|
|
166
165
|
}
|
|
@@ -160,7 +160,6 @@ interface SubgraphsTable {
|
|
|
160
160
|
expires_at: Date | null;
|
|
161
161
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
162
162
|
sparse_probe_targets: unknown | null;
|
|
163
|
-
sandbox_workers: Generated<boolean>;
|
|
164
163
|
created_at: Generated<Date>;
|
|
165
164
|
updated_at: Generated<Date>;
|
|
166
165
|
}
|
|
@@ -160,7 +160,6 @@ interface SubgraphsTable {
|
|
|
160
160
|
expires_at: Date | null;
|
|
161
161
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
162
162
|
sparse_probe_targets: unknown | null;
|
|
163
|
-
sandbox_workers: Generated<boolean>;
|
|
164
163
|
created_at: Generated<Date>;
|
|
165
164
|
updated_at: Generated<Date>;
|
|
166
165
|
}
|
|
@@ -160,7 +160,6 @@ interface SubgraphsTable {
|
|
|
160
160
|
expires_at: Date | null;
|
|
161
161
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
162
162
|
sparse_probe_targets: unknown | null;
|
|
163
|
-
sandbox_workers: Generated<boolean>;
|
|
164
163
|
created_at: Generated<Date>;
|
|
165
164
|
updated_at: Generated<Date>;
|
|
166
165
|
}
|
|
@@ -160,7 +160,6 @@ interface SubgraphsTable {
|
|
|
160
160
|
expires_at: Date | null;
|
|
161
161
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
162
162
|
sparse_probe_targets: unknown | null;
|
|
163
|
-
sandbox_workers: Generated<boolean>;
|
|
164
163
|
created_at: Generated<Date>;
|
|
165
164
|
updated_at: Generated<Date>;
|
|
166
165
|
}
|
|
@@ -160,7 +160,6 @@ interface SubgraphsTable {
|
|
|
160
160
|
expires_at: Date | null;
|
|
161
161
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
162
162
|
sparse_probe_targets: unknown | null;
|
|
163
|
-
sandbox_workers: Generated<boolean>;
|
|
164
163
|
created_at: Generated<Date>;
|
|
165
164
|
updated_at: Generated<Date>;
|
|
166
165
|
}
|
|
@@ -160,7 +160,6 @@ interface SubgraphsTable {
|
|
|
160
160
|
expires_at: Date | null;
|
|
161
161
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
162
162
|
sparse_probe_targets: unknown | null;
|
|
163
|
-
sandbox_workers: Generated<boolean>;
|
|
164
163
|
created_at: Generated<Date>;
|
|
165
164
|
updated_at: Generated<Date>;
|
|
166
165
|
}
|
|
@@ -170,7 +170,6 @@ interface SubgraphsTable {
|
|
|
170
170
|
expires_at: Date | null;
|
|
171
171
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
172
172
|
sparse_probe_targets: unknown | null;
|
|
173
|
-
sandbox_workers: Generated<boolean>;
|
|
174
173
|
created_at: Generated<Date>;
|
|
175
174
|
updated_at: Generated<Date>;
|
|
176
175
|
}
|
|
@@ -160,7 +160,6 @@ interface SubgraphsTable {
|
|
|
160
160
|
expires_at: Date | null;
|
|
161
161
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
162
162
|
sparse_probe_targets: unknown | null;
|
|
163
|
-
sandbox_workers: Generated<boolean>;
|
|
164
163
|
created_at: Generated<Date>;
|
|
165
164
|
updated_at: Generated<Date>;
|
|
166
165
|
}
|
package/dist/src/db/schema.d.ts
CHANGED
|
@@ -159,7 +159,6 @@ interface SubgraphsTable {
|
|
|
159
159
|
expires_at: Date | null;
|
|
160
160
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
161
161
|
sparse_probe_targets: unknown | null;
|
|
162
|
-
sandbox_workers: Generated<boolean>;
|
|
163
162
|
created_at: Generated<Date>;
|
|
164
163
|
updated_at: Generated<Date>;
|
|
165
164
|
}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -159,7 +159,6 @@ interface SubgraphsTable {
|
|
|
159
159
|
expires_at: Date | null;
|
|
160
160
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
161
161
|
sparse_probe_targets: unknown | null;
|
|
162
|
-
sandbox_workers: Generated<boolean>;
|
|
163
162
|
created_at: Generated<Date>;
|
|
164
163
|
updated_at: Generated<Date>;
|
|
165
164
|
}
|
|
@@ -160,7 +160,6 @@ interface SubgraphsTable {
|
|
|
160
160
|
expires_at: Date | null;
|
|
161
161
|
/** (event type, contract) probe pairs persisted at deploy for weight classification. */
|
|
162
162
|
sparse_probe_targets: unknown | null;
|
|
163
|
-
sandbox_workers: Generated<boolean>;
|
|
164
163
|
created_at: Generated<Date>;
|
|
165
164
|
updated_at: Generated<Date>;
|
|
166
165
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Kysely, sql } from "kysely";
|
|
2
|
+
import { onControlPlane } from "../src/db/migration-role.ts";
|
|
3
|
+
|
|
4
|
+
// The subprocess handler sandbox is gone (hosted stacks isolate handlers with
|
|
5
|
+
// gVisor), so its per-subgraph opt-in column has no reader. Control-plane
|
|
6
|
+
// (TARGET) — the subgraphs control-plane table.
|
|
7
|
+
export async function up(db: Kysely<unknown>): Promise<void> {
|
|
8
|
+
await sql`SET lock_timeout = '30s'`.execute(db);
|
|
9
|
+
await onControlPlane(async () => {
|
|
10
|
+
await sql`
|
|
11
|
+
ALTER TABLE subgraphs
|
|
12
|
+
DROP COLUMN IF EXISTS sandbox_workers
|
|
13
|
+
`.execute(db);
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export async function down(db: Kysely<unknown>): Promise<void> {
|
|
18
|
+
await onControlPlane(async () => {
|
|
19
|
+
await sql`
|
|
20
|
+
ALTER TABLE subgraphs
|
|
21
|
+
ADD COLUMN IF NOT EXISTS sandbox_workers BOOLEAN NOT NULL DEFAULT FALSE
|
|
22
|
+
`.execute(db);
|
|
23
|
+
});
|
|
24
|
+
}
|