@sentio/runtime 3.8.0-rc3.2 → 3.8.0-rc3.3

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 { P as Plugin, D as DataBinding, a as ProcessResult, H as HandlerType } from './processor-MLp_j8IT.js';
1
+ import { P as Plugin, D as DataBinding, a as ProcessResult, H as HandlerType } from './processor-D1hP2eBU.js';
2
2
  import { ProcessStreamResponse_Partitions, InitResponse, ProcessConfigResponse } from '@sentio/protos';
3
3
  import 'rxjs';
4
4
  import 'node:async_hooks';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
- "version": "3.8.0-rc3.2",
3
+ "version": "3.8.0-rc3.3",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -116,6 +116,28 @@ export class RuntimeServicePatcher {
116
116
  }
117
117
  }
118
118
  break
119
+ case HandlerType.ETH_BLOCK:
120
+ const ethBlock = dataBinding.data?.ethBlock
121
+ if (ethBlock?.block == null && ethBlock?.rawBlock) {
122
+ ethBlock.block = getParsedData(ethBlock.rawBlock)
123
+ }
124
+ break
125
+ case HandlerType.ETH_TRACE:
126
+ const ethTrace = dataBinding.data?.ethTrace
127
+ if (ethTrace?.trace == null && ethTrace?.rawTrace) {
128
+ ethTrace.trace = getParsedData(ethTrace.rawTrace)
129
+
130
+ if (ethTrace.rawTransaction) {
131
+ ethTrace.transaction = getParsedData(ethTrace.rawTransaction)
132
+ }
133
+ if (ethTrace.rawBlock) {
134
+ ethTrace.block = getParsedData(ethTrace.rawBlock)
135
+ }
136
+ if (ethTrace.rawTransactionReceipt) {
137
+ ethTrace.transactionReceipt = getParsedData(ethTrace.rawTransactionReceipt)
138
+ }
139
+ }
140
+ break
119
141
  case HandlerType.FUEL_TRANSACTION:
120
142
  if (compareSemver(this.sdkVersion, FUEL_PROTO_UPDATE_VERSION) < 0) {
121
143
  dataBinding.handlerType = HandlerType.FUEL_CALL
@@ -1255,6 +1255,7 @@ export interface Data_EthLog {
1255
1255
 
1256
1256
  export interface Data_EthBlock {
1257
1257
  block: { [key: string]: any } | undefined;
1258
+ rawBlock: string;
1258
1259
  }
1259
1260
 
1260
1261
  export interface Data_EthTransaction {
@@ -1275,6 +1276,10 @@ export interface Data_EthTrace {
1275
1276
  transaction?: { [key: string]: any } | undefined;
1276
1277
  transactionReceipt?: { [key: string]: any } | undefined;
1277
1278
  block?: { [key: string]: any } | undefined;
1279
+ rawTrace: string;
1280
+ rawTransaction?: string | undefined;
1281
+ rawTransactionReceipt?: string | undefined;
1282
+ rawBlock?: string | undefined;
1278
1283
  }
1279
1284
 
1280
1285
  export interface Data_SolInstruction {
@@ -10210,7 +10215,7 @@ export const Data_EthLog = {
10210
10215
  };
10211
10216
 
10212
10217
  function createBaseData_EthBlock(): Data_EthBlock {
10213
- return { block: undefined };
10218
+ return { block: undefined, rawBlock: "" };
10214
10219
  }
10215
10220
 
10216
10221
  export const Data_EthBlock = {
@@ -10218,6 +10223,9 @@ export const Data_EthBlock = {
10218
10223
  if (message.block !== undefined) {
10219
10224
  Struct.encode(Struct.wrap(message.block), writer.uint32(18).fork()).ldelim();
10220
10225
  }
10226
+ if (message.rawBlock !== "") {
10227
+ writer.uint32(10).string(message.rawBlock);
10228
+ }
10221
10229
  return writer;
10222
10230
  },
10223
10231
 
@@ -10235,6 +10243,13 @@ export const Data_EthBlock = {
10235
10243
 
10236
10244
  message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
10237
10245
  continue;
10246
+ case 1:
10247
+ if (tag !== 10) {
10248
+ break;
10249
+ }
10250
+
10251
+ message.rawBlock = reader.string();
10252
+ continue;
10238
10253
  }
10239
10254
  if ((tag & 7) === 4 || tag === 0) {
10240
10255
  break;
@@ -10245,7 +10260,10 @@ export const Data_EthBlock = {
10245
10260
  },
10246
10261
 
10247
10262
  fromJSON(object: any): Data_EthBlock {
10248
- return { block: isObject(object.block) ? object.block : undefined };
10263
+ return {
10264
+ block: isObject(object.block) ? object.block : undefined,
10265
+ rawBlock: isSet(object.rawBlock) ? globalThis.String(object.rawBlock) : "",
10266
+ };
10249
10267
  },
10250
10268
 
10251
10269
  toJSON(message: Data_EthBlock): unknown {
@@ -10253,6 +10271,9 @@ export const Data_EthBlock = {
10253
10271
  if (message.block !== undefined) {
10254
10272
  obj.block = message.block;
10255
10273
  }
10274
+ if (message.rawBlock !== "") {
10275
+ obj.rawBlock = message.rawBlock;
10276
+ }
10256
10277
  return obj;
10257
10278
  },
10258
10279
 
@@ -10262,6 +10283,7 @@ export const Data_EthBlock = {
10262
10283
  fromPartial(object: DeepPartial<Data_EthBlock>): Data_EthBlock {
10263
10284
  const message = createBaseData_EthBlock();
10264
10285
  message.block = object.block ?? undefined;
10286
+ message.rawBlock = object.rawBlock ?? "";
10265
10287
  return message;
10266
10288
  },
10267
10289
  };
@@ -10464,6 +10486,10 @@ function createBaseData_EthTrace(): Data_EthTrace {
10464
10486
  transaction: undefined,
10465
10487
  transactionReceipt: undefined,
10466
10488
  block: undefined,
10489
+ rawTrace: "",
10490
+ rawTransaction: undefined,
10491
+ rawTransactionReceipt: undefined,
10492
+ rawBlock: undefined,
10467
10493
  };
10468
10494
  }
10469
10495
 
@@ -10484,6 +10510,18 @@ export const Data_EthTrace = {
10484
10510
  if (message.block !== undefined) {
10485
10511
  Struct.encode(Struct.wrap(message.block), writer.uint32(50).fork()).ldelim();
10486
10512
  }
10513
+ if (message.rawTrace !== "") {
10514
+ writer.uint32(58).string(message.rawTrace);
10515
+ }
10516
+ if (message.rawTransaction !== undefined) {
10517
+ writer.uint32(66).string(message.rawTransaction);
10518
+ }
10519
+ if (message.rawTransactionReceipt !== undefined) {
10520
+ writer.uint32(74).string(message.rawTransactionReceipt);
10521
+ }
10522
+ if (message.rawBlock !== undefined) {
10523
+ writer.uint32(82).string(message.rawBlock);
10524
+ }
10487
10525
  return writer;
10488
10526
  },
10489
10527
 
@@ -10529,6 +10567,34 @@ export const Data_EthTrace = {
10529
10567
 
10530
10568
  message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
10531
10569
  continue;
10570
+ case 7:
10571
+ if (tag !== 58) {
10572
+ break;
10573
+ }
10574
+
10575
+ message.rawTrace = reader.string();
10576
+ continue;
10577
+ case 8:
10578
+ if (tag !== 66) {
10579
+ break;
10580
+ }
10581
+
10582
+ message.rawTransaction = reader.string();
10583
+ continue;
10584
+ case 9:
10585
+ if (tag !== 74) {
10586
+ break;
10587
+ }
10588
+
10589
+ message.rawTransactionReceipt = reader.string();
10590
+ continue;
10591
+ case 10:
10592
+ if (tag !== 82) {
10593
+ break;
10594
+ }
10595
+
10596
+ message.rawBlock = reader.string();
10597
+ continue;
10532
10598
  }
10533
10599
  if ((tag & 7) === 4 || tag === 0) {
10534
10600
  break;
@@ -10545,6 +10611,12 @@ export const Data_EthTrace = {
10545
10611
  transaction: isObject(object.transaction) ? object.transaction : undefined,
10546
10612
  transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
10547
10613
  block: isObject(object.block) ? object.block : undefined,
10614
+ rawTrace: isSet(object.rawTrace) ? globalThis.String(object.rawTrace) : "",
10615
+ rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : undefined,
10616
+ rawTransactionReceipt: isSet(object.rawTransactionReceipt)
10617
+ ? globalThis.String(object.rawTransactionReceipt)
10618
+ : undefined,
10619
+ rawBlock: isSet(object.rawBlock) ? globalThis.String(object.rawBlock) : undefined,
10548
10620
  };
10549
10621
  },
10550
10622
 
@@ -10565,6 +10637,18 @@ export const Data_EthTrace = {
10565
10637
  if (message.block !== undefined) {
10566
10638
  obj.block = message.block;
10567
10639
  }
10640
+ if (message.rawTrace !== "") {
10641
+ obj.rawTrace = message.rawTrace;
10642
+ }
10643
+ if (message.rawTransaction !== undefined) {
10644
+ obj.rawTransaction = message.rawTransaction;
10645
+ }
10646
+ if (message.rawTransactionReceipt !== undefined) {
10647
+ obj.rawTransactionReceipt = message.rawTransactionReceipt;
10648
+ }
10649
+ if (message.rawBlock !== undefined) {
10650
+ obj.rawBlock = message.rawBlock;
10651
+ }
10568
10652
  return obj;
10569
10653
  },
10570
10654
 
@@ -10578,6 +10662,10 @@ export const Data_EthTrace = {
10578
10662
  message.transaction = object.transaction ?? undefined;
10579
10663
  message.transactionReceipt = object.transactionReceipt ?? undefined;
10580
10664
  message.block = object.block ?? undefined;
10665
+ message.rawTrace = object.rawTrace ?? "";
10666
+ message.rawTransaction = object.rawTransaction ?? undefined;
10667
+ message.rawTransactionReceipt = object.rawTransactionReceipt ?? undefined;
10668
+ message.rawBlock = object.rawBlock ?? undefined;
10581
10669
  return message;
10582
10670
  },
10583
10671
  };