@sentio/runtime 2.54.0-rc.5 → 2.54.0-rc.7
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-S3TCBETB.js +131 -0
- package/lib/{chunk-TFBOZ4CH.js.map → chunk-S3TCBETB.js.map} +1 -1
- package/lib/index.js +1 -1
- package/lib/processor-runner.js +30 -30
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
- package/src/full-service.ts +22 -5
- package/src/gen/processor/protos/processor.ts +385 -9
- package/src/gen/service/common/protos/common.ts +255 -10
- package/lib/chunk-TFBOZ4CH.js +0 -131
package/package.json
CHANGED
package/src/full-service.ts
CHANGED
@@ -1,19 +1,17 @@
|
|
1
1
|
import { CallContext } from 'nice-grpc'
|
2
2
|
import { createRequire } from 'module'
|
3
|
-
const require = createRequire(import.meta.url)
|
4
|
-
|
5
3
|
// Different than the simple one which
|
6
4
|
import {
|
7
5
|
DataBinding,
|
6
|
+
ExecutionConfig,
|
8
7
|
HandlerType,
|
9
8
|
PreprocessStreamRequest,
|
10
9
|
ProcessBindingsRequest,
|
11
|
-
ProcessStreamRequest,
|
12
10
|
ProcessConfigRequest,
|
13
11
|
ProcessorServiceImplementation,
|
14
|
-
StartRequest,
|
15
12
|
ProcessResult,
|
16
|
-
|
13
|
+
ProcessStreamRequest,
|
14
|
+
StartRequest
|
17
15
|
} from './gen/processor/protos/processor.js'
|
18
16
|
|
19
17
|
import { Empty } from '@sentio/protos'
|
@@ -22,6 +20,8 @@ import path from 'path'
|
|
22
20
|
import os from 'os'
|
23
21
|
import { GLOBAL_CONFIG } from './global-config.js'
|
24
22
|
|
23
|
+
const require = createRequire(import.meta.url)
|
24
|
+
|
25
25
|
function locatePackageJson(pkgId: string) {
|
26
26
|
const m = require.resolve(pkgId)
|
27
27
|
|
@@ -129,6 +129,23 @@ export class FullProcessorServiceImpl implements ProcessorServiceImplementation
|
|
129
129
|
return
|
130
130
|
}
|
131
131
|
switch (dataBinding.handlerType) {
|
132
|
+
case HandlerType.FUEL_TRANSACTION:
|
133
|
+
if (this.sdkMinorVersion < 55) {
|
134
|
+
dataBinding.handlerType = HandlerType.FUEL_CALL
|
135
|
+
if (dataBinding.data) {
|
136
|
+
dataBinding.data.fuelCall = dataBinding.data?.fuelTransaction
|
137
|
+
}
|
138
|
+
}
|
139
|
+
break
|
140
|
+
case HandlerType.FUEL_RECEIPT:
|
141
|
+
if (this.sdkMinorVersion < 55) {
|
142
|
+
dataBinding.handlerType = HandlerType.FUEL_CALL
|
143
|
+
if (dataBinding.data) {
|
144
|
+
dataBinding.data.fuelCall = dataBinding.data?.fuelLog
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
break
|
132
149
|
case HandlerType.APT_EVENT:
|
133
150
|
if (dataBinding.data?.aptEvent) {
|
134
151
|
if (dataBinding.data.aptEvent.rawTransaction && !dataBinding.data.aptEvent.transaction) {
|