@sentio/runtime 2.40.0-rc.15 → 2.40.0-rc.16
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.
@@ -78589,6 +78589,7 @@ var ProcessorServiceImpl = class {
|
|
78589
78589
|
}
|
78590
78590
|
const subject = new import_rxjs.Subject();
|
78591
78591
|
this.handleRequests(requests, subject).then(() => {
|
78592
|
+
this.preparedData = { ethCallResults: {} };
|
78592
78593
|
subject.complete();
|
78593
78594
|
}).catch((e) => {
|
78594
78595
|
console.error(e);
|
@@ -78606,7 +78607,12 @@ var ProcessorServiceImpl = class {
|
|
78606
78607
|
const dbContext = contexts.new(request.processId, subject);
|
78607
78608
|
const start = Date.now();
|
78608
78609
|
this.preprocessBindings(bindings, dbContext).then((preparedData) => {
|
78609
|
-
this.preparedData =
|
78610
|
+
this.preparedData = {
|
78611
|
+
ethCallResults: {
|
78612
|
+
...this.preparedData?.ethCallResults,
|
78613
|
+
...preparedData.ethCallResults
|
78614
|
+
}
|
78615
|
+
};
|
78610
78616
|
subject.next({
|
78611
78617
|
processId: request.processId
|
78612
78618
|
});
|
package/lib/index.js
CHANGED
package/lib/processor-runner.js
CHANGED
package/package.json
CHANGED
package/src/service.ts
CHANGED
@@ -280,6 +280,7 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
280
280
|
const subject = new Subject<DeepPartial<ProcessStreamResponse>>()
|
281
281
|
this.handleRequests(requests, subject)
|
282
282
|
.then(() => {
|
283
|
+
this.preparedData = { ethCallResults: {} }
|
283
284
|
subject.complete()
|
284
285
|
})
|
285
286
|
.catch((e) => {
|
@@ -305,7 +306,12 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
305
306
|
this.preprocessBindings(bindings, dbContext)
|
306
307
|
.then((preparedData) => {
|
307
308
|
// TODO maybe not proper to pass data in this way
|
308
|
-
this.preparedData =
|
309
|
+
this.preparedData = {
|
310
|
+
ethCallResults: {
|
311
|
+
...this.preparedData?.ethCallResults,
|
312
|
+
...preparedData.ethCallResults
|
313
|
+
}
|
314
|
+
}
|
309
315
|
subject.next({
|
310
316
|
processId: request.processId
|
311
317
|
})
|