From 2bbec227d7c4b33284a8e6a83237a58f2dd405fe Mon Sep 17 00:00:00 2001 From: Karolis Ramanauskas Date: Tue, 20 Aug 2024 16:01:57 +0300 Subject: [PATCH] chore(store-sync): export internal table names (#3047) --- packages/store-sync/src/sqlite/internalTables.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/store-sync/src/sqlite/internalTables.ts b/packages/store-sync/src/sqlite/internalTables.ts index 6765e05646..3017ab8be2 100644 --- a/packages/store-sync/src/sqlite/internalTables.ts +++ b/packages/store-sync/src/sqlite/internalTables.ts @@ -1,3 +1,4 @@ +import { getTableName } from "drizzle-orm"; import { blob, integer, sqliteTable, text } from "drizzle-orm/sqlite-core"; import { address, asHex, json } from "./columnTypes"; import { PartialTable } from "./common"; @@ -23,3 +24,6 @@ export const mudStoreTables = sqliteTable("__mudStoreTables", { // TODO: last block hash? lastError: text("last_error"), }); + +export const internalTables = [chainState, mudStoreTables]; +export const internalTableNames = internalTables.map(getTableName);