@sentio/protos 1.39.0 → 1.40.0-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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sentio/protos",
3
3
  "license": "Apache-2.0",
4
- "version": "1.39.0",
4
+ "version": "1.40.0-rc.2",
5
5
  "scripts": {
6
6
  "compile": "tsc -p .",
7
7
  "clean": "tsc --build --clean",
@@ -19,5 +19,5 @@
19
19
  "!{lib,src}/tests",
20
20
  "!**/*.test.{js,ts}"
21
21
  ],
22
- "gitHead": "2f244c113057ec0273c9e25b2dc5003329015fe7"
22
+ "gitHead": "f59221bc859a8ae2205ea1a20b0005db291b038d"
23
23
  }
@@ -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 {
@@ -482,6 +491,8 @@ export interface Data_EthLog {
482
491
  log: { [key: string]: any } | undefined;
483
492
  timestamp: Date | undefined;
484
493
  transaction?: { [key: string]: any } | undefined;
494
+ transactionReceipt?: { [key: string]: any } | undefined;
495
+ block?: { [key: string]: any } | undefined;
485
496
  }
486
497
 
487
498
  export interface Data_EthBlock {
@@ -492,6 +503,7 @@ export interface Data_EthTransaction {
492
503
  transaction: { [key: string]: any } | undefined;
493
504
  timestamp: Date | undefined;
494
505
  transactionReceipt?: { [key: string]: any } | undefined;
506
+ block?: { [key: string]: any } | undefined;
495
507
  }
496
508
 
497
509
  export interface Data_EthTrace {
@@ -499,6 +511,7 @@ export interface Data_EthTrace {
499
511
  timestamp: Date | undefined;
500
512
  transaction?: { [key: string]: any } | undefined;
501
513
  transactionReceipt?: { [key: string]: any } | undefined;
514
+ block?: { [key: string]: any } | undefined;
502
515
  }
503
516
 
504
517
  export interface Data_SolInstruction {
@@ -510,6 +523,7 @@ export interface Data_SolInstruction {
510
523
  }
511
524
 
512
525
  export interface Data_AptEvent {
526
+ event: { [key: string]: any } | undefined;
513
527
  transaction: { [key: string]: any } | undefined;
514
528
  }
515
529
 
@@ -855,6 +869,7 @@ function createBaseContractConfig(): ContractConfig {
855
869
  intervalConfigs: [],
856
870
  logConfigs: [],
857
871
  traceConfigs: [],
872
+ transactionConfig: [],
858
873
  aptosEventConfigs: [],
859
874
  aptosCallConfigs: [],
860
875
  instructionConfig: undefined,
@@ -878,6 +893,9 @@ export const ContractConfig = {
878
893
  for (const v of message.traceConfigs) {
879
894
  TraceHandlerConfig.encode(v!, writer.uint32(18).fork()).ldelim();
880
895
  }
896
+ for (const v of message.transactionConfig) {
897
+ TransactionHandlerConfig.encode(v!, writer.uint32(58).fork()).ldelim();
898
+ }
881
899
  for (const v of message.aptosEventConfigs) {
882
900
  AptosEventHandlerConfig.encode(v!, writer.uint32(74).fork()).ldelim();
883
901
  }
@@ -918,6 +936,9 @@ export const ContractConfig = {
918
936
  case 2:
919
937
  message.traceConfigs.push(TraceHandlerConfig.decode(reader, reader.uint32()));
920
938
  break;
939
+ case 7:
940
+ message.transactionConfig.push(TransactionHandlerConfig.decode(reader, reader.uint32()));
941
+ break;
921
942
  case 9:
922
943
  message.aptosEventConfigs.push(AptosEventHandlerConfig.decode(reader, reader.uint32()));
923
944
  break;
@@ -956,6 +977,9 @@ export const ContractConfig = {
956
977
  traceConfigs: Array.isArray(object?.traceConfigs)
957
978
  ? object.traceConfigs.map((e: any) => TraceHandlerConfig.fromJSON(e))
958
979
  : [],
980
+ transactionConfig: Array.isArray(object?.transactionConfig)
981
+ ? object.transactionConfig.map((e: any) => TransactionHandlerConfig.fromJSON(e))
982
+ : [],
959
983
  aptosEventConfigs: Array.isArray(object?.aptosEventConfigs)
960
984
  ? object.aptosEventConfigs.map((e: any) => AptosEventHandlerConfig.fromJSON(e))
961
985
  : [],
@@ -990,6 +1014,11 @@ export const ContractConfig = {
990
1014
  } else {
991
1015
  obj.traceConfigs = [];
992
1016
  }
1017
+ if (message.transactionConfig) {
1018
+ obj.transactionConfig = message.transactionConfig.map((e) => e ? TransactionHandlerConfig.toJSON(e) : undefined);
1019
+ } else {
1020
+ obj.transactionConfig = [];
1021
+ }
993
1022
  if (message.aptosEventConfigs) {
994
1023
  obj.aptosEventConfigs = message.aptosEventConfigs.map((e) => e ? AptosEventHandlerConfig.toJSON(e) : undefined);
995
1024
  } else {
@@ -1017,6 +1046,7 @@ export const ContractConfig = {
1017
1046
  message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
1018
1047
  message.logConfigs = object.logConfigs?.map((e) => LogHandlerConfig.fromPartial(e)) || [];
1019
1048
  message.traceConfigs = object.traceConfigs?.map((e) => TraceHandlerConfig.fromPartial(e)) || [];
1049
+ message.transactionConfig = object.transactionConfig?.map((e) => TransactionHandlerConfig.fromPartial(e)) || [];
1020
1050
  message.aptosEventConfigs = object.aptosEventConfigs?.map((e) => AptosEventHandlerConfig.fromPartial(e)) || [];
1021
1051
  message.aptosCallConfigs = object.aptosCallConfigs?.map((e) => AptosCallHandlerConfig.fromPartial(e)) || [];
1022
1052
  message.instructionConfig = (object.instructionConfig !== undefined && object.instructionConfig !== null)
@@ -2093,7 +2123,7 @@ export const BlockHandlerConfig = {
2093
2123
  };
2094
2124
 
2095
2125
  function createBaseEthFetchConfig(): EthFetchConfig {
2096
- return { transaction: false, transactionReceipt: false };
2126
+ return { transaction: false, transactionReceipt: false, block: false };
2097
2127
  }
2098
2128
 
2099
2129
  export const EthFetchConfig = {
@@ -2104,6 +2134,9 @@ export const EthFetchConfig = {
2104
2134
  if (message.transactionReceipt === true) {
2105
2135
  writer.uint32(16).bool(message.transactionReceipt);
2106
2136
  }
2137
+ if (message.block === true) {
2138
+ writer.uint32(24).bool(message.block);
2139
+ }
2107
2140
  return writer;
2108
2141
  },
2109
2142
 
@@ -2120,6 +2153,9 @@ export const EthFetchConfig = {
2120
2153
  case 2:
2121
2154
  message.transactionReceipt = reader.bool();
2122
2155
  break;
2156
+ case 3:
2157
+ message.block = reader.bool();
2158
+ break;
2123
2159
  default:
2124
2160
  reader.skipType(tag & 7);
2125
2161
  break;
@@ -2132,6 +2168,7 @@ export const EthFetchConfig = {
2132
2168
  return {
2133
2169
  transaction: isSet(object.transaction) ? Boolean(object.transaction) : false,
2134
2170
  transactionReceipt: isSet(object.transactionReceipt) ? Boolean(object.transactionReceipt) : false,
2171
+ block: isSet(object.block) ? Boolean(object.block) : false,
2135
2172
  };
2136
2173
  },
2137
2174
 
@@ -2139,6 +2176,7 @@ export const EthFetchConfig = {
2139
2176
  const obj: any = {};
2140
2177
  message.transaction !== undefined && (obj.transaction = message.transaction);
2141
2178
  message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
2179
+ message.block !== undefined && (obj.block = message.block);
2142
2180
  return obj;
2143
2181
  },
2144
2182
 
@@ -2146,12 +2184,13 @@ export const EthFetchConfig = {
2146
2184
  const message = createBaseEthFetchConfig();
2147
2185
  message.transaction = object.transaction ?? false;
2148
2186
  message.transactionReceipt = object.transactionReceipt ?? false;
2187
+ message.block = object.block ?? false;
2149
2188
  return message;
2150
2189
  },
2151
2190
  };
2152
2191
 
2153
2192
  function createBaseTraceHandlerConfig(): TraceHandlerConfig {
2154
- return { signature: "", handlerId: 0 };
2193
+ return { signature: "", handlerId: 0, fetchConfig: undefined };
2155
2194
  }
2156
2195
 
2157
2196
  export const TraceHandlerConfig = {
@@ -2162,6 +2201,9 @@ export const TraceHandlerConfig = {
2162
2201
  if (message.handlerId !== 0) {
2163
2202
  writer.uint32(16).int32(message.handlerId);
2164
2203
  }
2204
+ if (message.fetchConfig !== undefined) {
2205
+ EthFetchConfig.encode(message.fetchConfig, writer.uint32(26).fork()).ldelim();
2206
+ }
2165
2207
  return writer;
2166
2208
  },
2167
2209
 
@@ -2178,6 +2220,9 @@ export const TraceHandlerConfig = {
2178
2220
  case 2:
2179
2221
  message.handlerId = reader.int32();
2180
2222
  break;
2223
+ case 3:
2224
+ message.fetchConfig = EthFetchConfig.decode(reader, reader.uint32());
2225
+ break;
2181
2226
  default:
2182
2227
  reader.skipType(tag & 7);
2183
2228
  break;
@@ -2190,6 +2235,7 @@ export const TraceHandlerConfig = {
2190
2235
  return {
2191
2236
  signature: isSet(object.signature) ? String(object.signature) : "",
2192
2237
  handlerId: isSet(object.handlerId) ? Number(object.handlerId) : 0,
2238
+ fetchConfig: isSet(object.fetchConfig) ? EthFetchConfig.fromJSON(object.fetchConfig) : undefined,
2193
2239
  };
2194
2240
  },
2195
2241
 
@@ -2197,6 +2243,8 @@ export const TraceHandlerConfig = {
2197
2243
  const obj: any = {};
2198
2244
  message.signature !== undefined && (obj.signature = message.signature);
2199
2245
  message.handlerId !== undefined && (obj.handlerId = Math.round(message.handlerId));
2246
+ message.fetchConfig !== undefined &&
2247
+ (obj.fetchConfig = message.fetchConfig ? EthFetchConfig.toJSON(message.fetchConfig) : undefined);
2200
2248
  return obj;
2201
2249
  },
2202
2250
 
@@ -2204,12 +2252,76 @@ export const TraceHandlerConfig = {
2204
2252
  const message = createBaseTraceHandlerConfig();
2205
2253
  message.signature = object.signature ?? "";
2206
2254
  message.handlerId = object.handlerId ?? 0;
2255
+ message.fetchConfig = (object.fetchConfig !== undefined && object.fetchConfig !== null)
2256
+ ? EthFetchConfig.fromPartial(object.fetchConfig)
2257
+ : undefined;
2258
+ return message;
2259
+ },
2260
+ };
2261
+
2262
+ function createBaseTransactionHandlerConfig(): TransactionHandlerConfig {
2263
+ return { handlerId: 0, fetchConfig: undefined };
2264
+ }
2265
+
2266
+ export const TransactionHandlerConfig = {
2267
+ encode(message: TransactionHandlerConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2268
+ if (message.handlerId !== 0) {
2269
+ writer.uint32(8).int32(message.handlerId);
2270
+ }
2271
+ if (message.fetchConfig !== undefined) {
2272
+ EthFetchConfig.encode(message.fetchConfig, writer.uint32(26).fork()).ldelim();
2273
+ }
2274
+ return writer;
2275
+ },
2276
+
2277
+ decode(input: _m0.Reader | Uint8Array, length?: number): TransactionHandlerConfig {
2278
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2279
+ let end = length === undefined ? reader.len : reader.pos + length;
2280
+ const message = createBaseTransactionHandlerConfig();
2281
+ while (reader.pos < end) {
2282
+ const tag = reader.uint32();
2283
+ switch (tag >>> 3) {
2284
+ case 1:
2285
+ message.handlerId = reader.int32();
2286
+ break;
2287
+ case 3:
2288
+ message.fetchConfig = EthFetchConfig.decode(reader, reader.uint32());
2289
+ break;
2290
+ default:
2291
+ reader.skipType(tag & 7);
2292
+ break;
2293
+ }
2294
+ }
2295
+ return message;
2296
+ },
2297
+
2298
+ fromJSON(object: any): TransactionHandlerConfig {
2299
+ return {
2300
+ handlerId: isSet(object.handlerId) ? Number(object.handlerId) : 0,
2301
+ fetchConfig: isSet(object.fetchConfig) ? EthFetchConfig.fromJSON(object.fetchConfig) : undefined,
2302
+ };
2303
+ },
2304
+
2305
+ toJSON(message: TransactionHandlerConfig): unknown {
2306
+ const obj: any = {};
2307
+ message.handlerId !== undefined && (obj.handlerId = Math.round(message.handlerId));
2308
+ message.fetchConfig !== undefined &&
2309
+ (obj.fetchConfig = message.fetchConfig ? EthFetchConfig.toJSON(message.fetchConfig) : undefined);
2310
+ return obj;
2311
+ },
2312
+
2313
+ fromPartial(object: DeepPartial<TransactionHandlerConfig>): TransactionHandlerConfig {
2314
+ const message = createBaseTransactionHandlerConfig();
2315
+ message.handlerId = object.handlerId ?? 0;
2316
+ message.fetchConfig = (object.fetchConfig !== undefined && object.fetchConfig !== null)
2317
+ ? EthFetchConfig.fromPartial(object.fetchConfig)
2318
+ : undefined;
2207
2319
  return message;
2208
2320
  },
2209
2321
  };
2210
2322
 
2211
2323
  function createBaseLogHandlerConfig(): LogHandlerConfig {
2212
- return { filters: [], handlerId: 0 };
2324
+ return { filters: [], handlerId: 0, fetchConfig: undefined };
2213
2325
  }
2214
2326
 
2215
2327
  export const LogHandlerConfig = {
@@ -2220,6 +2332,9 @@ export const LogHandlerConfig = {
2220
2332
  if (message.handlerId !== 0) {
2221
2333
  writer.uint32(16).int32(message.handlerId);
2222
2334
  }
2335
+ if (message.fetchConfig !== undefined) {
2336
+ EthFetchConfig.encode(message.fetchConfig, writer.uint32(26).fork()).ldelim();
2337
+ }
2223
2338
  return writer;
2224
2339
  },
2225
2340
 
@@ -2236,6 +2351,9 @@ export const LogHandlerConfig = {
2236
2351
  case 2:
2237
2352
  message.handlerId = reader.int32();
2238
2353
  break;
2354
+ case 3:
2355
+ message.fetchConfig = EthFetchConfig.decode(reader, reader.uint32());
2356
+ break;
2239
2357
  default:
2240
2358
  reader.skipType(tag & 7);
2241
2359
  break;
@@ -2248,6 +2366,7 @@ export const LogHandlerConfig = {
2248
2366
  return {
2249
2367
  filters: Array.isArray(object?.filters) ? object.filters.map((e: any) => LogFilter.fromJSON(e)) : [],
2250
2368
  handlerId: isSet(object.handlerId) ? Number(object.handlerId) : 0,
2369
+ fetchConfig: isSet(object.fetchConfig) ? EthFetchConfig.fromJSON(object.fetchConfig) : undefined,
2251
2370
  };
2252
2371
  },
2253
2372
 
@@ -2259,6 +2378,8 @@ export const LogHandlerConfig = {
2259
2378
  obj.filters = [];
2260
2379
  }
2261
2380
  message.handlerId !== undefined && (obj.handlerId = Math.round(message.handlerId));
2381
+ message.fetchConfig !== undefined &&
2382
+ (obj.fetchConfig = message.fetchConfig ? EthFetchConfig.toJSON(message.fetchConfig) : undefined);
2262
2383
  return obj;
2263
2384
  },
2264
2385
 
@@ -2266,6 +2387,9 @@ export const LogHandlerConfig = {
2266
2387
  const message = createBaseLogHandlerConfig();
2267
2388
  message.filters = object.filters?.map((e) => LogFilter.fromPartial(e)) || [];
2268
2389
  message.handlerId = object.handlerId ?? 0;
2390
+ message.fetchConfig = (object.fetchConfig !== undefined && object.fetchConfig !== null)
2391
+ ? EthFetchConfig.fromPartial(object.fetchConfig)
2392
+ : undefined;
2269
2393
  return message;
2270
2394
  },
2271
2395
  };
@@ -3050,7 +3174,13 @@ export const Data = {
3050
3174
  };
3051
3175
 
3052
3176
  function createBaseData_EthLog(): Data_EthLog {
3053
- return { log: undefined, timestamp: undefined, transaction: undefined };
3177
+ return {
3178
+ log: undefined,
3179
+ timestamp: undefined,
3180
+ transaction: undefined,
3181
+ transactionReceipt: undefined,
3182
+ block: undefined,
3183
+ };
3054
3184
  }
3055
3185
 
3056
3186
  export const Data_EthLog = {
@@ -3064,6 +3194,12 @@ export const Data_EthLog = {
3064
3194
  if (message.transaction !== undefined) {
3065
3195
  Struct.encode(Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim();
3066
3196
  }
3197
+ if (message.transactionReceipt !== undefined) {
3198
+ Struct.encode(Struct.wrap(message.transactionReceipt), writer.uint32(42).fork()).ldelim();
3199
+ }
3200
+ if (message.block !== undefined) {
3201
+ Struct.encode(Struct.wrap(message.block), writer.uint32(50).fork()).ldelim();
3202
+ }
3067
3203
  return writer;
3068
3204
  },
3069
3205
 
@@ -3083,6 +3219,12 @@ export const Data_EthLog = {
3083
3219
  case 2:
3084
3220
  message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3085
3221
  break;
3222
+ case 5:
3223
+ message.transactionReceipt = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3224
+ break;
3225
+ case 6:
3226
+ message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3227
+ break;
3086
3228
  default:
3087
3229
  reader.skipType(tag & 7);
3088
3230
  break;
@@ -3096,6 +3238,8 @@ export const Data_EthLog = {
3096
3238
  log: isObject(object.log) ? object.log : undefined,
3097
3239
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
3098
3240
  transaction: isObject(object.transaction) ? object.transaction : undefined,
3241
+ transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
3242
+ block: isObject(object.block) ? object.block : undefined,
3099
3243
  };
3100
3244
  },
3101
3245
 
@@ -3104,6 +3248,8 @@ export const Data_EthLog = {
3104
3248
  message.log !== undefined && (obj.log = message.log);
3105
3249
  message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
3106
3250
  message.transaction !== undefined && (obj.transaction = message.transaction);
3251
+ message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
3252
+ message.block !== undefined && (obj.block = message.block);
3107
3253
  return obj;
3108
3254
  },
3109
3255
 
@@ -3112,6 +3258,8 @@ export const Data_EthLog = {
3112
3258
  message.log = object.log ?? undefined;
3113
3259
  message.timestamp = object.timestamp ?? undefined;
3114
3260
  message.transaction = object.transaction ?? undefined;
3261
+ message.transactionReceipt = object.transactionReceipt ?? undefined;
3262
+ message.block = object.block ?? undefined;
3115
3263
  return message;
3116
3264
  },
3117
3265
  };
@@ -3164,7 +3312,7 @@ export const Data_EthBlock = {
3164
3312
  };
3165
3313
 
3166
3314
  function createBaseData_EthTransaction(): Data_EthTransaction {
3167
- return { transaction: undefined, timestamp: undefined, transactionReceipt: undefined };
3315
+ return { transaction: undefined, timestamp: undefined, transactionReceipt: undefined, block: undefined };
3168
3316
  }
3169
3317
 
3170
3318
  export const Data_EthTransaction = {
@@ -3178,6 +3326,9 @@ export const Data_EthTransaction = {
3178
3326
  if (message.transactionReceipt !== undefined) {
3179
3327
  Struct.encode(Struct.wrap(message.transactionReceipt), writer.uint32(26).fork()).ldelim();
3180
3328
  }
3329
+ if (message.block !== undefined) {
3330
+ Struct.encode(Struct.wrap(message.block), writer.uint32(50).fork()).ldelim();
3331
+ }
3181
3332
  return writer;
3182
3333
  },
3183
3334
 
@@ -3197,6 +3348,9 @@ export const Data_EthTransaction = {
3197
3348
  case 3:
3198
3349
  message.transactionReceipt = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3199
3350
  break;
3351
+ case 6:
3352
+ message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3353
+ break;
3200
3354
  default:
3201
3355
  reader.skipType(tag & 7);
3202
3356
  break;
@@ -3210,6 +3364,7 @@ export const Data_EthTransaction = {
3210
3364
  transaction: isObject(object.transaction) ? object.transaction : undefined,
3211
3365
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
3212
3366
  transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
3367
+ block: isObject(object.block) ? object.block : undefined,
3213
3368
  };
3214
3369
  },
3215
3370
 
@@ -3218,6 +3373,7 @@ export const Data_EthTransaction = {
3218
3373
  message.transaction !== undefined && (obj.transaction = message.transaction);
3219
3374
  message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
3220
3375
  message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
3376
+ message.block !== undefined && (obj.block = message.block);
3221
3377
  return obj;
3222
3378
  },
3223
3379
 
@@ -3226,12 +3382,19 @@ export const Data_EthTransaction = {
3226
3382
  message.transaction = object.transaction ?? undefined;
3227
3383
  message.timestamp = object.timestamp ?? undefined;
3228
3384
  message.transactionReceipt = object.transactionReceipt ?? undefined;
3385
+ message.block = object.block ?? undefined;
3229
3386
  return message;
3230
3387
  },
3231
3388
  };
3232
3389
 
3233
3390
  function createBaseData_EthTrace(): Data_EthTrace {
3234
- return { trace: undefined, timestamp: undefined, transaction: undefined, transactionReceipt: undefined };
3391
+ return {
3392
+ trace: undefined,
3393
+ timestamp: undefined,
3394
+ transaction: undefined,
3395
+ transactionReceipt: undefined,
3396
+ block: undefined,
3397
+ };
3235
3398
  }
3236
3399
 
3237
3400
  export const Data_EthTrace = {
@@ -3248,6 +3411,9 @@ export const Data_EthTrace = {
3248
3411
  if (message.transactionReceipt !== undefined) {
3249
3412
  Struct.encode(Struct.wrap(message.transactionReceipt), writer.uint32(26).fork()).ldelim();
3250
3413
  }
3414
+ if (message.block !== undefined) {
3415
+ Struct.encode(Struct.wrap(message.block), writer.uint32(50).fork()).ldelim();
3416
+ }
3251
3417
  return writer;
3252
3418
  },
3253
3419
 
@@ -3270,6 +3436,9 @@ export const Data_EthTrace = {
3270
3436
  case 3:
3271
3437
  message.transactionReceipt = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3272
3438
  break;
3439
+ case 6:
3440
+ message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3441
+ break;
3273
3442
  default:
3274
3443
  reader.skipType(tag & 7);
3275
3444
  break;
@@ -3284,6 +3453,7 @@ export const Data_EthTrace = {
3284
3453
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
3285
3454
  transaction: isObject(object.transaction) ? object.transaction : undefined,
3286
3455
  transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
3456
+ block: isObject(object.block) ? object.block : undefined,
3287
3457
  };
3288
3458
  },
3289
3459
 
@@ -3293,6 +3463,7 @@ export const Data_EthTrace = {
3293
3463
  message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
3294
3464
  message.transaction !== undefined && (obj.transaction = message.transaction);
3295
3465
  message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
3466
+ message.block !== undefined && (obj.block = message.block);
3296
3467
  return obj;
3297
3468
  },
3298
3469
 
@@ -3302,6 +3473,7 @@ export const Data_EthTrace = {
3302
3473
  message.timestamp = object.timestamp ?? undefined;
3303
3474
  message.transaction = object.transaction ?? undefined;
3304
3475
  message.transactionReceipt = object.transactionReceipt ?? undefined;
3476
+ message.block = object.block ?? undefined;
3305
3477
  return message;
3306
3478
  },
3307
3479
  };
@@ -3396,11 +3568,14 @@ export const Data_SolInstruction = {
3396
3568
  };
3397
3569
 
3398
3570
  function createBaseData_AptEvent(): Data_AptEvent {
3399
- return { transaction: undefined };
3571
+ return { event: undefined, transaction: undefined };
3400
3572
  }
3401
3573
 
3402
3574
  export const Data_AptEvent = {
3403
3575
  encode(message: Data_AptEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3576
+ if (message.event !== undefined) {
3577
+ Struct.encode(Struct.wrap(message.event), writer.uint32(10).fork()).ldelim();
3578
+ }
3404
3579
  if (message.transaction !== undefined) {
3405
3580
  Struct.encode(Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim();
3406
3581
  }
@@ -3414,6 +3589,9 @@ export const Data_AptEvent = {
3414
3589
  while (reader.pos < end) {
3415
3590
  const tag = reader.uint32();
3416
3591
  switch (tag >>> 3) {
3592
+ case 1:
3593
+ message.event = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3594
+ break;
3417
3595
  case 2:
3418
3596
  message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
3419
3597
  break;
@@ -3426,17 +3604,22 @@ export const Data_AptEvent = {
3426
3604
  },
3427
3605
 
3428
3606
  fromJSON(object: any): Data_AptEvent {
3429
- return { transaction: isObject(object.transaction) ? object.transaction : undefined };
3607
+ return {
3608
+ event: isObject(object.event) ? object.event : undefined,
3609
+ transaction: isObject(object.transaction) ? object.transaction : undefined,
3610
+ };
3430
3611
  },
3431
3612
 
3432
3613
  toJSON(message: Data_AptEvent): unknown {
3433
3614
  const obj: any = {};
3615
+ message.event !== undefined && (obj.event = message.event);
3434
3616
  message.transaction !== undefined && (obj.transaction = message.transaction);
3435
3617
  return obj;
3436
3618
  },
3437
3619
 
3438
3620
  fromPartial(object: DeepPartial<Data_AptEvent>): Data_AptEvent {
3439
3621
  const message = createBaseData_AptEvent();
3622
+ message.event = object.event ?? undefined;
3440
3623
  message.transaction = object.transaction ?? undefined;
3441
3624
  return message;
3442
3625
  },