@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/lib/full-service.d.ts +2 -2
- package/lib/full-service.js +16 -1
- package/lib/full-service.js.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +73 -46
- package/lib/gen/processor/protos/processor.js +178 -65
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/package.json +3 -3
- package/src/full-service.ts +16 -1
- package/src/gen/processor/protos/processor.ts +236 -101
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sentio/runtime",
|
3
3
|
"license": "Apache-2.0",
|
4
|
-
"version": "2.
|
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.
|
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": "
|
48
|
+
"gitHead": "cf68b7922bd5c4fd0f5ae53badec1a3b65011026"
|
49
49
|
}
|
package/src/full-service.ts
CHANGED
@@ -44,7 +44,22 @@ export class FullProcessorServiceImpl implements ProcessorServiceImplementation
|
|
44
44
|
sdkMinorVersion: number
|
45
45
|
|
46
46
|
async getConfig(request: ProcessConfigRequest, context: CallContext) {
|
47
|
-
|
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) {
|