@sentio/runtime 2.60.2-rc.2 → 2.60.3-rc.1

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.
@@ -21,7 +21,7 @@ import {
21
21
  require_roots,
22
22
  require_rpc,
23
23
  require_writer
24
- } from "./chunk-ZTW66EYL.js";
24
+ } from "./chunk-J4QKUO6L.js";
25
25
 
26
26
  // ../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
27
27
  var require_universalify = __commonJS({
@@ -59978,4 +59978,4 @@ long/umd/index.js:
59978
59978
  @noble/curves/esm/secp256k1.js:
59979
59979
  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
59980
59980
  */
59981
- //# sourceMappingURL=chunk-HGBQUZC6.js.map
59981
+ //# sourceMappingURL=chunk-XIU7XZT7.js.map
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as StoreContext, E as ExecutionConfig } from './processor-BDXlufg5.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-BDXlufg5.js';
1
+ import { S as StoreContext, E as ExecutionConfig } from './processor-Cbun9NKJ.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-Cbun9NKJ.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-HGBQUZC6.js";
33
+ } from "./chunk-XIU7XZT7.js";
34
34
  import {
35
35
  Plugin,
36
36
  PluginManager
37
- } from "./chunk-ZTW66EYL.js";
37
+ } from "./chunk-J4QKUO6L.js";
38
38
 
39
39
  // src/chain-config.ts
40
40
  import("node:process").then((p) => p.stdout.write(""));
@@ -714,6 +714,7 @@ interface DataBinding {
714
714
  data: Data | undefined;
715
715
  handlerType: HandlerType;
716
716
  handlerIds: number[];
717
+ chainId: string;
717
718
  }
718
719
  declare const DataBinding: {
719
720
  encode(message: DataBinding, writer?: _m0.Writer): _m0.Writer;
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-6XHWJ2VS.js";
6
6
  import {
7
7
  setupLogger
8
- } from "./chunk-26X74ASV.js";
8
+ } from "./chunk-2LXJZQSF.js";
9
9
  import {
10
10
  DataBindingContext,
11
11
  DiagConsoleLogger,
@@ -50,7 +50,7 @@ import {
50
50
  require_src,
51
51
  trace,
52
52
  withAbort
53
- } from "./chunk-HGBQUZC6.js";
53
+ } from "./chunk-XIU7XZT7.js";
54
54
  import {
55
55
  ExecutionConfig,
56
56
  HandlerType,
@@ -68,7 +68,7 @@ import {
68
68
  __toCommonJS,
69
69
  __toESM,
70
70
  require_minimal2 as require_minimal
71
- } from "./chunk-ZTW66EYL.js";
71
+ } from "./chunk-J4QKUO6L.js";
72
72
 
73
73
  // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.25.1/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js
74
74
  // @__NO_SIDE_EFFECTS__
@@ -1,7 +1,7 @@
1
1
  import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
2
2
  import {
3
3
  setupLogger
4
- } from "./chunk-26X74ASV.js";
4
+ } from "./chunk-2LXJZQSF.js";
5
5
  import {
6
6
  ProcessorServiceImpl,
7
7
  configureEndpoints,
@@ -10,10 +10,10 @@ import {
10
10
  require_cjs,
11
11
  require_lib3 as require_lib,
12
12
  require_lib4 as require_lib2
13
- } from "./chunk-HGBQUZC6.js";
13
+ } from "./chunk-XIU7XZT7.js";
14
14
  import {
15
15
  __toESM
16
- } from "./chunk-ZTW66EYL.js";
16
+ } from "./chunk-J4QKUO6L.js";
17
17
 
18
18
  // src/service-worker.ts
19
19
  var import_nice_grpc = __toESM(require_lib(), 1);
@@ -1,4 +1,4 @@
1
- import { P as Plugin, c as DataBinding, d as ProcessResult, H as HandlerType } from './processor-BDXlufg5.js';
1
+ import { P as Plugin, c as DataBinding, d as ProcessResult, H as HandlerType } from './processor-Cbun9NKJ.js';
2
2
  import { ProcessStreamResponse_Partitions, InitResponse, ProcessConfigResponse } from '@sentio/protos';
3
3
  import 'rxjs';
4
4
  import 'node:async_hooks';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
- "version": "2.60.2-rc.2",
3
+ "version": "2.60.3-rc.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -0,0 +1,122 @@
1
+ /* eslint-disable */
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal.js";
4
+
5
+ export interface Money {
6
+ currencyCode: string;
7
+ units: bigint;
8
+ nanos: number;
9
+ }
10
+
11
+ function createBaseMoney(): Money {
12
+ return { currencyCode: "", units: BigInt("0"), nanos: 0 };
13
+ }
14
+
15
+ export const Money = {
16
+ encode(message: Money, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
17
+ if (message.currencyCode !== "") {
18
+ writer.uint32(10).string(message.currencyCode);
19
+ }
20
+ if (message.units !== BigInt("0")) {
21
+ if (BigInt.asIntN(64, message.units) !== message.units) {
22
+ throw new globalThis.Error("value provided for field message.units of type int64 too large");
23
+ }
24
+ writer.uint32(16).int64(message.units.toString());
25
+ }
26
+ if (message.nanos !== 0) {
27
+ writer.uint32(24).int32(message.nanos);
28
+ }
29
+ return writer;
30
+ },
31
+
32
+ decode(input: _m0.Reader | Uint8Array, length?: number): Money {
33
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
34
+ let end = length === undefined ? reader.len : reader.pos + length;
35
+ const message = createBaseMoney();
36
+ while (reader.pos < end) {
37
+ const tag = reader.uint32();
38
+ switch (tag >>> 3) {
39
+ case 1:
40
+ if (tag !== 10) {
41
+ break;
42
+ }
43
+
44
+ message.currencyCode = reader.string();
45
+ continue;
46
+ case 2:
47
+ if (tag !== 16) {
48
+ break;
49
+ }
50
+
51
+ message.units = longToBigint(reader.int64() as Long);
52
+ continue;
53
+ case 3:
54
+ if (tag !== 24) {
55
+ break;
56
+ }
57
+
58
+ message.nanos = reader.int32();
59
+ continue;
60
+ }
61
+ if ((tag & 7) === 4 || tag === 0) {
62
+ break;
63
+ }
64
+ reader.skipType(tag & 7);
65
+ }
66
+ return message;
67
+ },
68
+
69
+ fromJSON(object: any): Money {
70
+ return {
71
+ currencyCode: isSet(object.currencyCode) ? globalThis.String(object.currencyCode) : "",
72
+ units: isSet(object.units) ? BigInt(object.units) : BigInt("0"),
73
+ nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
74
+ };
75
+ },
76
+
77
+ toJSON(message: Money): unknown {
78
+ const obj: any = {};
79
+ if (message.currencyCode !== "") {
80
+ obj.currencyCode = message.currencyCode;
81
+ }
82
+ if (message.units !== BigInt("0")) {
83
+ obj.units = message.units.toString();
84
+ }
85
+ if (message.nanos !== 0) {
86
+ obj.nanos = Math.round(message.nanos);
87
+ }
88
+ return obj;
89
+ },
90
+
91
+ create(base?: DeepPartial<Money>): Money {
92
+ return Money.fromPartial(base ?? {});
93
+ },
94
+ fromPartial(object: DeepPartial<Money>): Money {
95
+ const message = createBaseMoney();
96
+ message.currencyCode = object.currencyCode ?? "";
97
+ message.units = object.units ?? BigInt("0");
98
+ message.nanos = object.nanos ?? 0;
99
+ return message;
100
+ },
101
+ };
102
+
103
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
104
+
105
+ type DeepPartial<T> = T extends Builtin ? T
106
+ : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
107
+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
108
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
109
+ : Partial<T>;
110
+
111
+ function longToBigint(long: Long) {
112
+ return BigInt(long.toString());
113
+ }
114
+
115
+ if (_m0.util.Long !== Long) {
116
+ _m0.util.Long = Long as any;
117
+ _m0.configure();
118
+ }
119
+
120
+ function isSet(value: any): boolean {
121
+ return value !== null && value !== undefined;
122
+ }
@@ -1422,6 +1422,7 @@ export interface DataBinding {
1422
1422
  data: Data | undefined;
1423
1423
  handlerType: HandlerType;
1424
1424
  handlerIds: number[];
1425
+ chainId: string;
1425
1426
  }
1426
1427
 
1427
1428
  export interface StateResult {
@@ -13203,7 +13204,7 @@ export const Data_BTCBlock = {
13203
13204
  };
13204
13205
 
13205
13206
  function createBaseDataBinding(): DataBinding {
13206
- return { data: undefined, handlerType: 0, handlerIds: [] };
13207
+ return { data: undefined, handlerType: 0, handlerIds: [], chainId: "" };
13207
13208
  }
13208
13209
 
13209
13210
  export const DataBinding = {
@@ -13219,6 +13220,9 @@ export const DataBinding = {
13219
13220
  writer.int32(v);
13220
13221
  }
13221
13222
  writer.ldelim();
13223
+ if (message.chainId !== "") {
13224
+ writer.uint32(42).string(message.chainId);
13225
+ }
13222
13226
  return writer;
13223
13227
  },
13224
13228
 
@@ -13260,6 +13264,13 @@ export const DataBinding = {
13260
13264
  }
13261
13265
 
13262
13266
  break;
13267
+ case 5:
13268
+ if (tag !== 42) {
13269
+ break;
13270
+ }
13271
+
13272
+ message.chainId = reader.string();
13273
+ continue;
13263
13274
  }
13264
13275
  if ((tag & 7) === 4 || tag === 0) {
13265
13276
  break;
@@ -13276,6 +13287,7 @@ export const DataBinding = {
13276
13287
  handlerIds: globalThis.Array.isArray(object?.handlerIds)
13277
13288
  ? object.handlerIds.map((e: any) => globalThis.Number(e))
13278
13289
  : [],
13290
+ chainId: isSet(object.chainId) ? globalThis.String(object.chainId) : "",
13279
13291
  };
13280
13292
  },
13281
13293
 
@@ -13290,6 +13302,9 @@ export const DataBinding = {
13290
13302
  if (message.handlerIds?.length) {
13291
13303
  obj.handlerIds = message.handlerIds.map((e) => Math.round(e));
13292
13304
  }
13305
+ if (message.chainId !== "") {
13306
+ obj.chainId = message.chainId;
13307
+ }
13293
13308
  return obj;
13294
13309
  },
13295
13310
 
@@ -13301,6 +13316,7 @@ export const DataBinding = {
13301
13316
  message.data = (object.data !== undefined && object.data !== null) ? Data.fromPartial(object.data) : undefined;
13302
13317
  message.handlerType = object.handlerType ?? 0;
13303
13318
  message.handlerIds = object.handlerIds?.map((e) => e) || [];
13319
+ message.chainId = object.chainId ?? "";
13304
13320
  return message;
13305
13321
  },
13306
13322
  };