@sentio/runtime 2.59.5-rc.1 → 2.60.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/{chunk-L7MQIWIO.js → chunk-7JPTCCHQ.js} +32 -2
- package/lib/{chunk-L7MQIWIO.js.map → chunk-7JPTCCHQ.js.map} +1 -1
- package/lib/{chunk-LCS6SRJY.js → chunk-AQYRWO7H.js} +13 -4
- package/lib/chunk-AQYRWO7H.js.map +1 -0
- package/lib/{chunk-U5UZYRQ4.js → chunk-RJMWLF3Q.js} +2 -2
- package/lib/index.d.ts +22 -4
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/processor-runner.js +3 -3
- package/lib/service-worker.js +3 -3
- package/package.json +1 -1
- package/src/db-context.ts +43 -1
- package/src/gen/processor/protos/processor.ts +506 -0
- package/src/gen/service/common/protos/common.ts +195 -0
- package/src/plugin.ts +14 -3
- package/src/service-v2.ts +207 -0
- package/lib/chunk-LCS6SRJY.js.map +0 -1
- /package/lib/{chunk-U5UZYRQ4.js.map → chunk-RJMWLF3Q.js.map} +0 -0
@@ -10839,7 +10839,7 @@ import { AsyncLocalStorage } from "node:async_hooks";
|
|
10839
10839
|
var Plugin = class {
|
10840
10840
|
name;
|
10841
10841
|
supportedHandlers = [];
|
10842
|
-
async configure(config) {
|
10842
|
+
async configure(config, forChainId) {
|
10843
10843
|
}
|
10844
10844
|
async start(start) {
|
10845
10845
|
}
|
@@ -10879,6 +10879,12 @@ var Plugin = class {
|
|
10879
10879
|
*/
|
10880
10880
|
shutdownServer() {
|
10881
10881
|
}
|
10882
|
+
/**
|
10883
|
+
* Initialize the plugin, for service v2.
|
10884
|
+
* @param config
|
10885
|
+
*/
|
10886
|
+
async init(config) {
|
10887
|
+
}
|
10882
10888
|
};
|
10883
10889
|
var PluginManager = class _PluginManager {
|
10884
10890
|
static INSTANCE = new _PluginManager();
|
@@ -10898,8 +10904,8 @@ var PluginManager = class _PluginManager {
|
|
10898
10904
|
this.typesToPlugin.set(handlerType, plugin);
|
10899
10905
|
}
|
10900
10906
|
}
|
10901
|
-
configure(config) {
|
10902
|
-
|
10907
|
+
async configure(config, forChainId) {
|
10908
|
+
await Promise.all(this.plugins.map((plugin) => plugin.configure(config, forChainId)));
|
10903
10909
|
}
|
10904
10910
|
start(start, actionServerPort) {
|
10905
10911
|
return Promise.all(this.plugins.map((plugin) => plugin.start(start)));
|
@@ -10941,6 +10947,9 @@ var PluginManager = class _PluginManager {
|
|
10941
10947
|
return plugin.preprocessBinding(request, preprocessStore);
|
10942
10948
|
});
|
10943
10949
|
}
|
10950
|
+
async init(resp) {
|
10951
|
+
return Promise.all(this.plugins.map((plugin) => plugin.init(resp)));
|
10952
|
+
}
|
10944
10953
|
};
|
10945
10954
|
import("node:process").then((p) => p.stdout.write(""));
|
10946
10955
|
|
@@ -23981,4 +23990,4 @@ long/index.js:
|
|
23981
23990
|
* SPDX-License-Identifier: Apache-2.0
|
23982
23991
|
*)
|
23983
23992
|
*/
|
23984
|
-
//# sourceMappingURL=chunk-
|
23993
|
+
//# sourceMappingURL=chunk-AQYRWO7H.js.map
|