@sentio/runtime 1.37.4 → 1.37.5-rc.2

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.
@@ -1,4 +1,4 @@
1
- import _m0 from 'protobufjs/minimal';
1
+ import _m0 from "protobufjs/minimal";
2
2
  export interface Timestamp {
3
3
  seconds: bigint;
4
4
  nanos: number;
@@ -8,11 +8,11 @@ exports.Timestamp = void 0;
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
10
  function createBaseTimestamp() {
11
- return { seconds: BigInt('0'), nanos: 0 };
11
+ return { seconds: BigInt("0"), nanos: 0 };
12
12
  }
13
13
  exports.Timestamp = {
14
14
  encode(message, writer = minimal_1.default.Writer.create()) {
15
- if (message.seconds !== BigInt('0')) {
15
+ if (message.seconds !== BigInt("0")) {
16
16
  writer.uint32(8).int64(message.seconds.toString());
17
17
  }
18
18
  if (message.nanos !== 0) {
@@ -42,7 +42,7 @@ exports.Timestamp = {
42
42
  },
43
43
  fromJSON(object) {
44
44
  return {
45
- seconds: isSet(object.seconds) ? BigInt(object.seconds) : BigInt('0'),
45
+ seconds: isSet(object.seconds) ? BigInt(object.seconds) : BigInt("0"),
46
46
  nanos: isSet(object.nanos) ? Number(object.nanos) : 0,
47
47
  };
48
48
  },
@@ -54,7 +54,7 @@ exports.Timestamp = {
54
54
  },
55
55
  fromPartial(object) {
56
56
  const message = createBaseTimestamp();
57
- message.seconds = object.seconds ?? BigInt('0');
57
+ message.seconds = object.seconds ?? BigInt("0");
58
58
  message.nanos = object.nanos ?? 0;
59
59
  return message;
60
60
  },
@@ -1 +1 @@
1
- {"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../../src/gen/google/protobuf/timestamp.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,gDAAuB;AACvB,iEAAoC;AAOpC,SAAS,mBAAmB;IAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,CA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AAK,cAAI,EAAE;IAC1B,iBAAG,CAAC,IAAI,CAAC,IAAI,GAAG,cAAW,CAAA;IAC3B,iBAAG,CAAC,SAAS,EAAE,CAAA;CAChB;AAED,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAA;AAC9C,CAAC","sourcesContent":["/* eslint-disable */\nimport Long from 'long'\nimport _m0 from 'protobufjs/minimal'\n\nexport interface Timestamp {\n seconds: bigint\n nanos: number\n}\n\nfunction createBaseTimestamp(): Timestamp {\n return { seconds: BigInt('0'), nanos: 0 }\n}\n\nexport const Timestamp = {\n encode(message: Timestamp, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.seconds !== BigInt('0')) {\n writer.uint32(8).int64(message.seconds.toString())\n }\n if (message.nanos !== 0) {\n writer.uint32(16).int32(message.nanos)\n }\n return writer\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Timestamp {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input)\n let end = length === undefined ? reader.len : reader.pos + length\n const message = createBaseTimestamp()\n while (reader.pos < end) {\n const tag = reader.uint32()\n switch (tag >>> 3) {\n case 1:\n message.seconds = longToBigint(reader.int64() as Long)\n break\n case 2:\n message.nanos = reader.int32()\n break\n default:\n reader.skipType(tag & 7)\n break\n }\n }\n return message\n },\n\n fromJSON(object: any): Timestamp {\n return {\n seconds: isSet(object.seconds) ? BigInt(object.seconds) : BigInt('0'),\n nanos: isSet(object.nanos) ? Number(object.nanos) : 0,\n }\n },\n\n toJSON(message: Timestamp): unknown {\n const obj: any = {}\n message.seconds !== undefined && (obj.seconds = message.seconds.toString())\n message.nanos !== undefined && (obj.nanos = Math.round(message.nanos))\n return obj\n },\n\n fromPartial(object: DeepPartial<Timestamp>): Timestamp {\n const message = createBaseTimestamp()\n message.seconds = object.seconds ?? BigInt('0')\n message.nanos = object.nanos ?? 0\n return message\n },\n}\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined\n\ntype DeepPartial<T> = T extends Builtin\n ? T\n : T extends Array<infer U>\n ? Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U>\n ? ReadonlyArray<DeepPartial<U>>\n : T extends {}\n ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>\n\nfunction longToBigint(long: Long) {\n return BigInt(long.toString())\n}\n\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any\n _m0.configure()\n}\n\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined\n}\n"]}
1
+ {"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../../src/gen/google/protobuf/timestamp.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,gDAAwB;AACxB,iEAAqC;AAOrC,SAAS,mBAAmB;IAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAC5C,CAAC;AAEY,QAAA,SAAS,GAAG;IACvB,MAAM,CAAC,OAAkB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACjE,IAAI,OAAO,CAAC,OAAO,KAAK,MAAM,CAAC,GAAG,CAAC,EAAE;YACnC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;SACpD;QACD,IAAI,OAAO,CAAC,KAAK,KAAK,CAAC,EAAE;YACvB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;SACxC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpD,MAAM,MAAM,GAAG,KAAK,YAAY,iBAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,iBAAG,CAAC,MAAM,CAAC,KAAK,CAA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GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QACvE,OAAO,GAAG,CAAC;IACb,CAAC;IAED,WAAW,CAAC,MAA8B;QACxC,MAAM,OAAO,GAAG,mBAAmB,EAAE,CAAC;QACtC,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC;QAChD,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC;QAClC,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC;AASF,SAAS,YAAY,CAAC,IAAU;IAC9B,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;AACjC,CAAC;AAED,IAAI,iBAAG,CAAC,IAAI,CAAC,IAAI,KAAK,cAAI,EAAE;IAC1B,iBAAG,CAAC,IAAI,CAAC,IAAI,GAAG,cAAW,CAAC;IAC5B,iBAAG,CAAC,SAAS,EAAE,CAAC;CACjB;AAED,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC","sourcesContent":["/* eslint-disable */\nimport Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\n\nexport interface Timestamp {\n seconds: bigint;\n nanos: number;\n}\n\nfunction createBaseTimestamp(): Timestamp {\n return { seconds: BigInt(\"0\"), nanos: 0 };\n}\n\nexport const Timestamp = {\n encode(message: Timestamp, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.seconds !== BigInt(\"0\")) {\n writer.uint32(8).int64(message.seconds.toString());\n }\n if (message.nanos !== 0) {\n writer.uint32(16).int32(message.nanos);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Timestamp {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseTimestamp();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.seconds = longToBigint(reader.int64() as Long);\n break;\n case 2:\n message.nanos = reader.int32();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromJSON(object: any): Timestamp {\n return {\n seconds: isSet(object.seconds) ? BigInt(object.seconds) : BigInt(\"0\"),\n nanos: isSet(object.nanos) ? Number(object.nanos) : 0,\n };\n },\n\n toJSON(message: Timestamp): unknown {\n const obj: any = {};\n message.seconds !== undefined && (obj.seconds = message.seconds.toString());\n message.nanos !== undefined && (obj.nanos = Math.round(message.nanos));\n return obj;\n },\n\n fromPartial(object: DeepPartial<Timestamp>): Timestamp {\n const message = createBaseTimestamp();\n message.seconds = object.seconds ?? BigInt(\"0\");\n message.nanos = object.nanos ?? 0;\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype DeepPartial<T> = T extends Builtin ? T\n : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction longToBigint(long: Long) {\n return BigInt(long.toString());\n}\n\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n"]}
@@ -207,6 +207,7 @@ export interface RawTransaction {
207
207
  slot?: bigint | undefined;
208
208
  }
209
209
  export interface Data {
210
+ /** @deprecated */
210
211
  raw: Uint8Array;
211
212
  ethLog?: Data_EthLog | undefined;
212
213
  ethBlock?: Data_EthBlock | undefined;
@@ -221,7 +222,10 @@ export interface Data_EthLog {
221
222
  log: {
222
223
  [key: string]: any;
223
224
  } | undefined;
224
- transaction?: Uint8Array | undefined;
225
+ timestamp: Date | undefined;
226
+ transaction?: {
227
+ [key: string]: any;
228
+ } | undefined;
225
229
  }
226
230
  export interface Data_EthBlock {
227
231
  block: {
@@ -232,14 +236,22 @@ export interface Data_EthTransaction {
232
236
  transaction: {
233
237
  [key: string]: any;
234
238
  } | undefined;
235
- transactionReceipt?: Uint8Array | undefined;
239
+ timestamp: Date | undefined;
240
+ transactionReceipt?: {
241
+ [key: string]: any;
242
+ } | undefined;
236
243
  }
237
244
  export interface Data_EthTrace {
238
245
  trace: {
239
246
  [key: string]: any;
240
247
  } | undefined;
241
- transaction?: Uint8Array | undefined;
242
- transactionReceipt?: Uint8Array | undefined;
248
+ timestamp: Date | undefined;
249
+ transaction?: {
250
+ [key: string]: any;
251
+ } | undefined;
252
+ transactionReceipt?: {
253
+ [key: string]: any;
254
+ } | undefined;
243
255
  }
244
256
  export interface Data_SolInstruction {
245
257
  instructionData: string;
@@ -251,12 +263,12 @@ export interface Data_SolInstruction {
251
263
  } | undefined;
252
264
  }
253
265
  export interface Data_AptEvent {
254
- event: {
266
+ transaction: {
255
267
  [key: string]: any;
256
268
  } | undefined;
257
269
  }
258
270
  export interface Data_AptCall {
259
- call: {
271
+ transaction: {
260
272
  [key: string]: any;
261
273
  } | undefined;
262
274
  }
@@ -697,7 +709,7 @@ export declare const ExportResult: {
697
709
  export declare type ProcessorDefinition = typeof ProcessorDefinition;
698
710
  export declare const ProcessorDefinition: {
699
711
  readonly name: "Processor";
700
- readonly fullName: "processor.Processor";
712
+ readonly fullName: "processor_full.Processor";
701
713
  readonly methods: {
702
714
  readonly start: {
703
715
  readonly name: "Start";
@@ -10,6 +10,7 @@ const long_1 = __importDefault(require("long"));
10
10
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
11
11
  const empty_1 = require("../../google/protobuf/empty");
12
12
  const struct_1 = require("../../google/protobuf/struct");
13
+ const timestamp_1 = require("../../google/protobuf/timestamp");
13
14
  var MetricType;
14
15
  (function (MetricType) {
15
16
  MetricType[MetricType["UNKNOWN_TYPE"] = 0] = "UNKNOWN_TYPE";
@@ -2523,15 +2524,18 @@ exports.Data = {
2523
2524
  },
2524
2525
  };
2525
2526
  function createBaseData_EthLog() {
2526
- return { log: undefined, transaction: undefined };
2527
+ return { log: undefined, timestamp: undefined, transaction: undefined };
2527
2528
  }
2528
2529
  exports.Data_EthLog = {
2529
2530
  encode(message, writer = minimal_1.default.Writer.create()) {
2530
2531
  if (message.log !== undefined) {
2531
2532
  struct_1.Struct.encode(struct_1.Struct.wrap(message.log), writer.uint32(26).fork()).ldelim();
2532
2533
  }
2534
+ if (message.timestamp !== undefined) {
2535
+ timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(34).fork()).ldelim();
2536
+ }
2533
2537
  if (message.transaction !== undefined) {
2534
- writer.uint32(18).bytes(message.transaction);
2538
+ struct_1.Struct.encode(struct_1.Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim();
2535
2539
  }
2536
2540
  return writer;
2537
2541
  },
@@ -2545,8 +2549,11 @@ exports.Data_EthLog = {
2545
2549
  case 3:
2546
2550
  message.log = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
2547
2551
  break;
2552
+ case 4:
2553
+ message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
2554
+ break;
2548
2555
  case 2:
2549
- message.transaction = reader.bytes();
2556
+ message.transaction = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
2550
2557
  break;
2551
2558
  default:
2552
2559
  reader.skipType(tag & 7);
@@ -2558,19 +2565,21 @@ exports.Data_EthLog = {
2558
2565
  fromJSON(object) {
2559
2566
  return {
2560
2567
  log: isObject(object.log) ? object.log : undefined,
2561
- transaction: isSet(object.transaction) ? bytesFromBase64(object.transaction) : undefined,
2568
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
2569
+ transaction: isObject(object.transaction) ? object.transaction : undefined,
2562
2570
  };
2563
2571
  },
2564
2572
  toJSON(message) {
2565
2573
  const obj = {};
2566
2574
  message.log !== undefined && (obj.log = message.log);
2567
- message.transaction !== undefined &&
2568
- (obj.transaction = message.transaction !== undefined ? base64FromBytes(message.transaction) : undefined);
2575
+ message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
2576
+ message.transaction !== undefined && (obj.transaction = message.transaction);
2569
2577
  return obj;
2570
2578
  },
2571
2579
  fromPartial(object) {
2572
2580
  const message = createBaseData_EthLog();
2573
2581
  message.log = object.log ?? undefined;
2582
+ message.timestamp = object.timestamp ?? undefined;
2574
2583
  message.transaction = object.transaction ?? undefined;
2575
2584
  return message;
2576
2585
  },
@@ -2617,15 +2626,18 @@ exports.Data_EthBlock = {
2617
2626
  },
2618
2627
  };
2619
2628
  function createBaseData_EthTransaction() {
2620
- return { transaction: undefined, transactionReceipt: undefined };
2629
+ return { transaction: undefined, timestamp: undefined, transactionReceipt: undefined };
2621
2630
  }
2622
2631
  exports.Data_EthTransaction = {
2623
2632
  encode(message, writer = minimal_1.default.Writer.create()) {
2624
2633
  if (message.transaction !== undefined) {
2625
2634
  struct_1.Struct.encode(struct_1.Struct.wrap(message.transaction), writer.uint32(34).fork()).ldelim();
2626
2635
  }
2636
+ if (message.timestamp !== undefined) {
2637
+ timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim();
2638
+ }
2627
2639
  if (message.transactionReceipt !== undefined) {
2628
- writer.uint32(26).bytes(message.transactionReceipt);
2640
+ struct_1.Struct.encode(struct_1.Struct.wrap(message.transactionReceipt), writer.uint32(26).fork()).ldelim();
2629
2641
  }
2630
2642
  return writer;
2631
2643
  },
@@ -2639,8 +2651,11 @@ exports.Data_EthTransaction = {
2639
2651
  case 4:
2640
2652
  message.transaction = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
2641
2653
  break;
2654
+ case 5:
2655
+ message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
2656
+ break;
2642
2657
  case 3:
2643
- message.transactionReceipt = reader.bytes();
2658
+ message.transactionReceipt = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
2644
2659
  break;
2645
2660
  default:
2646
2661
  reader.skipType(tag & 7);
@@ -2652,37 +2667,41 @@ exports.Data_EthTransaction = {
2652
2667
  fromJSON(object) {
2653
2668
  return {
2654
2669
  transaction: isObject(object.transaction) ? object.transaction : undefined,
2655
- transactionReceipt: isSet(object.transactionReceipt) ? bytesFromBase64(object.transactionReceipt) : undefined,
2670
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
2671
+ transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
2656
2672
  };
2657
2673
  },
2658
2674
  toJSON(message) {
2659
2675
  const obj = {};
2660
2676
  message.transaction !== undefined && (obj.transaction = message.transaction);
2661
- message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt !== undefined
2662
- ? base64FromBytes(message.transactionReceipt)
2663
- : undefined);
2677
+ message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
2678
+ message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
2664
2679
  return obj;
2665
2680
  },
2666
2681
  fromPartial(object) {
2667
2682
  const message = createBaseData_EthTransaction();
2668
2683
  message.transaction = object.transaction ?? undefined;
2684
+ message.timestamp = object.timestamp ?? undefined;
2669
2685
  message.transactionReceipt = object.transactionReceipt ?? undefined;
2670
2686
  return message;
2671
2687
  },
2672
2688
  };
2673
2689
  function createBaseData_EthTrace() {
2674
- return { trace: undefined, transaction: undefined, transactionReceipt: undefined };
2690
+ return { trace: undefined, timestamp: undefined, transaction: undefined, transactionReceipt: undefined };
2675
2691
  }
2676
2692
  exports.Data_EthTrace = {
2677
2693
  encode(message, writer = minimal_1.default.Writer.create()) {
2678
2694
  if (message.trace !== undefined) {
2679
2695
  struct_1.Struct.encode(struct_1.Struct.wrap(message.trace), writer.uint32(34).fork()).ldelim();
2680
2696
  }
2697
+ if (message.timestamp !== undefined) {
2698
+ timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim();
2699
+ }
2681
2700
  if (message.transaction !== undefined) {
2682
- writer.uint32(18).bytes(message.transaction);
2701
+ struct_1.Struct.encode(struct_1.Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim();
2683
2702
  }
2684
2703
  if (message.transactionReceipt !== undefined) {
2685
- writer.uint32(26).bytes(message.transactionReceipt);
2704
+ struct_1.Struct.encode(struct_1.Struct.wrap(message.transactionReceipt), writer.uint32(26).fork()).ldelim();
2686
2705
  }
2687
2706
  return writer;
2688
2707
  },
@@ -2696,11 +2715,14 @@ exports.Data_EthTrace = {
2696
2715
  case 4:
2697
2716
  message.trace = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
2698
2717
  break;
2718
+ case 5:
2719
+ message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
2720
+ break;
2699
2721
  case 2:
2700
- message.transaction = reader.bytes();
2722
+ message.transaction = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
2701
2723
  break;
2702
2724
  case 3:
2703
- message.transactionReceipt = reader.bytes();
2725
+ message.transactionReceipt = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
2704
2726
  break;
2705
2727
  default:
2706
2728
  reader.skipType(tag & 7);
@@ -2712,23 +2734,23 @@ exports.Data_EthTrace = {
2712
2734
  fromJSON(object) {
2713
2735
  return {
2714
2736
  trace: isObject(object.trace) ? object.trace : undefined,
2715
- transaction: isSet(object.transaction) ? bytesFromBase64(object.transaction) : undefined,
2716
- transactionReceipt: isSet(object.transactionReceipt) ? bytesFromBase64(object.transactionReceipt) : undefined,
2737
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
2738
+ transaction: isObject(object.transaction) ? object.transaction : undefined,
2739
+ transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
2717
2740
  };
2718
2741
  },
2719
2742
  toJSON(message) {
2720
2743
  const obj = {};
2721
2744
  message.trace !== undefined && (obj.trace = message.trace);
2722
- message.transaction !== undefined &&
2723
- (obj.transaction = message.transaction !== undefined ? base64FromBytes(message.transaction) : undefined);
2724
- message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt !== undefined
2725
- ? base64FromBytes(message.transactionReceipt)
2726
- : undefined);
2745
+ message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
2746
+ message.transaction !== undefined && (obj.transaction = message.transaction);
2747
+ message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
2727
2748
  return obj;
2728
2749
  },
2729
2750
  fromPartial(object) {
2730
2751
  const message = createBaseData_EthTrace();
2731
2752
  message.trace = object.trace ?? undefined;
2753
+ message.timestamp = object.timestamp ?? undefined;
2732
2754
  message.transaction = object.transaction ?? undefined;
2733
2755
  message.transactionReceipt = object.transactionReceipt ?? undefined;
2734
2756
  return message;
@@ -2819,12 +2841,12 @@ exports.Data_SolInstruction = {
2819
2841
  },
2820
2842
  };
2821
2843
  function createBaseData_AptEvent() {
2822
- return { event: undefined };
2844
+ return { transaction: undefined };
2823
2845
  }
2824
2846
  exports.Data_AptEvent = {
2825
2847
  encode(message, writer = minimal_1.default.Writer.create()) {
2826
- if (message.event !== undefined) {
2827
- struct_1.Struct.encode(struct_1.Struct.wrap(message.event), writer.uint32(18).fork()).ldelim();
2848
+ if (message.transaction !== undefined) {
2849
+ struct_1.Struct.encode(struct_1.Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim();
2828
2850
  }
2829
2851
  return writer;
2830
2852
  },
@@ -2836,7 +2858,7 @@ exports.Data_AptEvent = {
2836
2858
  const tag = reader.uint32();
2837
2859
  switch (tag >>> 3) {
2838
2860
  case 2:
2839
- message.event = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
2861
+ message.transaction = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
2840
2862
  break;
2841
2863
  default:
2842
2864
  reader.skipType(tag & 7);
@@ -2846,26 +2868,26 @@ exports.Data_AptEvent = {
2846
2868
  return message;
2847
2869
  },
2848
2870
  fromJSON(object) {
2849
- return { event: isObject(object.event) ? object.event : undefined };
2871
+ return { transaction: isObject(object.transaction) ? object.transaction : undefined };
2850
2872
  },
2851
2873
  toJSON(message) {
2852
2874
  const obj = {};
2853
- message.event !== undefined && (obj.event = message.event);
2875
+ message.transaction !== undefined && (obj.transaction = message.transaction);
2854
2876
  return obj;
2855
2877
  },
2856
2878
  fromPartial(object) {
2857
2879
  const message = createBaseData_AptEvent();
2858
- message.event = object.event ?? undefined;
2880
+ message.transaction = object.transaction ?? undefined;
2859
2881
  return message;
2860
2882
  },
2861
2883
  };
2862
2884
  function createBaseData_AptCall() {
2863
- return { call: undefined };
2885
+ return { transaction: undefined };
2864
2886
  }
2865
2887
  exports.Data_AptCall = {
2866
2888
  encode(message, writer = minimal_1.default.Writer.create()) {
2867
- if (message.call !== undefined) {
2868
- struct_1.Struct.encode(struct_1.Struct.wrap(message.call), writer.uint32(18).fork()).ldelim();
2889
+ if (message.transaction !== undefined) {
2890
+ struct_1.Struct.encode(struct_1.Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim();
2869
2891
  }
2870
2892
  return writer;
2871
2893
  },
@@ -2877,7 +2899,7 @@ exports.Data_AptCall = {
2877
2899
  const tag = reader.uint32();
2878
2900
  switch (tag >>> 3) {
2879
2901
  case 2:
2880
- message.call = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
2902
+ message.transaction = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
2881
2903
  break;
2882
2904
  default:
2883
2905
  reader.skipType(tag & 7);
@@ -2887,16 +2909,16 @@ exports.Data_AptCall = {
2887
2909
  return message;
2888
2910
  },
2889
2911
  fromJSON(object) {
2890
- return { call: isObject(object.call) ? object.call : undefined };
2912
+ return { transaction: isObject(object.transaction) ? object.transaction : undefined };
2891
2913
  },
2892
2914
  toJSON(message) {
2893
2915
  const obj = {};
2894
- message.call !== undefined && (obj.call = message.call);
2916
+ message.transaction !== undefined && (obj.transaction = message.transaction);
2895
2917
  return obj;
2896
2918
  },
2897
2919
  fromPartial(object) {
2898
2920
  const message = createBaseData_AptCall();
2899
- message.call = object.call ?? undefined;
2921
+ message.transaction = object.transaction ?? undefined;
2900
2922
  return message;
2901
2923
  },
2902
2924
  };
@@ -3875,7 +3897,7 @@ exports.ExportResult = {
3875
3897
  };
3876
3898
  exports.ProcessorDefinition = {
3877
3899
  name: "Processor",
3878
- fullName: "processor.Processor",
3900
+ fullName: "processor_full.Processor",
3879
3901
  methods: {
3880
3902
  start: {
3881
3903
  name: "Start",
@@ -3959,6 +3981,27 @@ function base64FromBytes(arr) {
3959
3981
  return tsProtoGlobalThis.btoa(bin.join(""));
3960
3982
  }
3961
3983
  }
3984
+ function toTimestamp(date) {
3985
+ const seconds = BigInt(Math.trunc(date.getTime() / 1_000));
3986
+ const nanos = (date.getTime() % 1_000) * 1_000_000;
3987
+ return { seconds, nanos };
3988
+ }
3989
+ function fromTimestamp(t) {
3990
+ let millis = Number(t.seconds.toString()) * 1_000;
3991
+ millis += t.nanos / 1_000_000;
3992
+ return new Date(millis);
3993
+ }
3994
+ function fromJsonTimestamp(o) {
3995
+ if (o instanceof Date) {
3996
+ return o;
3997
+ }
3998
+ else if (typeof o === "string") {
3999
+ return new Date(o);
4000
+ }
4001
+ else {
4002
+ return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
4003
+ }
4004
+ }
3962
4005
  function longToBigint(long) {
3963
4006
  return BigInt(long.toString());
3964
4007
  }