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

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@sentio/protos",
3
3
  "license": "Apache-2.0",
4
- "version": "2.9.0-rc.2",
4
+ "version": "2.9.0-rc.4",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "compile": "tsc",
@@ -20,5 +20,5 @@
20
20
  "files": [
21
21
  "{lib,src}"
22
22
  ],
23
- "gitHead": "f22159ed1eac20a3ceed93e681822d039b47f715"
23
+ "gitHead": "2f04fb5aa85d0ec68ddbb03913e7271f7fadd5e1"
24
24
  }
@@ -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 {
@@ -1632,7 +1667,7 @@ function createBaseAccountConfig(): AccountConfig {
1632
1667
  startBlock: BigInt("0"),
1633
1668
  intervalConfigs: [],
1634
1669
  aptosIntervalConfigs: [],
1635
- suiIntervalConfigs: [],
1670
+ moveIntervalConfigs: [],
1636
1671
  logConfigs: [],
1637
1672
  };
1638
1673
  }
@@ -1654,8 +1689,8 @@ export const AccountConfig = {
1654
1689
  for (const v of message.aptosIntervalConfigs) {
1655
1690
  AptosOnIntervalConfig.encode(v!, writer.uint32(42).fork()).ldelim();
1656
1691
  }
1657
- for (const v of message.suiIntervalConfigs) {
1658
- SuiOnIntervalConfig.encode(v!, writer.uint32(58).fork()).ldelim();
1692
+ for (const v of message.moveIntervalConfigs) {
1693
+ MoveOnIntervalConfig.encode(v!, writer.uint32(58).fork()).ldelim();
1659
1694
  }
1660
1695
  for (const v of message.logConfigs) {
1661
1696
  LogHandlerConfig.encode(v!, writer.uint32(50).fork()).ldelim();
@@ -1686,7 +1721,7 @@ export const AccountConfig = {
1686
1721
  message.aptosIntervalConfigs.push(AptosOnIntervalConfig.decode(reader, reader.uint32()));
1687
1722
  break;
1688
1723
  case 7:
1689
- message.suiIntervalConfigs.push(SuiOnIntervalConfig.decode(reader, reader.uint32()));
1724
+ message.moveIntervalConfigs.push(MoveOnIntervalConfig.decode(reader, reader.uint32()));
1690
1725
  break;
1691
1726
  case 6:
1692
1727
  message.logConfigs.push(LogHandlerConfig.decode(reader, reader.uint32()));
@@ -1710,8 +1745,8 @@ export const AccountConfig = {
1710
1745
  aptosIntervalConfigs: Array.isArray(object?.aptosIntervalConfigs)
1711
1746
  ? object.aptosIntervalConfigs.map((e: any) => AptosOnIntervalConfig.fromJSON(e))
1712
1747
  : [],
1713
- suiIntervalConfigs: Array.isArray(object?.suiIntervalConfigs)
1714
- ? object.suiIntervalConfigs.map((e: any) => SuiOnIntervalConfig.fromJSON(e))
1748
+ moveIntervalConfigs: Array.isArray(object?.moveIntervalConfigs)
1749
+ ? object.moveIntervalConfigs.map((e: any) => MoveOnIntervalConfig.fromJSON(e))
1715
1750
  : [],
1716
1751
  logConfigs: Array.isArray(object?.logConfigs)
1717
1752
  ? object.logConfigs.map((e: any) => LogHandlerConfig.fromJSON(e))
@@ -1736,10 +1771,10 @@ export const AccountConfig = {
1736
1771
  } else {
1737
1772
  obj.aptosIntervalConfigs = [];
1738
1773
  }
1739
- if (message.suiIntervalConfigs) {
1740
- obj.suiIntervalConfigs = message.suiIntervalConfigs.map((e) => e ? SuiOnIntervalConfig.toJSON(e) : undefined);
1774
+ if (message.moveIntervalConfigs) {
1775
+ obj.moveIntervalConfigs = message.moveIntervalConfigs.map((e) => e ? MoveOnIntervalConfig.toJSON(e) : undefined);
1741
1776
  } else {
1742
- obj.suiIntervalConfigs = [];
1777
+ obj.moveIntervalConfigs = [];
1743
1778
  }
1744
1779
  if (message.logConfigs) {
1745
1780
  obj.logConfigs = message.logConfigs.map((e) => e ? LogHandlerConfig.toJSON(e) : undefined);
@@ -1760,7 +1795,7 @@ export const AccountConfig = {
1760
1795
  message.startBlock = object.startBlock ?? BigInt("0");
1761
1796
  message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
1762
1797
  message.aptosIntervalConfigs = object.aptosIntervalConfigs?.map((e) => AptosOnIntervalConfig.fromPartial(e)) || [];
1763
- message.suiIntervalConfigs = object.suiIntervalConfigs?.map((e) => SuiOnIntervalConfig.fromPartial(e)) || [];
1798
+ message.moveIntervalConfigs = object.moveIntervalConfigs?.map((e) => MoveOnIntervalConfig.fromPartial(e)) || [];
1764
1799
  message.logConfigs = object.logConfigs?.map((e) => LogHandlerConfig.fromPartial(e)) || [];
1765
1800
  return message;
1766
1801
  },
@@ -1988,28 +2023,40 @@ export const AptosOnIntervalConfig = {
1988
2023
  },
1989
2024
  };
1990
2025
 
1991
- function createBaseSuiOnIntervalConfig(): SuiOnIntervalConfig {
1992
- return { intervalConfig: undefined };
2026
+ function createBaseMoveOnIntervalConfig(): MoveOnIntervalConfig {
2027
+ return { intervalConfig: undefined, type: "", ownerType: 0 };
1993
2028
  }
1994
2029
 
1995
- export const SuiOnIntervalConfig = {
1996
- encode(message: SuiOnIntervalConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2030
+ export const MoveOnIntervalConfig = {
2031
+ encode(message: MoveOnIntervalConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1997
2032
  if (message.intervalConfig !== undefined) {
1998
2033
  OnIntervalConfig.encode(message.intervalConfig, writer.uint32(10).fork()).ldelim();
1999
2034
  }
2035
+ if (message.type !== "") {
2036
+ writer.uint32(18).string(message.type);
2037
+ }
2038
+ if (message.ownerType !== 0) {
2039
+ writer.uint32(24).int32(message.ownerType);
2040
+ }
2000
2041
  return writer;
2001
2042
  },
2002
2043
 
2003
- decode(input: _m0.Reader | Uint8Array, length?: number): SuiOnIntervalConfig {
2044
+ decode(input: _m0.Reader | Uint8Array, length?: number): MoveOnIntervalConfig {
2004
2045
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2005
2046
  let end = length === undefined ? reader.len : reader.pos + length;
2006
- const message = createBaseSuiOnIntervalConfig();
2047
+ const message = createBaseMoveOnIntervalConfig();
2007
2048
  while (reader.pos < end) {
2008
2049
  const tag = reader.uint32();
2009
2050
  switch (tag >>> 3) {
2010
2051
  case 1:
2011
2052
  message.intervalConfig = OnIntervalConfig.decode(reader, reader.uint32());
2012
2053
  break;
2054
+ case 2:
2055
+ message.type = reader.string();
2056
+ break;
2057
+ case 3:
2058
+ message.ownerType = reader.int32() as any;
2059
+ break;
2013
2060
  default:
2014
2061
  reader.skipType(tag & 7);
2015
2062
  break;
@@ -2018,28 +2065,34 @@ export const SuiOnIntervalConfig = {
2018
2065
  return message;
2019
2066
  },
2020
2067
 
2021
- fromJSON(object: any): SuiOnIntervalConfig {
2068
+ fromJSON(object: any): MoveOnIntervalConfig {
2022
2069
  return {
2023
2070
  intervalConfig: isSet(object.intervalConfig) ? OnIntervalConfig.fromJSON(object.intervalConfig) : undefined,
2071
+ type: isSet(object.type) ? String(object.type) : "",
2072
+ ownerType: isSet(object.ownerType) ? moveOnIntervalConfig_OwnerTypeFromJSON(object.ownerType) : 0,
2024
2073
  };
2025
2074
  },
2026
2075
 
2027
- toJSON(message: SuiOnIntervalConfig): unknown {
2076
+ toJSON(message: MoveOnIntervalConfig): unknown {
2028
2077
  const obj: any = {};
2029
2078
  message.intervalConfig !== undefined &&
2030
2079
  (obj.intervalConfig = message.intervalConfig ? OnIntervalConfig.toJSON(message.intervalConfig) : undefined);
2080
+ message.type !== undefined && (obj.type = message.type);
2081
+ message.ownerType !== undefined && (obj.ownerType = moveOnIntervalConfig_OwnerTypeToJSON(message.ownerType));
2031
2082
  return obj;
2032
2083
  },
2033
2084
 
2034
- create(base?: DeepPartial<SuiOnIntervalConfig>): SuiOnIntervalConfig {
2035
- return SuiOnIntervalConfig.fromPartial(base ?? {});
2085
+ create(base?: DeepPartial<MoveOnIntervalConfig>): MoveOnIntervalConfig {
2086
+ return MoveOnIntervalConfig.fromPartial(base ?? {});
2036
2087
  },
2037
2088
 
2038
- fromPartial(object: DeepPartial<SuiOnIntervalConfig>): SuiOnIntervalConfig {
2039
- const message = createBaseSuiOnIntervalConfig();
2089
+ fromPartial(object: DeepPartial<MoveOnIntervalConfig>): MoveOnIntervalConfig {
2090
+ const message = createBaseMoveOnIntervalConfig();
2040
2091
  message.intervalConfig = (object.intervalConfig !== undefined && object.intervalConfig !== null)
2041
2092
  ? OnIntervalConfig.fromPartial(object.intervalConfig)
2042
2093
  : undefined;
2094
+ message.type = object.type ?? "";
2095
+ message.ownerType = object.ownerType ?? 0;
2043
2096
  return message;
2044
2097
  },
2045
2098
  };