@secondlayer/shared 7.8.0 → 7.9.0
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/derived-stage-report.d.ts +99 -0
- package/dist/src/archive/derived-stage-report.js +64 -0
- package/dist/src/archive/derived-stage-report.js.map +10 -0
- package/dist/src/archive/disk-guard.d.ts +46 -0
- package/dist/src/archive/disk-guard.js +69 -0
- package/dist/src/archive/disk-guard.js.map +10 -0
- package/dist/src/archive/per-height-digest.d.ts +99 -0
- package/dist/src/archive/per-height-digest.js +194 -0
- package/dist/src/archive/per-height-digest.js.map +11 -0
- package/dist/src/archive/range-digest.d.ts +7 -0
- package/dist/src/archive/semantic-digest-builder.d.ts +1094 -0
- package/dist/src/archive/semantic-digest-builder.js +302 -0
- package/dist/src/archive/semantic-digest-builder.js.map +11 -0
- package/dist/src/archive/semantic-digest.d.ts +131 -0
- package/dist/src/archive/semantic-digest.js +143 -0
- package/dist/src/archive/semantic-digest.js.map +10 -0
- package/dist/src/db/index.d.ts +11 -1
- package/dist/src/db/index.js +26 -1
- package/dist/src/db/index.js.map +6 -5
- package/dist/src/db/queries/chain-reorgs.d.ts +7 -0
- package/dist/src/db/queries/chain-reorgs.js +25 -1
- package/dist/src/db/queries/chain-reorgs.js.map +6 -5
- package/dist/src/db/queries/contracts.d.ts +7 -0
- package/dist/src/db/queries/instance.d.ts +1038 -0
- package/dist/src/db/queries/instance.js +92 -0
- package/dist/src/db/queries/instance.js.map +10 -0
- package/dist/src/db/queries/integrity.d.ts +7 -0
- package/dist/src/db/queries/subgraph-gaps.d.ts +7 -0
- package/dist/src/db/queries/subgraph-operations.d.ts +7 -0
- package/dist/src/db/queries/subgraphs.d.ts +10 -1
- package/dist/src/db/queries/subgraphs.js +47 -23
- package/dist/src/db/queries/subgraphs.js.map +7 -7
- package/dist/src/db/queries/subscriptions.d.ts +7 -0
- package/dist/src/db/queries/subscriptions.js +47 -31
- package/dist/src/db/queries/subscriptions.js.map +5 -5
- package/dist/src/db/schema.d.ts +8 -1
- package/dist/src/index.d.ts +11 -1
- package/dist/src/index.js +26 -1
- package/dist/src/index.js.map +6 -5
- package/dist/src/node/client.d.ts +11 -1
- package/dist/src/node/client.js +42 -4
- package/dist/src/node/client.js.map +3 -3
- package/dist/src/node/local-client.d.ts +7 -0
- package/dist/src/node/nakamoto.d.ts +22 -7
- package/dist/src/node/nakamoto.js +46 -5
- package/dist/src/node/nakamoto.js.map +3 -3
- package/migrations/0115_instances.ts +33 -0
- package/package.json +25 -1
|
@@ -190,6 +190,12 @@ interface ApiKeysTable {
|
|
|
190
190
|
revoked_at: Date | null;
|
|
191
191
|
created_at: Generated<Date>;
|
|
192
192
|
}
|
|
193
|
+
/** Singleton self-host / publisher identity. Network is immutable. */
|
|
194
|
+
interface InstancesTable {
|
|
195
|
+
id: Generated<string>;
|
|
196
|
+
network: string;
|
|
197
|
+
created_at: Generated<Date>;
|
|
198
|
+
}
|
|
193
199
|
interface AccountsTable {
|
|
194
200
|
id: Generated<string>;
|
|
195
201
|
/** NULL for unclaimed ghost accounts (anonymous self-serve keys). */
|
|
@@ -732,6 +738,7 @@ interface Database {
|
|
|
732
738
|
contracts: ContractsTable;
|
|
733
739
|
subgraphs: SubgraphsTable;
|
|
734
740
|
api_keys: ApiKeysTable;
|
|
741
|
+
instances: InstancesTable;
|
|
735
742
|
accounts: AccountsTable;
|
|
736
743
|
sessions: SessionsTable;
|
|
737
744
|
magic_links: MagicLinksTable;
|