@sentio/runtime 2.1.6-rc.1 → 2.2.0-rc.2

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
3
  "license": "Apache-2.0",
4
- "version": "2.1.6-rc.1",
4
+ "version": "2.2.0-rc.2",
5
5
  "scripts": {
6
6
  "compile": "tsc",
7
7
  "build": "yarn compile",
@@ -13,7 +13,7 @@
13
13
  "start_js": "ts-node-esm --files ./lib/processor-runner.js $PWD/../../debug/dist/lib.js"
14
14
  },
15
15
  "dependencies": {
16
- "@sentio/protos": "^2.1.6-rc.1",
16
+ "@sentio/protos": "^2.2.0-rc.2",
17
17
  "command-line-args": "^5.2.1",
18
18
  "command-line-usage": "^6.1.3",
19
19
  "fs-extra": "^11.0.0",
@@ -45,5 +45,5 @@
45
45
  "!{lib,src}/tests",
46
46
  "!**/*.test.{js,ts}"
47
47
  ],
48
- "gitHead": "709dbce5ea3121f8fe535c04cb9c1b9d1864beee"
48
+ "gitHead": "cf68b7922bd5c4fd0f5ae53badec1a3b65011026"
49
49
  }
@@ -44,7 +44,22 @@ export class FullProcessorServiceImpl implements ProcessorServiceImplementation
44
44
  sdkMinorVersion: number
45
45
 
46
46
  async getConfig(request: ProcessConfigRequest, context: CallContext) {
47
- return await this.instance.getConfig(request, context)
47
+ const config = await this.instance.getConfig(request, context)
48
+ if (config.contractConfigs) {
49
+ for (const contract of config.contractConfigs) {
50
+ // @ts-ignore old fields
51
+ if (contract.aptosCallConfigs) {
52
+ // @ts-ignore old fields
53
+ contract.moveCallConfigs = contract.aptosCallConfigs
54
+ }
55
+ // @ts-ignore old fields
56
+ if (contract.aptosEventConfigs) {
57
+ // @ts-ignore old fields
58
+ contract.moveEventConfigs = contract.aptosEventConfigs
59
+ }
60
+ }
61
+ }
62
+ return config
48
63
  }
49
64
 
50
65
  async start(request: StartRequest, context: CallContext) {