@sentio/runtime 2.63.0-rc2.1 → 2.63.0-rc2.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.
@@ -10,8 +10,8 @@ import {
10
10
  require_cjs,
11
11
  require_lib3 as require_lib,
12
12
  require_lib4 as require_lib2
13
- } from "./chunk-IIAZZZPV.js";
14
- import "./chunk-OFR7W4ZG.js";
13
+ } from "./chunk-FLUYK6N3.js";
14
+ import "./chunk-36V5YZUD.js";
15
15
  import "./chunk-MV6JXS2P.js";
16
16
  import {
17
17
  __toESM
@@ -1,4 +1,4 @@
1
- import { P as Plugin, D as DataBinding, a as ProcessResult, H as HandlerType } from './processor-CIR4erWa.js';
1
+ import { P as Plugin, D as DataBinding, a as ProcessResult, H as HandlerType } from './processor-C-5LJT6m.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": "2.63.0-rc2.1",
3
+ "version": "2.63.0-rc2.2",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -136,6 +136,28 @@ export class RuntimeServicePatcher {
136
136
  }
137
137
  }
138
138
  break
139
+ case HandlerType.ETH_BLOCK:
140
+ const ethBlock = dataBinding.data?.ethBlock
141
+ if (ethBlock?.block == null && ethBlock?.rawBlock) {
142
+ ethBlock.block = getParsedData(ethBlock.rawBlock)
143
+ }
144
+ break
145
+ case HandlerType.ETH_TRACE:
146
+ const ethTrace = dataBinding.data?.ethTrace
147
+ if (ethTrace?.trace == null && ethTrace?.rawTrace) {
148
+ ethTrace.trace = getParsedData(ethTrace.rawTrace)
149
+
150
+ if (ethTrace.rawTransaction) {
151
+ ethTrace.transaction = getParsedData(ethTrace.rawTransaction)
152
+ }
153
+ if (ethTrace.rawBlock) {
154
+ ethTrace.block = getParsedData(ethTrace.rawBlock)
155
+ }
156
+ if (ethTrace.rawTransactionReceipt) {
157
+ ethTrace.transactionReceipt = getParsedData(ethTrace.rawTransactionReceipt)
158
+ }
159
+ }
160
+ break
139
161
  case HandlerType.FUEL_TRANSACTION:
140
162
  if (compareSemver(this.sdkVersion, FUEL_PROTO_UPDATE_VERSION) < 0) {
141
163
  dataBinding.handlerType = HandlerType.FUEL_CALL
@@ -1244,6 +1244,7 @@ export interface Data_EthLog {
1244
1244
 
1245
1245
  export interface Data_EthBlock {
1246
1246
  block: { [key: string]: any } | undefined;
1247
+ rawBlock: string;
1247
1248
  }
1248
1249
 
1249
1250
  export interface Data_EthTransaction {
@@ -1264,6 +1265,10 @@ export interface Data_EthTrace {
1264
1265
  transaction?: { [key: string]: any } | undefined;
1265
1266
  transactionReceipt?: { [key: string]: any } | undefined;
1266
1267
  block?: { [key: string]: any } | undefined;
1268
+ rawTrace: string;
1269
+ rawTransaction?: string | undefined;
1270
+ rawTransactionReceipt?: string | undefined;
1271
+ rawBlock?: string | undefined;
1267
1272
  }
1268
1273
 
1269
1274
  export interface Data_SolInstruction {
@@ -10129,7 +10134,7 @@ export const Data_EthLog = {
10129
10134
  };
10130
10135
 
10131
10136
  function createBaseData_EthBlock(): Data_EthBlock {
10132
- return { block: undefined };
10137
+ return { block: undefined, rawBlock: "" };
10133
10138
  }
10134
10139
 
10135
10140
  export const Data_EthBlock = {
@@ -10137,6 +10142,9 @@ export const Data_EthBlock = {
10137
10142
  if (message.block !== undefined) {
10138
10143
  Struct.encode(Struct.wrap(message.block), writer.uint32(18).fork()).ldelim();
10139
10144
  }
10145
+ if (message.rawBlock !== "") {
10146
+ writer.uint32(10).string(message.rawBlock);
10147
+ }
10140
10148
  return writer;
10141
10149
  },
10142
10150
 
@@ -10154,6 +10162,13 @@ export const Data_EthBlock = {
10154
10162
 
10155
10163
  message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
10156
10164
  continue;
10165
+ case 1:
10166
+ if (tag !== 10) {
10167
+ break;
10168
+ }
10169
+
10170
+ message.rawBlock = reader.string();
10171
+ continue;
10157
10172
  }
10158
10173
  if ((tag & 7) === 4 || tag === 0) {
10159
10174
  break;
@@ -10164,7 +10179,10 @@ export const Data_EthBlock = {
10164
10179
  },
10165
10180
 
10166
10181
  fromJSON(object: any): Data_EthBlock {
10167
- return { block: isObject(object.block) ? object.block : undefined };
10182
+ return {
10183
+ block: isObject(object.block) ? object.block : undefined,
10184
+ rawBlock: isSet(object.rawBlock) ? globalThis.String(object.rawBlock) : "",
10185
+ };
10168
10186
  },
10169
10187
 
10170
10188
  toJSON(message: Data_EthBlock): unknown {
@@ -10172,6 +10190,9 @@ export const Data_EthBlock = {
10172
10190
  if (message.block !== undefined) {
10173
10191
  obj.block = message.block;
10174
10192
  }
10193
+ if (message.rawBlock !== "") {
10194
+ obj.rawBlock = message.rawBlock;
10195
+ }
10175
10196
  return obj;
10176
10197
  },
10177
10198
 
@@ -10181,6 +10202,7 @@ export const Data_EthBlock = {
10181
10202
  fromPartial(object: DeepPartial<Data_EthBlock>): Data_EthBlock {
10182
10203
  const message = createBaseData_EthBlock();
10183
10204
  message.block = object.block ?? undefined;
10205
+ message.rawBlock = object.rawBlock ?? "";
10184
10206
  return message;
10185
10207
  },
10186
10208
  };
@@ -10383,6 +10405,10 @@ function createBaseData_EthTrace(): Data_EthTrace {
10383
10405
  transaction: undefined,
10384
10406
  transactionReceipt: undefined,
10385
10407
  block: undefined,
10408
+ rawTrace: "",
10409
+ rawTransaction: undefined,
10410
+ rawTransactionReceipt: undefined,
10411
+ rawBlock: undefined,
10386
10412
  };
10387
10413
  }
10388
10414
 
@@ -10403,6 +10429,18 @@ export const Data_EthTrace = {
10403
10429
  if (message.block !== undefined) {
10404
10430
  Struct.encode(Struct.wrap(message.block), writer.uint32(50).fork()).ldelim();
10405
10431
  }
10432
+ if (message.rawTrace !== "") {
10433
+ writer.uint32(58).string(message.rawTrace);
10434
+ }
10435
+ if (message.rawTransaction !== undefined) {
10436
+ writer.uint32(66).string(message.rawTransaction);
10437
+ }
10438
+ if (message.rawTransactionReceipt !== undefined) {
10439
+ writer.uint32(74).string(message.rawTransactionReceipt);
10440
+ }
10441
+ if (message.rawBlock !== undefined) {
10442
+ writer.uint32(82).string(message.rawBlock);
10443
+ }
10406
10444
  return writer;
10407
10445
  },
10408
10446
 
@@ -10448,6 +10486,34 @@ export const Data_EthTrace = {
10448
10486
 
10449
10487
  message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
10450
10488
  continue;
10489
+ case 7:
10490
+ if (tag !== 58) {
10491
+ break;
10492
+ }
10493
+
10494
+ message.rawTrace = reader.string();
10495
+ continue;
10496
+ case 8:
10497
+ if (tag !== 66) {
10498
+ break;
10499
+ }
10500
+
10501
+ message.rawTransaction = reader.string();
10502
+ continue;
10503
+ case 9:
10504
+ if (tag !== 74) {
10505
+ break;
10506
+ }
10507
+
10508
+ message.rawTransactionReceipt = reader.string();
10509
+ continue;
10510
+ case 10:
10511
+ if (tag !== 82) {
10512
+ break;
10513
+ }
10514
+
10515
+ message.rawBlock = reader.string();
10516
+ continue;
10451
10517
  }
10452
10518
  if ((tag & 7) === 4 || tag === 0) {
10453
10519
  break;
@@ -10464,6 +10530,12 @@ export const Data_EthTrace = {
10464
10530
  transaction: isObject(object.transaction) ? object.transaction : undefined,
10465
10531
  transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
10466
10532
  block: isObject(object.block) ? object.block : undefined,
10533
+ rawTrace: isSet(object.rawTrace) ? globalThis.String(object.rawTrace) : "",
10534
+ rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : undefined,
10535
+ rawTransactionReceipt: isSet(object.rawTransactionReceipt)
10536
+ ? globalThis.String(object.rawTransactionReceipt)
10537
+ : undefined,
10538
+ rawBlock: isSet(object.rawBlock) ? globalThis.String(object.rawBlock) : undefined,
10467
10539
  };
10468
10540
  },
10469
10541
 
@@ -10484,6 +10556,18 @@ export const Data_EthTrace = {
10484
10556
  if (message.block !== undefined) {
10485
10557
  obj.block = message.block;
10486
10558
  }
10559
+ if (message.rawTrace !== "") {
10560
+ obj.rawTrace = message.rawTrace;
10561
+ }
10562
+ if (message.rawTransaction !== undefined) {
10563
+ obj.rawTransaction = message.rawTransaction;
10564
+ }
10565
+ if (message.rawTransactionReceipt !== undefined) {
10566
+ obj.rawTransactionReceipt = message.rawTransactionReceipt;
10567
+ }
10568
+ if (message.rawBlock !== undefined) {
10569
+ obj.rawBlock = message.rawBlock;
10570
+ }
10487
10571
  return obj;
10488
10572
  },
10489
10573
 
@@ -10497,6 +10581,10 @@ export const Data_EthTrace = {
10497
10581
  message.transaction = object.transaction ?? undefined;
10498
10582
  message.transactionReceipt = object.transactionReceipt ?? undefined;
10499
10583
  message.block = object.block ?? undefined;
10584
+ message.rawTrace = object.rawTrace ?? "";
10585
+ message.rawTransaction = object.rawTransaction ?? undefined;
10586
+ message.rawTransactionReceipt = object.rawTransactionReceipt ?? undefined;
10587
+ message.rawBlock = object.rawBlock ?? undefined;
10500
10588
  return message;
10501
10589
  },
10502
10590
  };