@sentio/runtime 1.40.2-rc.1 → 1.40.2-rc.3

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": "1.40.2-rc.1",
4
+ "version": "1.40.2-rc.3",
5
5
  "scripts": {
6
6
  "compile": "tsc -p .",
7
7
  "build": "yarn compile",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@ethersproject/providers": "~5.7.0",
15
- "@sentio/protos": "^1.40.2-rc.1",
15
+ "@sentio/protos": "^1.40.2-rc.3",
16
16
  "bignumber.js": "^9.1.0",
17
17
  "command-line-args": "^5.2.1",
18
18
  "command-line-usage": "^6.1.3",
@@ -25,9 +25,6 @@
25
25
  "p-queue": "^6.6.2",
26
26
  "winston": "^3.8.2"
27
27
  },
28
- "resolutions": {
29
- "@grpc/grpc-js": "1.7.3"
30
- },
31
28
  "devDependencies": {
32
29
  "@types/chai": "^4.3.1",
33
30
  "@types/command-line-args": "^5.2.0",
@@ -48,5 +45,5 @@
48
45
  "!{lib,src}/tests",
49
46
  "!**/*.test.{js,ts}"
50
47
  ],
51
- "gitHead": "7c2cee71d649b6ac070f6d3928b45cffc9fc9118"
48
+ "gitHead": "9f319914a5150bda10e2876c453acad068a145ed"
52
49
  }
@@ -341,6 +341,7 @@ export interface MetricConfig {
341
341
  description: string;
342
342
  unit: string;
343
343
  sparse: boolean;
344
+ persistentBetweenVersion: boolean;
344
345
  type: MetricType;
345
346
  aggregationConfig: AggregationConfig | undefined;
346
347
  }
@@ -1349,7 +1350,15 @@ export const ExportConfig = {
1349
1350
  };
1350
1351
 
1351
1352
  function createBaseMetricConfig(): MetricConfig {
1352
- return { name: "", description: "", unit: "", sparse: false, type: 0, aggregationConfig: undefined };
1353
+ return {
1354
+ name: "",
1355
+ description: "",
1356
+ unit: "",
1357
+ sparse: false,
1358
+ persistentBetweenVersion: false,
1359
+ type: 0,
1360
+ aggregationConfig: undefined,
1361
+ };
1353
1362
  }
1354
1363
 
1355
1364
  export const MetricConfig = {
@@ -1366,6 +1375,9 @@ export const MetricConfig = {
1366
1375
  if (message.sparse === true) {
1367
1376
  writer.uint32(32).bool(message.sparse);
1368
1377
  }
1378
+ if (message.persistentBetweenVersion === true) {
1379
+ writer.uint32(40).bool(message.persistentBetweenVersion);
1380
+ }
1369
1381
  if (message.type !== 0) {
1370
1382
  writer.uint32(56).int32(message.type);
1371
1383
  }
@@ -1394,6 +1406,9 @@ export const MetricConfig = {
1394
1406
  case 4:
1395
1407
  message.sparse = reader.bool();
1396
1408
  break;
1409
+ case 5:
1410
+ message.persistentBetweenVersion = reader.bool();
1411
+ break;
1397
1412
  case 7:
1398
1413
  message.type = reader.int32() as any;
1399
1414
  break;
@@ -1414,6 +1429,9 @@ export const MetricConfig = {
1414
1429
  description: isSet(object.description) ? String(object.description) : "",
1415
1430
  unit: isSet(object.unit) ? String(object.unit) : "",
1416
1431
  sparse: isSet(object.sparse) ? Boolean(object.sparse) : false,
1432
+ persistentBetweenVersion: isSet(object.persistentBetweenVersion)
1433
+ ? Boolean(object.persistentBetweenVersion)
1434
+ : false,
1417
1435
  type: isSet(object.type) ? metricTypeFromJSON(object.type) : 0,
1418
1436
  aggregationConfig: isSet(object.aggregationConfig)
1419
1437
  ? AggregationConfig.fromJSON(object.aggregationConfig)
@@ -1427,6 +1445,7 @@ export const MetricConfig = {
1427
1445
  message.description !== undefined && (obj.description = message.description);
1428
1446
  message.unit !== undefined && (obj.unit = message.unit);
1429
1447
  message.sparse !== undefined && (obj.sparse = message.sparse);
1448
+ message.persistentBetweenVersion !== undefined && (obj.persistentBetweenVersion = message.persistentBetweenVersion);
1430
1449
  message.type !== undefined && (obj.type = metricTypeToJSON(message.type));
1431
1450
  message.aggregationConfig !== undefined && (obj.aggregationConfig = message.aggregationConfig
1432
1451
  ? AggregationConfig.toJSON(message.aggregationConfig)
@@ -1440,6 +1459,7 @@ export const MetricConfig = {
1440
1459
  message.description = object.description ?? "";
1441
1460
  message.unit = object.unit ?? "";
1442
1461
  message.sparse = object.sparse ?? false;
1462
+ message.persistentBetweenVersion = object.persistentBetweenVersion ?? false;
1443
1463
  message.type = object.type ?? 0;
1444
1464
  message.aggregationConfig = (object.aggregationConfig !== undefined && object.aggregationConfig !== null)
1445
1465
  ? AggregationConfig.fromPartial(object.aggregationConfig)