-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathmod.rs
More file actions
39 lines (31 loc) · 1.76 KB
/
Copy pathmod.rs
File metadata and controls
39 lines (31 loc) · 1.76 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
pub mod builder_api;
pub mod data_api;
pub mod proposer_api;
pub const PATH_BUILDER_API: &str = "/relay/v1/builder";
pub const PATH_BUILDER_API_V2: &str = "/relay/v2/builder";
pub const PATH_GET_VALIDATORS: &str = "/validators";
pub const PATH_SUBMIT_BLOCK: &str = "/blocks";
pub const PATH_SUBMIT_HEADER: &str = "/headers";
pub const PATH_GET_TOP_BID: &str = "/top_bid";
pub const PATH_GET_INCLUSION_LIST: &str = "/inclusion_list/{slot}/{parent_hash}/{pub_key}";
pub const PATH_DATA_ADJUSTMENTS: &str = "/adjustments";
pub const PATH_MERGED_BLOCKS: &str = "/merged_blocks";
/// How long the client gives us to answer, from `HEADER_START_TIME_UNIX_MS`
pub const HEADER_TIMEOUT_MS: &str = "x-timeout-ms";
/// When the client started the request, unix millis
pub const HEADER_START_TIME_UNIX_MS: &str = "date-milliseconds";
pub const PATH_PROPOSER_API: &str = "/eth/v1/builder";
pub const PATH_PROPOSER_API_V2: &str = "/eth/v2/builder";
pub const PATH_STATUS: &str = "/status";
pub const PATH_REGISTER_VALIDATORS: &str = "/validators";
pub const PATH_GET_HEADER: &str = "/header/{slot}/{parent_hash}/{pubkey}";
pub const PATH_HEADER_STREAM: &str = "/header_stream/{slot}/{parent_hash}/{pubkey}";
pub const PATH_GET_PAYLOAD: &str = "/blinded_blocks";
pub const PATH_DATA_API: &str = "/relay/v1/data";
pub const PATH_DATA_API_V2: &str = "/relay/v2/data";
pub const PATH_PROPOSER_PAYLOAD_DELIVERED: &str = "/bidtraces/proposer_payload_delivered";
pub const PATH_PROPOSER_HEADER_DELIVERED: &str = "/bidtraces/proposer_header_delivered";
pub const PATH_BUILDER_BIDS_RECEIVED: &str = "/bidtraces/builder_blocks_received";
pub const PATH_VALIDATOR_REGISTRATION: &str = "/validator_registration";
pub const PATH_RELAY_NETWORK: &str = "/relay/v1/network";
pub const PATH_PROMOTE_BUILDER: &str = "/promote";