@@ -8,7 +8,7 @@ let hashRawEventsKey = (key: rawEventsKey) =>
88 EventUtils .getEventIdKeyString (~chainId = key .chainId , ~eventId = key .eventId )
99
1010module EntityTables = {
11- type t = dict <InMemoryTable .Entity .t <Entities . internalEntity >>
11+ type t = dict <InMemoryTable .Entity .t <Internal . entity >>
1212 exception UndefinedEntity ({entityName : string })
1313 let make = (entities : array <Internal .entityConfig >): t => {
1414 let init = Js .Dict .empty ()
@@ -22,7 +22,7 @@ module EntityTables = {
2222 switch self -> Utils .Dict .dangerouslyGetNonOption (entityName ) {
2323 | Some (table ) =>
2424 table -> (
25- Utils .magic : InMemoryTable .Entity .t <Entities . internalEntity > => InMemoryTable .Entity .t <
25+ Utils .magic : InMemoryTable .Entity .t <Internal . entity > => InMemoryTable .Entity .t <
2626 entity ,
2727 >
2828 )
@@ -51,13 +51,13 @@ type effectCacheInMemTable = {
5151
5252type t = {
5353 rawEvents : InMemoryTable .t <rawEventsKey , InternalTable .RawEvents .t >,
54- entities : dict <InMemoryTable .Entity .t <Entities . internalEntity >>,
54+ entities : dict <InMemoryTable .Entity .t <Internal . entity >>,
5555 effects : dict <effectCacheInMemTable >,
5656 rollbackTargetCheckpointId : option <int >,
5757}
5858
5959let make = (
60- ~entities : array <Internal .entityConfig >= Entities . allEntities ,
60+ ~entities : array <Internal .entityConfig >,
6161 ~rollbackTargetCheckpointId = ?,
6262): t => {
6363 rawEvents : InMemoryTable .make (~hash = hashRawEventsKey ),
@@ -106,7 +106,7 @@ let isRollingBack = (inMemoryStore: t) => inMemoryStore.rollbackTargetCheckpoint
106106let setBatchDcs = (inMemoryStore : t , ~batch : Batch .t , ~shouldSaveHistory ) => {
107107 let inMemTable =
108108 inMemoryStore -> getInMemTable (
109- ~entityConfig = module ( InternalTable .DynamicContractRegistry ) -> Entities . entityModToInternal ,
109+ ~entityConfig = InternalTable .DynamicContractRegistry . config ,
110110 )
111111
112112 let itemIdx = ref (0 )
@@ -154,3 +154,4 @@ let setBatchDcs = (inMemoryStore: t, ~batch: Batch.t, ~shouldSaveHistory) => {
154154 itemIdx := itemIdx .contents + checkpointEventsProcessed
155155 }
156156}
157+
0 commit comments