Skip to content

Commit

Permalink
Remove unnecessary I prefix interfaces (#5145)
Browse files Browse the repository at this point in the history
* Remove unused interface

* Run lodestar_remove_interface_prefix.sh script

* Manuel rework after running script

- some values were incorrectly updated InboundRateLimitQuota --> nboundRateLimitQuota
- few I-prefixed types such as IChainConfig were missed
- updated names of types in comments as this was not done by script

* Fix readme

* Fix few remaining issues/missed references

---------

Co-authored-by: nflaig <nflaig@protonmail.com>
  • Loading branch information
dapplion and nflaig authored Feb 20, 2023
1 parent f4057cf commit 5396d1f
Show file tree
Hide file tree
Showing 442 changed files with 1,807 additions and 1,830 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/beacon/client/beacon.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api, ReqTypes, routesData, getReqSerializers, getReturnTypes} from "../routes/beacon/index.js";
import {IHttpClient, generateGenericJsonClient} from "../../utils/client/index.js";
import {ReturnTypes} from "../../utils/types.js";

/**
* REST HTTP client for beacon routes
*/
export function getClient(config: IChainForkConfig, httpClient: IHttpClient): Api {
export function getClient(config: ChainForkConfig, httpClient: IHttpClient): Api {
const reqSerializers = getReqSerializers(config);
const returnTypes = getReturnTypes();
// All routes return JSON, use a client auto-generator
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/client/config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {generateGenericJsonClient, IHttpClient} from "../../utils/client/index.js";
import {ReturnTypes} from "../../utils/types.js";
import {Api, getReqSerializers, getReturnTypes, ReqTypes, routesData} from "../routes/config.js";

/**
* REST HTTP client for config routes
*/
export function getClient(config: IChainForkConfig, httpClient: IHttpClient): Api {
export function getClient(config: ChainForkConfig, httpClient: IHttpClient): Api {
const reqSerializers = getReqSerializers();
const returnTypes = getReturnTypes();
// All routes return JSON, use a client auto-generator
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/client/debug.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {ApiClientResponse} from "../../interfaces.js";
import {HttpStatusCode} from "../../utils/client/httpStatusCode.js";
import {generateGenericJsonClient, getFetchOptsSerializers, IHttpClient} from "../../utils/client/index.js";
Expand All @@ -12,7 +12,7 @@ const GET_STATE_TIMEOUT_MS = 5 * 60 * 1000;
/**
* REST HTTP client for debug routes
*/
export function getClient(_config: IChainForkConfig, httpClient: IHttpClient): Api {
export function getClient(_config: ChainForkConfig, httpClient: IHttpClient): Api {
const reqSerializers = getReqSerializers();
const returnTypes = getReturnTypes();
// Some routes return JSON, use a client auto-generator
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/client/events.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api, BeaconEvent, routesData, getEventSerdes} from "../routes/events.js";
import {stringifyQuery} from "../../utils/client/format.js";
import {getEventSource} from "../../utils/client/eventSource.js";
Expand All @@ -7,7 +7,7 @@ import {HttpStatusCode} from "../../utils/client/httpStatusCode.js";
/**
* REST HTTP client for events routes
*/
export function getClient(config: IChainForkConfig, baseUrl: string): Api {
export function getClient(config: ChainForkConfig, baseUrl: string): Api {
const eventSerdes = getEventSerdes(config);

return {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/client/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api} from "../routes/index.js";
import {IHttpClient, HttpClient, HttpClientOptions, HttpClientModules} from "../../utils/client/index.js";

Expand All @@ -13,7 +13,7 @@ import * as proof from "./proof.js";
import * as validator from "./validator.js";

type ClientModules = HttpClientModules & {
config: IChainForkConfig;
config: ChainForkConfig;
httpClient?: IHttpClient;
};

Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/client/lightclient.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api, ReqTypes, routesData, getReqSerializers, getReturnTypes} from "../routes/lightclient.js";
import {IHttpClient, generateGenericJsonClient} from "../../utils/client/index.js";
import {ReturnTypes} from "../../utils/types.js";

/**
* REST HTTP client for lightclient routes
*/
export function getClient(_config: IChainForkConfig, httpClient: IHttpClient): Api {
export function getClient(_config: ChainForkConfig, httpClient: IHttpClient): Api {
const reqSerializers = getReqSerializers();
const returnTypes = getReturnTypes();
// All routes return JSON, use a client auto-generator
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/client/lodestar.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api, ReqTypes, routesData, getReqSerializers, getReturnTypes} from "../routes/lodestar.js";
import {IHttpClient, generateGenericJsonClient} from "../../utils/client/index.js";
import {ReturnTypes} from "../../utils/types.js";

/**
* REST HTTP client for lodestar routes
*/
export function getClient(_config: IChainForkConfig, httpClient: IHttpClient): Api {
export function getClient(_config: ChainForkConfig, httpClient: IHttpClient): Api {
const reqSerializers = getReqSerializers();
const returnTypes = getReturnTypes();
// All routes return JSON, use a client auto-generator
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/client/node.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {generateGenericJsonClient, IHttpClient} from "../../utils/client/index.js";
import {Api, getReqSerializers, getReturnTypes, ReqTypes, routesData} from "../routes/node.js";

/**
* REST HTTP client for beacon routes
*/
export function getClient(_config: IChainForkConfig, httpClient: IHttpClient): Api {
export function getClient(_config: ChainForkConfig, httpClient: IHttpClient): Api {
const reqSerializers = getReqSerializers();
const returnTypes = getReturnTypes();
// All routes return JSON, use a client auto-generator
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/client/proof.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {CompactMultiProof, ProofType} from "@chainsafe/persistent-merkle-tree";
import {Api, ReqTypes, routesData, getReqSerializers} from "../routes/proof.js";
import {IHttpClient, getFetchOptsSerializers, HttpError} from "../../utils/client/index.js";
Expand All @@ -7,7 +7,7 @@ import {HttpStatusCode} from "../../utils/client/httpStatusCode.js";
/**
* REST HTTP client for lightclient routes
*/
export function getClient(_config: IChainForkConfig, httpClient: IHttpClient): Api {
export function getClient(_config: ChainForkConfig, httpClient: IHttpClient): Api {
const reqSerializers = getReqSerializers();

// For `getStateProof()` generate request serializer
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/client/validator.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api, ReqTypes, routesData, getReqSerializers, getReturnTypes} from "../routes/validator.js";
import {IHttpClient, generateGenericJsonClient} from "../../utils/client/index.js";
import {ReturnTypes} from "../../utils/types.js";

/**
* REST HTTP client for validator routes
*/
export function getClient(_config: IChainForkConfig, httpClient: IHttpClient): Api {
export function getClient(_config: ChainForkConfig, httpClient: IHttpClient): Api {
const reqSerializers = getReqSerializers();
const returnTypes = getReturnTypes();
// All routes return JSON, use a client auto-generator
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/routes/beacon/block.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ContainerType} from "@chainsafe/ssz";
import {ForkName} from "@lodestar/params";
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {phase0, allForks, Slot, Root, ssz, RootHex, deneb} from "@lodestar/types";

import {
Expand Down Expand Up @@ -232,7 +232,7 @@ export type ReqTypes = {
getBlobsSidecar: BlockIdOnlyReq;
};

export function getReqSerializers(config: IChainForkConfig): ReqSerializers<Api, ReqTypes> {
export function getReqSerializers(config: ChainForkConfig): ReqSerializers<Api, ReqTypes> {
const blockIdOnlyReq: ReqSerializer<Api["getBlock"], BlockIdOnlyReq> = {
writeReq: (block_id) => ({params: {block_id: String(block_id)}}),
parseReq: ({params}) => [params.block_id],
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/routes/beacon/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {phase0, ssz} from "@lodestar/types";
import {ApiClientResponse} from "../../../interfaces.js";
import {HttpStatusCode} from "../../../utils/client/httpStatusCode.js";
Expand Down Expand Up @@ -49,7 +49,7 @@ export type ReqTypes = {
};

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function getReqSerializers(config: IChainForkConfig) {
export function getReqSerializers(config: ChainForkConfig) {
return {
getGenesis: reqEmpty,
...block.getReqSerializers(config),
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/routes/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {BeaconPreset} from "@lodestar/params";
import {IChainConfig} from "@lodestar/config";
import {ChainConfig} from "@lodestar/config";
import {Bytes32, UintNum64, phase0, ssz} from "@lodestar/types";
import {mapValues} from "@lodestar/utils";
import {ByteVectorType, ContainerType} from "@chainsafe/ssz";
Expand All @@ -23,7 +23,7 @@ export type DepositContract = {
address: Bytes32;
};

export type Spec = BeaconPreset & IChainConfig;
export type Spec = BeaconPreset & ChainConfig;

export type Api = {
/**
Expand Down
6 changes: 3 additions & 3 deletions packages/api/src/beacon/routes/events.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Epoch, phase0, capella, Slot, ssz, StringType, RootHex, altair, UintNum64, allForks} from "@lodestar/types";
import {ContainerType} from "@chainsafe/ssz";
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";

import {RouteDef, TypeJson} from "../../utils/index.js";
import {HttpStatusCode} from "../../utils/client/httpStatusCode.js";
Expand Down Expand Up @@ -124,7 +124,7 @@ export type ReqTypes = {
// It doesn't make sense to define a getReqSerializers() here given the exotic argument of eventstream()
// The request is very simple: (topics) => {query: {topics}}, and the test will ensure compatibility server - client

export function getTypeByEvent(config: IChainForkConfig): {[K in EventType]: TypeJson<EventData[K]>} {
export function getTypeByEvent(config: ChainForkConfig): {[K in EventType]: TypeJson<EventData[K]>} {
const stringType = new StringType();
const getLightClientTypeFromHeader = (data: allForks.LightClientHeader): allForks.AllForksLightClientSSZTypes => {
return config.getLightClientForkTypes(data.beacon.slot);
Expand Down Expand Up @@ -220,7 +220,7 @@ export function getTypeByEvent(config: IChainForkConfig): {[K in EventType]: Typ
}

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function getEventSerdes(config: IChainForkConfig) {
export function getEventSerdes(config: ChainForkConfig) {
const typeByEvent = getTypeByEvent(config);

return {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/server/beacon.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api, ReqTypes, routesData, getReturnTypes, getReqSerializers} from "../routes/beacon/index.js";
import {ServerRoutes, getGenericJsonServer} from "../../utils/server/index.js";
import {ServerApi} from "../../interfaces.js";

export function getRoutes(config: IChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
export function getRoutes(config: ChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
// All routes return JSON, use a server auto-generator
return getGenericJsonServer<ServerApi<Api>, ReqTypes>({routesData, getReturnTypes, getReqSerializers}, config, api);
}
4 changes: 2 additions & 2 deletions packages/api/src/beacon/server/config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api, ReqTypes, routesData, getReturnTypes, getReqSerializers} from "../routes/config.js";
import {ServerRoutes, getGenericJsonServer} from "../../utils/server/index.js";
import {ServerApi} from "../../interfaces.js";

export function getRoutes(config: IChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
export function getRoutes(config: ChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
// All routes return JSON, use a server auto-generator
return getGenericJsonServer<ServerApi<Api>, ReqTypes>({routesData, getReturnTypes, getReqSerializers}, config, api);
}
4 changes: 2 additions & 2 deletions packages/api/src/beacon/server/debug.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api, ReqTypes, routesData, getReturnTypes, getReqSerializers} from "../routes/debug.js";
import {ServerRoutes, getGenericJsonServer} from "../../utils/server/index.js";
import {ServerApi} from "../../interfaces.js";

export function getRoutes(config: IChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
export function getRoutes(config: ChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
const reqSerializers = getReqSerializers();
const returnTypes = getReturnTypes();

Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/server/events.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api, ReqTypes, routesData, getEventSerdes} from "../routes/events.js";
import {ServerRoutes} from "../../utils/server/index.js";
import {ServerApi} from "../../interfaces.js";

export function getRoutes(config: IChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
export function getRoutes(config: ChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
const eventSerdes = getEventSerdes(config);

return {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/server/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api} from "../routes/index.js";
import {ServerInstance, ServerRoute, RouteConfig, registerRoute} from "../../utils/server/index.js";

Expand All @@ -18,7 +18,7 @@ export {RouteConfig};

export function registerRoutes(
server: ServerInstance,
config: IChainForkConfig,
config: ChainForkConfig,
api: {[K in keyof Api]: ServerApi<Api[K]>},
enabledNamespaces: (keyof Api)[]
): void {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/server/lightclient.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api, ReqTypes, routesData, getReturnTypes, getReqSerializers} from "../routes/lightclient.js";
import {ServerRoutes, getGenericJsonServer} from "../../utils/server/index.js";
import {ServerApi} from "../../interfaces.js";

export function getRoutes(config: IChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
export function getRoutes(config: ChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
// All routes return JSON, use a server auto-generator
return getGenericJsonServer<ServerApi<Api>, ReqTypes>({routesData, getReturnTypes, getReqSerializers}, config, api);
}
4 changes: 2 additions & 2 deletions packages/api/src/beacon/server/lodestar.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api, ReqTypes, routesData, getReturnTypes, getReqSerializers} from "../routes/lodestar.js";
import {ServerRoutes, getGenericJsonServer} from "../../utils/server/index.js";
import {ServerApi} from "../../interfaces.js";

export function getRoutes(config: IChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
export function getRoutes(config: ChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
// All routes return JSON, use a server auto-generator
return getGenericJsonServer<ServerApi<Api>, ReqTypes>({routesData, getReturnTypes, getReqSerializers}, config, api);
}
4 changes: 2 additions & 2 deletions packages/api/src/beacon/server/node.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api, ReqTypes, routesData, getReturnTypes, getReqSerializers} from "../routes/node.js";
import {ServerRoutes, getGenericJsonServer} from "../../utils/server/index.js";
import {HttpStatusCode} from "../../utils/client/httpStatusCode.js";
import {ServerApi} from "../../interfaces.js";

export function getRoutes(config: IChainForkConfig, api: ServerApi<Api>): ServerRoutes<ServerApi<Api>, ReqTypes> {
export function getRoutes(config: ChainForkConfig, api: ServerApi<Api>): ServerRoutes<ServerApi<Api>, ReqTypes> {
// All routes return JSON, use a server auto-generator
const serverRoutes = getGenericJsonServer<ServerApi<Api>, ReqTypes>(
{routesData, getReturnTypes, getReqSerializers},
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/server/proof.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {CompactMultiProof} from "@chainsafe/persistent-merkle-tree";
import {Api, ReqTypes, routesData, getReturnTypes, getReqSerializers} from "../routes/proof.js";
import {ServerRoutes, getGenericJsonServer} from "../../utils/server/index.js";
import {ServerApi} from "../../interfaces.js";

export function getRoutes(config: IChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
export function getRoutes(config: ChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
const reqSerializers = getReqSerializers();
const serverRoutes = getGenericJsonServer<ServerApi<Api>, ReqTypes>(
{routesData, getReturnTypes, getReqSerializers},
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/beacon/server/validator.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {Api, ReqTypes, routesData, getReturnTypes, getReqSerializers} from "../routes/validator.js";
import {ServerRoutes, getGenericJsonServer} from "../../utils/server/index.js";
import {ServerApi} from "../../interfaces.js";

export function getRoutes(config: IChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
export function getRoutes(config: ChainForkConfig, api: ServerApi<Api>): ServerRoutes<Api, ReqTypes> {
// All routes return JSON, use a server auto-generator
return getGenericJsonServer<ServerApi<Api>, ReqTypes>({routesData, getReturnTypes, getReqSerializers}, config, api);
}
4 changes: 2 additions & 2 deletions packages/api/src/builder/client.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {IHttpClient, generateGenericJsonClient} from "../utils/client/index.js";
import {ReturnTypes} from "../utils/types.js";
import {Api, ReqTypes, routesData, getReqSerializers, getReturnTypes} from "./routes.js";

/**
* REST HTTP client for builder routes
*/
export function getClient(config: IChainForkConfig, httpClient: IHttpClient): Api {
export function getClient(config: ChainForkConfig, httpClient: IHttpClient): Api {
const reqSerializers = getReqSerializers(config);
const returnTypes = getReturnTypes();
// All routes return JSON, use a client auto-generator
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/builder/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";
import {HttpClient, HttpClientModules, HttpClientOptions, IHttpClient} from "../utils/client/httpClient.js";
import {Api} from "./routes.js";
import * as builder from "./client.js";
Expand All @@ -10,7 +10,7 @@ export {Api};
// Note: build API does not have namespaces as routes are declared at the "root" namespace

type ClientModules = HttpClientModules & {
config: IChainForkConfig;
config: ChainForkConfig;
httpClient?: IHttpClient;
};

Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/builder/routes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {ssz, allForks, bellatrix, Slot, Root, BLSPubkey} from "@lodestar/types";
import {fromHexString, toHexString} from "@chainsafe/ssz";
import {ForkName, isForkExecution, isForkBlobs} from "@lodestar/params";
import {IChainForkConfig} from "@lodestar/config";
import {ChainForkConfig} from "@lodestar/config";

import {
ReturnTypes,
Expand Down Expand Up @@ -72,7 +72,7 @@ export type ReqTypes = {
submitBlindedBlockV2: {body: unknown};
};

export function getReqSerializers(config: IChainForkConfig): ReqSerializers<Api, ReqTypes> {
export function getReqSerializers(config: ChainForkConfig): ReqSerializers<Api, ReqTypes> {
return {
status: reqEmpty,
registerValidator: reqOnlyBody(ArrayOf(ssz.bellatrix.SignedValidatorRegistrationV1), Schema.ObjectArray),
Expand Down
Loading

0 comments on commit 5396d1f

Please sign in to comment.