@sentio/runtime 2.55.0 → 2.55.1
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-XF63QS23.js → chunk-BI5UWCC6.js} +1 -1
- package/lib/{chunk-XF63QS23.js.map → chunk-BI5UWCC6.js.map} +1 -1
- package/lib/index.js +1 -1
- package/lib/processor-runner.js +22 -22
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
- package/src/full-service.ts +9 -0
- package/src/gen/processor/protos/processor.ts +1 -0
package/package.json
CHANGED
package/src/full-service.ts
CHANGED
@@ -25,6 +25,7 @@ import { LRUCache } from 'lru-cache'
|
|
25
25
|
const require = createRequire(import.meta.url)
|
26
26
|
|
27
27
|
const FUEL_PROTO_UPDATE_VERSION = parseSemver('2.54.0-rc.7')
|
28
|
+
const FUEL_PROTO_NO_FUEL_TRANSACTION_AS_CALL_VERSION = parseSemver('2.55.0-rc.1')
|
28
29
|
|
29
30
|
const MOVE_USE_RAW_VERSION = parseSemver('2.55.0-rc.1')
|
30
31
|
// new driver (after MOVE_USE_RAW_VERSION) will sent the same event multiple times when fetch all true
|
@@ -64,6 +65,14 @@ export class FullProcessorServiceImpl implements ProcessorServiceImplementation
|
|
64
65
|
|
65
66
|
if (config.contractConfigs) {
|
66
67
|
for (const contract of config.contractConfigs) {
|
68
|
+
// for old fuel processor
|
69
|
+
if (
|
70
|
+
compareSemver(this.sdkVersion, FUEL_PROTO_NO_FUEL_TRANSACTION_AS_CALL_VERSION) < 0 &&
|
71
|
+
contract.fuelCallConfigs
|
72
|
+
) {
|
73
|
+
contract.fuelTransactionConfigs = contract.fuelCallConfigs
|
74
|
+
}
|
75
|
+
|
67
76
|
// @ts-ignore old fields
|
68
77
|
if (contract.aptosCallConfigs) {
|
69
78
|
// @ts-ignore old fields
|