@sentio/sdk 2.57.9-rc.12 → 2.57.9-rc.13

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.
@@ -5,7 +5,7 @@ import { decodeTraceInline, parseLogInline } from './decode-worker.js';
5
5
  function createOptions() {
6
6
  const options = {
7
7
  filename: findWorkFile(),
8
- recordTiming: true
8
+ recordTiming: GLOBAL_CONFIG.execution.ethAbiDecoderConfig?.recordTiming
9
9
  };
10
10
  if (GLOBAL_CONFIG.execution.ethAbiDecoderConfig?.workerCount) {
11
11
  try {
@@ -63,7 +63,7 @@ export async function parseLog(processor, log) {
63
63
  }
64
64
  }
65
65
  finally {
66
- if (workerPool.waitTime && workerPool.runTime) {
66
+ if (GLOBAL_CONFIG.execution.ethAbiDecoderConfig?.recordTiming && workerPool.waitTime && workerPool.runTime) {
67
67
  const labels = {
68
68
  chain_id: processor.config?.network,
69
69
  processor: processor.config?.name,
@@ -110,7 +110,7 @@ export async function decodeTrace(processor, inputs, traceData) {
110
110
  }
111
111
  }
112
112
  finally {
113
- if (workerPool.waitTime && workerPool.runTime) {
113
+ if (GLOBAL_CONFIG.execution.ethAbiDecoderConfig?.recordTiming && workerPool.waitTime && workerPool.runTime) {
114
114
  const labels = {
115
115
  chain_id: processor.config?.network,
116
116
  processor: processor.config?.name,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/eth/abi-decoder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAa,MAAM,EAAa,MAAM,QAAQ,CAAA;AACrE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEjC,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAW,MAAM,oBAAoB,CAAA;AAE/E,SAAS,aAAa;IACpB,MAAM,OAAO,GAAQ;QACnB,QAAQ,EAAE,YAAY,EA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AQ,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;gBACrF,cAAc,CAAC,yBAAyB,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;gBACpF,cAAc,CAAC,4BAA4B,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;gBAClF,cAAc,CAAC,2BAA2B,CAAC,MAAM,CAAC,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;gBAC/E,cAAc,CAAC,0BAA0B,CAAC,MAAM,CAAC,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;YAChF,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;SAAM,CAAC;QACN,MAAM,YAAY,GAAG,SAAS,CAAC,uBAAuB,EAAE,CAAA;QACxD,MAAM,qBAAqB,GAAG,YAAY,CAAC,WAAW,CAAC,SAAS,CAAA;QAChE,OAAO,iBAAiB,CAAC,qBAAqB,EAAE,MAAM,EAAE,SAAS,CAAC,CAAA;IACpE,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/sdk",
3
- "version": "2.57.9-rc.12",
3
+ "version": "2.57.9-rc.13",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -88,8 +88,8 @@
88
88
  "typechain": "^8.3.2",
89
89
  "utility-types": "^3.11.0",
90
90
  "yaml": "^2.3.4",
91
- "@sentio/protos": "2.57.9-rc.12",
92
- "@sentio/runtime": "^2.57.9-rc.12"
91
+ "@sentio/protos": "2.57.9-rc.13",
92
+ "@sentio/runtime": "^2.57.9-rc.13"
93
93
  },
94
94
  "peerDependencies": {
95
95
  "tsup": "npm:@sentio/tsup@^8.3.5-rc.1"
@@ -7,7 +7,7 @@ import { decodeTraceInline, parseLogInline, IResult } from './decode-worker.js'
7
7
  function createOptions() {
8
8
  const options: any = {
9
9
  filename: findWorkFile(),
10
- recordTiming: true
10
+ recordTiming: GLOBAL_CONFIG.execution.ethAbiDecoderConfig?.recordTiming
11
11
  }
12
12
  if (GLOBAL_CONFIG.execution.ethAbiDecoderConfig?.workerCount) {
13
13
  try {
@@ -65,7 +65,7 @@ export async function parseLog(processor: any, log: LogParams) {
65
65
  throw e
66
66
  }
67
67
  } finally {
68
- if (workerPool.waitTime && workerPool.runTime) {
68
+ if (GLOBAL_CONFIG.execution.ethAbiDecoderConfig?.recordTiming && workerPool.waitTime && workerPool.runTime) {
69
69
  const labels = {
70
70
  chain_id: processor.config?.network,
71
71
  processor: processor.config?.name,
@@ -111,7 +111,7 @@ export async function decodeTrace(processor: any, inputs: readonly ParamType[],
111
111
  throw e
112
112
  }
113
113
  } finally {
114
- if (workerPool.waitTime && workerPool.runTime) {
114
+ if (GLOBAL_CONFIG.execution.ethAbiDecoderConfig?.recordTiming && workerPool.waitTime && workerPool.runTime) {
115
115
  const labels = {
116
116
  chain_id: processor.config?.network,
117
117
  processor: processor.config?.name,