@sentio/runtime 1.37.5-rc.5 → 1.37.5-rc.7

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.37.5-rc.5",
4
+ "version": "1.37.5-rc.7",
5
5
  "scripts": {
6
6
  "compile": "tsc -p .",
7
7
  "build": "yarn compile",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@ethersproject/providers": "~5.7.0",
13
- "@sentio/protos": "^1.37.5-rc.5",
13
+ "@sentio/protos": "^1.37.5-rc.7",
14
14
  "bignumber.js": "^9.1.0",
15
15
  "command-line-args": "^5.2.1",
16
16
  "command-line-usage": "^6.1.3",
@@ -46,5 +46,5 @@
46
46
  "!{lib,src}/tests",
47
47
  "!**/*.test.{js,ts}"
48
48
  ],
49
- "gitHead": "055eac4ea941a7f5bcc0f538a544a37b8982e501"
49
+ "gitHead": "2bb9ab2c087fcbda9808ec4e7476b2ad26dcdddc"
50
50
  }
@@ -590,7 +590,7 @@ export interface LogResult {
590
590
  export interface EventTrackingResult {
591
591
  metadata: RecordMetaData | undefined;
592
592
  distinctEntityId: string;
593
- attributes: string;
593
+ attributes: { [key: string]: any } | undefined;
594
594
  runtimeInfo: RuntimeInfo | undefined;
595
595
  }
596
596
 
@@ -4325,7 +4325,7 @@ export const LogResult = {
4325
4325
  };
4326
4326
 
4327
4327
  function createBaseEventTrackingResult(): EventTrackingResult {
4328
- return { metadata: undefined, distinctEntityId: "", attributes: "", runtimeInfo: undefined };
4328
+ return { metadata: undefined, distinctEntityId: "", attributes: undefined, runtimeInfo: undefined };
4329
4329
  }
4330
4330
 
4331
4331
  export const EventTrackingResult = {
@@ -4336,8 +4336,8 @@ export const EventTrackingResult = {
4336
4336
  if (message.distinctEntityId !== "") {
4337
4337
  writer.uint32(18).string(message.distinctEntityId);
4338
4338
  }
4339
- if (message.attributes !== "") {
4340
- writer.uint32(34).string(message.attributes);
4339
+ if (message.attributes !== undefined) {
4340
+ Struct.encode(Struct.wrap(message.attributes), writer.uint32(50).fork()).ldelim();
4341
4341
  }
4342
4342
  if (message.runtimeInfo !== undefined) {
4343
4343
  RuntimeInfo.encode(message.runtimeInfo, writer.uint32(42).fork()).ldelim();
@@ -4358,8 +4358,8 @@ export const EventTrackingResult = {
4358
4358
  case 2:
4359
4359
  message.distinctEntityId = reader.string();
4360
4360
  break;
4361
- case 4:
4362
- message.attributes = reader.string();
4361
+ case 6:
4362
+ message.attributes = Struct.unwrap(Struct.decode(reader, reader.uint32()));
4363
4363
  break;
4364
4364
  case 5:
4365
4365
  message.runtimeInfo = RuntimeInfo.decode(reader, reader.uint32());
@@ -4376,7 +4376,7 @@ export const EventTrackingResult = {
4376
4376
  return {
4377
4377
  metadata: isSet(object.metadata) ? RecordMetaData.fromJSON(object.metadata) : undefined,
4378
4378
  distinctEntityId: isSet(object.distinctEntityId) ? String(object.distinctEntityId) : "",
4379
- attributes: isSet(object.attributes) ? String(object.attributes) : "",
4379
+ attributes: isObject(object.attributes) ? object.attributes : undefined,
4380
4380
  runtimeInfo: isSet(object.runtimeInfo) ? RuntimeInfo.fromJSON(object.runtimeInfo) : undefined,
4381
4381
  };
4382
4382
  },
@@ -4398,7 +4398,7 @@ export const EventTrackingResult = {
4398
4398
  ? RecordMetaData.fromPartial(object.metadata)
4399
4399
  : undefined;
4400
4400
  message.distinctEntityId = object.distinctEntityId ?? "";
4401
- message.attributes = object.attributes ?? "";
4401
+ message.attributes = object.attributes ?? undefined;
4402
4402
  message.runtimeInfo = (object.runtimeInfo !== undefined && object.runtimeInfo !== null)
4403
4403
  ? RuntimeInfo.fromPartial(object.runtimeInfo)
4404
4404
  : undefined;