*Update API interface to add the identity and ssl manager
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
c139eb3165
commit
c207452c65
|
@ -7,13 +7,15 @@ import * as fs from "fs";
|
|||
import path from "path";
|
||||
import type { Logger } from "pino";
|
||||
|
||||
import { getSeed } from "../lib/seed.js";
|
||||
import { getHDKey, getSeed } from "../lib/seed.js";
|
||||
import pluginRpc from "./plugins/rpc";
|
||||
import pluginCore from "./plugins/core";
|
||||
import type Config from "@lumeweb/cfg";
|
||||
import EventEmitter2 from "eventemitter2";
|
||||
import log from "../log.js";
|
||||
import { get as getSwarm } from "./swarm.js";
|
||||
import { get as getSSl } from "./ssl.js";
|
||||
import type { HDKey } from "micro-ed25519-hdkey";
|
||||
|
||||
let pluginAPIManager: PluginAPIManager;
|
||||
let pluginAPI: PluginAPI;
|
||||
|
@ -72,6 +74,14 @@ class PluginAPI extends EventEmitter2 {
|
|||
return getSeed();
|
||||
}
|
||||
|
||||
get identity(): HDKey {
|
||||
return getHDKey();
|
||||
}
|
||||
|
||||
get ssl() {
|
||||
return getSSl();
|
||||
}
|
||||
|
||||
public loadPlugin(
|
||||
moduleName: string
|
||||
): (moduleName: string) => Promise<Plugin> {
|
||||
|
|
Loading…
Reference in New Issue