@sentio/runtime 2.13.0-rc.1 → 2.13.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
3
  "license": "Apache-2.0",
4
- "version": "2.13.0-rc.1",
4
+ "version": "2.13.0-rc.10",
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.13.0-rc.1",
16
+ "@sentio/protos": "^2.13.0-rc.10",
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": "5cb79084e93f7452fe85f1dbda684ff6a037973a"
48
+ "gitHead": "b4fab76794a736f0f53aa2c300204b749f564570"
49
49
  }
@@ -391,6 +391,7 @@ export interface OnIntervalConfig {
391
391
  minutesInterval?: HandleInterval | undefined;
392
392
  slot: number;
393
393
  slotInterval?: HandleInterval | undefined;
394
+ fetchConfig: EthFetchConfig | undefined;
394
395
  }
395
396
 
396
397
  export interface AptosOnIntervalConfig {
@@ -1888,7 +1889,14 @@ export const HandleInterval = {
1888
1889
  };
1889
1890
 
1890
1891
  function createBaseOnIntervalConfig(): OnIntervalConfig {
1891
- return { handlerId: 0, minutes: 0, minutesInterval: undefined, slot: 0, slotInterval: undefined };
1892
+ return {
1893
+ handlerId: 0,
1894
+ minutes: 0,
1895
+ minutesInterval: undefined,
1896
+ slot: 0,
1897
+ slotInterval: undefined,
1898
+ fetchConfig: undefined,
1899
+ };
1892
1900
  }
1893
1901
 
1894
1902
  export const OnIntervalConfig = {
@@ -1908,6 +1916,9 @@ export const OnIntervalConfig = {
1908
1916
  if (message.slotInterval !== undefined) {
1909
1917
  HandleInterval.encode(message.slotInterval, writer.uint32(42).fork()).ldelim();
1910
1918
  }
1919
+ if (message.fetchConfig !== undefined) {
1920
+ EthFetchConfig.encode(message.fetchConfig, writer.uint32(50).fork()).ldelim();
1921
+ }
1911
1922
  return writer;
1912
1923
  },
1913
1924
 
@@ -1933,6 +1944,9 @@ export const OnIntervalConfig = {
1933
1944
  case 5:
1934
1945
  message.slotInterval = HandleInterval.decode(reader, reader.uint32());
1935
1946
  break;
1947
+ case 6:
1948
+ message.fetchConfig = EthFetchConfig.decode(reader, reader.uint32());
1949
+ break;
1936
1950
  default:
1937
1951
  reader.skipType(tag & 7);
1938
1952
  break;
@@ -1948,6 +1962,7 @@ export const OnIntervalConfig = {
1948
1962
  minutesInterval: isSet(object.minutesInterval) ? HandleInterval.fromJSON(object.minutesInterval) : undefined,
1949
1963
  slot: isSet(object.slot) ? Number(object.slot) : 0,
1950
1964
  slotInterval: isSet(object.slotInterval) ? HandleInterval.fromJSON(object.slotInterval) : undefined,
1965
+ fetchConfig: isSet(object.fetchConfig) ? EthFetchConfig.fromJSON(object.fetchConfig) : undefined,
1951
1966
  };
1952
1967
  },
1953
1968
 
@@ -1960,6 +1975,8 @@ export const OnIntervalConfig = {
1960
1975
  message.slot !== undefined && (obj.slot = Math.round(message.slot));
1961
1976
  message.slotInterval !== undefined &&
1962
1977
  (obj.slotInterval = message.slotInterval ? HandleInterval.toJSON(message.slotInterval) : undefined);
1978
+ message.fetchConfig !== undefined &&
1979
+ (obj.fetchConfig = message.fetchConfig ? EthFetchConfig.toJSON(message.fetchConfig) : undefined);
1963
1980
  return obj;
1964
1981
  },
1965
1982
 
@@ -1978,6 +1995,9 @@ export const OnIntervalConfig = {
1978
1995
  message.slotInterval = (object.slotInterval !== undefined && object.slotInterval !== null)
1979
1996
  ? HandleInterval.fromPartial(object.slotInterval)
1980
1997
  : undefined;
1998
+ message.fetchConfig = (object.fetchConfig !== undefined && object.fetchConfig !== null)
1999
+ ? EthFetchConfig.fromPartial(object.fetchConfig)
2000
+ : undefined;
1981
2001
  return message;
1982
2002
  },
1983
2003
  };