-
-
Notifications
You must be signed in to change notification settings - Fork 454
Expand file tree
/
Copy pathinterface.ts
More file actions
43 lines (41 loc) · 1.29 KB
/
interface.ts
File metadata and controls
43 lines (41 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import {
bellatrix,
Root,
Slot,
BLSPubkey,
deneb,
Wei,
SignedBeaconBlockOrContents,
ExecutionPayloadHeader,
SignedBlindedBeaconBlock,
electra,
} from "@lodestar/types";
import {ForkExecution} from "@lodestar/params";
export interface IExecutionBuilder {
/**
* This param is only to for testing scripts using merge-mock which need
* an advance fcU to be issued to the engine port before payload header
* fetch
*/
readonly issueLocalFcUWithFeeRecipient?: string;
status: boolean;
/** Window to inspect missed slots for enabling/disabling builder circuit breaker */
faultInspectionWindow: number;
/** Number of missed slots allowed in the faultInspectionWindow for builder circuit*/
allowedFaults: number;
updateStatus(shouldEnable: boolean): void;
checkStatus(): Promise<void>;
registerValidator(registrations: bellatrix.SignedValidatorRegistrationV1[]): Promise<void>;
getHeader(
fork: ForkExecution,
slot: Slot,
parentHash: Root,
proposerPubKey: BLSPubkey
): Promise<{
header: ExecutionPayloadHeader;
executionPayloadValue: Wei;
blobKzgCommitments?: deneb.BlobKzgCommitments;
executionRequests?: electra.ExecutionRequests;
}>;
submitBlindedBlock(signedBlock: SignedBlindedBeaconBlock): Promise<SignedBeaconBlockOrContents>;
}