@sentio/runtime 3.0.0-rc.7 → 3.0.0-rc.8

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/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as StoreContext, E as ExecutionConfig } from './processor-CIR4erWa.js';
2
- export { A as AbstractStoreContext, d as DataBindingContext, c as IDataBindingContext, I as IStoreContext, P as Plugin, b as PluginManager, t as timeoutError } from './processor-CIR4erWa.js';
1
+ import { S as StoreContext, E as ExecutionConfig } from './processor-CNHsQeJ6.js';
2
+ export { A as AbstractStoreContext, d as DataBindingContext, c as IDataBindingContext, I as IStoreContext, P as Plugin, b as PluginManager, t as timeoutError } from './processor-CNHsQeJ6.js';
3
3
  import * as _sentio_protos from '@sentio/protos';
4
4
  import { TemplateInstance, ProcessResult, EthCallParam, ProcessorServiceImplementation, ProcessConfigRequest, ProcessConfigResponse, StartRequest, Empty, ProcessBindingsRequest, ProcessBindingResponse, DataBinding, PreparedData, PreprocessResult, ProcessStreamRequest, HandlerType, PreprocessStreamRequest, DeepPartial, PreprocessStreamResponse, ProcessStreamResponse } from '@sentio/protos';
5
5
  import { Required } from 'utility-types';
package/lib/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  State,
6
6
  StateStorage,
7
7
  TemplateInstanceState
8
- } from "./chunk-6XHWJ2VS.js";
8
+ } from "./chunk-N3VEKOPD.js";
9
9
  import {
10
10
  AbstractStoreContext,
11
11
  DataBindingContext,
@@ -30,11 +30,11 @@ import {
30
30
  providerMetrics,
31
31
  recordRuntimeInfo,
32
32
  timeoutError
33
- } from "./chunk-N3DTZ2BC.js";
33
+ } from "./chunk-6MZJOWMH.js";
34
34
  import {
35
35
  Plugin,
36
36
  PluginManager
37
- } from "./chunk-OFR7W4ZG.js";
37
+ } from "./chunk-QHFSZVR5.js";
38
38
  import "./chunk-MV6JXS2P.js";
39
39
  import "./chunk-KVSDPGUI.js";
40
40
 
@@ -83,7 +83,7 @@ declare abstract class Plugin {
83
83
  }
84
84
  declare class PluginManager {
85
85
  static INSTANCE: PluginManager;
86
- dbContextLocalStorage: AsyncLocalStorage<IStoreContext | undefined>;
86
+ dbContextLocalStorage: AsyncLocalStorage<IStoreContext | IDataBindingContext | undefined>;
87
87
  plugins: Plugin[];
88
88
  typesToPlugin: Map<HandlerType$1, Plugin>;
89
89
  register(plugin: Plugin): void;
@@ -95,12 +95,13 @@ declare class PluginManager {
95
95
  * @deprecated The method should not be used, use ctx.states instead
96
96
  */
97
97
  stateDiff(config: ProcessConfigResponse): boolean;
98
- processBinding(request: DataBinding$1, preparedData: PreparedData | undefined, dbContext?: IStoreContext): Promise<ProcessResult$1>;
98
+ processBinding(request: DataBinding$1, preparedData: PreparedData | undefined, dbContext?: IDataBindingContext | IStoreContext): Promise<ProcessResult$1>;
99
99
  partition(request: DataBinding$1): Promise<ProcessStreamResponse_Partitions>;
100
100
  preprocessBinding(request: DataBinding$1, preprocessStore: {
101
101
  [k: string]: any;
102
- }, dbContext?: StoreContext): Promise<PreprocessResult>;
102
+ }, dbContext?: IDataBindingContext | IStoreContext): Promise<PreprocessResult>;
103
103
  updateTemplates(request: UpdateTemplatesRequest): Promise<void>;
104
+ sendTemplateInstance(instance: TemplateInstance): void;
104
105
  }
105
106
 
106
107
  declare enum RichValue_NullValue {
@@ -2,7 +2,7 @@
2
2
  import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
3
3
  import {
4
4
  TemplateInstanceState
5
- } from "./chunk-6XHWJ2VS.js";
5
+ } from "./chunk-N3VEKOPD.js";
6
6
  import {
7
7
  require_ms,
8
8
  setupLogger
@@ -29,7 +29,7 @@ import {
29
29
  require_lib4,
30
30
  require_src,
31
31
  withAbort
32
- } from "./chunk-N3DTZ2BC.js";
32
+ } from "./chunk-6MZJOWMH.js";
33
33
  import {
34
34
  ExecutionConfig,
35
35
  HandlerType,
@@ -40,7 +40,7 @@ import {
40
40
  ProcessorV3Definition,
41
41
  StartRequest,
42
42
  require_minimal2 as require_minimal
43
- } from "./chunk-OFR7W4ZG.js";
43
+ } from "./chunk-QHFSZVR5.js";
44
44
  import {
45
45
  DiagConsoleLogger,
46
46
  DiagLogLevel,
@@ -32713,15 +32713,6 @@ var ProcessorServiceImplV3 = class {
32713
32713
  }
32714
32714
  });
32715
32715
  }
32716
- if (result.states?.configUpdated) {
32717
- console.debug("sending tpl updates:");
32718
- subject.next({
32719
- processId,
32720
- tplRequest: {
32721
- templates: TemplateInstanceState.INSTANCE.getValues()
32722
- }
32723
- });
32724
- }
32725
32716
  console.debug("sending binding result", processId);
32726
32717
  subject.next({
32727
32718
  result: otherResults,