@sentio/runtime 2.9.0-rc.3 → 2.9.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.
@@ -137,7 +137,7 @@ export declare class FullProcessorServiceImpl implements ProcessorServiceImpleme
137
137
  } | undefined;
138
138
  type?: string | undefined;
139
139
  }[] | undefined;
140
- suiIntervalConfigs?: {
140
+ moveIntervalConfigs?: {
141
141
  intervalConfig?: {
142
142
  handlerId?: number | undefined;
143
143
  minutes?: number | undefined;
@@ -151,6 +151,8 @@ export declare class FullProcessorServiceImpl implements ProcessorServiceImpleme
151
151
  backfillInterval?: number | undefined;
152
152
  } | undefined;
153
153
  } | undefined;
154
+ type?: string | undefined;
155
+ ownerType?: import("./gen/processor/protos/processor.js").MoveOnIntervalConfig_OwnerType | undefined;
154
156
  }[] | undefined;
155
157
  logConfigs?: {
156
158
  filters?: {
@@ -124,7 +124,7 @@ export interface AccountConfig {
124
124
  startBlock: bigint;
125
125
  intervalConfigs: OnIntervalConfig[];
126
126
  aptosIntervalConfigs: AptosOnIntervalConfig[];
127
- suiIntervalConfigs: SuiOnIntervalConfig[];
127
+ moveIntervalConfigs: MoveOnIntervalConfig[];
128
128
  logConfigs: LogHandlerConfig[];
129
129
  }
130
130
  export interface HandleInterval {
@@ -142,9 +142,18 @@ export interface AptosOnIntervalConfig {
142
142
  intervalConfig: OnIntervalConfig | undefined;
143
143
  type: string;
144
144
  }
145
- export interface SuiOnIntervalConfig {
145
+ export interface MoveOnIntervalConfig {
146
146
  intervalConfig: OnIntervalConfig | undefined;
147
+ type: string;
148
+ ownerType: MoveOnIntervalConfig_OwnerType;
149
+ }
150
+ export declare enum MoveOnIntervalConfig_OwnerType {
151
+ ADDRESS = 0,
152
+ OBJECT = 1,
153
+ UNRECOGNIZED = -1
147
154
  }
155
+ export declare function moveOnIntervalConfig_OwnerTypeFromJSON(object: any): MoveOnIntervalConfig_OwnerType;
156
+ export declare function moveOnIntervalConfig_OwnerTypeToJSON(object: MoveOnIntervalConfig_OwnerType): string;
148
157
  export interface ContractInfo {
149
158
  name: string;
150
159
  chainId: string;
@@ -527,13 +536,13 @@ export declare const AptosOnIntervalConfig: {
527
536
  create(base?: DeepPartial<AptosOnIntervalConfig>): AptosOnIntervalConfig;
528
537
  fromPartial(object: DeepPartial<AptosOnIntervalConfig>): AptosOnIntervalConfig;
529
538
  };
530
- export declare const SuiOnIntervalConfig: {
531
- encode(message: SuiOnIntervalConfig, writer?: _m0.Writer): _m0.Writer;
532
- decode(input: _m0.Reader | Uint8Array, length?: number): SuiOnIntervalConfig;
533
- fromJSON(object: any): SuiOnIntervalConfig;
534
- toJSON(message: SuiOnIntervalConfig): unknown;
535
- create(base?: DeepPartial<SuiOnIntervalConfig>): SuiOnIntervalConfig;
536
- fromPartial(object: DeepPartial<SuiOnIntervalConfig>): SuiOnIntervalConfig;
539
+ export declare const MoveOnIntervalConfig: {
540
+ encode(message: MoveOnIntervalConfig, writer?: _m0.Writer): _m0.Writer;
541
+ decode(input: _m0.Reader | Uint8Array, length?: number): MoveOnIntervalConfig;
542
+ fromJSON(object: any): MoveOnIntervalConfig;
543
+ toJSON(message: MoveOnIntervalConfig): unknown;
544
+ create(base?: DeepPartial<MoveOnIntervalConfig>): MoveOnIntervalConfig;
545
+ fromPartial(object: DeepPartial<MoveOnIntervalConfig>): MoveOnIntervalConfig;
537
546
  };
538
547
  export declare const ContractInfo: {
539
548
  encode(message: ContractInfo, writer?: _m0.Writer): _m0.Writer;
@@ -280,6 +280,37 @@ export function totalPerEntityAggregation_TypeToJSON(object) {
280
280
  return "UNRECOGNIZED";
281
281
  }
282
282
  }
283
+ export var MoveOnIntervalConfig_OwnerType;
284
+ (function (MoveOnIntervalConfig_OwnerType) {
285
+ MoveOnIntervalConfig_OwnerType[MoveOnIntervalConfig_OwnerType["ADDRESS"] = 0] = "ADDRESS";
286
+ MoveOnIntervalConfig_OwnerType[MoveOnIntervalConfig_OwnerType["OBJECT"] = 1] = "OBJECT";
287
+ MoveOnIntervalConfig_OwnerType[MoveOnIntervalConfig_OwnerType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
288
+ })(MoveOnIntervalConfig_OwnerType || (MoveOnIntervalConfig_OwnerType = {}));
289
+ export function moveOnIntervalConfig_OwnerTypeFromJSON(object) {
290
+ switch (object) {
291
+ case 0:
292
+ case "ADDRESS":
293
+ return MoveOnIntervalConfig_OwnerType.ADDRESS;
294
+ case 1:
295
+ case "OBJECT":
296
+ return MoveOnIntervalConfig_OwnerType.OBJECT;
297
+ case -1:
298
+ case "UNRECOGNIZED":
299
+ default:
300
+ return MoveOnIntervalConfig_OwnerType.UNRECOGNIZED;
301
+ }
302
+ }
303
+ export function moveOnIntervalConfig_OwnerTypeToJSON(object) {
304
+ switch (object) {
305
+ case MoveOnIntervalConfig_OwnerType.ADDRESS:
306
+ return "ADDRESS";
307
+ case MoveOnIntervalConfig_OwnerType.OBJECT:
308
+ return "OBJECT";
309
+ case MoveOnIntervalConfig_OwnerType.UNRECOGNIZED:
310
+ default:
311
+ return "UNRECOGNIZED";
312
+ }
313
+ }
283
314
  function createBaseProjectConfig() {
284
315
  return { name: "", version: "" };
285
316
  }
@@ -1211,7 +1242,7 @@ function createBaseAccountConfig() {
1211
1242
  startBlock: BigInt("0"),
1212
1243
  intervalConfigs: [],
1213
1244
  aptosIntervalConfigs: [],
1214
- suiIntervalConfigs: [],
1245
+ moveIntervalConfigs: [],
1215
1246
  logConfigs: [],
1216
1247
  };
1217
1248
  }
@@ -1232,8 +1263,8 @@ export const AccountConfig = {
1232
1263
  for (const v of message.aptosIntervalConfigs) {
1233
1264
  AptosOnIntervalConfig.encode(v, writer.uint32(42).fork()).ldelim();
1234
1265
  }
1235
- for (const v of message.suiIntervalConfigs) {
1236
- SuiOnIntervalConfig.encode(v, writer.uint32(58).fork()).ldelim();
1266
+ for (const v of message.moveIntervalConfigs) {
1267
+ MoveOnIntervalConfig.encode(v, writer.uint32(58).fork()).ldelim();
1237
1268
  }
1238
1269
  for (const v of message.logConfigs) {
1239
1270
  LogHandlerConfig.encode(v, writer.uint32(50).fork()).ldelim();
@@ -1263,7 +1294,7 @@ export const AccountConfig = {
1263
1294
  message.aptosIntervalConfigs.push(AptosOnIntervalConfig.decode(reader, reader.uint32()));
1264
1295
  break;
1265
1296
  case 7:
1266
- message.suiIntervalConfigs.push(SuiOnIntervalConfig.decode(reader, reader.uint32()));
1297
+ message.moveIntervalConfigs.push(MoveOnIntervalConfig.decode(reader, reader.uint32()));
1267
1298
  break;
1268
1299
  case 6:
1269
1300
  message.logConfigs.push(LogHandlerConfig.decode(reader, reader.uint32()));
@@ -1286,8 +1317,8 @@ export const AccountConfig = {
1286
1317
  aptosIntervalConfigs: Array.isArray(object?.aptosIntervalConfigs)
1287
1318
  ? object.aptosIntervalConfigs.map((e) => AptosOnIntervalConfig.fromJSON(e))
1288
1319
  : [],
1289
- suiIntervalConfigs: Array.isArray(object?.suiIntervalConfigs)
1290
- ? object.suiIntervalConfigs.map((e) => SuiOnIntervalConfig.fromJSON(e))
1320
+ moveIntervalConfigs: Array.isArray(object?.moveIntervalConfigs)
1321
+ ? object.moveIntervalConfigs.map((e) => MoveOnIntervalConfig.fromJSON(e))
1291
1322
  : [],
1292
1323
  logConfigs: Array.isArray(object?.logConfigs)
1293
1324
  ? object.logConfigs.map((e) => LogHandlerConfig.fromJSON(e))
@@ -1311,11 +1342,11 @@ export const AccountConfig = {
1311
1342
  else {
1312
1343
  obj.aptosIntervalConfigs = [];
1313
1344
  }
1314
- if (message.suiIntervalConfigs) {
1315
- obj.suiIntervalConfigs = message.suiIntervalConfigs.map((e) => e ? SuiOnIntervalConfig.toJSON(e) : undefined);
1345
+ if (message.moveIntervalConfigs) {
1346
+ obj.moveIntervalConfigs = message.moveIntervalConfigs.map((e) => e ? MoveOnIntervalConfig.toJSON(e) : undefined);
1316
1347
  }
1317
1348
  else {
1318
- obj.suiIntervalConfigs = [];
1349
+ obj.moveIntervalConfigs = [];
1319
1350
  }
1320
1351
  if (message.logConfigs) {
1321
1352
  obj.logConfigs = message.logConfigs.map((e) => e ? LogHandlerConfig.toJSON(e) : undefined);
@@ -1335,7 +1366,7 @@ export const AccountConfig = {
1335
1366
  message.startBlock = object.startBlock ?? BigInt("0");
1336
1367
  message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
1337
1368
  message.aptosIntervalConfigs = object.aptosIntervalConfigs?.map((e) => AptosOnIntervalConfig.fromPartial(e)) || [];
1338
- message.suiIntervalConfigs = object.suiIntervalConfigs?.map((e) => SuiOnIntervalConfig.fromPartial(e)) || [];
1369
+ message.moveIntervalConfigs = object.moveIntervalConfigs?.map((e) => MoveOnIntervalConfig.fromPartial(e)) || [];
1339
1370
  message.logConfigs = object.logConfigs?.map((e) => LogHandlerConfig.fromPartial(e)) || [];
1340
1371
  return message;
1341
1372
  },
@@ -1541,26 +1572,38 @@ export const AptosOnIntervalConfig = {
1541
1572
  return message;
1542
1573
  },
1543
1574
  };
1544
- function createBaseSuiOnIntervalConfig() {
1545
- return { intervalConfig: undefined };
1575
+ function createBaseMoveOnIntervalConfig() {
1576
+ return { intervalConfig: undefined, type: "", ownerType: 0 };
1546
1577
  }
1547
- export const SuiOnIntervalConfig = {
1578
+ export const MoveOnIntervalConfig = {
1548
1579
  encode(message, writer = _m0.Writer.create()) {
1549
1580
  if (message.intervalConfig !== undefined) {
1550
1581
  OnIntervalConfig.encode(message.intervalConfig, writer.uint32(10).fork()).ldelim();
1551
1582
  }
1583
+ if (message.type !== "") {
1584
+ writer.uint32(18).string(message.type);
1585
+ }
1586
+ if (message.ownerType !== 0) {
1587
+ writer.uint32(24).int32(message.ownerType);
1588
+ }
1552
1589
  return writer;
1553
1590
  },
1554
1591
  decode(input, length) {
1555
1592
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1556
1593
  let end = length === undefined ? reader.len : reader.pos + length;
1557
- const message = createBaseSuiOnIntervalConfig();
1594
+ const message = createBaseMoveOnIntervalConfig();
1558
1595
  while (reader.pos < end) {
1559
1596
  const tag = reader.uint32();
1560
1597
  switch (tag >>> 3) {
1561
1598
  case 1:
1562
1599
  message.intervalConfig = OnIntervalConfig.decode(reader, reader.uint32());
1563
1600
  break;
1601
+ case 2:
1602
+ message.type = reader.string();
1603
+ break;
1604
+ case 3:
1605
+ message.ownerType = reader.int32();
1606
+ break;
1564
1607
  default:
1565
1608
  reader.skipType(tag & 7);
1566
1609
  break;
@@ -1571,22 +1614,28 @@ export const SuiOnIntervalConfig = {
1571
1614
  fromJSON(object) {
1572
1615
  return {
1573
1616
  intervalConfig: isSet(object.intervalConfig) ? OnIntervalConfig.fromJSON(object.intervalConfig) : undefined,
1617
+ type: isSet(object.type) ? String(object.type) : "",
1618
+ ownerType: isSet(object.ownerType) ? moveOnIntervalConfig_OwnerTypeFromJSON(object.ownerType) : 0,
1574
1619
  };
1575
1620
  },
1576
1621
  toJSON(message) {
1577
1622
  const obj = {};
1578
1623
  message.intervalConfig !== undefined &&
1579
1624
  (obj.intervalConfig = message.intervalConfig ? OnIntervalConfig.toJSON(message.intervalConfig) : undefined);
1625
+ message.type !== undefined && (obj.type = message.type);
1626
+ message.ownerType !== undefined && (obj.ownerType = moveOnIntervalConfig_OwnerTypeToJSON(message.ownerType));
1580
1627
  return obj;
1581
1628
  },
1582
1629
  create(base) {
1583
- return SuiOnIntervalConfig.fromPartial(base ?? {});
1630
+ return MoveOnIntervalConfig.fromPartial(base ?? {});
1584
1631
  },
1585
1632
  fromPartial(object) {
1586
- const message = createBaseSuiOnIntervalConfig();
1633
+ const message = createBaseMoveOnIntervalConfig();
1587
1634
  message.intervalConfig = (object.intervalConfig !== undefined && object.intervalConfig !== null)
1588
1635
  ? OnIntervalConfig.fromPartial(object.intervalConfig)
1589
1636
  : undefined;
1637
+ message.type = object.type ?? "";
1638
+ message.ownerType = object.ownerType ?? 0;
1590
1639
  return message;
1591
1640
  },
1592
1641
  };