Socket
Socket
Sign inDemoInstall

@chainsafe/lodestar-api

Package Overview
Dependencies
128
Maintainers
3
Versions
819
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.39.0-dev.ceba4a9d21 to 0.39.0-dev.e5b74d5ae2

lib/beacon/client/beacon.d.ts

5

lib/index.d.ts

@@ -1,4 +0,3 @@

export * as routes from "./routes/index.js";
export * from "./interface.js";
export { getClient, HttpClient, HttpClientOptions, HttpError } from "./client/index.js";
export * from "./beacon/index.js";
export { HttpClient, IHttpClient, HttpClientOptions, HttpClientModules, HttpError } from "./utils/client/index.js";
//# sourceMappingURL=index.d.ts.map

8

lib/index.js

@@ -1,5 +0,5 @@

export * as routes from "./routes/index.js";
export * from "./interface.js";
export { getClient, HttpClient, HttpError } from "./client/index.js";
// Node: Don't export server here so it's not bundled to all consumers
// Re-exporting beacon only for backwards compatibility
export * from "./beacon/index.js";
export { HttpClient, HttpError } from "./utils/client/index.js";
// NOTE: Don't export server here so it's not bundled to all consumers
//# sourceMappingURL=index.js.map
import { IChainForkConfig } from "@chainsafe/lodestar-config";
import { IHttpClient } from "../client/utils/index.js";
import { IHttpClient } from "../utils/client/index.js";
import { Api } from "./routes.js";
export declare function getClient(_config: IChainForkConfig, httpClient: IHttpClient): Api;
//# sourceMappingURL=client.d.ts.map

@@ -1,2 +0,2 @@

import { generateGenericJsonClient } from "../client/utils/index.js";
import { generateGenericJsonClient } from "../utils/client/index.js";
import { routesData, getReqSerializers, getReturnTypes } from "./routes.js";

@@ -3,0 +3,0 @@ export function getClient(_config, httpClient) {

import { IChainForkConfig } from "@chainsafe/lodestar-config";
import { HttpClientOptions } from "../client/index.js";
import { IHttpClient } from "../client/utils/index.js";
import { IHttpClient, HttpClientModules, HttpClientOptions } from "../utils/client/index.js";
import { Api } from "./routes.js";
export { ImportStatus, DeletionStatus, KeystoreStr, SlashingProtectionData, PubkeyHex, Api } from "./routes.js";
declare type ClientModules = HttpClientModules & {
config: IChainForkConfig;
httpClient?: IHttpClient;
};
/**
* REST HTTP client for all keymanager routes
*/
export declare function getClient(config: IChainForkConfig, opts: HttpClientOptions, httpClient?: IHttpClient): Api;
export declare function getClient(opts: HttpClientOptions, modules: ClientModules): Api;
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,4 @@

import { HttpClient } from "../client/index.js";
import { HttpClient } from "../utils/client/index.js";
import * as keymanager from "./client.js";
// NOTE: Don't export server here so it's not bundled to all consumers
export { ImportStatus, DeletionStatus } from "./routes.js";

@@ -7,7 +8,8 @@ /**

*/
export function getClient(config, opts, httpClient) {
if (!httpClient)
httpClient = new HttpClient(opts);
export function getClient(opts, modules) {
var _a;
const { config } = modules;
const httpClient = (_a = modules.httpClient) !== null && _a !== void 0 ? _a : new HttpClient(opts, modules);
return keymanager.getClient(config, httpClient);
}
//# sourceMappingURL=index.js.map

@@ -14,3 +14,3 @@ {

},
"version": "0.39.0-dev.ceba4a9d21",
"version": "0.39.0-dev.e5b74d5ae2",
"type": "module",

@@ -21,2 +21,14 @@ "exports": {

},
"./beacon": {
"import": "./lib/beacon/index.js"
},
"./beacon/server": {
"import": "./lib/beacon/server/index.js"
},
"./builder": {
"import": "./lib/builder/index.js"
},
"./builder/server": {
"import": "./lib/builder/server/index.js"
},
"./keymanager": {

@@ -26,6 +38,3 @@ "import": "./lib/keymanager/index.js"

"./keymanager/server": {
"import": "./lib/keymanager/server.js"
},
"./server": {
"import": "./lib/server/index.js"
"import": "./lib/keymanager/server/index.js"
}

@@ -66,6 +75,6 @@ },

"dependencies": {
"@chainsafe/lodestar-config": "0.39.0-dev.ceba4a9d21",
"@chainsafe/lodestar-params": "0.39.0-dev.ceba4a9d21",
"@chainsafe/lodestar-types": "0.39.0-dev.ceba4a9d21",
"@chainsafe/lodestar-utils": "0.39.0-dev.ceba4a9d21",
"@chainsafe/lodestar-config": "0.39.0-dev.e5b74d5ae2",
"@chainsafe/lodestar-params": "0.39.0-dev.e5b74d5ae2",
"@chainsafe/lodestar-types": "0.39.0-dev.e5b74d5ae2",
"@chainsafe/lodestar-utils": "0.39.0-dev.e5b74d5ae2",
"@chainsafe/persistent-merkle-tree": "^0.4.2",

@@ -92,3 +101,3 @@ "@chainsafe/ssz": "^0.9.2",

],
"gitHead": "a78189af97834336a8f27520373ae6d09e5a955a"
"gitHead": "79a15ca1af28aabe8073df544a96abe7af619692"
}

@@ -41,3 +41,3 @@ # Lodestar Eth Consensus API

- Follow the [installation guide](https://chainsafe.github.io/lodestar/installation) to install Lodestar.
- Follow the [installation guide](https://chainsafe.github.io/lodestar/) to install Lodestar.
- Quickly try out the whole stack by [starting a local testnet](https://chainsafe.github.io/lodestar/usage/local).

@@ -44,0 +44,0 @@ - View the [typedoc code docs](https://chainsafe.github.io/lodestar/packages).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc