@sentio/runtime 2.11.7 → 2.12.0-rc.1

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.11.7",
4
+ "version": "2.12.0-rc.1",
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.11.7",
16
+ "@sentio/protos": "^2.12.0-rc.1",
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": "4d7e1b0ca602518e06d0061436ba3548fb3a74da"
48
+ "gitHead": "9a36d4022c372e3d51d660f94c5f53edf72b79d1"
49
49
  }
@@ -128,6 +128,7 @@ export enum HandlerType {
128
128
  ETH_LOG = 1,
129
129
  ETH_BLOCK = 2,
130
130
  ETH_TRACE = 5,
131
+ ETH_TRANSACTION = 11,
131
132
  SOL_INSTRUCTION = 4,
132
133
  APT_EVENT = 6,
133
134
  APT_CALL = 7,
@@ -152,6 +153,9 @@ export function handlerTypeFromJSON(object: any): HandlerType {
152
153
  case 5:
153
154
  case "ETH_TRACE":
154
155
  return HandlerType.ETH_TRACE;
156
+ case 11:
157
+ case "ETH_TRANSACTION":
158
+ return HandlerType.ETH_TRANSACTION;
155
159
  case 4:
156
160
  case "SOL_INSTRUCTION":
157
161
  return HandlerType.SOL_INSTRUCTION;
@@ -190,6 +194,8 @@ export function handlerTypeToJSON(object: HandlerType): string {
190
194
  return "ETH_BLOCK";
191
195
  case HandlerType.ETH_TRACE:
192
196
  return "ETH_TRACE";
197
+ case HandlerType.ETH_TRANSACTION:
198
+ return "ETH_TRANSACTION";
193
199
  case HandlerType.SOL_INSTRUCTION:
194
200
  return "SOL_INSTRUCTION";
195
201
  case HandlerType.APT_EVENT:
@@ -457,6 +463,7 @@ export interface EthFetchConfig {
457
463
  transaction: boolean;
458
464
  transactionReceipt: boolean;
459
465
  block: boolean;
466
+ trace: boolean;
460
467
  }
461
468
 
462
469
  export interface TraceHandlerConfig {
@@ -562,6 +569,7 @@ export interface Data_EthTransaction {
562
569
  timestamp: Date | undefined;
563
570
  transactionReceipt?: { [key: string]: any } | undefined;
564
571
  block?: { [key: string]: any } | undefined;
572
+ trace?: { [key: string]: any } | undefined;
565
573
  }
566
574
 
567
575
  export interface Data_EthTrace {
@@ -2386,7 +2394,7 @@ export const BlockHandlerConfig = {
2386
2394
  };
2387
2395
 
2388
2396
  function createBaseEthFetchConfig(): EthFetchConfig {
2389
- return { transaction: false, transactionReceipt: false, block: false };
2397
+ return { transaction: false, transactionReceipt: false, block: false, trace: false };
2390
2398
  }
2391
2399
 
2392
2400
  export const EthFetchConfig = {
@@ -2400,6 +2408,9 @@ export const EthFetchConfig = {
2400
2408
  if (message.block === true) {
2401
2409
  writer.uint32(24).bool(message.block);
2402
2410
  }
2411
+ if (message.trace === true) {
2412
+ writer.uint32(32).bool(message.trace);
2413
+ }
2403
2414
  return writer;
2404
2415
  },
2405
2416
 
@@ -2419,6 +2430,9 @@ export const EthFetchConfig = {
2419
2430
  case 3:
2420
2431
  message.block = reader.bool();
2421
2432
  break;
2433
+ case 4:
2434
+ message.trace = reader.bool();
2435
+ break;
2422
2436
  default:
2423
2437
  reader.skipType(tag & 7);
2424
2438
  break;
@@ -2432,6 +2446,7 @@ export const EthFetchConfig = {
2432
2446
  transaction: isSet(object.transaction) ? Boolean(object.transaction) : false,
2433
2447
  transactionReceipt: isSet(object.transactionReceipt) ? Boolean(object.transactionReceipt) : false,
2434
2448
  block: isSet(object.block) ? Boolean(object.block) : false,
2449
+ trace: isSet(object.trace) ? Boolean(object.trace) : false,
2435
2450
  };
2436
2451
  },
2437
2452
 
@@ -2440,6 +2455,7 @@ export const EthFetchConfig = {
2440
2455
  message.transaction !== undefined && (obj.transaction = message.transaction);
2441
2456
  message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
2442
2457
  message.block !== undefined && (obj.block = message.block);
2458
+ message.trace !== undefined && (obj.trace = message.trace);
2443
2459
  return obj;
2444
2460
  },
2445
2461
 
@@ -2452,6 +2468,7 @@ export const EthFetchConfig = {
2452
2468
  message.transaction = object.transaction ?? false;
2453
2469
  message.transactionReceipt = object.transactionReceipt ?? false;
2454
2470
  message.block = object.block ?? false;
2471
+ message.trace = object.trace ?? false;
2455
2472
  return message;
2456
2473
  },
2457
2474
  };
@@ -3692,7 +3709,13 @@ export const Data_EthBlock = {
3692
3709
  };
3693
3710
 
3694
3711
  function createBaseData_EthTransaction(): Data_EthTransaction {
3695
- return { transaction: undefined, timestamp: undefined, transactionReceipt: undefined, block: undefined };
3712
+ return {
3713
+ transaction: undefined,
3714
+ timestamp: undefined,
3715
+ transactionReceipt: undefined,
3716
+ block: undefined,
3717
+ trace: undefined,
3718
+ };
3696
3719
  }
3697
3720
 
3698
3721
  export const Data_EthTransaction = {
@@ -3709,6 +3732,9 @@ export const Data_EthTransaction = {
3709
3732
  if (message.block !== undefined) {
3710
3733
  Struct.encode(Struct.wrap(message.block), writer.uint32(50).fork()).ldelim();
3711
3734
  }
3735
+ if (message.trace !== undefined) {
3736
+ Struct.encode(Struct.wrap(message.trace), writer.uint32(58).fork()).ldelim();
3737
+ }
3712
3738
  return writer;
3713
3739
  },
3714
3740
 
@@ -3731,6 +3757,9 @@ export const Data_EthTransaction = {
3731
3757
  case 6:
3732
3758
  message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3733
3759
  break;
3760
+ case 7:
3761
+ message.trace = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3762
+ break;
3734
3763
  default:
3735
3764
  reader.skipType(tag & 7);
3736
3765
  break;
@@ -3745,6 +3774,7 @@ export const Data_EthTransaction = {
3745
3774
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
3746
3775
  transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
3747
3776
  block: isObject(object.block) ? object.block : undefined,
3777
+ trace: isObject(object.trace) ? object.trace : undefined,
3748
3778
  };
3749
3779
  },
3750
3780
 
@@ -3754,6 +3784,7 @@ export const Data_EthTransaction = {
3754
3784
  message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
3755
3785
  message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
3756
3786
  message.block !== undefined && (obj.block = message.block);
3787
+ message.trace !== undefined && (obj.trace = message.trace);
3757
3788
  return obj;
3758
3789
  },
3759
3790
 
@@ -3767,6 +3798,7 @@ export const Data_EthTransaction = {
3767
3798
  message.timestamp = object.timestamp ?? undefined;
3768
3799
  message.transactionReceipt = object.transactionReceipt ?? undefined;
3769
3800
  message.block = object.block ?? undefined;
3801
+ message.trace = object.trace ?? undefined;
3770
3802
  return message;
3771
3803
  },
3772
3804
  };