@sentio/runtime 2.60.0-rc.1 → 2.60.0-rc.10

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.
@@ -1,12 +1,13 @@
1
1
  import {
2
2
  ConfigureHandlersRequest,
3
+ ConfigureHandlersResponse,
3
4
  DataBinding,
4
5
  DeepPartial,
5
6
  Empty,
6
7
  HandlerType,
7
8
  InitResponse,
8
9
  ProcessConfigResponse,
9
- ProcessorV2ServiceImplementation,
10
+ ProcessorV3ServiceImplementation,
10
11
  ProcessResult,
11
12
  ProcessStreamRequest,
12
13
  ProcessStreamResponseV2,
@@ -27,7 +28,7 @@ import { TemplateInstanceState } from './state.js'
27
28
 
28
29
  const { process_binding_count, process_binding_time, process_binding_error } = processMetrics
29
30
 
30
- export class ProcessorServiceImplV2 implements ProcessorV2ServiceImplementation {
31
+ export class ProcessorServiceImplV3 implements ProcessorV3ServiceImplementation {
31
32
  readonly enablePartition: boolean
32
33
  private readonly loader: () => Promise<any>
33
34
  private readonly shutdownHandler?: () => void
@@ -173,7 +174,7 @@ export class ProcessorServiceImplV2 implements ProcessorV2ServiceImplementation
173
174
  async configureHandlers(
174
175
  request: ConfigureHandlersRequest,
175
176
  context: CallContext
176
- ): Promise<DeepPartial<ProcessConfigResponse>> {
177
+ ): Promise<DeepPartial<ConfigureHandlersResponse>> {
177
178
  await PluginManager.INSTANCE.start(
178
179
  StartRequest.fromPartial({
179
180
  templateInstances: request.templateInstances
@@ -182,7 +183,10 @@ export class ProcessorServiceImplV2 implements ProcessorV2ServiceImplementation
182
183
 
183
184
  const newConfig = ProcessConfigResponse.fromPartial({})
184
185
  await PluginManager.INSTANCE.configure(newConfig, request.chainId)
185
- return newConfig
186
+ return {
187
+ accountConfigs: newConfig.accountConfigs,
188
+ contractConfigs: newConfig.contractConfigs
189
+ }
186
190
  }
187
191
  }
188
192