@sentio/runtime 1.39.0-rc.2 → 1.40.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.
@@ -272,6 +272,7 @@ export interface ContractConfig {
272
272
  intervalConfigs: OnIntervalConfig[];
273
273
  logConfigs: LogHandlerConfig[];
274
274
  traceConfigs: TraceHandlerConfig[];
275
+ transactionConfig: TransactionHandlerConfig[];
275
276
  aptosEventConfigs: AptosEventHandlerConfig[];
276
277
  aptosCallConfigs: AptosCallHandlerConfig[];
277
278
  instructionConfig: InstructionHandlerConfig | undefined;
@@ -402,16 +403,24 @@ export interface BlockHandlerConfig {
402
403
  export interface EthFetchConfig {
403
404
  transaction: boolean;
404
405
  transactionReceipt: boolean;
406
+ block: boolean;
405
407
  }
406
408
 
407
409
  export interface TraceHandlerConfig {
408
410
  signature: string;
409
411
  handlerId: number;
412
+ fetchConfig: EthFetchConfig | undefined;
413
+ }
414
+
415
+ export interface TransactionHandlerConfig {
416
+ handlerId: number;
417
+ fetchConfig: EthFetchConfig | undefined;
410
418
  }
411
419
 
412
420
  export interface LogHandlerConfig {
413
421
  filters: LogFilter[];
414
422
  handlerId: number;
423
+ fetchConfig: EthFetchConfig | undefined;
415
424
  }
416
425
 
417
426
  export interface LogFilter {
@@ -491,6 +500,8 @@ export interface Data_EthLog {
491
500
  log: { [key: string]: any } | undefined;
492
501
  timestamp: Date | undefined;
493
502
  transaction?: { [key: string]: any } | undefined;
503
+ transactionReceipt?: { [key: string]: any } | undefined;
504
+ block?: { [key: string]: any } | undefined;
494
505
  }
495
506
 
496
507
  export interface Data_EthBlock {
@@ -501,6 +512,7 @@ export interface Data_EthTransaction {
501
512
  transaction: { [key: string]: any } | undefined;
502
513
  timestamp: Date | undefined;
503
514
  transactionReceipt?: { [key: string]: any } | undefined;
515
+ block?: { [key: string]: any } | undefined;
504
516
  }
505
517
 
506
518
  export interface Data_EthTrace {
@@ -508,6 +520,7 @@ export interface Data_EthTrace {
508
520
  timestamp: Date | undefined;
509
521
  transaction?: { [key: string]: any } | undefined;
510
522
  transactionReceipt?: { [key: string]: any } | undefined;
523
+ block?: { [key: string]: any } | undefined;
511
524
  }
512
525
 
513
526
  export interface Data_SolInstruction {
@@ -519,6 +532,7 @@ export interface Data_SolInstruction {
519
532
  }
520
533
 
521
534
  export interface Data_AptEvent {
535
+ event: { [key: string]: any } | undefined;
522
536
  transaction: { [key: string]: any } | undefined;
523
537
  }
524
538
 
@@ -864,6 +878,7 @@ function createBaseContractConfig(): ContractConfig {
864
878
  intervalConfigs: [],
865
879
  logConfigs: [],
866
880
  traceConfigs: [],
881
+ transactionConfig: [],
867
882
  aptosEventConfigs: [],
868
883
  aptosCallConfigs: [],
869
884
  instructionConfig: undefined,
@@ -887,6 +902,9 @@ export const ContractConfig = {
887
902
  for (const v of message.traceConfigs) {
888
903
  TraceHandlerConfig.encode(v!, writer.uint32(18).fork()).ldelim();
889
904
  }
905
+ for (const v of message.transactionConfig) {
906
+ TransactionHandlerConfig.encode(v!, writer.uint32(58).fork()).ldelim();
907
+ }
890
908
  for (const v of message.aptosEventConfigs) {
891
909
  AptosEventHandlerConfig.encode(v!, writer.uint32(74).fork()).ldelim();
892
910
  }
@@ -927,6 +945,9 @@ export const ContractConfig = {
927
945
  case 2:
928
946
  message.traceConfigs.push(TraceHandlerConfig.decode(reader, reader.uint32()));
929
947
  break;
948
+ case 7:
949
+ message.transactionConfig.push(TransactionHandlerConfig.decode(reader, reader.uint32()));
950
+ break;
930
951
  case 9:
931
952
  message.aptosEventConfigs.push(AptosEventHandlerConfig.decode(reader, reader.uint32()));
932
953
  break;
@@ -965,6 +986,9 @@ export const ContractConfig = {
965
986
  traceConfigs: Array.isArray(object?.traceConfigs)
966
987
  ? object.traceConfigs.map((e: any) => TraceHandlerConfig.fromJSON(e))
967
988
  : [],
989
+ transactionConfig: Array.isArray(object?.transactionConfig)
990
+ ? object.transactionConfig.map((e: any) => TransactionHandlerConfig.fromJSON(e))
991
+ : [],
968
992
  aptosEventConfigs: Array.isArray(object?.aptosEventConfigs)
969
993
  ? object.aptosEventConfigs.map((e: any) => AptosEventHandlerConfig.fromJSON(e))
970
994
  : [],
@@ -999,6 +1023,11 @@ export const ContractConfig = {
999
1023
  } else {
1000
1024
  obj.traceConfigs = [];
1001
1025
  }
1026
+ if (message.transactionConfig) {
1027
+ obj.transactionConfig = message.transactionConfig.map((e) => e ? TransactionHandlerConfig.toJSON(e) : undefined);
1028
+ } else {
1029
+ obj.transactionConfig = [];
1030
+ }
1002
1031
  if (message.aptosEventConfigs) {
1003
1032
  obj.aptosEventConfigs = message.aptosEventConfigs.map((e) => e ? AptosEventHandlerConfig.toJSON(e) : undefined);
1004
1033
  } else {
@@ -1026,6 +1055,7 @@ export const ContractConfig = {
1026
1055
  message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
1027
1056
  message.logConfigs = object.logConfigs?.map((e) => LogHandlerConfig.fromPartial(e)) || [];
1028
1057
  message.traceConfigs = object.traceConfigs?.map((e) => TraceHandlerConfig.fromPartial(e)) || [];
1058
+ message.transactionConfig = object.transactionConfig?.map((e) => TransactionHandlerConfig.fromPartial(e)) || [];
1029
1059
  message.aptosEventConfigs = object.aptosEventConfigs?.map((e) => AptosEventHandlerConfig.fromPartial(e)) || [];
1030
1060
  message.aptosCallConfigs = object.aptosCallConfigs?.map((e) => AptosCallHandlerConfig.fromPartial(e)) || [];
1031
1061
  message.instructionConfig = (object.instructionConfig !== undefined && object.instructionConfig !== null)
@@ -2102,7 +2132,7 @@ export const BlockHandlerConfig = {
2102
2132
  };
2103
2133
 
2104
2134
  function createBaseEthFetchConfig(): EthFetchConfig {
2105
- return { transaction: false, transactionReceipt: false };
2135
+ return { transaction: false, transactionReceipt: false, block: false };
2106
2136
  }
2107
2137
 
2108
2138
  export const EthFetchConfig = {
@@ -2113,6 +2143,9 @@ export const EthFetchConfig = {
2113
2143
  if (message.transactionReceipt === true) {
2114
2144
  writer.uint32(16).bool(message.transactionReceipt);
2115
2145
  }
2146
+ if (message.block === true) {
2147
+ writer.uint32(24).bool(message.block);
2148
+ }
2116
2149
  return writer;
2117
2150
  },
2118
2151
 
@@ -2129,6 +2162,9 @@ export const EthFetchConfig = {
2129
2162
  case 2:
2130
2163
  message.transactionReceipt = reader.bool();
2131
2164
  break;
2165
+ case 3:
2166
+ message.block = reader.bool();
2167
+ break;
2132
2168
  default:
2133
2169
  reader.skipType(tag & 7);
2134
2170
  break;
@@ -2141,6 +2177,7 @@ export const EthFetchConfig = {
2141
2177
  return {
2142
2178
  transaction: isSet(object.transaction) ? Boolean(object.transaction) : false,
2143
2179
  transactionReceipt: isSet(object.transactionReceipt) ? Boolean(object.transactionReceipt) : false,
2180
+ block: isSet(object.block) ? Boolean(object.block) : false,
2144
2181
  };
2145
2182
  },
2146
2183
 
@@ -2148,6 +2185,7 @@ export const EthFetchConfig = {
2148
2185
  const obj: any = {};
2149
2186
  message.transaction !== undefined && (obj.transaction = message.transaction);
2150
2187
  message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
2188
+ message.block !== undefined && (obj.block = message.block);
2151
2189
  return obj;
2152
2190
  },
2153
2191
 
@@ -2155,12 +2193,13 @@ export const EthFetchConfig = {
2155
2193
  const message = createBaseEthFetchConfig();
2156
2194
  message.transaction = object.transaction ?? false;
2157
2195
  message.transactionReceipt = object.transactionReceipt ?? false;
2196
+ message.block = object.block ?? false;
2158
2197
  return message;
2159
2198
  },
2160
2199
  };
2161
2200
 
2162
2201
  function createBaseTraceHandlerConfig(): TraceHandlerConfig {
2163
- return { signature: "", handlerId: 0 };
2202
+ return { signature: "", handlerId: 0, fetchConfig: undefined };
2164
2203
  }
2165
2204
 
2166
2205
  export const TraceHandlerConfig = {
@@ -2171,6 +2210,9 @@ export const TraceHandlerConfig = {
2171
2210
  if (message.handlerId !== 0) {
2172
2211
  writer.uint32(16).int32(message.handlerId);
2173
2212
  }
2213
+ if (message.fetchConfig !== undefined) {
2214
+ EthFetchConfig.encode(message.fetchConfig, writer.uint32(26).fork()).ldelim();
2215
+ }
2174
2216
  return writer;
2175
2217
  },
2176
2218
 
@@ -2187,6 +2229,9 @@ export const TraceHandlerConfig = {
2187
2229
  case 2:
2188
2230
  message.handlerId = reader.int32();
2189
2231
  break;
2232
+ case 3:
2233
+ message.fetchConfig = EthFetchConfig.decode(reader, reader.uint32());
2234
+ break;
2190
2235
  default:
2191
2236
  reader.skipType(tag & 7);
2192
2237
  break;
@@ -2199,6 +2244,7 @@ export const TraceHandlerConfig = {
2199
2244
  return {
2200
2245
  signature: isSet(object.signature) ? String(object.signature) : "",
2201
2246
  handlerId: isSet(object.handlerId) ? Number(object.handlerId) : 0,
2247
+ fetchConfig: isSet(object.fetchConfig) ? EthFetchConfig.fromJSON(object.fetchConfig) : undefined,
2202
2248
  };
2203
2249
  },
2204
2250
 
@@ -2206,6 +2252,8 @@ export const TraceHandlerConfig = {
2206
2252
  const obj: any = {};
2207
2253
  message.signature !== undefined && (obj.signature = message.signature);
2208
2254
  message.handlerId !== undefined && (obj.handlerId = Math.round(message.handlerId));
2255
+ message.fetchConfig !== undefined &&
2256
+ (obj.fetchConfig = message.fetchConfig ? EthFetchConfig.toJSON(message.fetchConfig) : undefined);
2209
2257
  return obj;
2210
2258
  },
2211
2259
 
@@ -2213,12 +2261,76 @@ export const TraceHandlerConfig = {
2213
2261
  const message = createBaseTraceHandlerConfig();
2214
2262
  message.signature = object.signature ?? "";
2215
2263
  message.handlerId = object.handlerId ?? 0;
2264
+ message.fetchConfig = (object.fetchConfig !== undefined && object.fetchConfig !== null)
2265
+ ? EthFetchConfig.fromPartial(object.fetchConfig)
2266
+ : undefined;
2267
+ return message;
2268
+ },
2269
+ };
2270
+
2271
+ function createBaseTransactionHandlerConfig(): TransactionHandlerConfig {
2272
+ return { handlerId: 0, fetchConfig: undefined };
2273
+ }
2274
+
2275
+ export const TransactionHandlerConfig = {
2276
+ encode(message: TransactionHandlerConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2277
+ if (message.handlerId !== 0) {
2278
+ writer.uint32(8).int32(message.handlerId);
2279
+ }
2280
+ if (message.fetchConfig !== undefined) {
2281
+ EthFetchConfig.encode(message.fetchConfig, writer.uint32(26).fork()).ldelim();
2282
+ }
2283
+ return writer;
2284
+ },
2285
+
2286
+ decode(input: _m0.Reader | Uint8Array, length?: number): TransactionHandlerConfig {
2287
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2288
+ let end = length === undefined ? reader.len : reader.pos + length;
2289
+ const message = createBaseTransactionHandlerConfig();
2290
+ while (reader.pos < end) {
2291
+ const tag = reader.uint32();
2292
+ switch (tag >>> 3) {
2293
+ case 1:
2294
+ message.handlerId = reader.int32();
2295
+ break;
2296
+ case 3:
2297
+ message.fetchConfig = EthFetchConfig.decode(reader, reader.uint32());
2298
+ break;
2299
+ default:
2300
+ reader.skipType(tag & 7);
2301
+ break;
2302
+ }
2303
+ }
2304
+ return message;
2305
+ },
2306
+
2307
+ fromJSON(object: any): TransactionHandlerConfig {
2308
+ return {
2309
+ handlerId: isSet(object.handlerId) ? Number(object.handlerId) : 0,
2310
+ fetchConfig: isSet(object.fetchConfig) ? EthFetchConfig.fromJSON(object.fetchConfig) : undefined,
2311
+ };
2312
+ },
2313
+
2314
+ toJSON(message: TransactionHandlerConfig): unknown {
2315
+ const obj: any = {};
2316
+ message.handlerId !== undefined && (obj.handlerId = Math.round(message.handlerId));
2317
+ message.fetchConfig !== undefined &&
2318
+ (obj.fetchConfig = message.fetchConfig ? EthFetchConfig.toJSON(message.fetchConfig) : undefined);
2319
+ return obj;
2320
+ },
2321
+
2322
+ fromPartial(object: DeepPartial<TransactionHandlerConfig>): TransactionHandlerConfig {
2323
+ const message = createBaseTransactionHandlerConfig();
2324
+ message.handlerId = object.handlerId ?? 0;
2325
+ message.fetchConfig = (object.fetchConfig !== undefined && object.fetchConfig !== null)
2326
+ ? EthFetchConfig.fromPartial(object.fetchConfig)
2327
+ : undefined;
2216
2328
  return message;
2217
2329
  },
2218
2330
  };
2219
2331
 
2220
2332
  function createBaseLogHandlerConfig(): LogHandlerConfig {
2221
- return { filters: [], handlerId: 0 };
2333
+ return { filters: [], handlerId: 0, fetchConfig: undefined };
2222
2334
  }
2223
2335
 
2224
2336
  export const LogHandlerConfig = {
@@ -2229,6 +2341,9 @@ export const LogHandlerConfig = {
2229
2341
  if (message.handlerId !== 0) {
2230
2342
  writer.uint32(16).int32(message.handlerId);
2231
2343
  }
2344
+ if (message.fetchConfig !== undefined) {
2345
+ EthFetchConfig.encode(message.fetchConfig, writer.uint32(26).fork()).ldelim();
2346
+ }
2232
2347
  return writer;
2233
2348
  },
2234
2349
 
@@ -2245,6 +2360,9 @@ export const LogHandlerConfig = {
2245
2360
  case 2:
2246
2361
  message.handlerId = reader.int32();
2247
2362
  break;
2363
+ case 3:
2364
+ message.fetchConfig = EthFetchConfig.decode(reader, reader.uint32());
2365
+ break;
2248
2366
  default:
2249
2367
  reader.skipType(tag & 7);
2250
2368
  break;
@@ -2257,6 +2375,7 @@ export const LogHandlerConfig = {
2257
2375
  return {
2258
2376
  filters: Array.isArray(object?.filters) ? object.filters.map((e: any) => LogFilter.fromJSON(e)) : [],
2259
2377
  handlerId: isSet(object.handlerId) ? Number(object.handlerId) : 0,
2378
+ fetchConfig: isSet(object.fetchConfig) ? EthFetchConfig.fromJSON(object.fetchConfig) : undefined,
2260
2379
  };
2261
2380
  },
2262
2381
 
@@ -2268,6 +2387,8 @@ export const LogHandlerConfig = {
2268
2387
  obj.filters = [];
2269
2388
  }
2270
2389
  message.handlerId !== undefined && (obj.handlerId = Math.round(message.handlerId));
2390
+ message.fetchConfig !== undefined &&
2391
+ (obj.fetchConfig = message.fetchConfig ? EthFetchConfig.toJSON(message.fetchConfig) : undefined);
2271
2392
  return obj;
2272
2393
  },
2273
2394
 
@@ -2275,6 +2396,9 @@ export const LogHandlerConfig = {
2275
2396
  const message = createBaseLogHandlerConfig();
2276
2397
  message.filters = object.filters?.map((e) => LogFilter.fromPartial(e)) || [];
2277
2398
  message.handlerId = object.handlerId ?? 0;
2399
+ message.fetchConfig = (object.fetchConfig !== undefined && object.fetchConfig !== null)
2400
+ ? EthFetchConfig.fromPartial(object.fetchConfig)
2401
+ : undefined;
2278
2402
  return message;
2279
2403
  },
2280
2404
  };
@@ -3138,7 +3262,13 @@ export const Data = {
3138
3262
  };
3139
3263
 
3140
3264
  function createBaseData_EthLog(): Data_EthLog {
3141
- return { log: undefined, timestamp: undefined, transaction: undefined };
3265
+ return {
3266
+ log: undefined,
3267
+ timestamp: undefined,
3268
+ transaction: undefined,
3269
+ transactionReceipt: undefined,
3270
+ block: undefined,
3271
+ };
3142
3272
  }
3143
3273
 
3144
3274
  export const Data_EthLog = {
@@ -3152,6 +3282,12 @@ export const Data_EthLog = {
3152
3282
  if (message.transaction !== undefined) {
3153
3283
  Struct.encode(Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim();
3154
3284
  }
3285
+ if (message.transactionReceipt !== undefined) {
3286
+ Struct.encode(Struct.wrap(message.transactionReceipt), writer.uint32(42).fork()).ldelim();
3287
+ }
3288
+ if (message.block !== undefined) {
3289
+ Struct.encode(Struct.wrap(message.block), writer.uint32(50).fork()).ldelim();
3290
+ }
3155
3291
  return writer;
3156
3292
  },
3157
3293
 
@@ -3171,6 +3307,12 @@ export const Data_EthLog = {
3171
3307
  case 2:
3172
3308
  message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3173
3309
  break;
3310
+ case 5:
3311
+ message.transactionReceipt = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3312
+ break;
3313
+ case 6:
3314
+ message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3315
+ break;
3174
3316
  default:
3175
3317
  reader.skipType(tag & 7);
3176
3318
  break;
@@ -3184,6 +3326,8 @@ export const Data_EthLog = {
3184
3326
  log: isObject(object.log) ? object.log : undefined,
3185
3327
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
3186
3328
  transaction: isObject(object.transaction) ? object.transaction : undefined,
3329
+ transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
3330
+ block: isObject(object.block) ? object.block : undefined,
3187
3331
  };
3188
3332
  },
3189
3333
 
@@ -3192,6 +3336,8 @@ export const Data_EthLog = {
3192
3336
  message.log !== undefined && (obj.log = message.log);
3193
3337
  message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
3194
3338
  message.transaction !== undefined && (obj.transaction = message.transaction);
3339
+ message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
3340
+ message.block !== undefined && (obj.block = message.block);
3195
3341
  return obj;
3196
3342
  },
3197
3343
 
@@ -3200,6 +3346,8 @@ export const Data_EthLog = {
3200
3346
  message.log = object.log ?? undefined;
3201
3347
  message.timestamp = object.timestamp ?? undefined;
3202
3348
  message.transaction = object.transaction ?? undefined;
3349
+ message.transactionReceipt = object.transactionReceipt ?? undefined;
3350
+ message.block = object.block ?? undefined;
3203
3351
  return message;
3204
3352
  },
3205
3353
  };
@@ -3252,7 +3400,7 @@ export const Data_EthBlock = {
3252
3400
  };
3253
3401
 
3254
3402
  function createBaseData_EthTransaction(): Data_EthTransaction {
3255
- return { transaction: undefined, timestamp: undefined, transactionReceipt: undefined };
3403
+ return { transaction: undefined, timestamp: undefined, transactionReceipt: undefined, block: undefined };
3256
3404
  }
3257
3405
 
3258
3406
  export const Data_EthTransaction = {
@@ -3266,6 +3414,9 @@ export const Data_EthTransaction = {
3266
3414
  if (message.transactionReceipt !== undefined) {
3267
3415
  Struct.encode(Struct.wrap(message.transactionReceipt), writer.uint32(26).fork()).ldelim();
3268
3416
  }
3417
+ if (message.block !== undefined) {
3418
+ Struct.encode(Struct.wrap(message.block), writer.uint32(50).fork()).ldelim();
3419
+ }
3269
3420
  return writer;
3270
3421
  },
3271
3422
 
@@ -3285,6 +3436,9 @@ export const Data_EthTransaction = {
3285
3436
  case 3:
3286
3437
  message.transactionReceipt = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3287
3438
  break;
3439
+ case 6:
3440
+ message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3441
+ break;
3288
3442
  default:
3289
3443
  reader.skipType(tag & 7);
3290
3444
  break;
@@ -3298,6 +3452,7 @@ export const Data_EthTransaction = {
3298
3452
  transaction: isObject(object.transaction) ? object.transaction : undefined,
3299
3453
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
3300
3454
  transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
3455
+ block: isObject(object.block) ? object.block : undefined,
3301
3456
  };
3302
3457
  },
3303
3458
 
@@ -3306,6 +3461,7 @@ export const Data_EthTransaction = {
3306
3461
  message.transaction !== undefined && (obj.transaction = message.transaction);
3307
3462
  message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
3308
3463
  message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
3464
+ message.block !== undefined && (obj.block = message.block);
3309
3465
  return obj;
3310
3466
  },
3311
3467
 
@@ -3314,12 +3470,19 @@ export const Data_EthTransaction = {
3314
3470
  message.transaction = object.transaction ?? undefined;
3315
3471
  message.timestamp = object.timestamp ?? undefined;
3316
3472
  message.transactionReceipt = object.transactionReceipt ?? undefined;
3473
+ message.block = object.block ?? undefined;
3317
3474
  return message;
3318
3475
  },
3319
3476
  };
3320
3477
 
3321
3478
  function createBaseData_EthTrace(): Data_EthTrace {
3322
- return { trace: undefined, timestamp: undefined, transaction: undefined, transactionReceipt: undefined };
3479
+ return {
3480
+ trace: undefined,
3481
+ timestamp: undefined,
3482
+ transaction: undefined,
3483
+ transactionReceipt: undefined,
3484
+ block: undefined,
3485
+ };
3323
3486
  }
3324
3487
 
3325
3488
  export const Data_EthTrace = {
@@ -3336,6 +3499,9 @@ export const Data_EthTrace = {
3336
3499
  if (message.transactionReceipt !== undefined) {
3337
3500
  Struct.encode(Struct.wrap(message.transactionReceipt), writer.uint32(26).fork()).ldelim();
3338
3501
  }
3502
+ if (message.block !== undefined) {
3503
+ Struct.encode(Struct.wrap(message.block), writer.uint32(50).fork()).ldelim();
3504
+ }
3339
3505
  return writer;
3340
3506
  },
3341
3507
 
@@ -3358,6 +3524,9 @@ export const Data_EthTrace = {
3358
3524
  case 3:
3359
3525
  message.transactionReceipt = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3360
3526
  break;
3527
+ case 6:
3528
+ message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3529
+ break;
3361
3530
  default:
3362
3531
  reader.skipType(tag & 7);
3363
3532
  break;
@@ -3372,6 +3541,7 @@ export const Data_EthTrace = {
3372
3541
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
3373
3542
  transaction: isObject(object.transaction) ? object.transaction : undefined,
3374
3543
  transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
3544
+ block: isObject(object.block) ? object.block : undefined,
3375
3545
  };
3376
3546
  },
3377
3547
 
@@ -3381,6 +3551,7 @@ export const Data_EthTrace = {
3381
3551
  message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
3382
3552
  message.transaction !== undefined && (obj.transaction = message.transaction);
3383
3553
  message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
3554
+ message.block !== undefined && (obj.block = message.block);
3384
3555
  return obj;
3385
3556
  },
3386
3557
 
@@ -3390,6 +3561,7 @@ export const Data_EthTrace = {
3390
3561
  message.timestamp = object.timestamp ?? undefined;
3391
3562
  message.transaction = object.transaction ?? undefined;
3392
3563
  message.transactionReceipt = object.transactionReceipt ?? undefined;
3564
+ message.block = object.block ?? undefined;
3393
3565
  return message;
3394
3566
  },
3395
3567
  };
@@ -3484,11 +3656,14 @@ export const Data_SolInstruction = {
3484
3656
  };
3485
3657
 
3486
3658
  function createBaseData_AptEvent(): Data_AptEvent {
3487
- return { transaction: undefined };
3659
+ return { event: undefined, transaction: undefined };
3488
3660
  }
3489
3661
 
3490
3662
  export const Data_AptEvent = {
3491
3663
  encode(message: Data_AptEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3664
+ if (message.event !== undefined) {
3665
+ Struct.encode(Struct.wrap(message.event), writer.uint32(10).fork()).ldelim();
3666
+ }
3492
3667
  if (message.transaction !== undefined) {
3493
3668
  Struct.encode(Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim();
3494
3669
  }
@@ -3502,6 +3677,9 @@ export const Data_AptEvent = {
3502
3677
  while (reader.pos < end) {
3503
3678
  const tag = reader.uint32();
3504
3679
  switch (tag >>> 3) {
3680
+ case 1:
3681
+ message.event = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3682
+ break;
3505
3683
  case 2:
3506
3684
  message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3507
3685
  break;
@@ -3514,17 +3692,22 @@ export const Data_AptEvent = {
3514
3692
  },
3515
3693
 
3516
3694
  fromJSON(object: any): Data_AptEvent {
3517
- return { transaction: isObject(object.transaction) ? object.transaction : undefined };
3695
+ return {
3696
+ event: isObject(object.event) ? object.event : undefined,
3697
+ transaction: isObject(object.transaction) ? object.transaction : undefined,
3698
+ };
3518
3699
  },
3519
3700
 
3520
3701
  toJSON(message: Data_AptEvent): unknown {
3521
3702
  const obj: any = {};
3703
+ message.event !== undefined && (obj.event = message.event);
3522
3704
  message.transaction !== undefined && (obj.transaction = message.transaction);
3523
3705
  return obj;
3524
3706
  },
3525
3707
 
3526
3708
  fromPartial(object: DeepPartial<Data_AptEvent>): Data_AptEvent {
3527
3709
  const message = createBaseData_AptEvent();
3710
+ message.event = object.event ?? undefined;
3528
3711
  message.transaction = object.transaction ?? undefined;
3529
3712
  return message;
3530
3713
  },
package/src/service.ts CHANGED
@@ -62,15 +62,15 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
62
62
  }
63
63
  }
64
64
 
65
- for (const plugin of [
66
- '@sentio/sdk/lib/core/sui-plugin',
67
- '@sentio/sdk-aptos/lib/aptos-plugin',
68
- '@sentio/sdk-solana/lib/solana-plugin',
69
- ]) {
70
- try {
71
- require(plugin)
72
- } catch (e) {}
73
- }
65
+ // for (const plugin of [
66
+ // '@sentio/sdk/lib/core/sui-plugin',
67
+ // '@sentio/sdk-aptos/lib/aptos-plugin',
68
+ // '@sentio/sdk-solana/lib/solana-plugin',
69
+ // ]) {
70
+ // try {
71
+ // require(plugin)
72
+ // } catch (e) {}
73
+ // }
74
74
 
75
75
  this.loader()
76
76
  } catch (e) {