@sentio/runtime 2.62.0-rc.3 → 2.62.0-rc.5

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-DwZlMkFj.js';
2
- export { A as AbstractStoreContext, D as DataBindingContext, b as IDataBindingContext, I as IStoreContext, P as Plugin, a as PluginManager, t as timeoutError } from './processor-DwZlMkFj.js';
1
+ import { S as StoreContext, E as ExecutionConfig } from './processor-HNY62jHs.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-HNY62jHs.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
@@ -30,11 +30,11 @@ import {
30
30
  providerMetrics,
31
31
  recordRuntimeInfo,
32
32
  timeoutError
33
- } from "./chunk-BUEDBCDW.js";
33
+ } from "./chunk-RPV67F56.js";
34
34
  import {
35
35
  Plugin,
36
36
  PluginManager
37
- } from "./chunk-ID7RUJZE.js";
37
+ } from "./chunk-I5YHR3CE.js";
38
38
  import "./chunk-W3VN25ER.js";
39
39
  import "./chunk-KVSDPGUI.js";
40
40
 
@@ -291,6 +291,11 @@ declare enum LogLevel {
291
291
  CRITICAL = 4,
292
292
  UNRECOGNIZED = -1
293
293
  }
294
+ declare enum ExecutionConfig_HandlerOrderInsideTransaction {
295
+ BY_LOG_INDEX = 0,
296
+ BY_PROCESSOR_AND_LOG_INDEX = 1,
297
+ UNRECOGNIZED = -1
298
+ }
294
299
  declare enum TimeseriesResult_TimeseriesType {
295
300
  EVENT = 0,
296
301
  GAUGE = 1,
@@ -300,6 +305,7 @@ declare enum TimeseriesResult_TimeseriesType {
300
305
  interface ExecutionConfig {
301
306
  sequential: boolean;
302
307
  forceExactBlockTime: boolean;
308
+ handlerOrderInsideTransaction: ExecutionConfig_HandlerOrderInsideTransaction;
303
309
  processBindingTimeout: number;
304
310
  skipStartBlockValidation: boolean;
305
311
  rpcRetryTimes: number;
@@ -734,8 +740,6 @@ declare const StateResult: {
734
740
  interface ProcessResult {
735
741
  gauges: GaugeResult[];
736
742
  counters: CounterResult[];
737
- /** @deprecated */
738
- logs: LogResult[];
739
743
  events: EventTrackingResult[];
740
744
  exports: ExportResult[];
741
745
  states: StateResult | undefined;
@@ -821,26 +825,6 @@ declare const CounterResult: {
821
825
  create(base?: DeepPartial<CounterResult>): CounterResult;
822
826
  fromPartial(object: DeepPartial<CounterResult>): CounterResult;
823
827
  };
824
- /** @deprecated */
825
- interface LogResult {
826
- metadata: RecordMetaData | undefined;
827
- level: LogLevel;
828
- message: string;
829
- /** @deprecated */
830
- attributes: string;
831
- attributes2: {
832
- [key: string]: any;
833
- } | undefined;
834
- runtimeInfo: RuntimeInfo | undefined;
835
- }
836
- declare const LogResult: {
837
- encode(message: LogResult, writer?: _m0.Writer): _m0.Writer;
838
- decode(input: _m0.Reader | Uint8Array, length?: number): LogResult;
839
- fromJSON(object: any): LogResult;
840
- toJSON(message: LogResult): unknown;
841
- create(base?: DeepPartial<LogResult>): LogResult;
842
- fromPartial(object: DeepPartial<LogResult>): LogResult;
843
- };
844
828
  interface EventTrackingResult {
845
829
  metadata: RecordMetaData | undefined;
846
830
  distinctEntityId: string;
@@ -893,4 +877,4 @@ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U
893
877
  [K in keyof T]?: DeepPartial<T[K]>;
894
878
  } : Partial<T>;
895
879
 
896
- export { AbstractStoreContext as A, DataBindingContext as D, ExecutionConfig as E, HandlerType as H, type IStoreContext as I, Plugin as P, StoreContext as S, PluginManager as a, type IDataBindingContext as b, DataBinding as c, ProcessResult as d, timeoutError as t };
880
+ export { AbstractStoreContext as A, DataBinding as D, ExecutionConfig as E, HandlerType as H, type IStoreContext as I, Plugin as P, StoreContext as S, ProcessResult as a, PluginManager as b, type IDataBindingContext as c, DataBindingContext as d, timeoutError as t };
@@ -1,34 +1 @@
1
1
  #!/usr/bin/env node
2
- declare const optionDefinitions: ({
3
- name: string;
4
- type: StringConstructor;
5
- defaultOption: boolean;
6
- alias?: undefined;
7
- defaultValue?: undefined;
8
- } | {
9
- name: string;
10
- alias: string;
11
- type: StringConstructor;
12
- defaultValue: string;
13
- defaultOption?: undefined;
14
- } | {
15
- name: string;
16
- type: NumberConstructor;
17
- defaultValue: number;
18
- defaultOption?: undefined;
19
- alias?: undefined;
20
- } | {
21
- name: string;
22
- type: StringConstructor;
23
- defaultValue: string;
24
- defaultOption?: undefined;
25
- alias?: undefined;
26
- } | {
27
- name: string;
28
- type: BooleanConstructor;
29
- defaultValue: boolean;
30
- defaultOption?: undefined;
31
- alias?: undefined;
32
- })[];
33
-
34
- export { optionDefinitions };