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

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-CNJAQPfh.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.4",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -116,6 +116,34 @@ 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
141
+ case HandlerType.SOL_INSTRUCTION:
142
+ const solInstruction = dataBinding.data?.solInstruction
143
+ if (solInstruction?.parsed == null && solInstruction?.rawParsed) {
144
+ solInstruction.parsed = getParsedData(solInstruction.rawParsed)
145
+ }
146
+ break
119
147
  case HandlerType.FUEL_TRANSACTION:
120
148
  if (compareSemver(this.sdkVersion, FUEL_PROTO_UPDATE_VERSION) < 0) {
121
149
  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 {
@@ -1283,6 +1288,7 @@ export interface Data_SolInstruction {
1283
1288
  programAccountId: string;
1284
1289
  accounts: string[];
1285
1290
  parsed?: { [key: string]: any } | undefined;
1291
+ rawParsed?: string | undefined;
1286
1292
  rawTransaction?: string | undefined;
1287
1293
  }
1288
1294
 
@@ -10210,7 +10216,7 @@ export const Data_EthLog = {
10210
10216
  };
10211
10217
 
10212
10218
  function createBaseData_EthBlock(): Data_EthBlock {
10213
- return { block: undefined };
10219
+ return { block: undefined, rawBlock: "" };
10214
10220
  }
10215
10221
 
10216
10222
  export const Data_EthBlock = {
@@ -10218,6 +10224,9 @@ export const Data_EthBlock = {
10218
10224
  if (message.block !== undefined) {
10219
10225
  Struct.encode(Struct.wrap(message.block), writer.uint32(18).fork()).ldelim();
10220
10226
  }
10227
+ if (message.rawBlock !== "") {
10228
+ writer.uint32(10).string(message.rawBlock);
10229
+ }
10221
10230
  return writer;
10222
10231
  },
10223
10232
 
@@ -10235,6 +10244,13 @@ export const Data_EthBlock = {
10235
10244
 
10236
10245
  message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
10237
10246
  continue;
10247
+ case 1:
10248
+ if (tag !== 10) {
10249
+ break;
10250
+ }
10251
+
10252
+ message.rawBlock = reader.string();
10253
+ continue;
10238
10254
  }
10239
10255
  if ((tag & 7) === 4 || tag === 0) {
10240
10256
  break;
@@ -10245,7 +10261,10 @@ export const Data_EthBlock = {
10245
10261
  },
10246
10262
 
10247
10263
  fromJSON(object: any): Data_EthBlock {
10248
- return { block: isObject(object.block) ? object.block : undefined };
10264
+ return {
10265
+ block: isObject(object.block) ? object.block : undefined,
10266
+ rawBlock: isSet(object.rawBlock) ? globalThis.String(object.rawBlock) : "",
10267
+ };
10249
10268
  },
10250
10269
 
10251
10270
  toJSON(message: Data_EthBlock): unknown {
@@ -10253,6 +10272,9 @@ export const Data_EthBlock = {
10253
10272
  if (message.block !== undefined) {
10254
10273
  obj.block = message.block;
10255
10274
  }
10275
+ if (message.rawBlock !== "") {
10276
+ obj.rawBlock = message.rawBlock;
10277
+ }
10256
10278
  return obj;
10257
10279
  },
10258
10280
 
@@ -10262,6 +10284,7 @@ export const Data_EthBlock = {
10262
10284
  fromPartial(object: DeepPartial<Data_EthBlock>): Data_EthBlock {
10263
10285
  const message = createBaseData_EthBlock();
10264
10286
  message.block = object.block ?? undefined;
10287
+ message.rawBlock = object.rawBlock ?? "";
10265
10288
  return message;
10266
10289
  },
10267
10290
  };
@@ -10464,6 +10487,10 @@ function createBaseData_EthTrace(): Data_EthTrace {
10464
10487
  transaction: undefined,
10465
10488
  transactionReceipt: undefined,
10466
10489
  block: undefined,
10490
+ rawTrace: "",
10491
+ rawTransaction: undefined,
10492
+ rawTransactionReceipt: undefined,
10493
+ rawBlock: undefined,
10467
10494
  };
10468
10495
  }
10469
10496
 
@@ -10484,6 +10511,18 @@ export const Data_EthTrace = {
10484
10511
  if (message.block !== undefined) {
10485
10512
  Struct.encode(Struct.wrap(message.block), writer.uint32(50).fork()).ldelim();
10486
10513
  }
10514
+ if (message.rawTrace !== "") {
10515
+ writer.uint32(58).string(message.rawTrace);
10516
+ }
10517
+ if (message.rawTransaction !== undefined) {
10518
+ writer.uint32(66).string(message.rawTransaction);
10519
+ }
10520
+ if (message.rawTransactionReceipt !== undefined) {
10521
+ writer.uint32(74).string(message.rawTransactionReceipt);
10522
+ }
10523
+ if (message.rawBlock !== undefined) {
10524
+ writer.uint32(82).string(message.rawBlock);
10525
+ }
10487
10526
  return writer;
10488
10527
  },
10489
10528
 
@@ -10529,6 +10568,34 @@ export const Data_EthTrace = {
10529
10568
 
10530
10569
  message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
10531
10570
  continue;
10571
+ case 7:
10572
+ if (tag !== 58) {
10573
+ break;
10574
+ }
10575
+
10576
+ message.rawTrace = reader.string();
10577
+ continue;
10578
+ case 8:
10579
+ if (tag !== 66) {
10580
+ break;
10581
+ }
10582
+
10583
+ message.rawTransaction = reader.string();
10584
+ continue;
10585
+ case 9:
10586
+ if (tag !== 74) {
10587
+ break;
10588
+ }
10589
+
10590
+ message.rawTransactionReceipt = reader.string();
10591
+ continue;
10592
+ case 10:
10593
+ if (tag !== 82) {
10594
+ break;
10595
+ }
10596
+
10597
+ message.rawBlock = reader.string();
10598
+ continue;
10532
10599
  }
10533
10600
  if ((tag & 7) === 4 || tag === 0) {
10534
10601
  break;
@@ -10545,6 +10612,12 @@ export const Data_EthTrace = {
10545
10612
  transaction: isObject(object.transaction) ? object.transaction : undefined,
10546
10613
  transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
10547
10614
  block: isObject(object.block) ? object.block : undefined,
10615
+ rawTrace: isSet(object.rawTrace) ? globalThis.String(object.rawTrace) : "",
10616
+ rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : undefined,
10617
+ rawTransactionReceipt: isSet(object.rawTransactionReceipt)
10618
+ ? globalThis.String(object.rawTransactionReceipt)
10619
+ : undefined,
10620
+ rawBlock: isSet(object.rawBlock) ? globalThis.String(object.rawBlock) : undefined,
10548
10621
  };
10549
10622
  },
10550
10623
 
@@ -10565,6 +10638,18 @@ export const Data_EthTrace = {
10565
10638
  if (message.block !== undefined) {
10566
10639
  obj.block = message.block;
10567
10640
  }
10641
+ if (message.rawTrace !== "") {
10642
+ obj.rawTrace = message.rawTrace;
10643
+ }
10644
+ if (message.rawTransaction !== undefined) {
10645
+ obj.rawTransaction = message.rawTransaction;
10646
+ }
10647
+ if (message.rawTransactionReceipt !== undefined) {
10648
+ obj.rawTransactionReceipt = message.rawTransactionReceipt;
10649
+ }
10650
+ if (message.rawBlock !== undefined) {
10651
+ obj.rawBlock = message.rawBlock;
10652
+ }
10568
10653
  return obj;
10569
10654
  },
10570
10655
 
@@ -10578,6 +10663,10 @@ export const Data_EthTrace = {
10578
10663
  message.transaction = object.transaction ?? undefined;
10579
10664
  message.transactionReceipt = object.transactionReceipt ?? undefined;
10580
10665
  message.block = object.block ?? undefined;
10666
+ message.rawTrace = object.rawTrace ?? "";
10667
+ message.rawTransaction = object.rawTransaction ?? undefined;
10668
+ message.rawTransactionReceipt = object.rawTransactionReceipt ?? undefined;
10669
+ message.rawBlock = object.rawBlock ?? undefined;
10581
10670
  return message;
10582
10671
  },
10583
10672
  };
@@ -10589,6 +10678,7 @@ function createBaseData_SolInstruction(): Data_SolInstruction {
10589
10678
  programAccountId: "",
10590
10679
  accounts: [],
10591
10680
  parsed: undefined,
10681
+ rawParsed: undefined,
10592
10682
  rawTransaction: undefined,
10593
10683
  };
10594
10684
  }
@@ -10613,6 +10703,9 @@ export const Data_SolInstruction = {
10613
10703
  if (message.parsed !== undefined) {
10614
10704
  Struct.encode(Struct.wrap(message.parsed), writer.uint32(34).fork()).ldelim();
10615
10705
  }
10706
+ if (message.rawParsed !== undefined) {
10707
+ writer.uint32(58).string(message.rawParsed);
10708
+ }
10616
10709
  if (message.rawTransaction !== undefined) {
10617
10710
  writer.uint32(50).string(message.rawTransaction);
10618
10711
  }
@@ -10661,6 +10754,13 @@ export const Data_SolInstruction = {
10661
10754
 
10662
10755
  message.parsed = Struct.unwrap(Struct.decode(reader, reader.uint32()));
10663
10756
  continue;
10757
+ case 7:
10758
+ if (tag !== 58) {
10759
+ break;
10760
+ }
10761
+
10762
+ message.rawParsed = reader.string();
10763
+ continue;
10664
10764
  case 6:
10665
10765
  if (tag !== 50) {
10666
10766
  break;
@@ -10684,6 +10784,7 @@ export const Data_SolInstruction = {
10684
10784
  programAccountId: isSet(object.programAccountId) ? globalThis.String(object.programAccountId) : "",
10685
10785
  accounts: globalThis.Array.isArray(object?.accounts) ? object.accounts.map((e: any) => globalThis.String(e)) : [],
10686
10786
  parsed: isObject(object.parsed) ? object.parsed : undefined,
10787
+ rawParsed: isSet(object.rawParsed) ? globalThis.String(object.rawParsed) : undefined,
10687
10788
  rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : undefined,
10688
10789
  };
10689
10790
  },
@@ -10705,6 +10806,9 @@ export const Data_SolInstruction = {
10705
10806
  if (message.parsed !== undefined) {
10706
10807
  obj.parsed = message.parsed;
10707
10808
  }
10809
+ if (message.rawParsed !== undefined) {
10810
+ obj.rawParsed = message.rawParsed;
10811
+ }
10708
10812
  if (message.rawTransaction !== undefined) {
10709
10813
  obj.rawTransaction = message.rawTransaction;
10710
10814
  }
@@ -10721,6 +10825,7 @@ export const Data_SolInstruction = {
10721
10825
  message.programAccountId = object.programAccountId ?? "";
10722
10826
  message.accounts = object.accounts?.map((e) => e) || [];
10723
10827
  message.parsed = object.parsed ?? undefined;
10828
+ message.rawParsed = object.rawParsed ?? undefined;
10724
10829
  message.rawTransaction = object.rawTransaction ?? undefined;
10725
10830
  return message;
10726
10831
  },