@sentio/runtime 2.55.0 → 2.55.1-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
- "version": "2.55.0",
3
+ "version": "2.55.1-rc.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -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
@@ -1194,6 +1194,7 @@ export interface Data_FuelTransaction {
1194
1194
  timestamp: Date | undefined;
1195
1195
  }
1196
1196
 
1197
+ /** @deprecated */
1197
1198
  export interface Data_FuelCall {
1198
1199
  transaction: { [key: string]: any } | undefined;
1199
1200
  timestamp: Date | undefined;