@sentio/protos 2.58.7 → 2.59.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/protos",
3
- "version": "2.58.7",
3
+ "version": "2.59.0-rc.10",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -608,6 +608,7 @@ export interface AccountConfig {
608
608
  chainId: string;
609
609
  address: string;
610
610
  startBlock: bigint;
611
+ endBlock: bigint;
611
612
  intervalConfigs: OnIntervalConfig[];
612
613
  moveIntervalConfigs: MoveOnIntervalConfig[];
613
614
  moveCallConfigs: MoveCallHandlerConfig[];
@@ -786,6 +787,7 @@ export interface MoveCallHandlerConfig {
786
787
 
787
788
  export interface MoveResourceChangeConfig {
788
789
  type: string;
790
+ includeDeleted: boolean;
789
791
  handlerId: number;
790
792
  handlerName: string;
791
793
  }
@@ -3234,6 +3236,7 @@ function createBaseAccountConfig(): AccountConfig {
3234
3236
  chainId: "",
3235
3237
  address: "",
3236
3238
  startBlock: BigInt("0"),
3239
+ endBlock: BigInt("0"),
3237
3240
  intervalConfigs: [],
3238
3241
  moveIntervalConfigs: [],
3239
3242
  moveCallConfigs: [],
@@ -3256,6 +3259,12 @@ export const AccountConfig = {
3256
3259
  }
3257
3260
  writer.uint32(24).uint64(message.startBlock.toString());
3258
3261
  }
3262
+ if (message.endBlock !== BigInt("0")) {
3263
+ if (BigInt.asUintN(64, message.endBlock) !== message.endBlock) {
3264
+ throw new globalThis.Error("value provided for field message.endBlock of type uint64 too large");
3265
+ }
3266
+ writer.uint32(80).uint64(message.endBlock.toString());
3267
+ }
3259
3268
  for (const v of message.intervalConfigs) {
3260
3269
  OnIntervalConfig.encode(v!, writer.uint32(34).fork()).ldelim();
3261
3270
  }
@@ -3302,6 +3311,13 @@ export const AccountConfig = {
3302
3311
 
3303
3312
  message.startBlock = longToBigint(reader.uint64() as Long);
3304
3313
  continue;
3314
+ case 10:
3315
+ if (tag !== 80) {
3316
+ break;
3317
+ }
3318
+
3319
+ message.endBlock = longToBigint(reader.uint64() as Long);
3320
+ continue;
3305
3321
  case 4:
3306
3322
  if (tag !== 34) {
3307
3323
  break;
@@ -3351,6 +3367,7 @@ export const AccountConfig = {
3351
3367
  chainId: isSet(object.chainId) ? globalThis.String(object.chainId) : "",
3352
3368
  address: isSet(object.address) ? globalThis.String(object.address) : "",
3353
3369
  startBlock: isSet(object.startBlock) ? BigInt(object.startBlock) : BigInt("0"),
3370
+ endBlock: isSet(object.endBlock) ? BigInt(object.endBlock) : BigInt("0"),
3354
3371
  intervalConfigs: globalThis.Array.isArray(object?.intervalConfigs)
3355
3372
  ? object.intervalConfigs.map((e: any) => OnIntervalConfig.fromJSON(e))
3356
3373
  : [],
@@ -3380,6 +3397,9 @@ export const AccountConfig = {
3380
3397
  if (message.startBlock !== BigInt("0")) {
3381
3398
  obj.startBlock = message.startBlock.toString();
3382
3399
  }
3400
+ if (message.endBlock !== BigInt("0")) {
3401
+ obj.endBlock = message.endBlock.toString();
3402
+ }
3383
3403
  if (message.intervalConfigs?.length) {
3384
3404
  obj.intervalConfigs = message.intervalConfigs.map((e) => OnIntervalConfig.toJSON(e));
3385
3405
  }
@@ -3406,6 +3426,7 @@ export const AccountConfig = {
3406
3426
  message.chainId = object.chainId ?? "";
3407
3427
  message.address = object.address ?? "";
3408
3428
  message.startBlock = object.startBlock ?? BigInt("0");
3429
+ message.endBlock = object.endBlock ?? BigInt("0");
3409
3430
  message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
3410
3431
  message.moveIntervalConfigs = object.moveIntervalConfigs?.map((e) => MoveOnIntervalConfig.fromPartial(e)) || [];
3411
3432
  message.moveCallConfigs = object.moveCallConfigs?.map((e) => MoveCallHandlerConfig.fromPartial(e)) || [];
@@ -5990,7 +6011,7 @@ export const MoveCallHandlerConfig = {
5990
6011
  };
5991
6012
 
5992
6013
  function createBaseMoveResourceChangeConfig(): MoveResourceChangeConfig {
5993
- return { type: "", handlerId: 0, handlerName: "" };
6014
+ return { type: "", includeDeleted: false, handlerId: 0, handlerName: "" };
5994
6015
  }
5995
6016
 
5996
6017
  export const MoveResourceChangeConfig = {
@@ -5998,6 +6019,9 @@ export const MoveResourceChangeConfig = {
5998
6019
  if (message.type !== "") {
5999
6020
  writer.uint32(10).string(message.type);
6000
6021
  }
6022
+ if (message.includeDeleted !== false) {
6023
+ writer.uint32(32).bool(message.includeDeleted);
6024
+ }
6001
6025
  if (message.handlerId !== 0) {
6002
6026
  writer.uint32(16).int32(message.handlerId);
6003
6027
  }
@@ -6021,6 +6045,13 @@ export const MoveResourceChangeConfig = {
6021
6045
 
6022
6046
  message.type = reader.string();
6023
6047
  continue;
6048
+ case 4:
6049
+ if (tag !== 32) {
6050
+ break;
6051
+ }
6052
+
6053
+ message.includeDeleted = reader.bool();
6054
+ continue;
6024
6055
  case 2:
6025
6056
  if (tag !== 16) {
6026
6057
  break;
@@ -6047,6 +6078,7 @@ export const MoveResourceChangeConfig = {
6047
6078
  fromJSON(object: any): MoveResourceChangeConfig {
6048
6079
  return {
6049
6080
  type: isSet(object.type) ? globalThis.String(object.type) : "",
6081
+ includeDeleted: isSet(object.includeDeleted) ? globalThis.Boolean(object.includeDeleted) : false,
6050
6082
  handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
6051
6083
  handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
6052
6084
  };
@@ -6057,6 +6089,9 @@ export const MoveResourceChangeConfig = {
6057
6089
  if (message.type !== "") {
6058
6090
  obj.type = message.type;
6059
6091
  }
6092
+ if (message.includeDeleted !== false) {
6093
+ obj.includeDeleted = message.includeDeleted;
6094
+ }
6060
6095
  if (message.handlerId !== 0) {
6061
6096
  obj.handlerId = Math.round(message.handlerId);
6062
6097
  }
@@ -6072,6 +6107,7 @@ export const MoveResourceChangeConfig = {
6072
6107
  fromPartial(object: DeepPartial<MoveResourceChangeConfig>): MoveResourceChangeConfig {
6073
6108
  const message = createBaseMoveResourceChangeConfig();
6074
6109
  message.type = object.type ?? "";
6110
+ message.includeDeleted = object.includeDeleted ?? false;
6075
6111
  message.handlerId = object.handlerId ?? 0;
6076
6112
  message.handlerName = object.handlerName ?? "";
6077
6113
  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
  };