Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 committed Jan 22, 2025
1 parent b29d470 commit 45e6f5d
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions packages/beacon-node/src/execution/engine/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,8 @@ export type EngineApiRpcParamTypes = {
engine_getBlobsV1: [DATA[]];
};

export type EngineGetPayloadMethod = keyof {
[K in keyof EngineApiRpcReturnTypes as K extends `engine_getPayloadV${number}`
? K
: never]: EngineApiRpcReturnTypes[K];
};

export type EngineNewPayloadMethod = keyof {
[K in keyof EngineApiRpcReturnTypes as K extends `engine_newPayloadV${number}`
? K
: never]: EngineApiRpcReturnTypes[K];
};
export type EngineGetPayloadMethod = keyof EngineApiRpcReturnTypes & `engine_getPayloadV${number}`;
export type EngineNewPayloadMethod = keyof EngineApiRpcReturnTypes & `engine_newPayloadV${number}`;

export type PayloadStatus = {
status: ExecutionPayloadStatus;
Expand Down

0 comments on commit 45e6f5d

Please sign in to comment.