@sentio/runtime 2.59.0-rc.4 → 2.59.0-rc.6

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.
@@ -6,7 +6,7 @@ import {
6
6
  __require,
7
7
  __toCommonJS,
8
8
  __toESM
9
- } from "./chunk-ZUTD563J.js";
9
+ } from "./chunk-3T4PWGQU.js";
10
10
 
11
11
  // ../../node_modules/.pnpm/logform@2.6.0/node_modules/logform/format.js
12
12
  var require_format = __commonJS({
@@ -10972,4 +10972,4 @@ export {
10972
10972
  safe-buffer/index.js:
10973
10973
  (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
10974
10974
  */
10975
- //# sourceMappingURL=chunk-BPGFX5S5.js.map
10975
+ //# sourceMappingURL=chunk-GD7EL7GH.js.map
@@ -21,7 +21,7 @@ import {
21
21
  require_roots,
22
22
  require_rpc,
23
23
  require_writer
24
- } from "./chunk-ZUTD563J.js";
24
+ } from "./chunk-3T4PWGQU.js";
25
25
 
26
26
  // ../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
27
27
  var require_universalify = __commonJS({
@@ -59830,4 +59830,4 @@ long/umd/index.js:
59830
59830
  @noble/curves/esm/secp256k1.js:
59831
59831
  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
59832
59832
  */
59833
- //# sourceMappingURL=chunk-QELD44EL.js.map
59833
+ //# sourceMappingURL=chunk-J23VJQSB.js.map
package/lib/index.js CHANGED
@@ -28,11 +28,11 @@ import {
28
28
  providerMetrics,
29
29
  recordRuntimeInfo,
30
30
  timeoutError
31
- } from "./chunk-QELD44EL.js";
31
+ } from "./chunk-J23VJQSB.js";
32
32
  import {
33
33
  Plugin,
34
34
  PluginManager
35
- } from "./chunk-ZUTD563J.js";
35
+ } from "./chunk-3T4PWGQU.js";
36
36
 
37
37
  // src/chain-config.ts
38
38
  import("node:process").then((p) => p.stdout.write(""));
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-6XHWJ2VS.js";
6
6
  import {
7
7
  setupLogger
8
- } from "./chunk-BPGFX5S5.js";
8
+ } from "./chunk-GD7EL7GH.js";
9
9
  import {
10
10
  DiagConsoleLogger,
11
11
  DiagLogLevel,
@@ -44,7 +44,7 @@ import {
44
44
  require_lodash,
45
45
  require_src,
46
46
  trace
47
- } from "./chunk-QELD44EL.js";
47
+ } from "./chunk-J23VJQSB.js";
48
48
  import {
49
49
  ExecutionConfig,
50
50
  HandlerType,
@@ -60,7 +60,7 @@ import {
60
60
  __toCommonJS,
61
61
  __toESM,
62
62
  require_minimal2 as require_minimal
63
- } from "./chunk-ZUTD563J.js";
63
+ } from "./chunk-3T4PWGQU.js";
64
64
 
65
65
  // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.25.1/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js
66
66
  // @__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-BPGFX5S5.js";
4
+ } from "./chunk-GD7EL7GH.js";
5
5
  import {
6
6
  AbstractStoreContext,
7
7
  configureEndpoints,
@@ -10,12 +10,12 @@ import {
10
10
  recordRuntimeInfo,
11
11
  require_lib3 as require_lib,
12
12
  require_lib4 as require_lib2
13
- } from "./chunk-QELD44EL.js";
13
+ } from "./chunk-J23VJQSB.js";
14
14
  import {
15
15
  PluginManager,
16
16
  ProcessConfigResponse,
17
17
  __toESM
18
- } from "./chunk-ZUTD563J.js";
18
+ } from "./chunk-3T4PWGQU.js";
19
19
 
20
20
  // src/service-worker.ts
21
21
  var import_nice_grpc = __toESM(require_lib(), 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
- "version": "2.59.0-rc.4",
3
+ "version": "2.59.0-rc.6",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -612,6 +612,7 @@ export interface AccountConfig {
612
612
  chainId: string;
613
613
  address: string;
614
614
  startBlock: bigint;
615
+ endBlock: bigint;
615
616
  intervalConfigs: OnIntervalConfig[];
616
617
  /** @deprecated */
617
618
  aptosIntervalConfigs: AptosOnIntervalConfig[];
@@ -792,6 +793,7 @@ export interface MoveCallHandlerConfig {
792
793
 
793
794
  export interface MoveResourceChangeConfig {
794
795
  type: string;
796
+ includeDeleted: boolean;
795
797
  handlerId: number;
796
798
  handlerName: string;
797
799
  }
@@ -3319,6 +3321,7 @@ function createBaseAccountConfig(): AccountConfig {
3319
3321
  chainId: "",
3320
3322
  address: "",
3321
3323
  startBlock: BigInt("0"),
3324
+ endBlock: BigInt("0"),
3322
3325
  intervalConfigs: [],
3323
3326
  aptosIntervalConfigs: [],
3324
3327
  moveIntervalConfigs: [],
@@ -3342,6 +3345,12 @@ export const AccountConfig = {
3342
3345
  }
3343
3346
  writer.uint32(24).uint64(message.startBlock.toString());
3344
3347
  }
3348
+ if (message.endBlock !== BigInt("0")) {
3349
+ if (BigInt.asUintN(64, message.endBlock) !== message.endBlock) {
3350
+ throw new globalThis.Error("value provided for field message.endBlock of type uint64 too large");
3351
+ }
3352
+ writer.uint32(80).uint64(message.endBlock.toString());
3353
+ }
3345
3354
  for (const v of message.intervalConfigs) {
3346
3355
  OnIntervalConfig.encode(v!, writer.uint32(34).fork()).ldelim();
3347
3356
  }
@@ -3391,6 +3400,13 @@ export const AccountConfig = {
3391
3400
 
3392
3401
  message.startBlock = longToBigint(reader.uint64() as Long);
3393
3402
  continue;
3403
+ case 10:
3404
+ if (tag !== 80) {
3405
+ break;
3406
+ }
3407
+
3408
+ message.endBlock = longToBigint(reader.uint64() as Long);
3409
+ continue;
3394
3410
  case 4:
3395
3411
  if (tag !== 34) {
3396
3412
  break;
@@ -3447,6 +3463,7 @@ export const AccountConfig = {
3447
3463
  chainId: isSet(object.chainId) ? globalThis.String(object.chainId) : "",
3448
3464
  address: isSet(object.address) ? globalThis.String(object.address) : "",
3449
3465
  startBlock: isSet(object.startBlock) ? BigInt(object.startBlock) : BigInt("0"),
3466
+ endBlock: isSet(object.endBlock) ? BigInt(object.endBlock) : BigInt("0"),
3450
3467
  intervalConfigs: globalThis.Array.isArray(object?.intervalConfigs)
3451
3468
  ? object.intervalConfigs.map((e: any) => OnIntervalConfig.fromJSON(e))
3452
3469
  : [],
@@ -3479,6 +3496,9 @@ export const AccountConfig = {
3479
3496
  if (message.startBlock !== BigInt("0")) {
3480
3497
  obj.startBlock = message.startBlock.toString();
3481
3498
  }
3499
+ if (message.endBlock !== BigInt("0")) {
3500
+ obj.endBlock = message.endBlock.toString();
3501
+ }
3482
3502
  if (message.intervalConfigs?.length) {
3483
3503
  obj.intervalConfigs = message.intervalConfigs.map((e) => OnIntervalConfig.toJSON(e));
3484
3504
  }
@@ -3508,6 +3528,7 @@ export const AccountConfig = {
3508
3528
  message.chainId = object.chainId ?? "";
3509
3529
  message.address = object.address ?? "";
3510
3530
  message.startBlock = object.startBlock ?? BigInt("0");
3531
+ message.endBlock = object.endBlock ?? BigInt("0");
3511
3532
  message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
3512
3533
  message.aptosIntervalConfigs = object.aptosIntervalConfigs?.map((e) => AptosOnIntervalConfig.fromPartial(e)) || [];
3513
3534
  message.moveIntervalConfigs = object.moveIntervalConfigs?.map((e) => MoveOnIntervalConfig.fromPartial(e)) || [];
@@ -6093,7 +6114,7 @@ export const MoveCallHandlerConfig = {
6093
6114
  };
6094
6115
 
6095
6116
  function createBaseMoveResourceChangeConfig(): MoveResourceChangeConfig {
6096
- return { type: "", handlerId: 0, handlerName: "" };
6117
+ return { type: "", includeDeleted: false, handlerId: 0, handlerName: "" };
6097
6118
  }
6098
6119
 
6099
6120
  export const MoveResourceChangeConfig = {
@@ -6101,6 +6122,9 @@ export const MoveResourceChangeConfig = {
6101
6122
  if (message.type !== "") {
6102
6123
  writer.uint32(10).string(message.type);
6103
6124
  }
6125
+ if (message.includeDeleted !== false) {
6126
+ writer.uint32(32).bool(message.includeDeleted);
6127
+ }
6104
6128
  if (message.handlerId !== 0) {
6105
6129
  writer.uint32(16).int32(message.handlerId);
6106
6130
  }
@@ -6124,6 +6148,13 @@ export const MoveResourceChangeConfig = {
6124
6148
 
6125
6149
  message.type = reader.string();
6126
6150
  continue;
6151
+ case 4:
6152
+ if (tag !== 32) {
6153
+ break;
6154
+ }
6155
+
6156
+ message.includeDeleted = reader.bool();
6157
+ continue;
6127
6158
  case 2:
6128
6159
  if (tag !== 16) {
6129
6160
  break;
@@ -6150,6 +6181,7 @@ export const MoveResourceChangeConfig = {
6150
6181
  fromJSON(object: any): MoveResourceChangeConfig {
6151
6182
  return {
6152
6183
  type: isSet(object.type) ? globalThis.String(object.type) : "",
6184
+ includeDeleted: isSet(object.includeDeleted) ? globalThis.Boolean(object.includeDeleted) : false,
6153
6185
  handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
6154
6186
  handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
6155
6187
  };
@@ -6160,6 +6192,9 @@ export const MoveResourceChangeConfig = {
6160
6192
  if (message.type !== "") {
6161
6193
  obj.type = message.type;
6162
6194
  }
6195
+ if (message.includeDeleted !== false) {
6196
+ obj.includeDeleted = message.includeDeleted;
6197
+ }
6163
6198
  if (message.handlerId !== 0) {
6164
6199
  obj.handlerId = Math.round(message.handlerId);
6165
6200
  }
@@ -6175,6 +6210,7 @@ export const MoveResourceChangeConfig = {
6175
6210
  fromPartial(object: DeepPartial<MoveResourceChangeConfig>): MoveResourceChangeConfig {
6176
6211
  const message = createBaseMoveResourceChangeConfig();
6177
6212
  message.type = object.type ?? "";
6213
+ message.includeDeleted = object.includeDeleted ?? false;
6178
6214
  message.handlerId = object.handlerId ?? 0;
6179
6215
  message.handlerName = object.handlerName ?? "";
6180
6216
  return message;
@@ -423,6 +423,7 @@ export interface Project {
423
423
  /** @deprecated */
424
424
  enableMaterializedView: boolean;
425
425
  defaultTimerange: TimeRangeLite | undefined;
426
+ communityProject?: CommunityProject | undefined;
426
427
  }
427
428
 
428
429
  export enum Project_Visibility {
@@ -502,6 +503,11 @@ export interface Project_ProjectMember {
502
503
  role: string;
503
504
  }
504
505
 
506
+ export interface CommunityProject {
507
+ dashAlias: string;
508
+ curated?: boolean | undefined;
509
+ }
510
+
505
511
  export interface ProjectInfo {
506
512
  id: string;
507
513
  displayName: string;
@@ -645,6 +651,7 @@ export interface Formula {
645
651
  id: string;
646
652
  disabled: boolean;
647
653
  functions: Function[];
654
+ color: string;
648
655
  }
649
656
 
650
657
  export interface Argument {
@@ -2838,6 +2845,7 @@ function createBaseProject(): Project {
2838
2845
  enableDisk: false,
2839
2846
  enableMaterializedView: false,
2840
2847
  defaultTimerange: undefined,
2848
+ communityProject: undefined,
2841
2849
  };
2842
2850
  }
2843
2851
 
@@ -2909,6 +2917,9 @@ export const Project = {
2909
2917
  if (message.defaultTimerange !== undefined) {
2910
2918
  TimeRangeLite.encode(message.defaultTimerange, writer.uint32(170).fork()).ldelim();
2911
2919
  }
2920
+ if (message.communityProject !== undefined) {
2921
+ CommunityProject.encode(message.communityProject, writer.uint32(178).fork()).ldelim();
2922
+ }
2912
2923
  return writer;
2913
2924
  },
2914
2925
 
@@ -3059,6 +3070,13 @@ export const Project = {
3059
3070
 
3060
3071
  message.defaultTimerange = TimeRangeLite.decode(reader, reader.uint32());
3061
3072
  continue;
3073
+ case 22:
3074
+ if (tag !== 178) {
3075
+ break;
3076
+ }
3077
+
3078
+ message.communityProject = CommunityProject.decode(reader, reader.uint32());
3079
+ continue;
3062
3080
  }
3063
3081
  if ((tag & 7) === 4 || tag === 0) {
3064
3082
  break;
@@ -3096,6 +3114,7 @@ export const Project = {
3096
3114
  ? globalThis.Boolean(object.enableMaterializedView)
3097
3115
  : false,
3098
3116
  defaultTimerange: isSet(object.defaultTimerange) ? TimeRangeLite.fromJSON(object.defaultTimerange) : undefined,
3117
+ communityProject: isSet(object.communityProject) ? CommunityProject.fromJSON(object.communityProject) : undefined,
3099
3118
  };
3100
3119
  },
3101
3120
 
@@ -3161,6 +3180,9 @@ export const Project = {
3161
3180
  if (message.defaultTimerange !== undefined) {
3162
3181
  obj.defaultTimerange = TimeRangeLite.toJSON(message.defaultTimerange);
3163
3182
  }
3183
+ if (message.communityProject !== undefined) {
3184
+ obj.communityProject = CommunityProject.toJSON(message.communityProject);
3185
+ }
3164
3186
  return obj;
3165
3187
  },
3166
3188
 
@@ -3193,6 +3215,9 @@ export const Project = {
3193
3215
  message.defaultTimerange = (object.defaultTimerange !== undefined && object.defaultTimerange !== null)
3194
3216
  ? TimeRangeLite.fromPartial(object.defaultTimerange)
3195
3217
  : undefined;
3218
+ message.communityProject = (object.communityProject !== undefined && object.communityProject !== null)
3219
+ ? CommunityProject.fromPartial(object.communityProject)
3220
+ : undefined;
3196
3221
  return message;
3197
3222
  },
3198
3223
  };
@@ -3271,6 +3296,80 @@ export const Project_ProjectMember = {
3271
3296
  },
3272
3297
  };
3273
3298
 
3299
+ function createBaseCommunityProject(): CommunityProject {
3300
+ return { dashAlias: "", curated: undefined };
3301
+ }
3302
+
3303
+ export const CommunityProject = {
3304
+ encode(message: CommunityProject, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3305
+ if (message.dashAlias !== "") {
3306
+ writer.uint32(10).string(message.dashAlias);
3307
+ }
3308
+ if (message.curated !== undefined) {
3309
+ writer.uint32(16).bool(message.curated);
3310
+ }
3311
+ return writer;
3312
+ },
3313
+
3314
+ decode(input: _m0.Reader | Uint8Array, length?: number): CommunityProject {
3315
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
3316
+ let end = length === undefined ? reader.len : reader.pos + length;
3317
+ const message = createBaseCommunityProject();
3318
+ while (reader.pos < end) {
3319
+ const tag = reader.uint32();
3320
+ switch (tag >>> 3) {
3321
+ case 1:
3322
+ if (tag !== 10) {
3323
+ break;
3324
+ }
3325
+
3326
+ message.dashAlias = reader.string();
3327
+ continue;
3328
+ case 2:
3329
+ if (tag !== 16) {
3330
+ break;
3331
+ }
3332
+
3333
+ message.curated = reader.bool();
3334
+ continue;
3335
+ }
3336
+ if ((tag & 7) === 4 || tag === 0) {
3337
+ break;
3338
+ }
3339
+ reader.skipType(tag & 7);
3340
+ }
3341
+ return message;
3342
+ },
3343
+
3344
+ fromJSON(object: any): CommunityProject {
3345
+ return {
3346
+ dashAlias: isSet(object.dashAlias) ? globalThis.String(object.dashAlias) : "",
3347
+ curated: isSet(object.curated) ? globalThis.Boolean(object.curated) : undefined,
3348
+ };
3349
+ },
3350
+
3351
+ toJSON(message: CommunityProject): unknown {
3352
+ const obj: any = {};
3353
+ if (message.dashAlias !== "") {
3354
+ obj.dashAlias = message.dashAlias;
3355
+ }
3356
+ if (message.curated !== undefined) {
3357
+ obj.curated = message.curated;
3358
+ }
3359
+ return obj;
3360
+ },
3361
+
3362
+ create(base?: DeepPartial<CommunityProject>): CommunityProject {
3363
+ return CommunityProject.fromPartial(base ?? {});
3364
+ },
3365
+ fromPartial(object: DeepPartial<CommunityProject>): CommunityProject {
3366
+ const message = createBaseCommunityProject();
3367
+ message.dashAlias = object.dashAlias ?? "";
3368
+ message.curated = object.curated ?? undefined;
3369
+ return message;
3370
+ },
3371
+ };
3372
+
3274
3373
  function createBaseProjectInfo(): ProjectInfo {
3275
3374
  return {
3276
3375
  id: "",
@@ -5434,7 +5533,7 @@ export const Duration = {
5434
5533
  };
5435
5534
 
5436
5535
  function createBaseFormula(): Formula {
5437
- return { expression: "", alias: "", id: "", disabled: false, functions: [] };
5536
+ return { expression: "", alias: "", id: "", disabled: false, functions: [], color: "" };
5438
5537
  }
5439
5538
 
5440
5539
  export const Formula = {
@@ -5454,6 +5553,9 @@ export const Formula = {
5454
5553
  for (const v of message.functions) {
5455
5554
  Function.encode(v!, writer.uint32(50).fork()).ldelim();
5456
5555
  }
5556
+ if (message.color !== "") {
5557
+ writer.uint32(58).string(message.color);
5558
+ }
5457
5559
  return writer;
5458
5560
  },
5459
5561
 
@@ -5499,6 +5601,13 @@ export const Formula = {
5499
5601
 
5500
5602
  message.functions.push(Function.decode(reader, reader.uint32()));
5501
5603
  continue;
5604
+ case 7:
5605
+ if (tag !== 58) {
5606
+ break;
5607
+ }
5608
+
5609
+ message.color = reader.string();
5610
+ continue;
5502
5611
  }
5503
5612
  if ((tag & 7) === 4 || tag === 0) {
5504
5613
  break;
@@ -5517,6 +5626,7 @@ export const Formula = {
5517
5626
  functions: globalThis.Array.isArray(object?.functions)
5518
5627
  ? object.functions.map((e: any) => Function.fromJSON(e))
5519
5628
  : [],
5629
+ color: isSet(object.color) ? globalThis.String(object.color) : "",
5520
5630
  };
5521
5631
  },
5522
5632
 
@@ -5537,6 +5647,9 @@ export const Formula = {
5537
5647
  if (message.functions?.length) {
5538
5648
  obj.functions = message.functions.map((e) => Function.toJSON(e));
5539
5649
  }
5650
+ if (message.color !== "") {
5651
+ obj.color = message.color;
5652
+ }
5540
5653
  return obj;
5541
5654
  },
5542
5655
 
@@ -5550,6 +5663,7 @@ export const Formula = {
5550
5663
  message.id = object.id ?? "";
5551
5664
  message.disabled = object.disabled ?? false;
5552
5665
  message.functions = object.functions?.map((e) => Function.fromPartial(e)) || [];
5666
+ message.color = object.color ?? "";
5553
5667
  return message;
5554
5668
  },
5555
5669
  };