@sentio/runtime 2.63.0-rc2.1 → 2.63.0-rc2.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.
- package/lib/{chunk-IIAZZZPV.js → chunk-3IULUWFB.js} +2 -2
- package/lib/{chunk-OFR7W4ZG.js → chunk-WJM2EBJH.js} +207 -13
- package/lib/chunk-WJM2EBJH.js.map +1 -0
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/{processor-CIR4erWa.d.ts → processor-HP-BeI2_.d.ts} +6 -0
- package/lib/processor-runner.js +29 -2
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +2 -2
- package/lib/test-processor.test.d.ts +1 -1
- package/package.json +1 -1
- package/src/full-service.ts +28 -0
- package/src/gen/processor/protos/processor.ts +114 -3
- package/lib/chunk-OFR7W4ZG.js.map +0 -1
- /package/lib/{chunk-IIAZZZPV.js.map → chunk-3IULUWFB.js.map} +0 -0
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as StoreContext, E as ExecutionConfig } from './processor-
|
|
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-
|
|
1
|
+
import { S as StoreContext, E as ExecutionConfig } from './processor-HP-BeI2_.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-HP-BeI2_.js';
|
|
3
3
|
import * as _sentio_protos from '@sentio/protos';
|
|
4
4
|
import { TemplateInstance, 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
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
providerMetrics,
|
|
31
31
|
recordRuntimeInfo,
|
|
32
32
|
timeoutError
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-3IULUWFB.js";
|
|
34
34
|
import {
|
|
35
35
|
Plugin,
|
|
36
36
|
PluginManager
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-WJM2EBJH.js";
|
|
38
38
|
import "./chunk-MV6JXS2P.js";
|
|
39
39
|
import "./chunk-KVSDPGUI.js";
|
|
40
40
|
|
|
@@ -390,6 +390,7 @@ interface Data_EthBlock {
|
|
|
390
390
|
block: {
|
|
391
391
|
[key: string]: any;
|
|
392
392
|
} | undefined;
|
|
393
|
+
rawBlock: string;
|
|
393
394
|
}
|
|
394
395
|
declare const Data_EthBlock: {
|
|
395
396
|
encode(message: Data_EthBlock, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -440,6 +441,10 @@ interface Data_EthTrace {
|
|
|
440
441
|
block?: {
|
|
441
442
|
[key: string]: any;
|
|
442
443
|
} | undefined;
|
|
444
|
+
rawTrace: string;
|
|
445
|
+
rawTransaction?: string | undefined;
|
|
446
|
+
rawTransactionReceipt?: string | undefined;
|
|
447
|
+
rawBlock?: string | undefined;
|
|
443
448
|
}
|
|
444
449
|
declare const Data_EthTrace: {
|
|
445
450
|
encode(message: Data_EthTrace, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -457,6 +462,7 @@ interface Data_SolInstruction {
|
|
|
457
462
|
parsed?: {
|
|
458
463
|
[key: string]: any;
|
|
459
464
|
} | undefined;
|
|
465
|
+
rawParsed?: string | undefined;
|
|
460
466
|
}
|
|
461
467
|
declare const Data_SolInstruction: {
|
|
462
468
|
encode(message: Data_SolInstruction, writer?: _m0.Writer): _m0.Writer;
|
package/lib/processor-runner.js
CHANGED
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
require_lib4,
|
|
30
30
|
require_src,
|
|
31
31
|
withAbort
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3IULUWFB.js";
|
|
33
33
|
import {
|
|
34
34
|
ExecutionConfig,
|
|
35
35
|
HandlerType,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
ProcessorV3Definition,
|
|
41
41
|
StartRequest,
|
|
42
42
|
require_minimal2 as require_minimal
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-WJM2EBJH.js";
|
|
44
44
|
import {
|
|
45
45
|
DiagConsoleLogger,
|
|
46
46
|
DiagLogLevel,
|
|
@@ -32173,6 +32173,33 @@ var RuntimeServicePatcher = class {
|
|
|
32173
32173
|
}
|
|
32174
32174
|
}
|
|
32175
32175
|
break;
|
|
32176
|
+
case 2 /* ETH_BLOCK */:
|
|
32177
|
+
const ethBlock = dataBinding.data?.ethBlock;
|
|
32178
|
+
if (ethBlock?.block == null && ethBlock?.rawBlock) {
|
|
32179
|
+
ethBlock.block = getParsedData(ethBlock.rawBlock);
|
|
32180
|
+
}
|
|
32181
|
+
break;
|
|
32182
|
+
case 5 /* ETH_TRACE */:
|
|
32183
|
+
const ethTrace = dataBinding.data?.ethTrace;
|
|
32184
|
+
if (ethTrace?.trace == null && ethTrace?.rawTrace) {
|
|
32185
|
+
ethTrace.trace = getParsedData(ethTrace.rawTrace);
|
|
32186
|
+
if (ethTrace.rawTransaction) {
|
|
32187
|
+
ethTrace.transaction = getParsedData(ethTrace.rawTransaction);
|
|
32188
|
+
}
|
|
32189
|
+
if (ethTrace.rawBlock) {
|
|
32190
|
+
ethTrace.block = getParsedData(ethTrace.rawBlock);
|
|
32191
|
+
}
|
|
32192
|
+
if (ethTrace.rawTransactionReceipt) {
|
|
32193
|
+
ethTrace.transactionReceipt = getParsedData(ethTrace.rawTransactionReceipt);
|
|
32194
|
+
}
|
|
32195
|
+
}
|
|
32196
|
+
break;
|
|
32197
|
+
case 4 /* SOL_INSTRUCTION */:
|
|
32198
|
+
const solInstruction = dataBinding.data?.solInstruction;
|
|
32199
|
+
if (solInstruction?.parsed == null && solInstruction?.rawParsed) {
|
|
32200
|
+
solInstruction.parsed = getParsedData(solInstruction.rawParsed);
|
|
32201
|
+
}
|
|
32202
|
+
break;
|
|
32176
32203
|
case 20 /* FUEL_TRANSACTION */:
|
|
32177
32204
|
if (compareSemver(this.sdkVersion, FUEL_PROTO_UPDATE_VERSION) < 0) {
|
|
32178
32205
|
dataBinding.handlerType = 13 /* FUEL_CALL */;
|