@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.
@@ -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
- return Promise.all(this.plugins.map((plugin) => plugin.configure(config)));
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-LCS6SRJY.js.map
23993
+ //# sourceMappingURL=chunk-AQYRWO7H.js.map