@sentio/runtime 2.9.0-rc.2 → 2.9.0-rc.4

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
3
  "license": "Apache-2.0",
4
- "version": "2.9.0-rc.2",
4
+ "version": "2.9.0-rc.4",
5
5
  "scripts": {
6
6
  "compile": "tsc",
7
7
  "build": "yarn compile",
@@ -13,7 +13,7 @@
13
13
  "start_js": "ts-node-esm --files ./lib/processor-runner.js $PWD/../../debug/dist/lib.js"
14
14
  },
15
15
  "dependencies": {
16
- "@sentio/protos": "^2.9.0-rc.2",
16
+ "@sentio/protos": "^2.9.0-rc.4",
17
17
  "command-line-args": "^5.2.1",
18
18
  "command-line-usage": "^7.0.1",
19
19
  "fs-extra": "^11.0.0",
@@ -45,5 +45,5 @@
45
45
  "!{lib,src}/tests",
46
46
  "!**/*.test.{js,ts}"
47
47
  ],
48
- "gitHead": "f22159ed1eac20a3ceed93e681822d039b47f715"
48
+ "gitHead": "2f04fb5aa85d0ec68ddbb03913e7271f7fadd5e1"
49
49
  }
@@ -370,7 +370,7 @@ export interface AccountConfig {
370
370
  startBlock: bigint;
371
371
  intervalConfigs: OnIntervalConfig[];
372
372
  aptosIntervalConfigs: AptosOnIntervalConfig[];
373
- suiIntervalConfigs: SuiOnIntervalConfig[];
373
+ moveIntervalConfigs: MoveOnIntervalConfig[];
374
374
  logConfigs: LogHandlerConfig[];
375
375
  }
376
376
 
@@ -392,8 +392,43 @@ export interface AptosOnIntervalConfig {
392
392
  type: string;
393
393
  }
394
394
 
395
- export interface SuiOnIntervalConfig {
395
+ export interface MoveOnIntervalConfig {
396
396
  intervalConfig: OnIntervalConfig | undefined;
397
+ type: string;
398
+ ownerType: MoveOnIntervalConfig_OwnerType;
399
+ }
400
+
401
+ export enum MoveOnIntervalConfig_OwnerType {
402
+ ADDRESS = 0,
403
+ OBJECT = 1,
404
+ UNRECOGNIZED = -1,
405
+ }
406
+
407
+ export function moveOnIntervalConfig_OwnerTypeFromJSON(object: any): MoveOnIntervalConfig_OwnerType {
408
+ switch (object) {
409
+ case 0:
410
+ case "ADDRESS":
411
+ return MoveOnIntervalConfig_OwnerType.ADDRESS;
412
+ case 1:
413
+ case "OBJECT":
414
+ return MoveOnIntervalConfig_OwnerType.OBJECT;
415
+ case -1:
416
+ case "UNRECOGNIZED":
417
+ default:
418
+ return MoveOnIntervalConfig_OwnerType.UNRECOGNIZED;
419
+ }
420
+ }
421
+
422
+ export function moveOnIntervalConfig_OwnerTypeToJSON(object: MoveOnIntervalConfig_OwnerType): string {
423
+ switch (object) {
424
+ case MoveOnIntervalConfig_OwnerType.ADDRESS:
425
+ return "ADDRESS";
426
+ case MoveOnIntervalConfig_OwnerType.OBJECT:
427
+ return "OBJECT";
428
+ case MoveOnIntervalConfig_OwnerType.UNRECOGNIZED:
429
+ default:
430
+ return "UNRECOGNIZED";
431
+ }
397
432
  }
398
433
 
399
434
  export interface ContractInfo {
@@ -1647,7 +1682,7 @@ function createBaseAccountConfig(): AccountConfig {
1647
1682
  startBlock: BigInt("0"),
1648
1683
  intervalConfigs: [],
1649
1684
  aptosIntervalConfigs: [],
1650
- suiIntervalConfigs: [],
1685
+ moveIntervalConfigs: [],
1651
1686
  logConfigs: [],
1652
1687
  };
1653
1688
  }
@@ -1669,8 +1704,8 @@ export const AccountConfig = {
1669
1704
  for (const v of message.aptosIntervalConfigs) {
1670
1705
  AptosOnIntervalConfig.encode(v!, writer.uint32(42).fork()).ldelim();
1671
1706
  }
1672
- for (const v of message.suiIntervalConfigs) {
1673
- SuiOnIntervalConfig.encode(v!, writer.uint32(58).fork()).ldelim();
1707
+ for (const v of message.moveIntervalConfigs) {
1708
+ MoveOnIntervalConfig.encode(v!, writer.uint32(58).fork()).ldelim();
1674
1709
  }
1675
1710
  for (const v of message.logConfigs) {
1676
1711
  LogHandlerConfig.encode(v!, writer.uint32(50).fork()).ldelim();
@@ -1701,7 +1736,7 @@ export const AccountConfig = {
1701
1736
  message.aptosIntervalConfigs.push(AptosOnIntervalConfig.decode(reader, reader.uint32()));
1702
1737
  break;
1703
1738
  case 7:
1704
- message.suiIntervalConfigs.push(SuiOnIntervalConfig.decode(reader, reader.uint32()));
1739
+ message.moveIntervalConfigs.push(MoveOnIntervalConfig.decode(reader, reader.uint32()));
1705
1740
  break;
1706
1741
  case 6:
1707
1742
  message.logConfigs.push(LogHandlerConfig.decode(reader, reader.uint32()));
@@ -1725,8 +1760,8 @@ export const AccountConfig = {
1725
1760
  aptosIntervalConfigs: Array.isArray(object?.aptosIntervalConfigs)
1726
1761
  ? object.aptosIntervalConfigs.map((e: any) => AptosOnIntervalConfig.fromJSON(e))
1727
1762
  : [],
1728
- suiIntervalConfigs: Array.isArray(object?.suiIntervalConfigs)
1729
- ? object.suiIntervalConfigs.map((e: any) => SuiOnIntervalConfig.fromJSON(e))
1763
+ moveIntervalConfigs: Array.isArray(object?.moveIntervalConfigs)
1764
+ ? object.moveIntervalConfigs.map((e: any) => MoveOnIntervalConfig.fromJSON(e))
1730
1765
  : [],
1731
1766
  logConfigs: Array.isArray(object?.logConfigs)
1732
1767
  ? object.logConfigs.map((e: any) => LogHandlerConfig.fromJSON(e))
@@ -1751,10 +1786,10 @@ export const AccountConfig = {
1751
1786
  } else {
1752
1787
  obj.aptosIntervalConfigs = [];
1753
1788
  }
1754
- if (message.suiIntervalConfigs) {
1755
- obj.suiIntervalConfigs = message.suiIntervalConfigs.map((e) => e ? SuiOnIntervalConfig.toJSON(e) : undefined);
1789
+ if (message.moveIntervalConfigs) {
1790
+ obj.moveIntervalConfigs = message.moveIntervalConfigs.map((e) => e ? MoveOnIntervalConfig.toJSON(e) : undefined);
1756
1791
  } else {
1757
- obj.suiIntervalConfigs = [];
1792
+ obj.moveIntervalConfigs = [];
1758
1793
  }
1759
1794
  if (message.logConfigs) {
1760
1795
  obj.logConfigs = message.logConfigs.map((e) => e ? LogHandlerConfig.toJSON(e) : undefined);
@@ -1775,7 +1810,7 @@ export const AccountConfig = {
1775
1810
  message.startBlock = object.startBlock ?? BigInt("0");
1776
1811
  message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
1777
1812
  message.aptosIntervalConfigs = object.aptosIntervalConfigs?.map((e) => AptosOnIntervalConfig.fromPartial(e)) || [];
1778
- message.suiIntervalConfigs = object.suiIntervalConfigs?.map((e) => SuiOnIntervalConfig.fromPartial(e)) || [];
1813
+ message.moveIntervalConfigs = object.moveIntervalConfigs?.map((e) => MoveOnIntervalConfig.fromPartial(e)) || [];
1779
1814
  message.logConfigs = object.logConfigs?.map((e) => LogHandlerConfig.fromPartial(e)) || [];
1780
1815
  return message;
1781
1816
  },
@@ -2003,28 +2038,40 @@ export const AptosOnIntervalConfig = {
2003
2038
  },
2004
2039
  };
2005
2040
 
2006
- function createBaseSuiOnIntervalConfig(): SuiOnIntervalConfig {
2007
- return { intervalConfig: undefined };
2041
+ function createBaseMoveOnIntervalConfig(): MoveOnIntervalConfig {
2042
+ return { intervalConfig: undefined, type: "", ownerType: 0 };
2008
2043
  }
2009
2044
 
2010
- export const SuiOnIntervalConfig = {
2011
- encode(message: SuiOnIntervalConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2045
+ export const MoveOnIntervalConfig = {
2046
+ encode(message: MoveOnIntervalConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2012
2047
  if (message.intervalConfig !== undefined) {
2013
2048
  OnIntervalConfig.encode(message.intervalConfig, writer.uint32(10).fork()).ldelim();
2014
2049
  }
2050
+ if (message.type !== "") {
2051
+ writer.uint32(18).string(message.type);
2052
+ }
2053
+ if (message.ownerType !== 0) {
2054
+ writer.uint32(24).int32(message.ownerType);
2055
+ }
2015
2056
  return writer;
2016
2057
  },
2017
2058
 
2018
- decode(input: _m0.Reader | Uint8Array, length?: number): SuiOnIntervalConfig {
2059
+ decode(input: _m0.Reader | Uint8Array, length?: number): MoveOnIntervalConfig {
2019
2060
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2020
2061
  let end = length === undefined ? reader.len : reader.pos + length;
2021
- const message = createBaseSuiOnIntervalConfig();
2062
+ const message = createBaseMoveOnIntervalConfig();
2022
2063
  while (reader.pos < end) {
2023
2064
  const tag = reader.uint32();
2024
2065
  switch (tag >>> 3) {
2025
2066
  case 1:
2026
2067
  message.intervalConfig = OnIntervalConfig.decode(reader, reader.uint32());
2027
2068
  break;
2069
+ case 2:
2070
+ message.type = reader.string();
2071
+ break;
2072
+ case 3:
2073
+ message.ownerType = reader.int32() as any;
2074
+ break;
2028
2075
  default:
2029
2076
  reader.skipType(tag & 7);
2030
2077
  break;
@@ -2033,28 +2080,34 @@ export const SuiOnIntervalConfig = {
2033
2080
  return message;
2034
2081
  },
2035
2082
 
2036
- fromJSON(object: any): SuiOnIntervalConfig {
2083
+ fromJSON(object: any): MoveOnIntervalConfig {
2037
2084
  return {
2038
2085
  intervalConfig: isSet(object.intervalConfig) ? OnIntervalConfig.fromJSON(object.intervalConfig) : undefined,
2086
+ type: isSet(object.type) ? String(object.type) : "",
2087
+ ownerType: isSet(object.ownerType) ? moveOnIntervalConfig_OwnerTypeFromJSON(object.ownerType) : 0,
2039
2088
  };
2040
2089
  },
2041
2090
 
2042
- toJSON(message: SuiOnIntervalConfig): unknown {
2091
+ toJSON(message: MoveOnIntervalConfig): unknown {
2043
2092
  const obj: any = {};
2044
2093
  message.intervalConfig !== undefined &&
2045
2094
  (obj.intervalConfig = message.intervalConfig ? OnIntervalConfig.toJSON(message.intervalConfig) : undefined);
2095
+ message.type !== undefined && (obj.type = message.type);
2096
+ message.ownerType !== undefined && (obj.ownerType = moveOnIntervalConfig_OwnerTypeToJSON(message.ownerType));
2046
2097
  return obj;
2047
2098
  },
2048
2099
 
2049
- create(base?: DeepPartial<SuiOnIntervalConfig>): SuiOnIntervalConfig {
2050
- return SuiOnIntervalConfig.fromPartial(base ?? {});
2100
+ create(base?: DeepPartial<MoveOnIntervalConfig>): MoveOnIntervalConfig {
2101
+ return MoveOnIntervalConfig.fromPartial(base ?? {});
2051
2102
  },
2052
2103
 
2053
- fromPartial(object: DeepPartial<SuiOnIntervalConfig>): SuiOnIntervalConfig {
2054
- const message = createBaseSuiOnIntervalConfig();
2104
+ fromPartial(object: DeepPartial<MoveOnIntervalConfig>): MoveOnIntervalConfig {
2105
+ const message = createBaseMoveOnIntervalConfig();
2055
2106
  message.intervalConfig = (object.intervalConfig !== undefined && object.intervalConfig !== null)
2056
2107
  ? OnIntervalConfig.fromPartial(object.intervalConfig)
2057
2108
  : undefined;
2109
+ message.type = object.type ?? "";
2110
+ message.ownerType = object.ownerType ?? 0;
2058
2111
  return message;
2059
2112
  },
2060
2113
  };