@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.
@@ -15,7 +15,7 @@ import {
15
15
  require_roots,
16
16
  require_rpc,
17
17
  require_writer
18
- } from "./chunk-EXIISBRV.js";
18
+ } from "./chunk-GY7OBH64.js";
19
19
  import {
20
20
  init_esm,
21
21
  metrics
@@ -60356,4 +60356,4 @@ long/umd/index.js:
60356
60356
  @noble/curves/esm/secp256k1.js:
60357
60357
  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
60358
60358
  */
60359
- //# sourceMappingURL=chunk-4ZC4G6EI.js.map
60359
+ //# sourceMappingURL=chunk-W5SMLSTL.js.map
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as StoreContext, E as ExecutionConfig } from './processor-MLp_j8IT.js';
2
- export { A as AbstractStoreContext, d as DataBindingContext, c as IDataBindingContext, I as IStoreContext, P as Plugin, b as PluginManager, t as timeoutError } from './processor-MLp_j8IT.js';
1
+ import { S as StoreContext, E as ExecutionConfig } from './processor-D1hP2eBU.js';
2
+ export { A as AbstractStoreContext, d as DataBindingContext, c as IDataBindingContext, I as IStoreContext, P as Plugin, b as PluginManager, t as timeoutError } from './processor-D1hP2eBU.js';
3
3
  import * as _sentio_protos from '@sentio/protos';
4
4
  import { ProcessResult, EthCallParam, ProcessorServiceImplementation, ProcessConfigRequest, ProcessConfigResponse, StartRequest, Empty, ProcessBindingsRequest, ProcessBindingResponse, DataBinding, PreparedData, PreprocessResult, ProcessStreamRequest, HandlerType, PreprocessStreamRequest, DeepPartial, PreprocessStreamResponse, ProcessStreamResponse } from '@sentio/protos';
5
5
  import { Required } from 'utility-types';
package/lib/index.js CHANGED
@@ -24,11 +24,11 @@ import {
24
24
  providerMetrics,
25
25
  recordRuntimeInfo,
26
26
  timeoutError
27
- } from "./chunk-4ZC4G6EI.js";
27
+ } from "./chunk-W5SMLSTL.js";
28
28
  import {
29
29
  Plugin,
30
30
  PluginManager
31
- } from "./chunk-EXIISBRV.js";
31
+ } from "./chunk-GY7OBH64.js";
32
32
  import "./chunk-I45UXGDM.js";
33
33
  import "./chunk-KVSDPGUI.js";
34
34
 
@@ -392,6 +392,7 @@ interface Data_EthBlock {
392
392
  block: {
393
393
  [key: string]: any;
394
394
  } | undefined;
395
+ rawBlock: string;
395
396
  }
396
397
  declare const Data_EthBlock: {
397
398
  encode(message: Data_EthBlock, writer?: _m0.Writer): _m0.Writer;
@@ -442,6 +443,10 @@ interface Data_EthTrace {
442
443
  block?: {
443
444
  [key: string]: any;
444
445
  } | undefined;
446
+ rawTrace: string;
447
+ rawTransaction?: string | undefined;
448
+ rawTransactionReceipt?: string | undefined;
449
+ rawBlock?: string | undefined;
445
450
  }
446
451
  declare const Data_EthTrace: {
447
452
  encode(message: Data_EthTrace, writer?: _m0.Writer): _m0.Writer;
@@ -20,7 +20,7 @@ import {
20
20
  require_lib3,
21
21
  require_src,
22
22
  withAbort
23
- } from "./chunk-4ZC4G6EI.js";
23
+ } from "./chunk-W5SMLSTL.js";
24
24
  import {
25
25
  ExecutionConfig,
26
26
  HandlerType,
@@ -30,7 +30,7 @@ import {
30
30
  ProcessorDefinition,
31
31
  ProcessorV3Definition,
32
32
  require_minimal2 as require_minimal
33
- } from "./chunk-EXIISBRV.js";
33
+ } from "./chunk-GY7OBH64.js";
34
34
  import {
35
35
  DiagConsoleLogger,
36
36
  DiagLogLevel,
@@ -29910,6 +29910,27 @@ var RuntimeServicePatcher = class {
29910
29910
  }
29911
29911
  }
29912
29912
  break;
29913
+ case 2 /* ETH_BLOCK */:
29914
+ const ethBlock = dataBinding.data?.ethBlock;
29915
+ if (ethBlock?.block == null && ethBlock?.rawBlock) {
29916
+ ethBlock.block = getParsedData(ethBlock.rawBlock);
29917
+ }
29918
+ break;
29919
+ case 5 /* ETH_TRACE */:
29920
+ const ethTrace = dataBinding.data?.ethTrace;
29921
+ if (ethTrace?.trace == null && ethTrace?.rawTrace) {
29922
+ ethTrace.trace = getParsedData(ethTrace.rawTrace);
29923
+ if (ethTrace.rawTransaction) {
29924
+ ethTrace.transaction = getParsedData(ethTrace.rawTransaction);
29925
+ }
29926
+ if (ethTrace.rawBlock) {
29927
+ ethTrace.block = getParsedData(ethTrace.rawBlock);
29928
+ }
29929
+ if (ethTrace.rawTransactionReceipt) {
29930
+ ethTrace.transactionReceipt = getParsedData(ethTrace.rawTransactionReceipt);
29931
+ }
29932
+ }
29933
+ break;
29913
29934
  case 20 /* FUEL_TRANSACTION */:
29914
29935
  if (compareSemver(this.sdkVersion, FUEL_PROTO_UPDATE_VERSION) < 0) {
29915
29936
  dataBinding.handlerType = 13 /* FUEL_CALL */;